/* Header app icon: a quick drop-in on load, a springy tilt on hover or focus.
   Only transform and opacity animate; the box size never changes. */
.wordmark {
  gap: 12px;
  font-weight: 650;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
/* The load drop lives on the wrapper, so hover and focus never restart it. */
.wordmark picture,
.wordmark .icon-frame {
  display: block; flex: none;
  transform-origin: 50% 100%;
  animation: icon-drop 700ms cubic-bezier(.2, .8, .3, 1) backwards;
}
:where(.wordmark img) {
  display: block;
}
.wordmark img {
  width: 44px; height: 44px;
  transform-origin: 50% 100%;
  /* A spring-like overshoot: a hover or focus bounces to the tilt, and leaving
     (even mid-bounce) eases back from wherever the icon is, with no jump. */
  transition: transform 500ms cubic-bezier(.34, 1.9, .5, 1);
}
@media (min-width: 720px) {
  .wordmark { gap: 14px; font-size: 1.875rem; letter-spacing: -0.024em; }
  .wordmark img { width: 64px; height: 64px; }
}
.wordmark:hover img, .wordmark:focus-visible img {
  transform: rotate(-7deg) translateY(-3px) scale(1.04);
}
@keyframes icon-drop {
  0% { transform: translateY(-36px) scale(.92); opacity: 0; }
  40% { transform: translateY(4px) scale(1.03); opacity: 1; }
  62% { transform: translateY(-5px) scale(1); }
  82% { transform: translateY(1.5px); }
  100% { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark picture, .wordmark .icon-frame, .wordmark img, .wordmark:hover img, .wordmark:focus-visible img { animation: none; transition: none; transform: none; }
}
