/* Elroy — Swiss International Typographic System.
 *
 * Three colours only: White (#FFFFFF), Ink (#0A0A0A / #000000), Elroy Red (#B70018).
 * Sharp 0px rectilinear grid geometry, 1px/2px structural hairlines, flush-left
 * asymmetric typography, oversized tabular numerals, and zero eyebrows.
 */

:root {
  --accent: #B70018;
  --on-accent: #FFFFFF;
  --ground: #FFFFFF;
  --surface: #FAFAFA;
  --ink: #0A0A0A;
  --dim: rgba(0, 0, 0, .64);
  --ink-50: rgba(0, 0, 0, .54);
  --faint: rgba(0, 0, 0, .44);
  --rule: rgba(0, 0, 0, .14);
  --rule-strong: #0A0A0A;
  --sel: #0A0A0A;
  --sel-ink: #FFFFFF;
  --sel-soft: rgba(0, 0, 0, .05);
  --panel: #FAFAFA;
  --edge: #0A0A0A;
  --edge-soft: rgba(0, 0, 0, .24);
  --header-bg: rgba(255, 255, 255, .92);
  --grid-line: rgba(0, 0, 0, .048);
  --art-invert: 0;
  --sans: "Helvetica Neue", Helvetica, "SF Pro Display", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

/* Obsidian black architectural band. */
.stage-dark {
  --ground: #0A0A0A;
  --surface: #111111;
  --ink: #FFFFFF;
  --dim: rgba(255, 255, 255, .68);
  --ink-50: rgba(255, 255, 255, .54);
  --faint: rgba(255, 255, 255, .44);
  --rule: rgba(255, 255, 255, .16);
  --rule-strong: rgba(255, 255, 255, .42);
  --sel: #FFFFFF;
  --sel-ink: #0A0A0A;
  --sel-soft: rgba(255, 255, 255, .08);
  --panel: #111111;
  --edge: #FFFFFF;
  --edge-soft: rgba(255, 255, 255, .26);
  --grid-line: rgba(255, 255, 255, .055);
  --art-invert: 1;
  background: var(--ground);
  color: var(--ink);
}

/* Swiss poster red statement band (#B70018 ground, pure white type — 6.9:1 contrast). */
.stage-red {
  --ground: #B70018;
  --surface: #B70018;
  --ink: #FFFFFF;
  --dim: rgba(255, 255, 255, .86);
  --ink-50: rgba(255, 255, 255, .74);
  --faint: rgba(255, 255, 255, .66);
  --rule: rgba(255, 255, 255, .28);
  --rule-strong: #FFFFFF;
  --sel: #FFFFFF;
  --sel-ink: #B70018;
  --sel-soft: rgba(255, 255, 255, .12);
  --panel: rgba(0, 0, 0, .14);
  --edge: #FFFFFF;
  --edge-soft: rgba(255, 255, 255, .48);
  --grid-line: rgba(255, 255, 255, .08);
  --art-invert: 1;
  background: #B70018;
  color: #FFFFFF;
}
.stage-red a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.stage-red .btn { background: #FFFFFF; color: #0A0A0A; border-color: #FFFFFF; text-decoration: none; }
.stage-red .btn:hover { background: #0A0A0A; color: #FFFFFF; border-color: #0A0A0A; }
.stage-red .btn.outline { background: transparent; color: #FFFFFF; border-color: #FFFFFF; text-decoration: none; }
.stage-red .btn.outline:hover { background: #FFFFFF; color: #B70018; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Prevent CSS Grid blowout on narrow screens */
.swiss-grid > *,
.hero-split > *,
.callout-layout > *,
.product-stage-grid > *,
.sim-grid > *,
.stl-layout > *,
.bento-2 > *,
.bento-3 > *,
.duo > *,
.arm-chain-wrap > *,
.selector-grid > *,
.versus-grid > *,
.spec-groups-grid > *,
.timeline-steps > *,
.swiss-kpi-strip > *,
.swiss-index-band > * { min-width: 0; }

img, svg { max-width: 100%; display: block; }

/* Invert ONLY CAD SVG line art on dark surfaces — never shaded JPG renders or logos. */
.art img[src$=".svg"],
.mini img[src$=".svg"],
img.cad-svg {
  filter: invert(var(--art-invert));
  transition: filter .2s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wide { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

/* ------------------------------------------------------------------ type */
/* Flush-left Swiss grotesque hierarchy: monumental scale, tight leading. */
h1, h2, h3, h4 {
  margin: 0; font-weight: 700; letter-spacing: -.042em; line-height: .96; color: var(--ink);
}
h1 { font-size: clamp(46px, 8.2vw, 114px); }
h2 { font-size: clamp(34px, 5.4vw, 72px); line-height: .99; }
h3 { font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -.032em; line-height: 1.08; }
h4 { font-size: 19px; letter-spacing: -.022em; line-height: 1.22; }
p { margin: 0; }
.sub, .lede {
  font-size: clamp(18px, 1.9vw, 23px); line-height: 1.46; color: var(--dim);
  letter-spacing: -.012em; font-weight: 400;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }

/* ---------------------------------------------------------- scroll meter */
.scroll-meter {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 90; pointer-events: none;
  transition: width .08s linear;
}

/* ---------------------------------------------------------------- header */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
header.site.scrolled { border-bottom-color: var(--rule-strong); }
header.site .bar { display: flex; align-items: center; gap: 28px; height: 78px; }
header.site .logo { display: inline-flex; align-items: center; flex-shrink: 0; }
header.site .logo img { height: 46px; width: auto; }
nav.main { display: flex; gap: 14px; margin-left: auto; align-items: center; }
nav.main a.nav-link {
  color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.012em;
  padding: 10px 6px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .14s, border-color .14s;
}
nav.main a.nav-link:hover { color: var(--accent); text-decoration: none; }
nav.main a.nav-link.on {
  color: var(--ink); font-weight: 700; border-bottom-color: var(--accent);
}

.nav-utils { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 14px; font-weight: 600;
  padding: 8px 10px 8px 14px; border: 1.5px solid var(--edge);
  transition: border-color .14s, color .14s, background-color .14s;
}
.cart-btn:hover, .cart-btn.on {
  background: var(--ink); border-color: var(--ink); color: var(--ground); text-decoration: none;
}
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--accent); color: #FFFFFF;
}
.cart-btn.empty .cart-count {
  background: var(--panel); color: var(--faint); border: 1px solid var(--rule); font-weight: 500;
}
.cart-btn:hover .cart-count, .cart-btn.on .cart-count {
  background: var(--accent); color: #FFFFFF; border-color: var(--accent); font-weight: 700;
}

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--edge); color: var(--ink);
  padding: 9px 14px; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.nav-toggle:hover { background: var(--ink); color: var(--ground); }

.mobile-drawer {
  display: none;
  position: fixed; inset: 70px 0 0 0; z-index: 59;
  background: var(--ground); color: var(--ink);
  border-top: 2px solid var(--ink);
  padding: 24px 24px 48px; overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-inner { max-width: 560px; margin: 0 auto; }
.mobile-group { margin-bottom: 28px; }
.mobile-group-head {
  display: block; padding: 10px 0 12px; border-bottom: 2px solid var(--ink);
  font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--ink);
}
.mobile-group-head:hover { color: var(--accent); text-decoration: none; }
.mobile-drawer-links { display: flex; flex-direction: column; }
.mobile-drawer-links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink); font-size: 16.5px; font-weight: 600; letter-spacing: -.015em;
}
.mobile-drawer-links a span.m-num {
  font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 700;
}
.mobile-drawer-links a.on { color: var(--accent); }
.mobile-drawer-meta {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}

/* ----------------------------------------------------------- breadcrumbs */
.breadcrumbs {
  display: flex; align-items: center; gap: 10px; justify-content: flex-start;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--dim); }
.breadcrumbs a:hover { color: var(--accent); }

/* --------------------------------------------------------- blueprint grid */
.blueprint-grid {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ----------------------------------------------------------------- stage */
/* Swiss modular bands: left-aligned by default, bold 1px/2px horizontal divisions. */
.stage { padding: 92px 0 104px; text-align: left; position: relative; }
.stage + .stage,
div[data-products-actuators] + .stage,
div[data-products-robots] + .stage,
div[data-products-services] + .stage { border-top: 1px solid var(--rule); }
.stage h1, .stage h2 { margin-bottom: 24px; }
.stage .sub { max-width: 34em; }
.stage .links { display: flex; gap: 28px; justify-content: flex-start; flex-wrap: wrap; margin-top: 28px; font-size: 17px; font-weight: 600; }
.stage .art { margin-top: 44px; position: relative; }
.stage .art img, .stage .art svg {
  width: auto; max-width: min(100%, 880px); max-height: 520px;
  object-fit: contain; margin: 0 auto; height: auto;
}
.stage.short { padding: 76px 0; }
.stage.tight { padding: 56px 0; }
.stage.center-stage { text-align: center; }
.stage.center-stage .sub { margin-left: auto; margin-right: auto; }
.stage.center-stage .cta-row, .stage.center-stage .links { justify-content: center; }

.price-line { margin-top: 22px; font-size: 18px; color: var(--dim); }
.price-line b { color: var(--ink); font-weight: 700; font-family: var(--mono); }

/* ----------------------------------------------------- Swiss structural grids */
/* Heavy top rule + modular asymmetric columns (Vignelli / Müller-Brockmann style). */
.swiss-rule-top { border-top: 2px solid var(--rule-strong); padding-top: 32px; }
.swiss-rule-thin { border-top: 1px solid var(--rule); padding-top: 28px; }

.swiss-hero-head {
  padding-bottom: 44px;
  border-bottom: 2px solid var(--rule-strong);
  margin-bottom: 44px;
}
.swiss-hero-body {
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start;
}

.swiss-grid {
  display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start;
}
.swiss-grid-equal {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.swiss-grid-equal > .swiss-cell {
  padding: 44px 40px 44px 0;
}
.swiss-grid-equal > .swiss-cell + .swiss-cell {
  padding: 44px 0 44px 40px;
  border-left: 1px solid var(--rule);
}

/* Ruled KPI Strip — giant flush-left tabular numerals separated by 1px rules */
.swiss-kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  margin-top: 56px;
}
.swiss-kpi-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
.swiss-kpi-cell {
  padding: 28px 24px 28px 0;
}
.swiss-kpi-cell + .swiss-kpi-cell {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}
.swiss-kpi-cell b {
  display: block; font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  letter-spacing: -.04em; line-height: 1; margin-bottom: 10px;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.swiss-kpi-cell b.accent { color: var(--accent); }
.swiss-kpi-cell span {
  display: block; font-size: 14px; line-height: 1.4; color: var(--dim);
}

/* Oversized Swiss structural index numeral beside prose (NOT an eyebrow above!) */
.swiss-num {
  font-family: var(--mono); font-size: clamp(32px, 4vw, 54px); font-weight: 700;
  letter-spacing: -.04em; line-height: .95; color: var(--accent);
}
.stage-red .swiss-num { color: #FFFFFF; }
.swiss-sku-tag {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; padding: 5px 10px;
  background: var(--ink); color: var(--ground);
  margin-bottom: 18px;
}
.swiss-sku-tag.red { background: var(--accent); color: #FFFFFF; }

/* --------------------------------------------------------------- buttons */
/* Sharp 0px Swiss rectangular blocks */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--accent);
  padding: 15px 28px; font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: -.005em; border-radius: 0; cursor: pointer;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); text-decoration: none; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn.outline:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.ink { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.ink:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .3; pointer-events: none; }
.btn.small { padding: 10px 18px; font-size: 13.5px; }
.cta-row { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; margin-top: 28px; }

/* ------------------------------------------------------------ hero split */
.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  text-align: left;
}
.hero-split .sub { margin: 0; max-width: 28em; }
.hero-split .links, .hero-split .cta-row { justify-content: flex-start; }

/* ---------------------------------------------------------- cad drafting frame */
.cad-frame {
  position: relative;
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  padding: 28px 24px 24px;
  overflow: hidden;
}
.cad-frame::before, .cad-frame::after {
  content: "+"; position: absolute; font-family: var(--mono); font-size: 13px;
  color: var(--faint); line-height: 1; pointer-events: none;
}
.cad-frame::before { top: 8px; left: 10px; }
.cad-frame::after { bottom: 8px; right: 10px; }
.cad-frame-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.cad-frame-bar b { color: var(--ink); font-weight: 700; }
.cad-frame .art { margin-top: 0; }
.cad-frame .art img, .cad-frame .art svg {
  max-height: 430px; width: auto; max-width: 100%; margin: 0 auto;
}
.cad-frame .art img.cad-photo {
  width: 100%; max-height: 460px; aspect-ratio: 4 / 3; object-fit: contain;
  background: linear-gradient(180deg, #E6E7EA 0%, #D5D7DA 100%);
  border: 1px solid var(--rule);
}

/* -------------------------------------------------------- callout explorer */
.callout-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  border: 1px solid var(--rule-strong); text-align: left;
}
.callout-layout .cad-frame { border: none; border-right: 1px solid var(--rule-strong); }
.callout-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; min-height: 380px;
}
.callout-stage img {
  max-height: 480px !important; width: auto !important; max-width: 100%; margin: 0 auto;
}
.callout-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 0;
  background: var(--ground); color: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  transition: transform .14s ease, background-color .14s ease, color .14s ease, border-color .14s ease;
}
.callout-pin:hover, .callout-pin.active {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.14);
}
.callout-list { display: flex; flex-direction: column; background: var(--ground); }
.callout-item {
  width: 100%; text-align: left; flex: 1;
  background: transparent; border: none; border-bottom: 1px solid var(--rule);
  border-left: 4px solid transparent;
  padding: 18px 22px; cursor: pointer; color: var(--ink); font-family: var(--sans);
  transition: border-color .14s ease, background-color .14s ease;
}
.callout-item:last-child { border-bottom: none; }
.callout-item:hover { background: var(--sel-soft); }
.callout-item.active {
  border-left-color: var(--accent); background: var(--sel-soft);
}
.callout-item-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 5px;
}
.callout-item-num {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent);
  letter-spacing: .08em;
}
.callout-item-title { font-weight: 700; font-size: 16px; letter-spacing: -.015em; }
.callout-item-spec { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.callout-item-body { font-size: 14.5px; color: var(--dim); line-height: 1.48; }

/* ----------------------------------------------------------- simulator UI */
.sim-shell {
  border: 1px solid var(--rule-strong);
  background: var(--panel); overflow: hidden; text-align: left;
}
.sim-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint);
}
.sim-topbar-title { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.sim-grid { display: grid; grid-template-columns: 1.25fr .75fr; }
.sim-viewport {
  position: relative; min-height: 430px; display: flex; align-items: center; justify-content: center;
  padding: 20px; border-right: 1px solid var(--rule);
}
.sim-viewport canvas { width: 100%; height: 100%; max-height: 450px; display: block; }
.sim-panel {
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.sim-readouts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.sim-metric {
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 12px 14px; background: var(--ground);
}
.sim-metric span {
  display: block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px;
}
.sim-metric b {
  font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sim-metric b.accent { color: var(--accent); }
.sim-controls { display: flex; flex-direction: column; gap: 14px; }
.sim-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sim-label {
  display: flex; justify-content: space-between; width: 100%;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 6px;
}
.sim-range { width: 100%; accent-color: var(--accent); cursor: pointer; }
.seg-ctrl {
  display: inline-flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--rule-strong);
  background: var(--ground); max-width: 100%;
}
.seg-btn {
  background: transparent; border: none; border-right: 1px solid var(--rule);
  color: var(--dim);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  padding: 8px 13px; border-radius: 0; cursor: pointer;
  transition: background-color .14s, color .14s;
}
.seg-btn:last-child { border-right: none; }
.seg-btn:hover { color: var(--ink); background: var(--sel-soft); }
.seg-btn.active { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.sim-note {
  font-size: 13.5px; line-height: 1.55; color: var(--dim);
  border-top: 1px solid var(--rule); padding-top: 14px;
}

/* ----------------------------------------------------------- 3D STL viewer */
.stl-shell {
  border: 1px solid var(--rule-strong);
  background: var(--panel); overflow: hidden; text-align: left;
}
.stl-layout { display: grid; grid-template-columns: 270px 1fr; min-height: 540px; }
.stl-layout.stl-single { grid-template-columns: 1fr; min-height: 500px; }
.stl-sidebar {
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.stl-part-btn {
  width: 100%; text-align: left; background: transparent;
  border: none; border-bottom: 1px solid var(--rule); border-left: 4px solid transparent;
  padding: 13px 15px; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: background-color .14s, border-color .14s;
}
.stl-part-btn:hover { background: var(--sel-soft); }
.stl-part-btn.active { background: var(--sel-soft); border-left-color: var(--accent); }
.stl-part-name { font-weight: 700; font-size: 14.5px; display: block; }
.stl-part-sub { font-family: var(--mono); font-size: 11px; color: var(--faint); display: block; margin-top: 2px; }
.stl-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 6px; border: 1px solid var(--rule-strong);
  color: var(--dim); white-space: nowrap;
}
.stl-badge.over { border-color: var(--accent); background: var(--accent); color: #FFFFFF; font-weight: 700; }
.stl-main { display: flex; flex-direction: column; }
.stl-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px; border-bottom: 1px solid var(--rule);
}
.stl-canvas-wrap {
  position: relative; flex: 1; min-height: 420px; cursor: grab;
  display: flex; align-items: center; justify-content: center;
}
.stl-canvas-wrap:active { cursor: grabbing; }
.stl-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.stl-hud {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  pointer-events: none; font-family: var(--mono); font-size: 11px; color: var(--faint);
}
.stl-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--dim);
}

/* ------------------------------------------------------------ two-up / bento */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule-strong); }
.duo > .tile { border: none; }
.duo > .tile + .tile { border-left: 1px solid var(--rule-strong); }
.tile {
  background: var(--panel); border: 1px solid var(--rule);
  padding: 48px 40px; text-align: left;
}
.tile h3 { margin-bottom: 14px; }
.tile .sub { font-size: 17.5px; max-width: 28em; }
.tile .links { margin-top: 22px; font-size: 16px; display: flex; gap: 22px; flex-wrap: wrap; }
.tile .art { margin-top: 36px; }
.tile .art img, .tile .art svg { max-width: 420px; max-height: 320px; object-fit: contain; margin: 0 auto; }

