/* PROCOGNEX v3.7 — original SVG emblem, one-time counterclockwise spin on header compaction. */
:root { --brand-wordmark-width:188px; }
/* Keep header size constant: only the wordmark collapses. */
header .brand-motion {
  display:inline-flex; align-items:center; gap:10px; flex:none; min-height:44px;
  white-space:nowrap; overflow:visible;
}
header .brand-symbol-rotator {
  display:block; position:relative; flex:none; width:36px; height:36px;
}
header .brand-symbol {
  display:block; width:100%; height:100%; object-fit:contain;
  transform-origin:50% 50%; backface-visibility:hidden;
}
header .brand-wordmark-clip {
  display:block; width:var(--brand-wordmark-width); max-width:var(--brand-wordmark-width);
  min-width:0; overflow:hidden; opacity:1; flex:none;
  transition:width 430ms cubic-bezier(.22,1,.36,1),
             max-width 430ms cubic-bezier(.22,1,.36,1),
             opacity 220ms ease, transform 430ms cubic-bezier(.22,1,.36,1);
}
header .brand-motion .brand-wordmark {
  display:block; width:var(--brand-wordmark-width); max-width:none;
  max-height:none; height:auto; object-fit:contain; object-position:left center;
}
/* JS applies this class after enough scrolling; reverses when returning to top. */
header.brand-is-compact .brand-wordmark-clip {
  width:0; max-width:0; opacity:0; transform:translateX(-7px);
}
/* The traced SVG is not perfectly rotationally symmetrical. A full turn is
   necessary for an identical final silhouette: no swap, snap or altered shape.
   Animation occurs once when the header becomes compact. */
@keyframes procognex-emblem-turn {
  from { transform:rotate(0deg); }
  to   { transform:rotate(-360deg); }
}
header .brand-symbol { transform:rotate(0deg); }
header.brand-is-compact .brand-symbol {
  animation:procognex-emblem-turn 1100ms cubic-bezier(.22,.7,.12,1) 1 both;
}
header:not(.brand-is-compact) .brand-symbol { animation:none; transform:rotate(0deg); }
/* Full wordmark remains the accessible link label even when the text image is hidden. */
header .brand-motion:focus-visible {outline-offset:6px;border-radius:3px;}
/* Footer emblem always appears next to the intact wordmark. */
.site-footer .footer-brand {display:inline-flex;align-items:center;gap:13px;flex:none;min-height:40px;}
.site-footer .footer-brand .footer-brand-symbol {
  display:block;width:40px;height:40px;min-width:40px;max-height:none;object-fit:contain;
}
.site-footer .footer-brand .footer-brand-wordmark {
  display:block;width:206px;height:auto;max-height:34px;object-fit:contain;object-position:left center;
}
@media(max-width:1050px) { :root { --brand-wordmark-width:165px; } }
@media(max-width:1040px) {
  /* The original mobile stylesheet made the header absolute; a scroll logo needs fixed navigation. */
  body > header {position:fixed;top:0;left:0;right:0;z-index:200;}
  header .brand-motion {gap:9px;}
  header .brand-symbol-rotator {width:32px;height:32px;}
  .mobile-drawer:not([hidden]) {max-height:calc(100dvh - 66px);}
}
@media(max-width:760px) {
  :root { --brand-wordmark-width:154px; }
  .site-footer .footer-brand .footer-brand-symbol {width:34px;height:34px;min-width:34px;}
  .site-footer .footer-brand .footer-brand-wordmark {width:min(206px,calc(100vw - 105px));}
}
@media(prefers-reduced-motion:reduce) {
  header .brand-symbol, header .brand-wordmark-clip {transition:none !important;}
  header.brand-is-compact .brand-symbol {animation:none !important;transform:rotate(0deg) !important;}
}
