/* Sticky positioning preserves the approved header's original space in the page. */
.contact-bar { position: sticky; top: 0; z-index: 100; }
.contact-nav { width: calc(1440 * var(--u)); margin-left: calc(130 * var(--u)); padding-right: 0; }
.contact-button {
  transition: transform 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out, box-shadow 120ms ease-out;
}
.contact-button:hover {
  transform: translateX(3px) translateY(3px);
  background-color: #88ff00;
  color: #000;
  box-shadow: 0 0 0 var(--ink);
}
.contact-button:active {
  transform: translateX(5px) translateY(5px);
  background-color: #88ff00;
  color: #000;
  box-shadow: 0 0 0 var(--ink);
}
/* Keep the original hit area under the pointer while the visible key moves. */
.contact-button:hover::before { transform: translateX(-3px) translateY(-3px); }
.contact-button:active::before { transform: translateX(-5px) translateY(-5px); }
@media (prefers-reduced-motion: reduce) {
  .contact-button { transition-duration: 0ms; }
}
html { scroll-padding-top: calc(min(100vw, 1700px) * .8 * 80 / 1700 + 12px); }
.back-to-top {
  position: fixed;
  right: clamp(12px, 1.5vw, 24px);
  bottom: clamp(12px, 1.5vw, 24px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: clamp(30px, 2.6vw, 44px);
  height: clamp(30px, 2.6vw, 44px);
  border: 1px solid var(--ink);
  border-radius: clamp(4px, .4vw, 6px);
  background: transparent;
  color: var(--ink);
}
.back-to-top svg { width: 42%; height: 42%; }
/* Keep a 44px hit target even where the visible outline is smaller. */
.back-to-top::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
