/* Sarda Magnets Group: design preview v3.
   Owner brief: Apple-inspired treatment. Charcoal, brushed steel, warm
   white, with Sarda red and navy as restrained accents.
   Design read: B2B industrial catalogue for engineers and buyers.
   Dials: ENERGY 2 / RHYTHM 2 / MOTION 1.
   Reasons:
   - warm white #F6F5F1 ground: softer than pure white, keeps product
     cut-outs (shot on white) reading as objects on cards.
   - charcoal #1D1D1F ink and primary buttons: neutral authority; colour is
     saved for the one action that matters (Request a Quote, Sarda red).
   - brushed steel gradient: used only on the model finder and quote list
     surfaces, the material Sarda products are made of.
   - navy #202868 (logo) for small labels and the pole motif only.
   - fewer borders: separation comes from white cards on warm ground. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #1D1D1F; --charcoal: #232427; --charcoal-2: #2E2F33;
  --muted: #5C5C61; --muted-light: #B8B8BD;
  --ground: #F6F5F1; --ground-2: #ECEBE6; --paper: #FFFFFF;
  --line: #E2E0DA; --line-dark: rgba(255,255,255,.14);
  --navy: #202868; --red: #E8181F; --red-ink: #B5121A; --red-deep: #8E0E14;
  --steel: linear-gradient(180deg, #F7F7F6 0%, #E4E5E7 100%);
  --steel-lines: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 1px, transparent 1px 3px);
  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Plex Mono", Menlo, Consolas, monospace;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --sec: clamp(72px, 9vw, 128px);
  --wrap: 1280px; --gutter: clamp(20px, 4vw, 48px);
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --ease: cubic-bezier(.25,.1,.25,1);
  --lift: 0 18px 40px -24px rgba(29,29,31,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; border-radius: 4px; }
a[href], button, summary, select, label[for], [role="button"], [role="option"] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
svg[hidden] { display: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -60px; background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: var(--s-3); color: #fff; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; }

h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.05; margin: 0 0 var(--s-4); letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.2vw, 3.25rem); }
h3 { font-size: 1.375rem; letter-spacing: -.012em; line-height: 1.2; }
p { margin: 0 0 var(--s-4); max-width: 66ch; }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); color: var(--muted); line-height: 1.5; }

/* Identity motif: a short pole-pitch mark (the steel and brass laminations of a
   chuck face) before each section label. Small, navy, one red pole. */
.poles { height: 8px; width: 56px; margin-bottom: var(--s-3); background:
  linear-gradient(90deg, transparent 0 35px, var(--red) 35px 40px, transparent 40px),
  repeating-linear-gradient(90deg, var(--navy) 0 5px, transparent 5px 7px); }
.eyebrow { font: 600 .9375rem var(--f-body); color: var(--muted); margin: 0 0 var(--s-3); }