.bento-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: left;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.bento-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; text-align: left;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.bento-2 .portal-card { border-bottom: 1px solid var(--rule); }
.bento-2 .portal-card:nth-child(2n) { border-right: none; }
.bento-2 .portal-card:nth-last-child(-n+2) { border-bottom: none; }
.bento-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: left;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.bento-4 > * { min-width: 0; }
.bento-4 .portal-card { padding: 28px 22px; }
@media (max-width: 1060px) {
  .bento-4 { grid-template-columns: repeat(2, 1fr); }
  .bento-4 .portal-card { border-bottom: 1px solid var(--rule); }
  .bento-4 .portal-card:nth-child(2n) { border-right: none; }
  .bento-4 .portal-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 680px) {
  .bento-4 { grid-template-columns: 1fr; }
  .bento-4 .portal-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .bento-4 .portal-card:last-child { border-bottom: none; }
}
.portal-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: transparent; border-right: 1px solid var(--rule);
  padding: 36px 30px; color: var(--ink);
  transition: background-color .14s ease;
}
.portal-card:last-child { border-right: none; }
.portal-card:hover { background: var(--sel-soft); text-decoration: none; }
.portal-card-head {
  display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: baseline;
  margin-bottom: 14px;
}
.portal-card-num {
  font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1;
}
.portal-card h3 { font-size: clamp(22px, 2.2vw, 28px); }
.portal-card p { font-size: 15.5px; line-height: 1.55; color: var(--dim); }
.portal-card .p-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}

