/* Contained drawings: the existing card and copy retain their layout. */
.expertise-motion-card {
  --em-control-color: var(--paper, #f3f1e9);
  position: relative;
  display: flex;
  min-width: 0;
}
.expertise-motion-card[data-expertise-kind="nexus"] {
  --em-control-color: var(--ink, #222521);
}
.expertise-motion-card > .segment-card {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}
.segment-card .segment-line.em-visual {
  position: relative;
  display: block;
  height: 144px;
  margin: 18px 0 22px;
  overflow: hidden;
  isolation: isolate;
}
.segment-card .em-visual .em-canvas {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.em-canvas :is(path, polygon, circle, line, rect) {
  vector-effect: non-scaling-stroke;
}
.em-canvas .em-guide {
  opacity: .23;
  stroke-width: .7;
  stroke-dasharray: 2 4;
}
.em-canvas .em-hairline {
  opacity: .42;
  stroke-width: .75;
}
.em-canvas .em-ghost {
  opacity: .13;
  stroke-width: .8;
}
.em-canvas .em-plane {
  fill: currentColor;
  fill-opacity: .09;
}
.em-canvas .em-plane-strong {
  fill: currentColor;
  fill-opacity: .16;
}
.em-canvas .em-solid {
  fill: currentColor;
  stroke: none;
}
.em-canvas .em-highlight {
  opacity: .7;
  transition: opacity .25s ease;
}
.expertise-motion-card:is(:hover, :focus-within) .em-highlight {
  opacity: 1;
}
.expertise-motion-card:is(:hover, :focus-within) .em-plane-strong {
  fill-opacity: .23;
}
/* A sibling of the link: the entire card remains a valid navigation target. */
.expertise-motion-toggle {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 49px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--em-control-color);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.expertise-motion-toggle::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .4;
  transition: opacity .2s ease, background-color .2s ease;
}
.expertise-motion-toggle:hover::before,
.expertise-motion-toggle:focus-visible::before {
  opacity: .8;
}
.expertise-motion-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
.expertise-motion-toggle > svg {
  position: relative;
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
  pointer-events: none;
}
.expertise-motion-toggle .em-play,
.expertise-motion-toggle[data-paused="true"] .em-pause {
  display: none;
}
.expertise-motion-toggle[data-paused="true"] .em-play {
  display: block;
}
.expertise-motion-toggle[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .expertise-motion-toggle { top: 10px; }
  .segment-card .segment-line.em-visual { height: 96px; margin: 9px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .expertise-motion-toggle { display: none; }
  .em-canvas * { transition: none !important; }
}
