/* An echo between the two words. Real, opaque type throughout. */
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .hero h1 em[data-home-accent] > span { animation: dg-home-ink 650ms ease-in-out; }
  .hero h1 em[data-home-accent] > span + span { animation-delay: 125ms; }
  @keyframes dg-home-ink {
    0%, 100% { color: var(--violet); }
    36% { color: #f6f5fa; }
  }
}

/* Move the parts of each drawing, not the card, its copy or its hit area. */
@media (prefers-reduced-motion: no-preference) {
  #services .icon-ops[data-home-accent] i:nth-child(2),
  #services .icon-ops[data-home-accent] i:nth-child(3),
  #services .icon-portal[data-home-accent] i:last-child,
  #services .icon-shop[data-home-accent] i::after {
    animation: dg-home-fit 560ms ease-in-out var(--beat, 0ms);
  }
  #services .icon-ops i:nth-child(2) { --lift: -4px; }
  #services .icon-ops i:nth-child(3) { --lift: -8px; }
  #services .icon-portal { --slide: 6px; --lift: -5px; }
  #services .icon-shop { --lift: -5px; }
  #services .icon-inventory[data-home-accent] i {
    animation: dg-home-bars 520ms cubic-bezier(.22,.62,.3,1) var(--beat, 0ms) backwards;
  }
  @keyframes dg-home-fit {
    0%, 100% { translate: 0 0; }
    36% { translate: var(--slide, 0px) var(--lift); }
  }
  #services .detail-link { transition: translate 160ms ease-out; }
  #services .capability:is(:focus-visible, :active, [data-home-pressed]) .detail-link { translate: 4px; }
  @keyframes dg-home-bars {
    from { clip-path: inset(0 92% 0 0); }
    to { clip-path: inset(0); }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  #services .capability:hover .detail-link { translate: 4px; }
}
@media (min-width: 971px) {
  #services .icon-inventory { --beat: 65ms; }
  #services .icon-portal { --beat: 130ms; }
  #services .icon-shop { --beat: 195ms; }
}