/* Buttons: pills for actions, so they read apart from content cards. */
.btn { --bg: var(--ink); --fg: #fff; --bd: var(--bg); display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--f-body); border-radius: 999px; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn:hover { --bg: #000; color: #fff; }
.btn:active { transform: scale(.98); }
.btn--quote { --bg: var(--red-ink); }
/* Hover shifts Sarda red to logo navy: the two logo colours, red at rest. */
.btn--quote:hover { --bg: var(--navy); --bd: var(--navy); color: #fff; }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: rgba(29,29,31,.28); }
.btn--line:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); color: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: transparent; padding: 0 var(--s-3); text-decoration: underline; text-underline-offset: .25em; }
.btn--ghost:hover { --bg: var(--ground-2); color: var(--ink); }
.btn--wa { --bg: #1A7F43; --bd: #1A7F43; }
.btn--wa:hover { --bg: #13612F; --bd: #13612F; color: #fff; }
.demo-note { font-size: .8125rem; color: var(--muted); margin: var(--s-2) 0 0; }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: .9375rem; }
.btn[aria-pressed="true"] { --bg: var(--ground-2); --fg: var(--ink); --bd: var(--line); }
.btn[aria-pressed="true"]:hover { --bg: var(--ink); --fg: #fff; color: #fff; }
.on-dark .btn { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.on-dark .btn:hover { --bg: #E9E9EB; --bd: #E9E9EB; color: var(--ink); }
.on-dark .btn--line { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.6); }
.on-dark .btn--line:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; color: var(--ink); }
.on-dark .btn--quote { --bg: var(--red-ink); --fg: #fff; --bd: var(--red-ink); }
.on-dark .btn--quote:hover { --bg: var(--navy); --bd: var(--navy); color: #fff; }

/* Header: the one translucent surface, so photography shows through as the
   page scrolls under it. */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246,245,241,.84); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(29,29,31,.08); }
.site-header > .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 84px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 60px; width: auto; }
/* Menu sits next to the logo; tools and the quote CTA sit at the right. */
.nav { margin-left: var(--s-5); display: flex; align-items: center; gap: 2px; }
.header-actions { margin-left: auto; }
.hdr-cta { min-height: 44px; padding: 0 var(--s-5); font-size: .9375rem; }
.nav > a, .nav__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-3); font: 500 .9375rem var(--f-body); color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: 999px; }
.nav > a:hover, .nav__toggle:hover, .nav__toggle[aria-expanded="true"] { background: rgba(29,29,31,.06); color: var(--ink); }
.nav > a[aria-current="page"], .nav__toggle[aria-current="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav__toggle svg { transition: transform .2s var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-actions { display: flex; gap: var(--s-2); align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-width: 44px; min-height: 44px; padding: 0 var(--s-3); border: 0; background: rgba(29,29,31,.06); color: var(--ink); border-radius: 999px; font: 500 .9375rem var(--f-body); }
.icon-btn:hover { background: rgba(29,29,31,.12); }
.count { font-family: var(--f-mono); font-size: .8125rem; background: var(--red-ink); color: #fff; min-width: 22px; padding: 1px 6px; border-radius: 999px; text-align: center; }
.count[data-n="0"] { background: rgba(29,29,31,.12); color: var(--muted); }
.menu-btn { display: none; }
.dd { position: relative; }
.dd__menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; background: var(--paper); border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgba(29,29,31,.35), 0 0 0 1px rgba(29,29,31,.06); padding: var(--s-2); list-style: none; margin: 0; z-index: 45; }
.dd__menu[hidden] { display: none; }
.dd__menu a { display: block; padding: 10px var(--s-3); color: var(--ink); text-decoration: none; border-radius: var(--r-sm); font-weight: 500; }
.dd__menu a:hover, .dd__menu a[aria-current="page"] { background: var(--ground); }
.dd__menu small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(29,29,31,.35); }
.mega[hidden] { display: none; }
.mega > .wrap { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2) var(--s-5); }
.mega a { display: flex; gap: var(--s-3); align-items: baseline; padding: 10px var(--s-3); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.mega a:hover { background: var(--ground); }
.mega__all { margin-top: var(--s-4); font-weight: 600; }
.series { font-family: var(--f-mono); font-size: .8125rem; color: var(--muted); min-width: 2em; }
.fam-name { font-family: var(--f-head); font-weight: 650; font-size: 1.0625rem; letter-spacing: -.01em; }
.fam-count { margin-left: auto; font-family: var(--f-mono); font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.mnav h3 { font: 600 .8125rem var(--f-body); color: var(--muted); margin: var(--s-5) 0 var(--s-2); letter-spacing: 0; }

/* ---------- Home hero: one full-width industrial banner ---------- */
.hero { position: relative; background: #0B0C0E; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,14,.92) 0%, rgba(11,12,14,.78) 32%, rgba(11,12,14,.12) 62%, rgba(11,12,14,0) 100%); }
.hero .slide > .wrap { position: relative; z-index: 1; min-height: min(84vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-top: var(--s-9); padding-bottom: 140px; }
/* Slider: crossfade between owner-supplied banners. One slide is in flow at a
   time; the others are stacked, hidden and inert. */
.slides { position: relative; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.slide.is-on { position: relative; opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.slider__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.slider__bar > .wrap { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-6); }
.dots { display: flex; margin: 0; padding: 0; list-style: none; flex: 1; gap: var(--s-4); }
.dots li { flex: 1; max-width: 220px; }
.dots button { width: 100%; background: none; border: 0; color: #A1A1A6; font: 500 .875rem var(--f-body); text-align: left; padding: var(--s-2) 0; min-height: 44px; display: grid; gap: 8px; }
.dots button::before { content: ""; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.dots button[aria-selected="true"] { color: #fff; }
.dots button[aria-selected="true"]::before { background: var(--red); }
.dots button:hover { color: #fff; }
.ctrl { width: 44px; height: 44px; flex: 0 0 44px; display: inline-grid; place-items: center; border: 0; background: rgba(255,255,255,.22); color: #fff; border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ctrl:hover { background: #fff; color: var(--ink); }
.hero__copy { max-width: 600px; }
.hero__copy p { max-width: 30em; }
.hero h1, .hero h2 { color: #fff; font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem); }
.hero p { color: #D7D7DB; font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); }
.hero .eyebrow { color: #B8B8BD; }
.hero .eyebrow b { color: #fff; font-weight: 600; }
.actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }

/* Model finder: brushed steel band with typeahead */
.finder { background: var(--steel-lines), var(--steel); border-bottom: 1px solid var(--line); }
.finder > .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-7); align-items: center; padding-top: var(--s-7); padding-bottom: var(--s-7); }
.finder h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: var(--s-2); }
.finder p { margin: 0; color: var(--muted); }
.combo { position: relative; }
.combo label { display: block; font-weight: 600; margin-bottom: var(--s-2); }
.search-field { display: flex; align-items: center; background: var(--paper); border-radius: 999px; box-shadow: 0 1px 0 rgba(29,29,31,.04), 0 0 0 1px rgba(29,29,31,.12); padding: 4px; }
.search-field svg { margin-left: var(--s-4); color: var(--muted); flex: 0 0 auto; }
.search-field input { flex: 1; min-width: 0; min-height: 52px; border: 0; padding: 0 var(--s-3); font: 400 1.0625rem var(--f-body); color: var(--ink); background: transparent; border-radius: 999px; }
.search-field input:focus { outline: none; }
.search-field:focus-within { box-shadow: 0 0 0 3px var(--red-ink); }
.search-field button { border: 0; background: var(--ink); color: #fff; min-height: 48px; padding: 0 var(--s-5); font: 600 1rem var(--f-body); border-radius: 999px; }
.search-field button:hover { background: #000; }
.search-hint { font-size: .875rem; color: var(--muted); margin: var(--s-2) 0 0 var(--s-4); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--paper); border-radius: var(--r-md); box-shadow: 0 30px 60px -24px rgba(29,29,31,.4), 0 0 0 1px rgba(29,29,31,.06); padding: var(--s-2); margin: 0; list-style: none; max-height: 420px; overflow: auto; }
.suggest[hidden] { display: none; }
.suggest .grp { font: 600 .75rem var(--f-body); color: var(--muted); padding: var(--s-2) var(--s-3) 4px; letter-spacing: .02em; }
.opt { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); }
.opt[aria-selected="true"], .opt:hover { background: var(--ground); }
.opt .frame { width: 48px; height: 38px; border-radius: 6px; }
.opt .o-name { font-weight: 600; display: block; }
.opt .o-sub { font-size: .8125rem; color: var(--muted); display: block; }
.opt .tag { font: 500 .75rem var(--f-mono); background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.opt .tag--soft { background: var(--ground-2); color: var(--ink); }
.suggest .more { padding: var(--s-3); font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: var(--s-2); }

/* Sections */
.section { padding: var(--sec) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: #E8E8EA; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #C9C9CE; }
.section--dark .poles { background: linear-gradient(90deg, transparent 0 35px, var(--red) 35px 40px, transparent 40px), repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 7px); }
.wrap.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--muted); max-width: 46ch; }
.section__head > a { font-weight: 600; }

/* Image frames: pinned image + object-fit. Renders identically in Safari and
   Chrome (no percentage max-height inside aspect-ratio boxes). */
.frame { display: block; position: relative; overflow: hidden; background: #fff; }
.frame > img { position: absolute; inset: var(--s-3); width: calc(100% - 2 * var(--s-3)); height: calc(100% - 2 * var(--s-3)); max-width: none; object-fit: contain; }
.frame--cover > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Catalogue grid (home + products hub) */
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.cat { background: var(--paper); border-radius: var(--r-lg); display: flex; flex-direction: column; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.cat:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.cat .frame { aspect-ratio: 4 / 3; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.cat .frame > img { inset: var(--s-5); width: calc(100% - 2 * var(--s-5)); height: calc(100% - 2 * var(--s-5)); }
.cat__body { padding: var(--s-2) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat h3 { margin: 0; font-size: 1.25rem; }
.cat h3 a { text-decoration: none; color: var(--ink); }
.cat h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.cat h3 a:hover { color: var(--red-ink); }
.cat__count { font: 500 .875rem var(--f-mono); color: var(--muted); }
.cat__subs { margin-top: auto; padding-top: var(--s-3); display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.cat__subs a { font-size: .8125rem; padding: 5px 10px; border-radius: 999px; background: var(--ground); text-decoration: none; color: var(--ink); min-height: 28px; display: inline-flex; align-items: center; }
.cat__subs a:hover { background: var(--ink); color: #fff; }
.cat--wide { grid-column: span 2; }
.cat--wide .frame { aspect-ratio: 16 / 9; }

/* Browse by application */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.app { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.app__media { position: relative; aspect-ratio: 16 / 10; background: #111; overflow: hidden; }
.app__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.app__media img.contain { object-fit: contain; background: #fff; padding: var(--s-4); }
.app__media:has(img.contain) { background: #fff; }
.app__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.app h3 { margin: 0; font-size: 1.375rem; }
.app h3 a { text-decoration: none; color: var(--ink); }
.app h3 a:hover { color: var(--red-ink); }
.app p { margin: 0; color: var(--muted); font-size: .9375rem; }
.app ul { list-style: none; margin: 0; padding: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.app li a { font-size: .875rem; padding: 6px 12px; border-radius: 999px; background: var(--ground); text-decoration: none; color: var(--ink); display: inline-flex; min-height: 32px; align-items: center; }
.app li a:hover { background: var(--ink); color: #fff; }
.app li a.primary { background: var(--ink); color: #fff; }
.app li a.primary:hover { background: #000; }

/* Sarda equipment in use (featured systems) */
.systems { display: grid; gap: var(--s-8); }
.system { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s-7); align-items: center; }
.system:nth-child(even) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.system:nth-child(even) .system__media { order: 2; }
.system__media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-3); }
.inst { margin: 0; background: var(--paper); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.inst:first-child { grid-row: span 2; }
.inst .frame { flex: 1; min-height: 150px; }
.inst:first-child .frame { min-height: 360px; }
.inst figcaption { font-size: .8125rem; color: var(--muted); padding: var(--s-2) var(--s-3) var(--s-3); line-height: 1.4; }
.system__copy .art { display: block; margin-bottom: var(--s-2); }
.system__copy h3 { font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem); }
.system__copy ul { padding: 0; margin: var(--s-4) 0 var(--s-5); list-style: none; display: grid; gap: var(--s-2); }
.system__copy li { padding-left: 20px; position: relative; color: var(--ink); }
.system__copy li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }
.art { font: 500 .8125rem var(--f-mono); color: var(--muted); }

/* Why choose (dark) */
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-8); }
.why__intro { position: sticky; top: 120px; align-self: start; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-6); }
.why__list li { padding-top: var(--s-5); border-top: 1px solid var(--line-dark); }
.why__list .key { display: block; font-family: var(--f-head); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; color: #fff; margin-bottom: var(--s-2); }
.why__list h3 { font-size: 1.125rem; margin-bottom: var(--s-2); }
.why__list p { margin: 0; font-size: .9375rem; }

/* Comparison + downloads */
.tech { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: var(--s-6); align-items: start; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.compare caption { text-align: left; padding: 0 0 var(--s-3); color: var(--muted); font-size: .9375rem; }
.compare th, .compare td { padding: var(--s-4) var(--s-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--f-head); font-size: 1.0625rem; color: var(--ink); background: var(--ground-2); border-bottom: 0; }
.compare tbody th { font-weight: 600; width: 22%; color: var(--muted); }
.dl-panel { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-5); }
.dl-panel h3 { margin-bottom: var(--s-2); }
.dl-panel > p { color: var(--muted); font-size: .9375rem; }
.dl { list-style: none; margin: 0; padding: 0; }
.dl li { border-top: 1px solid var(--line); }
.dl a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; text-decoration: none; color: var(--ink); }
.dl a:hover .dl__name { color: var(--red-ink); text-decoration: underline; }
.dl__icon { width: 40px; height: 48px; border-radius: 6px; background: var(--ground-2); display: grid; place-items: center; font: 600 .6875rem var(--f-mono); color: var(--ink); position: relative; }
.dl__icon::before { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: linear-gradient(225deg, var(--ground) 50%, rgba(29,29,31,.15) 50%); border-radius: 0 6px 0 0; }
.dl__icon--pdf { background: #F6E3E3; color: var(--red-deep); }
.dl__name { font-weight: 600; display: block; line-height: 1.3; }
.dl__meta { font-size: .8125rem; color: var(--muted); display: block; }
.dl__size { font: 500 .8125rem var(--f-mono); color: var(--muted); }
.dl-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.dl-table th, .dl-table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); font-size: .9375rem; vertical-align: middle; }
.dl-table thead th { background: var(--ground-2); font-weight: 600; }
.dl-table tr[hidden] { display: none; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--s-8); }
.faq__list { display: grid; gap: var(--s-2); }
.faq details { background: var(--ground); border-radius: var(--r-md); padding: 0 var(--s-5); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; min-height: 60px; font-family: var(--f-head); font-weight: 650; font-size: 1.125rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat, var(--paper); transition: transform .2s var(--ease); }
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, var(--paper); }
.faq summary:hover { color: var(--red-ink); }
.faq .ans { padding: 0 0 var(--s-5); }
.faq .ans p { margin: 0; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.post-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.post-card .frame { aspect-ratio: 16 / 10; }
.post-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.post-card h2, .post-card h3 { margin: 0; font-size: 1.3125rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.meta { font-size: .875rem; color: var(--muted); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.posts--lead { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* CTA band */
.cta-band { background: var(--ink); color: #E8E8EA; }
.cta-band > .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-7); padding-top: var(--sec); padding-bottom: var(--sec); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9C9CE; }
.cta-band dl { margin: 0; display: grid; gap: var(--s-5); }
.cta-band dt { font-size: .8125rem; color: #A1A1A6; }
.cta-band dd { margin: 0; font-size: 1.25rem; }
.cta-band a { color: #fff; }

/* Footer */
.site-footer { background: var(--ground-2); font-size: .9375rem; }
.site-footer > .wrap { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; gap: var(--s-6); padding-top: var(--s-8); padding-bottom: var(--s-6); }
.site-footer h2 { font-size: .9375rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { color: var(--muted); }
.office { margin-bottom: var(--s-4); color: var(--muted); }
.office strong { display: block; color: var(--ink); font-weight: 600; }
.foot-base { border-top: 1px solid var(--line); }
.foot-base > .wrap { display: flex; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-4); padding-bottom: var(--s-4); flex-wrap: wrap; color: var(--muted); font-size: .8125rem; }

/* Page heads */
.crumbs { font-size: .875rem; padding: var(--s-5) 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--muted-light); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.page-head > .wrap { padding-bottom: var(--s-7); }
.page-head h1 { margin-top: var(--s-6); font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.page-meta { display: flex; gap: var(--s-5); flex-wrap: wrap; color: var(--muted); font-size: .9375rem; }
/* Banner page head: generated banner imagery for categories and company */
.bhead { position: relative; background: #0B0C0E; color: #fff; overflow: hidden; }
.bhead__media { position: absolute; inset: 0; }
.bhead__media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.bhead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,14,.92) 0%, rgba(11,12,14,.7) 40%, rgba(11,12,14,.05) 75%); }
.bhead > .wrap { position: relative; z-index: 1; min-height: clamp(360px, 36vw, 500px); display: flex; flex-direction: column; justify-content: space-between; padding-bottom: var(--s-7); }
.bhead h1 { color: #fff; margin-top: var(--s-7); max-width: 14ch; }
.bhead .lead { color: #D7D7DB; max-width: 48ch; }
.bhead .crumbs a, .bhead .crumbs [aria-current], .bhead .page-meta { color: #D7D7DB; }
.bhead .crumbs a:hover { color: #fff; }
.jump { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-5); }
.jump a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); background: var(--paper); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.jump a:hover, .jump a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.bhead .jump a { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; -webkit-backdrop-filter: none; }
.bhead .jump a:hover { background: #fff; color: var(--ink); }
.bhead .jump .fam-count, .jump a:hover .fam-count { color: inherit; opacity: .75; }

/* Category groups + product cards */
.group { padding-top: var(--s-8); }
.group__head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.group__head h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); }
.group__head h2 a { color: inherit; text-decoration: none; }
.subgroup { margin-bottom: var(--s-7); }
.subgroup__head { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.subgroup__head h3 { margin: 0; }
.subgroup__head h3 a { text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-4); }
/* Product cards stay uniform on purpose: buyers compare like with like. */
.card { background: var(--paper); border-radius: var(--r-lg); display: flex; flex-direction: column; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.card__img { aspect-ratio: 4 / 3; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card__img > img { inset: var(--s-4); width: calc(100% - 2 * var(--s-4)); height: calc(100% - 2 * var(--s-4)); }
.card__body { padding: var(--s-2) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__name { font-family: var(--f-head); font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--ink); text-decoration: none; }
.card__name:hover { color: var(--red-ink); }
.card__type { font-size: .9375rem; color: var(--muted); line-height: 1.4; }
.card__foot { margin-top: auto; padding-top: var(--s-4); display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.card__foot .btn { flex: 1 1 auto; }

/* Product page */
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-7); padding: var(--s-5) 0 var(--s-8); align-items: start; }
.gallery__main { margin: 0; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.gallery__stage { aspect-ratio: 4 / 3; width: 100%; }
.gallery__stage > img { inset: var(--s-6); width: calc(100% - 2 * var(--s-6)); height: calc(100% - 2 * var(--s-6)); }
.gallery__main figcaption { padding: var(--s-3) var(--s-5) var(--s-4); font-size: .9375rem; color: var(--muted); min-height: 3.2em; }
.gallery__main figcaption b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); margin-right: var(--s-2); }
.thumbs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); padding: 0; list-style: none; }
.thumbs button { width: 80px; height: 64px; padding: 0; background: #fff; border: 0; border-radius: var(--r-sm); position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.thumbs button img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.thumbs button[aria-current="true"] { box-shadow: 0 0 0 2px var(--ink); }
.thumbs button:hover { box-shadow: 0 0 0 2px var(--muted); }
.pd__info { position: sticky; top: 100px; }
.pd__info h1 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.75rem); margin: var(--s-2) 0 var(--s-2); }
.pd__type { font-size: 1.25rem; color: var(--muted); margin-bottom: var(--s-5); }
.pd__keys { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--s-5); margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); background: var(--paper); border-radius: var(--r-md); font-size: .9375rem; }
.pd__keys dt { color: var(--muted); }
.pd__keys dd { margin: 0; font-weight: 500; }
.pd__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.pd__actions .btn { width: 100%; }
.pd__actions .span2 { grid-column: 1 / -1; }
.pd__note { font-size: .875rem; color: var(--muted); margin: var(--s-4) 0 0; }
.pd__links { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3); font-size: .9375rem; }
.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-8); }
.pd-body > section { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-6); min-width: 0; }
.pd-body > section h2 { font-size: 1.625rem; }
.pd-body .full { grid-column: 1 / -1; }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--red); }
.prose table { border-collapse: collapse; margin: var(--s-3) 0; font-size: .9375rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px var(--s-3); }
.empty { background: var(--ground); border-radius: var(--r-md); padding: var(--s-5); }
.empty p { margin: 0 0 var(--s-2); }
.empty p:last-child { margin: 0; }
.drawing { margin: 0; }
.drawing .frame { aspect-ratio: 4 / 3; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.drawing figcaption { font-size: .875rem; color: var(--muted); margin-top: var(--s-2); }
.fig { margin: 0; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.fig figcaption { font-size: .875rem; color: var(--muted); padding: var(--s-3) var(--s-5) var(--s-4); }
.fig figcaption b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); margin-right: var(--s-2); }

/* Tables */
.table-scroll { overflow-x: auto; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.data { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.data th, .data td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); text-align: left; }
.data tr:last-child td { border-bottom: 0; }
.data thead th { background: var(--ground-2); color: var(--ink); font-weight: 600; font-size: .875rem; vertical-align: bottom; line-height: 1.3; }
.data td.num { text-align: right; font-family: var(--f-mono); font-feature-settings: "tnum"; }
.data th.num { text-align: right; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(11,12,14,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); }
.dlg--side { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(520px, 100vw); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.dlg__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); position: sticky; top: 0; background: rgba(255,255,255,.94); z-index: 2; border-bottom: 1px solid var(--line); }
.dlg__head h2 { margin: 0; font-size: 1.5rem; }
.dlg__body { padding: var(--s-5); }
#quote-dlg .dlg__body > .qbox { background: var(--steel-lines), var(--steel); border-radius: var(--r-md); padding: var(--s-4); margin-bottom: var(--s-5); }
.results { list-style: none; margin: var(--s-3) 0 0; padding: 0; max-height: 58dvh; overflow: auto; }
.results .grp { font: 600 .75rem var(--f-body); color: var(--muted); padding: var(--s-3) var(--s-2) 4px; }
.results a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2); text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.results a:hover, .results a:focus-visible { background: var(--ground); }
.results .frame { width: 56px; height: 44px; border-radius: 6px; }
.results .frame > img { inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
.results .r-name { font-weight: 600; }
.results .r-type { display: block; font-size: .8125rem; color: var(--muted); }
.status { color: var(--muted); padding: var(--s-3) 0 0; margin: 0; font-size: .9375rem; }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-2) 0; border-bottom: 1px solid rgba(29,29,31,.08); }
.qlist li:last-child { border-bottom: 0; }
.qlist .frame { width: 56px; height: 44px; border-radius: 6px; }
.qlist .frame > img { inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
.qlist a { text-decoration: none; }
.qlist .remove { background: none; border: 0; color: var(--red-ink); font: 500 .875rem var(--f-body); min-height: 44px; padding: 0 var(--s-2); text-decoration: underline; }

/* Toast: confirms Add to Quote with a direct route to the list */
.toast { position: fixed; z-index: 60; right: var(--s-5); bottom: var(--s-5); width: min(420px, calc(100vw - 32px)); background: var(--ink); color: #fff; border-radius: var(--r-md); box-shadow: 0 24px 50px -20px rgba(0,0,0,.5); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-2); align-items: center; transform: translateY(16px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .25s var(--ease), visibility 0s linear .25s; }
.toast.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.toast p { margin: 0; font-size: .9375rem; color: #fff; }
.toast .btn { --bg: #fff; --fg: var(--ink); min-height: 40px; padding: 0 var(--s-4); font-size: .875rem; }
.toast .btn:hover { --bg: #E9E9EB; color: var(--ink); }
.toast .x { background: none; border: 0; color: #C9C9CE; width: 40px; height: 40px; border-radius: 50%; font-size: 1.25rem; }
.toast .x:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Mobile product action bar */
.actionbar { display: none; }

/* Forms */
.form { display: grid; gap: var(--s-4); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-family: var(--f-head); font-weight: 700; font-size: 1.125rem; padding: 0; margin-bottom: var(--s-3); letter-spacing: -.01em; }
fieldset .form { gap: var(--s-3); }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field .req { color: var(--red-ink); }
.field .optl { color: var(--muted); font-weight: 400; font-size: .8125rem; white-space: nowrap; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1px solid #86868B; border-radius: var(--r-sm); font: 400 1rem var(--f-body); color: var(--ink); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--red-ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border: 2px solid var(--red-ink); }
.err { color: var(--red-ink); font-size: .875rem; margin-top: 4px; font-weight: 500; }
.err:empty { display: none; }
.notice { padding: var(--s-4); border-radius: var(--r-md); background: var(--ground); }
.notice--ok { background: #E7F3EA; }
.notice--ok strong { color: #14532D; }
.help { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }

/* Content pages: articles, company, gallery, downloads */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-7); padding: var(--s-5) 0 var(--s-8); align-items: start; }
.article__body { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 64px); }
.article__body h2 { font-size: 1.75rem; margin-top: var(--s-7); }
.article__body h2:first-child { margin-top: 0; }
.article__body p, .article__body li { font-size: 1.0625rem; line-height: 1.7; }
.article__body ul { padding-left: 1.2em; }
.article__body li::marker { color: var(--red); }
.article__body .table-scroll { margin: var(--s-4) 0 var(--s-5); }
.toc { position: sticky; top: 100px; background: var(--paper); border-radius: var(--r-lg); padding: var(--s-5); }
.toc h2 { font-size: 1rem; font-family: var(--f-body); letter-spacing: 0; margin-bottom: var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc .btn { width: 100%; margin-top: var(--s-4); }
.callout { background: var(--ground); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; }
.callout p { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 0; }
.filters button { min-height: 44px; padding: 0 var(--s-4); border: 0; background: var(--paper); color: var(--ink); border-radius: 999px; font: 500 .9375rem var(--f-body); display: inline-flex; gap: var(--s-2); align-items: center; box-shadow: 0 0 0 1px var(--line); }
.filters button:hover { box-shadow: 0 0 0 1px var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.filters .mono { font-size: .8125rem; opacity: .75; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-4); padding: var(--s-6) 0 var(--s-8); }
.gal button { width: 100%; height: 100%; padding: 0; border: 0; background: var(--paper); text-align: left; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gal button:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.gal .frame { aspect-ratio: 4 / 3; width: 100%; }
.gal .cap { padding: var(--s-3) var(--s-4) var(--s-4); font-size: .875rem; color: var(--muted); line-height: 1.4; }
.gal .cap strong { display: block; color: var(--ink); font-size: .9375rem; }
.gal [hidden] { display: none; }
.lb { width: min(1040px, calc(100vw - 24px)); }
.lb .frame { aspect-ratio: 4 / 3; max-height: 70dvh; width: 100%; }
.lb__foot { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); flex-wrap: wrap; }
.lb__nav { display: flex; gap: var(--s-2); }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.era { display: grid; grid-template-columns: 110px 46px minmax(0, 1fr); gap: 0 var(--s-4); padding-bottom: var(--s-6); }
.era__years { font-family: var(--f-head); font-weight: 700; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.05; text-align: right; }
.era__years span { display: block; font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.era__dot { width: 14px; height: 14px; background: var(--red); border-radius: 50%; margin: 10px 0 0 15px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--ground); }
.era__body { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-6); }
.era__body h2 { font-size: 1.625rem; margin-bottom: var(--s-3); }
.era__body ul { margin: var(--s-3) 0 0; padding-left: 1.1em; }
.era__body li { margin-bottom: 6px; }
.era__body li::marker { color: var(--red); }
.era__body .mono { font-weight: 500; }
.units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.unit { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-6); }
.unit__year { font-family: var(--f-head); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; line-height: 1; margin-bottom: var(--s-4); }
.unit h2 { font-size: 1.25rem; margin-bottom: 6px; }
.unit p { margin: 0; color: var(--muted); font-size: .9375rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.prose-lg p { font-size: 1.1875rem; line-height: 1.65; }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.office-card { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-6); }
.office-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.office-card .role { color: var(--muted); font-size: .9375rem; margin-bottom: var(--s-3); }
.office-card address { font-style: normal; margin-bottom: var(--s-3); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-7); padding: var(--s-5) 0 var(--s-8); align-items: start; }
.panel { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-6); }

/* Scroll reveal: off by default; JS adds .rv only when motion is allowed. */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .header-actions .icon-btn .lbl { display: none; }
  .nav { margin-left: var(--s-3); }
}
@media (max-width: 1120px) {
  .nav, .header-actions .icon-btn .lbl { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apps, .posts, .posts--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder > .wrap, .why, .tech, .faq, .pd, .article, .split, .contact-grid, .cta-band > .wrap { grid-template-columns: minmax(0, 1fr); }
  .why__intro, .pd__info, .toc { position: static; }
  .system, .system:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .system:nth-child(even) .system__media { order: 0; }
  .site-footer > .wrap { grid-template-columns: 1fr 1fr; }
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .brand img { height: 38px; }
  .site-header > .wrap { min-height: 60px; gap: var(--s-3); }
  /* Mobile hero: the machinery crop sits above the copy so it stays visible. */
  .hero__media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero__media::after { background: linear-gradient(180deg, rgba(11,12,14,0) 55%, rgba(11,12,14,1) 100%); }
  .hero .slide > .wrap { min-height: 0; padding-top: 0; padding-bottom: 104px; margin-top: -24px; }
  .slider__bar > .wrap { padding-bottom: var(--s-5); }
  .dots { gap: var(--s-2); }
  .dots .lbl { display: none; }
  .hdr-cta { display: none; }
  .bhead__media { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .bhead__media::after { background: linear-gradient(180deg, rgba(11,12,14,0) 50%, rgba(11,12,14,1) 100%); }
  .bhead > .wrap { min-height: 0; margin-top: -12px; }
  .bhead h1 { margin-top: var(--s-4); }
  .bhead .crumbs { position: absolute; top: calc(-62.5vw + 8px); left: var(--gutter); right: var(--gutter); }
  .bhead .crumbs ol { background: rgba(11,12,14,.55); border-radius: 999px; padding: 4px 12px; width: fit-content; }
  .catgrid, .apps, .posts, .posts--lead, .units, .offices, .form .row, .site-footer > .wrap, .why__list, .pd-body { grid-template-columns: minmax(0, 1fr); }
  .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .cat .frame > img { inset: var(--s-3); width: calc(100% - 2 * var(--s-3)); height: calc(100% - 2 * var(--s-3)); }
  .cat__body { padding: var(--s-2) var(--s-4) var(--s-4); }
  .cat h3 { font-size: 1.0625rem; }
  .cat__subs { display: none; }
  .system__media { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .inst:first-child { grid-column: span 2; grid-row: auto; }
  .inst:first-child .frame { min-height: 240px; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare caption { display: block; }
  .compare tbody th { background: var(--ground-2); color: var(--ink); }
  .compare td::before { content: attr(data-label); display: block; font-weight: 600; font-size: .8125rem; color: var(--muted); }
  .timeline::before { left: 6px; }
  .era { grid-template-columns: 24px minmax(0, 1fr); }
  .era__years { grid-column: 2; text-align: left; margin-bottom: var(--s-2); }
  .era__dot { grid-row: 1; grid-column: 1; margin: 8px 0 0 0; }
  .era__body { grid-column: 2; padding: var(--s-5); }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .pd-body > section, .panel, .office-card, .unit { padding: var(--s-5); }
  .pd__actions { grid-template-columns: 1fr; }
  .dl-table thead { display: none; }
  .dl-table, .dl-table tbody, .dl-table tr, .dl-table td { display: block; width: 100%; }
  .dl-table tr { border-bottom: 1px solid var(--line); padding: var(--s-2) 0; }
  .dl-table td { border: 0; padding: 4px var(--s-4); }
  /* Product action bar: appears once the main buttons scroll away; the page
     reserves its height so it never covers content. */
  .actionbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: var(--s-2); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: rgba(246,245,241,.94); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s var(--ease); }
  .actionbar.is-on { transform: none; }
  .actionbar .btn { flex: 1 1 0; min-width: 0; padding: 0 var(--s-3); }
  body.has-actionbar { padding-bottom: 80px; }
  body.has-actionbar .toast { bottom: 92px; }
  .toast { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .toc, .actionbar, .toast, dialog, .crumbs, section.section--paper, .skip, .cta-band { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .article { display: block; padding: 0; }
  .article__body { padding: 0; border-radius: 0; }
  .page-head > .wrap { padding: 0 0 12pt; }
  .page-head h1 { margin-top: 0; font-size: 24pt; }
  .table-scroll { box-shadow: none; border: 1px solid #ccc; }
  a { color: inherit; }
}
.pd-body { align-items: start; }
