/* A hanging portrait beside the opening identity. */
.homepage-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: var(--copy-opacity, 1);
  transform: translateY(var(--copy-offset, 0px));
}
.lanyard {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lanyard:focus-visible {
  outline: 2px solid var(--intro-ink);
  outline-offset: -8px;
  border-radius: 16px;
}
.lanyard-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.badge-fallback {
  position: absolute;
  top: 24%;
  left: 83%;
  width: min(26vw, 340px);
  aspect-ratio: 1.6 / 2.25;
  transform: translateX(-50%) rotate(-5deg);
  border: 1px solid #bbb;
  border-radius: 20px;
  background: #f5f4f0;
  box-shadow: 0 12px 35px #0002;
}
.badge-fallback::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: calc(50% - 12px);
  width: 24px;
  height: 40svh;
  background: repeating-linear-gradient(0deg, #18191b 0 2px, #252629 2px 3px);
}
.badge-fallback img {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 85%;
  object-fit: cover;
  border-radius: 0 0 20px 20px;
}
.badge-fallback span {
  position: absolute;
  top: 7%;
  right: 8%;
  color: #222;
  font: 12px monospace;
}
.is-ready .badge-fallback { visibility: hidden; }
@media (max-width: 760px) {
  .badge-fallback { top: 9%; left: 50%; width: 22svh; }
}
