.home-opening { display: none; }

@keyframes xiefu-opening-dissolve {
  0%, 24% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes xiefu-opening-light {
  from { opacity: .55; transform: scale(.82); }
  to { opacity: 1; transform: scale(1.38); }
}

@keyframes xiefu-opening-brand {
  0% { opacity: 0; transform: translateY(7px) scale(.94); }
  37% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .xiefu-home-hub .home-opening {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    pointer-events: none;
    color: #fffaeb;
    background: #17372b;
    animation: xiefu-opening-dissolve 1090ms cubic-bezier(.37, 0, .27, 1) both;
  }

  .home-opening::before {
    position: absolute;
    inset: -12%;
    z-index: -1;
    content: '';
    background:
      radial-gradient(ellipse at 49% 42%, #b3a57686, transparent 41%),
      radial-gradient(ellipse at 59% 62%, #648d6780, transparent 53%),
      radial-gradient(ellipse at 46% 47%, #315746, #112a21 74%);
    animation: xiefu-opening-light 1090ms cubic-bezier(.25, .65, .35, 1) both;
  }

  .home-opening-lockup {
    display: grid;
    justify-items: center;
    gap: 14px;
    animation: xiefu-opening-brand 900ms cubic-bezier(.22, 1, .36, 1) both;
  }

  .home-opening-mark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: clamp(54px, 13vw, 73px);
    aspect-ratio: 1;
  }

  .home-opening-mark i {
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px #fff3;
    background: #75ad88;
  }

  .home-opening-mark i:nth-child(2) { background: #e4b979; }
  .home-opening-mark i:nth-child(3) { background: #b3caa9; }
  .home-opening-mark i:nth-child(4) { background: #4f896b; }

  .home-opening-name {
    padding-inline-start: .16em;
    font: 720 clamp(27px, 6vw, 38px)/1.2 system-ui, sans-serif;
    letter-spacing: .16em;
    text-shadow: 0 2px 12px #12251c60;
  }

  .xiefu-home-hub .xiefu-hero-copy {
    --home-enter-delay: 350ms;
    --home-enter-duration: 740ms;
    --home-enter-distance: 12px;
  }

  .xiefu-home-hub:focus-within .home-opening { display: none; }
}
