.masthead-inner.funmages-host {
  position: relative;
  isolation: isolate;
}

.funmages-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s ease;
}

.funmages-overlay.is-active {
  visibility: visible;
  opacity: 1;
}

.funmages-mark {
  position: relative;
  width: clamp(108px, 28vw, 280px);
  max-height: 100%;
  aspect-ratio: 1;
  opacity: .16;
}

.funmages-overlay.is-active .funmages-mark {
  animation: funmages-mark-in .65s ease-out both;
}

.funmages-mark img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.funmages-hexagram {
  animation: funmages-spin 24s linear infinite;
}

.funmages-jimmy {
  width: 41% !important;
  height: 41% !important;
  inset: 29.5% !important;
}

@keyframes funmages-mark-in {
  from { transform: scale(.82); }
  to { transform: scale(1); }
}

@keyframes funmages-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .funmages-overlay {
    transition: none;
  }

  .funmages-overlay.is-active .funmages-mark,
  .funmages-hexagram {
    animation: none;
  }
}
