/* Motion stays attached to an action: an ink rule marks the selected stage,
   the FAQ cross closes like a pen stroke, and paper hardware responds to the
   pointer. Copy and illustrations never move or zoom. */
body.home-page main .neural-steps button {
  position: relative;
}
body.home-page main .neural-steps button::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: #0b3a95;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}
body.home-page main .neural-steps button[aria-pressed='true']::after {
  transform: scaleX(1);
}

/* Keep the actual SVG paths in the document, so the plus can become a minus
   without changing the disclosure semantics or the answer layout. */
body main .faq.faq.faq.faq > div > details[open] > summary svg .vertical,
body.home-page main .home-faq-list .home-faq-item[open] > summary svg .home-faq-vertical {
  display: inline;
  transform: scaleY(0);
}
body main .faq.faq.faq.faq > div > details > summary svg .vertical,
body.home-page main .home-faq-list .home-faq-item > summary svg .home-faq-vertical {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  body.home-page main .neural-steps button::after {
    transition: transform 260ms cubic-bezier(.23, 1, .32, 1);
  }
  body main .faq.faq.faq.faq > div > details > summary svg .vertical,
  body.home-page main .home-faq-list .home-faq-item > summary svg .home-faq-vertical {
    transition: transform 220ms cubic-bezier(.23, 1, .32, 1);
  }
  /* Keyboard activation remains immediate. */
  body.home-page main .neural-steps button:focus-visible::after,
  body main .faq.faq.faq.faq > div > details > summary:focus-visible svg .vertical,
  body.home-page main .home-faq-list .home-faq-item > summary:focus-visible svg .home-faq-vertical {
    transition: none;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body main .opening .work-sheet > svg.clip {
    transform-origin: 50% 12%;
    transition: transform 280ms cubic-bezier(.23, 1, .32, 1);
  }
  body main .opening .work-sheet:hover > svg.clip {
    transform: translateY(-3px) rotate(-7deg);
  }
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action) > svg:last-child,
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-icon, .phone-icon) {
    transition: transform 220ms cubic-bezier(.23, 1, .32, 1);
  }
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action):hover > svg:last-child {
    transform: translateX(5px);
  }
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action):hover :is(.contact-icon, .phone-icon) {
    transform: rotate(-7deg);
  }
}

/* A held touch receives the same response without sticky hover or focus. */
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  body main .opening .work-sheet > svg.clip {
    transform-origin: 50% 12%;
    transition: transform 280ms cubic-bezier(.23, 1, .32, 1);
  }
  body main .opening .work-sheet:is(:active, .motion-touch-active) > svg.clip {
    transform: translateY(-3px) rotate(-7deg);
  }
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action) > svg:last-child,
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-icon, .phone-icon) {
    transition: transform 220ms cubic-bezier(.23, 1, .32, 1);
  }
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action):is(:active, .motion-touch-active) > svg:last-child {
    transform: translateX(5px);
  }
  body main .contact-actions:not(.contact-actions-compact) :is(.contact-button, .phone-action):is(:active, .motion-touch-active) :is(.contact-icon, .phone-icon) {
    transform: rotate(-7deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page main .neural-steps button::after,
  body main .faq.faq.faq.faq > div > details > summary svg .vertical,
  body.home-page main .home-faq-list .home-faq-item > summary svg .home-faq-vertical {
    transition: none;
  }
}