/* ----------------------------------------------------------- product card */
.product-stage-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  text-align: left;
}
.product-stage-grid .sub { margin: 0; max-width: 28em; }
.product-stage-grid .cta-row { justify-content: flex-start; }
.product-stage-grid .art { margin-top: 0; }
.spec-strip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule-strong); margin-top: 24px;
}
.spec-strip-cell {
  padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.spec-strip-cell span {
  display: block; font-family: var(--mono); font-size: 11px; color: var(--faint);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px;
}
.spec-strip-cell b { font-weight: 600; color: var(--ink); font-family: var(--mono); }

.spec-groups-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 2px solid var(--rule-strong); text-align: left;
}
.spec-group-card {
  border-bottom: 1px solid var(--rule); padding: 36px 32px 36px 0;
}
.spec-group-card:nth-child(even) {
  padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule);
}
.spec-group-card h3 { font-size: 24px; margin-bottom: 10px; }
.spec-group-card .sub { font-size: 15.5px; margin: 0 0 22px; max-width: none; }

/* ------------------------------------------------------------ pose viewer */
.pose-viewer {
  border: 1px solid var(--rule-strong);
  overflow: hidden; background: var(--panel); text-align: left;
}
.pose-stage {
  position: relative;
  background: linear-gradient(180deg, #E6E7EA 0%, #D5D7DA 100%);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; max-height: 620px; width: 100%; overflow: hidden;
}
.pose-stage img { width: 100%; height: 100%; object-fit: contain; display: none; }
.pose-stage img.active { display: block; }
.pose-overlay-tag {
  position: absolute; top: 0; left: 0;
  background: #0A0A0A; color: #FFFFFF;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px;
}
.pose-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-top: 1px solid var(--rule);
}

