/* Static content is the baseline. Motion never gates text or image visibility. */
.button:hover { transform: none; }
.button > [aria-hidden="true"],
.b-quick-nav a > span,
.b-quality-links a > span > span,
.b-business-nav a > span,
.b-chat-link > span {
  display: inline-block;
}
.site-nav a:focus-visible::after { transform: scaleX(1); }
:is(.button, .b-quick-nav a, .b-quality-links a, .b-business-nav a, .b-chat-link, .b-doc-list a):focus-visible {
  outline: 2px solid #50846e;
  outline-offset: 5px;
}
.b-cta :is(.button, .b-chat-link):focus-visible,
.b-business-nav a:focus-visible {
  outline-color: #e6f4ed;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .button {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease,
      box-shadow 260ms ease, transform 260ms cubic-bezier(.2,.7,.25,1);
  }
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px #103b3117;
  }
  .button:active { transform: translateY(0); box-shadow: none; }
  .button > [aria-hidden="true"],
  .b-quick-nav a > span,
  .b-quality-links a > span > span,
  .b-business-nav a > span,
  .b-chat-link > span {
    transition: transform 260ms cubic-bezier(.2,.7,.25,1);
  }
  .button:hover > [aria-hidden="true"],
  .b-quick-nav a:hover > span,
  .b-quality-links a:hover > span > span,
  .b-business-nav a:hover > span,
  .b-chat-link:hover > span {
    transform: translateX(4px);
  }
  .button[download]:hover > [aria-hidden="true"] { transform: translateY(3px); }
  .site-nav a::after {
    transition: transform 280ms cubic-bezier(.2,.7,.25,1);
  }
  .b-book-scene > .b-book {
    transition: transform 560ms cubic-bezier(.2,.7,.25,1), box-shadow 560ms ease;
  }
  .b-book-scene:hover > .b-book:not(.b-book-back) {
    transform: translateY(-7px) rotate(8deg) rotateY(-9deg);
    box-shadow: 15px 24px 28px #18352c2b, inset 5px 0 4px #b6beb75c;
  }
  .b-book-scene:hover > .b-book-back {
    transform: translate(59px,0) rotate(18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .button > span, .site-nav a::after, .b-book,
  .b-quick-nav a > span, .b-quality-links a > span > span,
  .b-business-nav a > span, .b-chat-link > span {
    transition: none;
    animation: none;
  }
  .button:hover { transform: none; }
}
