/* KV only. Keep all scene layers on the same exported canvas. */
.site-hero.home-kv {
  background: #101227;
  height: 100svh;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  isolation: isolate;
}
.home-kv-stage { position: absolute; inset: 0; }
.home-kv-layer { position: absolute; inset: 0; display: block; }
.home-kv-layer img { display: block; width: 100%; height: 100%; }
.home-kv-background { z-index: 1; }
.home-kv-background img {
  object-fit: cover;
  object-position: center top;
}

.home-kv-photo img {
  object-fit: cover;
  object-position: center bottom;  
}
.home-kv-members img, .home-kv-center img, .home-kv-foreground img {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  /* The visible people occupy about 71% of the exported PC canvas height. */
  width: min(96%, 120svh, 1160px);
  height: auto;
}
.home-kv-logo img { object-fit: contain; }
.home-kv-members {
  z-index: 2;
}
.home-kv-center { z-index: 3; }
.home-kv-members, .home-kv-center {
  /* Subtract shelf alpha from people. The shelf itself exists only in the background. */
  -webkit-mask-image: linear-gradient(#fff, #fff), url(../images/top/top_kv/shelf_pc.png);
  mask-image: linear-gradient(#fff, #fff), url(../images/top/top_kv/shelf_pc.png);
  -webkit-mask-size: 100% 100%, cover;
  mask-size: 100% 100%, cover;
  -webkit-mask-position: center top;
  mask-position: center top;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask-mode: alpha;
}
.home-kv-foreground {
  z-index: 5;
}
.home-kv-photo { z-index: 6; opacity: 0; }
.home-kv-intro { position: absolute; inset: 0; z-index: 7; background: #101227; display: none; }
.home-kv-logo { mix-blend-mode: screen; }
.home-kv-logo img { filter: grayscale(1) contrast(2); }
.home-kv .site-hero-inner { z-index: 8; padding: 0 7%; bottom: 3%; }
.home-kv .site-hero-heading { font-size: clamp(13px, 1.65vw, 26px); }
.home-kv .site-hero-text { font-size: clamp(14px, 1.6vw, 25px); line-height: 1.65; }
.home-kv .site-hero-scroll { width: 25px; margin: 0 auto 8px; }
.kv-boot .home-kv .home-kv-intro,
.home-kv.kv-pending .home-kv-intro,
.home-kv.kv-playing .home-kv-intro { display: block; }
.kv-boot .home-kv .home-kv-logo,
.kv-boot .home-kv .site-hero-inner,
.home-kv.kv-pending .home-kv-logo,
.home-kv.kv-pending .site-hero-inner { opacity: 0; }
.home-kv-line { position: absolute; margin: 0; pointer-events: none; }
@media (max-width: 1279.9px) {
  .site-hero.home-kv { height: calc(100svh - 56px); }
  .home-kv-members img, .home-kv-center img, .home-kv-foreground img {
    top: var(--kv-sp-people-top, 10px);
    width: min(96%, calc((100svh - 56px) * .79), 750px);
  }
  .home-kv-members, .home-kv-center {
    -webkit-mask-image: linear-gradient(#fff, #fff), url(../images/top/top_kv/shelf_sp.png);
    mask-image: linear-gradient(#fff, #fff), url(../images/top/top_kv/shelf_sp.png);
  }
  /* Final SP balance: keep the artwork fixed and tune only the copy block. */
  .home-kv .site-hero-inner {
    padding: 0 5.5%;
    bottom: clamp(48px, 8.5svh, 80px);
  }
  .home-kv .site-hero-heading {
    font-size: clamp(14px, 3vw, 20px);
    margin-bottom: 10px;
  }
  .home-kv .site-hero-text {
    font-size: clamp(16px, 3.55vw, 22px);
    line-height: 1.52;
  }
  .home-kv .site-hero-scroll { width: 22px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-kv .home-kv-intro { display: none !important; }
  .home-kv .site-hero-inner { opacity: 1 !important; }
}