/* ---------------------------------------------------------- arm joint chain */
.arm-chain-wrap {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 0; align-items: stretch;
  border: 1px solid var(--rule-strong); text-align: left;
}
.joint-stack { display: flex; flex-direction: column; border-right: 1px solid var(--rule-strong); }
.joint-row {
  width: 100%; text-align: left; cursor: pointer; flex: 1;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 15px 18px;
  background: transparent; border: none; border-bottom: 1px solid var(--rule);
  border-left: 4px solid transparent; color: var(--ink);
  transition: border-color .14s, background-color .14s;
}
.joint-row:last-child { border-bottom: none; }
.joint-row:hover { background: var(--sel-soft); }
.joint-row.active { border-left-color: var(--accent); background: var(--sel-soft); }
.joint-axis {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong); color: var(--ink);
}
.joint-row.active .joint-axis { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.joint-sku-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 4px 9px; border: 1px solid var(--rule-strong); color: var(--dim);
}
.joint-sku-tag.ea { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.joint-inspector { padding: 30px; background: var(--panel); }
.joint-inspector-art {
  height: 210px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; padding: 16px; border: 1px solid var(--rule); background: var(--ground);
}
.joint-inspector-art img { max-height: 185px; width: auto; }

/* ----------------------------------------------------------- BOM mass viz */
.bom-viz {
  border: 1px solid var(--rule-strong);
  padding: 32px; background: var(--panel); text-align: left;
}
.bom-bar {
  display: flex; height: 48px; overflow: hidden;
  border: 1px solid var(--rule-strong); margin: 22px 0 18px;
}
.bom-bar-sf {
  width: 59%; background: var(--ink); color: var(--ground); border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; cursor: pointer;
}
.bom-bar-ext {
  width: 41%; min-width: 120px; background: var(--accent); color: var(--on-accent); border: none;
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; cursor: pointer;
}
.bom-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.bom-chip {
  font-family: var(--mono); font-size: 12px; padding: 8px 12px; border-radius: 0;
  border: 1px solid var(--rule-strong); background: var(--ground); color: var(--ink);
  cursor: pointer; transition: background-color .14s, color .14s, border-color .14s;
}
.bom-chip:hover { background: var(--sel-soft); }
.bom-chip.active { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.bom-chip.ext.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.bom-detail-box {
  margin-top: 20px; padding: 20px 22px;
  border: 1px solid var(--rule-strong); background: var(--ground);
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 20px;
}

/* --------------------------------------------------------- joint selector */
.selector-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start;
  text-align: left;
}
.role-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong);
}
.role-btn {
  text-align: left; padding: 18px; border-radius: 0;
  border: none; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
  background: var(--ground); color: var(--ink);
  cursor: pointer; transition: background-color .14s, color .14s;
}
.role-btn:hover { background: var(--sel-soft); }
.role-btn.active { background: var(--ink); color: var(--ground); }
.role-btn.active span { color: rgba(255, 255, 255, .74); }
.role-btn b { display: block; font-size: 15.5px; margin-bottom: 5px; }
.role-btn span { font-size: 13px; color: var(--dim); display: block; line-height: 1.4; }
.selector-result {
  border: 1px solid var(--rule-strong); padding: 32px; background: var(--panel);
}
.selector-art {
  height: 210px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 18px;
}
.selector-art img { max-height: 190px; width: auto; }

