/* ========================================
   HERO BACKGROUND — SAKUTEKI
   Full-bleed image behind text, Lyria-style
   ======================================== */

.hero-art-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* The background image — fills the entire hero, Lyria-style */
.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Light overlay — let the image breathe, just enough for text readability */
.hero-art-zone::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(10, 14, 26, 0.3) 0%, rgba(10, 14, 26, 0.6) 100%);
  pointer-events: none;
}

/* ========================================
   CITY LIFE OVERLAYS
   ======================================== */
.city-lights {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* --- MOON: soft luminance pulse --- */
.city-lights__moon {
  position: absolute;
  top: 10%;
  left: 4.5%;
  width: 8vw;
  height: 8vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 230, 255, 0.35) 0%, rgba(180, 200, 240, 0.15) 40%, transparent 70%);
  animation: moonGlow 6s ease-in-out infinite;
}

@keyframes moonGlow {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
    filter: brightness(1.4);
  }
}

/* --- FUJI: snow cap luminance --- */
.city-lights__fuji {
  position: absolute;
  top: 14%;
  left: 1%;
  width: 14vw;
  height: 10vw;
  background: radial-gradient(ellipse 80% 60% at 55% 45%, rgba(220, 230, 255, 0.2) 0%, transparent 65%);
  animation: fujiGlow 8s ease-in-out infinite;
}

@keyframes fujiGlow {
  0%, 100% {
    opacity: 0.5;
    filter: brightness(1);
  }
  50% {
    opacity: 0.9;
    filter: brightness(1.3);
  }
}

/* --- TOKYO TOWER: beacon lights --- */
.city-lights__tower {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4400;
  box-shadow:
    0 0 8px 3px rgba(255, 68, 0, 0.9),
    0 0 20px 6px rgba(255, 68, 0, 0.5),
    0 0 40px 10px rgba(255, 68, 0, 0.2);
}

.city-lights__tower--top {
  left: 39.5%;
  top: 26%;
  animation: towerBeacon 1.8s ease-in-out infinite;
}

.city-lights__tower--mid {
  left: 39.3%;
  top: 34%;
  width: 5px;
  height: 5px;
  animation: towerBeacon 1.8s ease-in-out infinite 0.6s;
}

.city-lights__tower--base {
  left: 39.1%;
  top: 42%;
  width: 4px;
  height: 4px;
  animation: towerBeacon 1.8s ease-in-out infinite 1.2s;
}

@keyframes towerBeacon {
  0%, 100% {
    opacity: 0.4;
    box-shadow:
      0 0 4px 2px rgba(255, 68, 0, 0.6),
      0 0 10px 4px rgba(255, 68, 0, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 10px 4px rgba(255, 68, 0, 1),
      0 0 25px 8px rgba(255, 68, 0, 0.6),
      0 0 50px 15px rgba(255, 68, 0, 0.25);
  }
}

/* --- BUILDING WINDOWS: twinkling city lights --- */
.city-lights__bldg {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 245, 200, 0.9);
  box-shadow:
    0 0 4px 1px rgba(255, 245, 200, 0.7),
    0 0 10px 3px rgba(255, 220, 150, 0.3);
  animation: windowTwinkle 3s ease-in-out infinite;
}

/* Stagger each building light with different delays */
.city-lights__bldg:nth-child(7)  { animation-delay: 0s; }
.city-lights__bldg:nth-child(8)  { animation-delay: 0.4s; }
.city-lights__bldg:nth-child(9)  { animation-delay: 1.1s; }
.city-lights__bldg:nth-child(10) { animation-delay: 0.7s; }
.city-lights__bldg:nth-child(11) { animation-delay: 1.8s; }
.city-lights__bldg:nth-child(12) { animation-delay: 0.2s; }
.city-lights__bldg:nth-child(13) { animation-delay: 1.4s; }
.city-lights__bldg:nth-child(14) { animation-delay: 0.9s; }
.city-lights__bldg:nth-child(15) { animation-delay: 2.1s; }
.city-lights__bldg:nth-child(16) { animation-delay: 0.5s; }
.city-lights__bldg:nth-child(17) { animation-delay: 1.6s; }
.city-lights__bldg:nth-child(18) { animation-delay: 0.3s; }
.city-lights__bldg:nth-child(19) { animation-delay: 2.4s; }
.city-lights__bldg:nth-child(20) { animation-delay: 1.0s; }
.city-lights__bldg:nth-child(21) { animation-delay: 1.9s; }
.city-lights__bldg:nth-child(22) { animation-delay: 0.6s; }
.city-lights__bldg:nth-child(23) { animation-delay: 2.2s; }
.city-lights__bldg:nth-child(24) { animation-delay: 1.3s; }

@keyframes windowTwinkle {
  0%, 100% {
    opacity: 0.2;
  }
  15% {
    opacity: 1;
  }
  30% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.15;
  }
  85% {
    opacity: 0.7;
  }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  .city-lights__moon,
  .city-lights__fuji,
  .city-lights__tower,
  .city-lights__bldg {
    animation: none !important;
  }
  .city-lights__moon { opacity: 0.8; }
  .city-lights__fuji { opacity: 0.6; }
  .city-lights__tower { opacity: 0.7; }
  .city-lights__bldg { opacity: 0.5; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero__bg-image {
    object-position: center center;
  }

  .city-lights__tower {
    width: 4px;
    height: 4px;
  }

  .city-lights__bldg {
    width: 2px;
    height: 2px;
  }
}
