/* Overrides that make the exported Wix DOM behave without the Wix runtime. */
/* Gallery sliders become natively scrollable strips */
.pro-gallery .gallery-horizontal-scroll { overflow-x: auto !important; scroll-snap-type: x proximity; }
/* Users who prefer reduced motion: never leave anything hidden */
@media (prefers-reduced-motion: reduce) { [id] { animation: none !important; } }

/* Catalog tiles (Wix hover boxes whose photo is a plain WPhoto, .ih2JY1: Defense / Industrial / Electronics /
   Lifestyle / Networking / Experimental (Workflow Enhancement), desktop + m/ + every language copy). Project-page
   hover boxes (MouseOverPhoto zooms etc.) are deliberately NOT matched.
   1) Wix drew the hover darkening as a separate vector rectangle whose size/offset never matched the photo, and
      the hover box sometimes had a 2nd border 1px off the photo's -> two white frames sliding against each other.
      Now the photo's own 2px border is the only frame and the darkening is drawn inside it.
   2) On hover Wix switched the photo, overlay and captions from transform:none to an identity matrix with a
      0.2-0.4s "transition: all". That promotes them to GPU layers mid-hover; tiles sit on half-pixel positions
      (centred with calc((100% - 980px) * .5), x = n.5 whenever the window width is odd, e.g. with a scrollbar),
      so the layer snaps to whole pixels and the photo visibly jumps left/right on hover-in and back on hover-out.
      Kill every transform in the tile and only let opacity/visibility animate. */
.device-mobile-optimized .gpDCD5:has(.ih2JY1), .device-mobile-optimized .gpDCD5:has(.ih2JY1):hover,
.gpDCD5:has(.ih2JY1) [id^="comp-"], .gpDCD5:has(.ih2JY1):hover [id^="comp-"],
.gpDCD5:has(.ih2JY1) [id^="comp-"] * { transform: none !important; will-change: auto !important; }
.gpDCD5:has(.ih2JY1), .gpDCD5:has(.ih2JY1) [id^="comp-"], .gpDCD5:has(.ih2JY1) [id^="comp-"] * {
  transition-property: opacity, visibility !important; }
.gpDCD5:has(.ih2JY1) > [data-testid="container-bg"] {
  border-width: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  transition: none !important; }
.gpDCD5 .ih2JY1 ~ .wixui-vector-image svg { opacity: 0 !important; }   /* old overlay: invisible, still the click target */
.gpDCD5 .ih2JY1 > [data-testid="linkElement"] { position: relative; }
.gpDCD5 .ih2JY1 > [data-testid="linkElement"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(0, 0, 0, .3); opacity: 0; transition: opacity .4s ease-in-out; }
.gpDCD5:hover .ih2JY1 > [data-testid="linkElement"]::after,
.keyboard-tabbing-on .gpDCD5:focus-within .ih2JY1 > [data-testid="linkElement"]::after,
.device-mobile-optimized .gpDCD5:has(.ih2JY1 ~ .wixui-vector-image a) .ih2JY1 > [data-testid="linkElement"]::after { opacity: 1; }
/* Card outlines (white-stroke vectors) that Wix left 1-2px off their photo's frame: snap them onto it. */
body:not(.device-mobile-optimized) #comp-mnfzfwpw3 { width: 1284px !important; }  /* defense */
body:not(.device-mobile-optimized) #comp-mukou2cq { width: 1284px !important; }  /* defense */
body:not(.device-mobile-optimized) #comp-mnpltyn7 { translate: 1px 0; }  /* industrial */
body:not(.device-mobile-optimized) #comp-mnpng9cf3 { height: 769px !important; }  /* electronics */
body:not(.device-mobile-optimized) #comp-mnpng9cy3 { height: 771px !important; }  /* electronics */
body:not(.device-mobile-optimized) #comp-mnpnt4d31 { height: 772px !important; }  /* electronics */
body:not(.device-mobile-optimized) #comp-mnpthwvg4 { height: 770px !important; }  /* lifestyle */
body:not(.device-mobile-optimized) #comp-mnpthwwi { height: 772px !important; }  /* lifestyle */
body:not(.device-mobile-optimized) #comp-moqmsoes4 { height: 770px !important; }  /* experimental */
.device-mobile-optimized #comp-mnpltyn7 { translate: -1px 0; height: 199px !important; }  /* m/industrial */
.device-mobile-optimized #comp-mng13dvk { height: 199px !important; }  /* m/networking */
.device-mobile-optimized #comp-moqmsoft1 { height: 199px !important; }  /* m/experimental */