/* ----------------------------------------------------------- manifesto */
.manifesto-list { display: flex; flex-direction: column; border-top: 2px solid var(--rule-strong); text-align: left; }
.manifesto-row {
  display: grid; grid-template-columns: 104px 1fr 1.15fr; gap: 36px; align-items: baseline;
  padding: 44px 0; border-bottom: 1px solid var(--rule);
}
.manifesto-num {
  font-family: var(--mono); font-size: clamp(32px, 4vw, 48px); font-weight: 700;
  color: var(--accent); letter-spacing: -.04em; line-height: 1;
}
.manifesto-row h3 { font-size: clamp(24px, 2.8vw, 34px); }
.manifesto-row p { font-size: 16.5px; line-height: 1.62; color: var(--dim); }
.versus-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; text-align: left;
  border: 1px solid var(--rule-strong);
}
.versus-col { padding: 36px 32px; background: var(--panel); }
.versus-col + .versus-col { border-left: 1px solid var(--rule-strong); }
.versus-col.elroy { border-top: 4px solid var(--accent); }
.versus-col ul { list-style: none; padding: 0; margin: 22px 0 0; }
.versus-col li {
  padding: 14px 0; border-top: 1px solid var(--rule);
  font-size: 15.5px; color: var(--dim); line-height: 1.5;
}
.versus-col.elroy li { color: var(--ink); }

