@font-face {
  font-family: "Clash Display";
  src: url("assets/clash-display-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("assets/clash-display-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.rmg {
  --rmg-gold: #ffb72b;
  --rmg-blue: #56a9ff;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 506 / 606;
  overflow: hidden;
  background: #02040a;
  color: #fff;
  container-type: inline-size;
}

.rmg *,
.rmg *::before,
.rmg *::after {
  box-sizing: border-box;
}

.rmg__picture,
.rmg__picture img,
.rmg__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rmg__picture {
  z-index: 0;
  left: -4.743%;
  right: auto;
  width: 108.300%;
}

.rmg__picture img {
  display: block;
  object-fit: cover;
}

.rmg__globe {
  position: absolute;
  z-index: 2;
  left: 4.545%;
  top: 18%;
  width: 91.897%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  filter: none;
  transform: translateZ(0);
}

.rmg__globe::before {
  display: none;
}

.rmg__globe::after {
  display: none;
}

.rmg__sphere,
.rmg__network {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.rmg__sphere {
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 82%, rgba(0, 0, 0, .72) 89%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 82%, rgba(0, 0, 0, .72) 89%, transparent 100%);
}
.rmg__network {
  z-index: 2;
  opacity: .46;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
}

.rmg__brand {
  position: absolute;
  z-index: 20;
  left: 5.2%;
  top: 4.2%;
  bottom: auto;
  display: flex;
  align-items: baseline;
  direction: ltr;
  gap: 0;
  white-space: nowrap;
  font-family: "Clash Display", Arial, sans-serif;
  line-height: .86;
  user-select: none;
  filter: drop-shadow(0 .32cqw .85cqw rgba(0, 0, 0, .92));
  transform: translate3d(0, 0, 1px);
  will-change: transform;
}

.rmg__word {
  display: inline-flex;
  color: #fff;
  font-size: clamp(16px, 5.1cqw, 36px);
  font-weight: 700;
  letter-spacing: 0;
}

.rmg__word > span {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: rmg-letter-hop 5.4s cubic-bezier(.2, .72, .2, 1) infinite;
}

.rmg__word > span:nth-child(2) { animation-delay: 28ms; }
.rmg__word > span:nth-child(3) { animation-delay: 56ms; }
.rmg__word > span:nth-child(4) { animation-delay: 84ms; }
.rmg__word > span:nth-child(5) { animation-delay: 112ms; }
.rmg__word > span:nth-child(6) { animation-delay: 140ms; }
.rmg__word > span:nth-child(7) { animation-delay: 168ms; }

.rmg__partner {
  margin-left: .48em;
  color: #77747d;
  font-size: clamp(8px, 2.35cqw, 17px);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rmg__frame {
  z-index: 6;
  background:
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(0, 2, 8, .13) 77%, rgba(0, 1, 5, .45) 100%),
    linear-gradient(180deg, rgba(1, 3, 9, .18), transparent 16% 76%, rgba(1, 2, 7, .22));
  pointer-events: none;
}

@keyframes rmg-orbit {
  to { transform: rotate(360deg); }
}

@keyframes rmg-letter-hop {
  0%, 5%, 20%, 100% { transform: translateY(0); }
  12% { transform: translateY(-.14em); }
}

@container (max-width: 420px) {
  .rmg__brand { top: 3.8%; bottom: auto; }
  .rmg__globe { filter: drop-shadow(0 0 2.3cqw rgba(255, 173, 32, .36)); }
}

@media (prefers-reduced-motion: reduce) {
  .rmg__globe::after,
  .rmg__word > span {
    animation: none !important;
  }
}