/* ---------- Catalog cards: 3D tilt that follows the mouse (assets/js/tilt.js, Joel 2026-11-24) ----------
   tilt.js puts ONE inline transform (perspective + rotateX/Y + scale, shared origin) on every part of a card while
   the pointer is over it and removes it again once the card is flat, so at rest nothing is transformed.
   Here: keep Wix's own identity hover transform off the tile (inline style still wins), and a soft light sheen
   that follows the pointer while tilting. */
.gpDCD5:has(.ih2JY1):is(#jcd-x, *):hover { transform: none; }
.gpDCD5:has(.ih2JY1) .ih2JY1 > [data-testid="linkElement"]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 80% at var(--jcd-sx, 50%) var(--jcd-sy, 50%), rgba(255,255,255,.13), rgba(255,255,255,.04) 45%, transparent 70%);
  transition: opacity .45s ease; }
.gpDCD5.jcd-tilting:hover .ih2JY1 > [data-testid="linkElement"]::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gpDCD5 .ih2JY1 > [data-testid="linkElement"]::before { display: none; } }

/* Networking: the 'Gemtek Wi-Fi 7 Gaming Home Gateway' card sat 44px above its row of small cards while every other
   big card -> small-card row on the page is 16-18px (Moai 18). Move the big card down 26px (whole px, layout-neutral)
   so that gap is 18px too. tilt.js accounts for the `translate` when it sets the card's transform origin. */
body:not(.device-mobile-optimized) #comp-mng1uy9a { translate: 0 26px; }

/* Big cards with a row / 2x2 grid of photos under the main photo (industrial Advantech, electronics Plant X,
   networking Moai): Wix left the photos 613-616px wide, 364-365px high, with 15-21px margins. Snap them to one
   16px rhythm inside the white frame (inner 1280px: 16 + 616 + 16 + 616 + 16; same 16px between rows and to the
   frame bottom). Whole pixels only; desktop only. */
body:not(.device-mobile-optimized) :is(#comp-mnpltyo54,#comp-mnpltyo6,#comp-mnpn32jp,#comp-mnpn32jv,#comp-mnpoa76b,#comp-mnpoa76g,#comp-mng0xzle,#comp-mng0xzlb) :is(wow-image, img, [data-testid="linkElement"]) {
  width: 100% !important; height: 100% !important; }
body:not(.device-mobile-optimized) :is(#comp-mnpltyo54,#comp-mnpltyo6,#comp-mnpn32jp,#comp-mnpn32jv,#comp-mnpoa76b,#comp-mnpoa76g,#comp-mng0xzle,#comp-mng0xzlb) img { object-fit: cover !important; }
body:not(.device-mobile-optimized) #comp-mnpltyo54 { width: 616px !important; height: 364px !important; }
body:not(.device-mobile-optimized) #comp-mnpltyo6  { width: 616px !important; height: 364px !important; translate: -1px 0; }
body:not(.device-mobile-optimized) #comp-mnpn32jp  { width: 616px !important; height: 364px !important; translate: 1px 0; }
body:not(.device-mobile-optimized) #comp-mnpn32jv  { width: 616px !important; height: 364px !important; translate: -2px 0; }
body:not(.device-mobile-optimized) #comp-mnpoa76b  { width: 616px !important; height: 366px !important; translate: 0 -1px; }
body:not(.device-mobile-optimized) #comp-mnpoa76g  { width: 616px !important; height: 366px !important; }
body:not(.device-mobile-optimized) #comp-mng0xzle  { width: 616px !important; height: 366px !important; }
body:not(.device-mobile-optimized) #comp-mng0xzlb  { width: 616px !important; height: 366px !important; translate: -1px 0; }

/* About > 'What I Believe': Wix showed the photo as a fixed (sticky, viewport-sized) background, so while the
   section scrolls up you only see the TOP of the photo (ceiling) and Joel - in the lower-left of the picture - is
   cut off. Make the background scroll with the section and frame it on the people (x 50%, y 72%). */
#bgMedia_comp-mujj9yyt { top: 0 !important; height: 100% !important; }
#img_comp-mujj9yyt { position: absolute !important; top: 0 !important; left: 0; width: 100% !important; height: 100% !important; transform: none !important; }
#img_comp-mujj9yyt img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 72% !important; }

/* Header readability on light / white sections: a top-to-transparent dark veil behind the sticky
   bar (white logo + Works/About/Contact + icons). Width is 100% of the header, not 100vw, so CSS
   zoom on wide screens still spans the full layout. pointer-events:none so the 40px fade below
   the bar does not block clicks. The veil is a ::before of #SITE_HEADER, so it slides away with
   the bar when custom.js toggles .jcd-hidden (custom.css translates by calc(-100% - 40px) so
   the extra 40px does not peek out). Header already has a stacking context (z-index 50/52);
   z-index:-1 keeps the veil behind the logo and links. */
#SITE_HEADER { overflow: visible !important; }
#SITE_HEADER::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% + 40px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: -1;
}