/* ---------------------------------------------------------- shop floor */
.record-dossier {
  border: 2px solid var(--rule-strong);
  background: var(--ground); padding: 34px; text-align: left;
  font-family: var(--mono);
}
.record-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 22px;
}
.record-stamp {
  border: 1.5px solid var(--accent); color: var(--accent);
  padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
}
.record-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.record-cell { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.record-cell span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.record-cell b { font-size: 14px; font-weight: 700; color: var(--ink); }

.timeline-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: left;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.timeline-card {
  border-right: 1px solid var(--rule);
  padding: 30px 24px; background: transparent;
}
.timeline-card:last-child { border-right: none; }
.timeline-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
}
.timeline-num {
  font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1;
}
.timeline-card h4 { font-size: 18px; }
.timeline-card p { font-size: 14.5px; color: var(--dim); line-height: 1.55; }

/* ---------------------------------------------------------- provenance tag */
.prov-tag {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border: 1px solid var(--rule-strong);
  color: var(--dim); vertical-align: middle; margin-left: 8px;
}
.prov-tag.model { border-color: var(--accent); color: var(--accent); font-weight: 700; }

/* ----------------------------------------------------------- quick chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font-family: var(--mono); font-size: 12px; padding: 9px 13px; border-radius: 0;
  border: 1px solid var(--rule-strong); background: var(--ground); color: var(--ink);
  cursor: pointer; transition: background-color .14s, color .14s, border-color .14s;
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* --------------------------------------------------------------- specs */
.specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
  margin-top: 56px; text-align: left;
}
.specs > div { padding: 24px 20px 24px 0; }
.specs > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.specs b { display: block; font-size: 36px; font-weight: 700; letter-spacing: -.04em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.specs span { font-size: 14px; color: var(--dim); }

/* ----------------------------------------------------------------- table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.data th, table.data td { text-align: left; padding: 17px 20px 17px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--rule-strong);
}
table.data td { color: var(--dim); }
table.data td:first-child { color: var(--ink); font-weight: 600; }
table.data td.num, table.data th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ cart */
.page-head { padding: 76px 0 56px; text-align: left; border-bottom: 2px solid var(--rule-strong); }
.page-head h1 { margin-bottom: 20px; }
.cart-layout { display: grid; grid-template-columns: 1.45fr .85fr; gap: 56px; align-items: start; }
.cart-layout.is-empty { grid-template-columns: 1fr; }
.cart-layout > * { min-width: 0; }
.cart-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 0 14px; border-bottom: 2px solid var(--rule-strong);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint);
}
.cart-clear-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
}
.cart-clear-btn:hover { color: var(--accent); text-decoration: underline; }
.line {
  display: grid; grid-template-columns: 128px 1fr auto; gap: 26px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.line .mini {
  display: block; border: 1px solid var(--rule);
  background: linear-gradient(180deg, #E6E7EA 0%, #D5D7DA 100%);
  aspect-ratio: 4 / 3; overflow: hidden;
}
.line .mini img, .line .mini svg { width: 100%; height: 100%; object-fit: contain; }
.line .mini.is-svg { background: var(--panel); padding: 10px; }
.line h4 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.022em; }
.line h4 a { color: var(--ink); }
.line h4 a:hover { color: var(--accent); text-decoration: none; }
.line .sku, .sku { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.line-spec { font-size: 13.5px; color: var(--dim); margin-top: 6px; line-height: 1.4; }
.line-actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.line-unit { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.line-total { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rule-strong); background: var(--ground); }
.qty button {
  width: 36px; height: 36px; border: none; background: none; color: var(--ink);
  font-size: 16px; font-weight: 600; cursor: pointer; font-family: var(--mono);
  transition: background-color .12s, color .12s;
}
.qty button:hover { background: var(--ink); color: var(--ground); }
.qty span {
  min-width: 38px; text-align: center; font-family: var(--mono); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  line-height: 36px;
}
.link-remove {
  background: none; border: none; padding: 0; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent); cursor: pointer; font-weight: 700;
}
.link-remove:hover { text-decoration: underline; }
.cart-foot-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px;
}
.summary { position: sticky; top: 104px; border: 2px solid var(--rule-strong); padding: 28px; background: var(--panel); }
.summary-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 16px; margin-bottom: 10px; border-bottom: 2px solid var(--rule-strong);
}
.summary-head h3 { font-size: 22px; margin: 0; }
.summary .row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; font-size: 15px; color: var(--dim); border-bottom: 1px solid var(--rule); }
.summary .row b { color: var(--ink); font-weight: 600; }
.summary .row.total { border-bottom: none; margin-top: 6px; padding-top: 16px; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.summary-item {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.summary-item-thumb {
  border: 1px solid var(--rule); aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(180deg, #E6E7EA 0%, #D5D7DA 100%);
}
.summary-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.summary-item-name { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.summary-item-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 2px; }
.summary-note { font-size: 13px; line-height: 1.5; color: var(--dim); margin-top: 16px; }

/* Slide-over Swiss Bag Drawer */
.bag-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 10, 10, .48);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.bag-backdrop.open { opacity: 1; pointer-events: auto; }
.bag-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 130;
  width: min(460px, 100vw);
  background: var(--ground); border-left: 2px solid var(--rule-strong);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
}
.bag-drawer.open { transform: translateX(0); }
.bag-drawer-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; border-bottom: 2px solid var(--rule-strong);
}
.bag-drawer-head h3 { font-size: 22px; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.bag-drawer-head .mono { font-size: 13px; color: var(--accent); font-weight: 700; }
.bag-close {
  border: 1.5px solid var(--edge); background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 12px; cursor: pointer;
}
.bag-close:hover { background: var(--ink); color: var(--ground); }
.bag-drawer-body { flex: 1; overflow-y: auto; padding: 0 24px; }
.bag-item {
  display: grid; grid-template-columns: 82px 1fr; gap: 16px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.bag-item-thumb {
  border: 1px solid var(--rule); aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(180deg, #E6E7EA 0%, #D5D7DA 100%);
}
.bag-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bag-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bag-item-head a { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.bag-item-head a:hover { color: var(--accent); text-decoration: none; }
.bag-item-controls {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px;
}
.bag-item .qty button { width: 30px; height: 30px; font-size: 14px; }
.bag-item .qty span { min-width: 30px; line-height: 30px; font-size: 13px; }
.bag-drawer-upsell {
  margin: 18px 0; padding: 16px; border: 1px solid var(--rule); background: var(--panel);
}
.bag-upsell-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; margin-bottom: 12px;
}
.bag-upsell-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--rule);
}
.bag-upsell-row:first-of-type { border-top: none; padding-top: 0; }
.bag-drawer-foot {
  padding: 20px 24px 24px; border-top: 2px solid var(--rule-strong); background: var(--panel);
}
.bag-drawer-sub {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
}
.bag-drawer-sub span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.bag-drawer-sub b { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--ink); }
.bag-drawer-note { font-size: 12.5px; color: var(--dim); margin-bottom: 16px; }
.bag-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bag-drawer-actions .btn.block { grid-column: 1 / -1; }

/* Quick-add shelf in cart.html */
.cart-shelf { margin-top: 64px; padding-top: 40px; border-top: 2px solid var(--rule-strong); }
.cart-shelf-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px;
  margin-bottom: 24px;
}
.cart-shelf-head h3 { font-size: clamp(24px, 3vw, 34px); }

/* ----------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .field.full { grid-column: 1 / -1; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--rule-strong); border-radius: 0;
  background: var(--ground); color: var(--ink); font: inherit; font-size: 15.5px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.field select option { background: var(--ground); color: var(--ink); }
.field.half { display: inline-block; width: calc(50% - 10px); vertical-align: top; }
.field.half + .field.half { margin-left: 16px; }
.fulfill-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1.5px solid var(--rule-strong); margin-bottom: 24px;
}
.fulfill-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
  cursor: pointer; background: var(--ground); transition: background-color .14s;
}
.fulfill-opt + .fulfill-opt { border-left: 1.5px solid var(--rule-strong); }
.fulfill-opt input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.fulfill-opt b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.fulfill-opt span { display: block; font-size: 13px; color: var(--dim); }
.fulfill-opt.active { background: var(--panel); box-shadow: inset 0 3px 0 0 var(--accent); }
.ship-fields.disabled { opacity: .45; pointer-events: none; }
fieldset { border: none; margin: 0 0 40px; padding: 0; }
fieldset legend {
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); padding: 0 0 14px; border-bottom: 2px solid var(--rule-strong); width: 100%; margin-bottom: 22px;
}

.notice {
  background: var(--panel); border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--ink); padding: 24px 26px;
  font-size: 15.5px; color: var(--dim); line-height: 1.6;
}
.notice.red { border-left-color: var(--accent); }
.notice b { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

.steps {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-start;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
.steps a, .steps div { color: var(--faint); }
.steps .on { color: var(--accent); font-weight: 700; }
.steps .done { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- footer */
footer.site { padding: 76px 0 48px; border-top: 2px solid var(--rule-strong); background: var(--ground); color: var(--ink); }
footer.site .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; }
footer.site h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; font-weight: 700; }
footer.site a { display: block; color: var(--dim); font-size: 15px; padding: 6px 0; }
footer.site a:hover { color: var(--accent); text-decoration: none; }
footer.site .logo img { height: 46px; margin-bottom: 18px; }
footer.site .fine { border-top: 1px solid var(--rule); margin-top: 56px; padding-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; transform: translate(-50%, 200%); bottom: 28px; z-index: 100;
  background: var(--ink); color: var(--ground); border: 1px solid var(--rule-strong);
  padding: 14px 24px; font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  transition: transform .22s ease;
}
.toast.show { transform: translate(-50%, 0); }

/* ----------------------------------------------------------- reveal anim */
.js-ready [data-reveal]:not(.stage):not(.in),
.js-ready .stage[data-reveal]:not(.in) > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .42s ease, transform .42s ease;
}
.js-ready [data-reveal].in,
.js-ready .stage[data-reveal].in > * {
  opacity: 1; transform: none;
  transition: opacity .42s ease, transform .42s ease;
}

/* ------------------------------------------------------------------ misc */
.empty-state { padding: 80px 0; text-align: left; }
.empty-state h2 { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal]:not(.stage):not(.in),
  .js-ready .stage[data-reveal]:not(.in) > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1120px) {
  .swiss-hero-body,
  .swiss-grid,
  .hero-split,
  .product-stage-grid,
  .callout-layout,
  .sim-grid,
  .arm-chain-wrap,
  .selector-grid { grid-template-columns: 1fr; }
  .callout-layout .cad-frame { border-right: none; border-bottom: 1px solid var(--rule-strong); }
  .sim-viewport { border-right: none; border-bottom: 1px solid var(--rule); min-height: 360px; }
  .arm-chain-wrap .joint-stack { border-right: none; border-bottom: 1px solid var(--rule-strong); }
  .stl-layout { grid-template-columns: 1fr; }
  .stl-sidebar { border-right: none; border-bottom: 1px solid var(--rule); flex-direction: row; overflow-x: auto; }
  .stl-part-btn { min-width: 190px; border-bottom: none; border-right: 1px solid var(--rule); }
  .timeline-steps { grid-template-columns: repeat(2, 1fr); }
  .timeline-card { border-bottom: 1px solid var(--rule); }
  .bento-3 { grid-template-columns: 1fr; }
  .portal-card { border-right: none; border-bottom: 1px solid var(--rule); padding: 30px 0; }
  .portal-card:last-child { border-bottom: none; }
  .manifesto-row { grid-template-columns: 76px 1fr; gap: 18px; }
  .manifesto-row p { grid-column: 1 / -1; }
  .swiss-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .swiss-kpi-cell:nth-child(odd) { border-left: none; padding-left: 0; }
  .swiss-kpi-cell { border-bottom: 1px solid var(--rule); }
}

@media (max-width: 760px) {
  header.site .bar { height: 70px; gap: 12px; }
  header.site .logo img { height: 38px; }
  nav.main a.nav-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-drawer { inset: 70px 0 0 0; }
}

@media (max-width: 960px) {
  .stage { padding: 64px 0 72px; }
  .stage.short { padding: 56px 0; }
  .swiss-grid-equal, .duo, .bento-2, .versus-grid, .spec-groups-grid, .record-rows, .bom-detail-box { grid-template-columns: 1fr; }
  .swiss-grid-equal > .swiss-cell,
  .swiss-grid-equal > .swiss-cell + .swiss-cell { padding: 32px 0; border-left: none; }
  .swiss-grid-equal > .swiss-cell + .swiss-cell { border-top: 1px solid var(--rule); }
  .duo > .tile + .tile { border-left: none; border-top: 1px solid var(--rule-strong); }
  .versus-col + .versus-col { border-left: none; border-top: 1px solid var(--rule-strong); }
  .spec-group-card, .spec-group-card:nth-child(even) { padding: 28px 0; border-left: none; }
  .tile { padding: 36px 24px; }
  .cart-layout { grid-template-columns: 1fr; gap: 40px; }
  .summary { position: static; }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .field.half { width: 100%; margin-left: 0 !important; }
  .role-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs > div:nth-child(odd) { border-left: none; padding-left: 0; }
  .specs > div { border-bottom: 1px solid var(--rule); }
}

@media (max-width: 560px) {
  .wrap, .wide { padding: 0 18px; }
  .nav-utils { gap: 6px; margin-left: 0; }
  .cart-btn { padding: 7px 10px; font-size: 13px; }
  .nav-toggle { padding: 7px 10px; font-size: 11px; }
  .cad-frame { padding: 20px 16px 16px; }
  .sim-panel { padding: 18px; }
  .bom-viz { padding: 20px 16px; }
  .bom-bar-sf { padding: 0 12px; font-size: 11px; gap: 8px; }
  .bom-bar-sf span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .timeline-steps, .swiss-kpi-strip, .swiss-kpi-strip.cols-3, .spec-strip { grid-template-columns: 1fr; }
  .form-grid, .fulfill-grid { grid-template-columns: 1fr; }
  .fulfill-opt + .fulfill-opt { border-left: none; border-top: 1.5px solid var(--rule-strong); }
  .line { grid-template-columns: 88px 1fr; gap: 16px; }
  .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 4px; }
  .swiss-kpi-cell + .swiss-kpi-cell { border-left: none; padding-left: 0; }
  .timeline-card { border-right: none; padding: 24px 0; }
  .sim-readouts { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
}
