:root {
  --skylight-ink: #02050a;
  --skylight-ivory: #fff4d6;
  --skylight-gold: #e8b65d;
}

.homepage-hero-shell {
  --hero-dim-opacity: 0;
  --hero-edge-opacity: 1;
  position: relative;
  z-index: 100;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.homepage-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: #000;
  opacity: var(--hero-dim-opacity);
}

.homepage-hero-shell::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 4;
  height: clamp(150px, 26vh, 290px);
  pointer-events: none;
  opacity: var(--hero-edge-opacity);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 28%, rgba(0,0,0,.58) 68%, #000 100%);
}

.homepage-after-hero {
  --hero-content-opacity: 1;
  --hero-content-y: 0px;
  position: relative;
  z-index: 101;
  background: #000;
}

.homepage-after-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(150px, 24vh, 270px);
  transform: translateY(-100%);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.28) 42%, #000 100%);
}

.homepage-after-hero .hero-first-screen > .container {
  opacity: var(--hero-content-opacity);
  transform: translate3d(0, var(--hero-content-y), 0);
}

.skylight-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint size;
  background: #000;
  outline: none;
  touch-action: pan-y;
}

.skylight-scene:focus-visible::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 8;
  border: 1px solid rgba(255, 231, 177, .52);
  pointer-events: none;
}

.skylight-dark-image,
.skylight-darkness-layer,
.skylight-light-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.skylight-dark-image {
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.skylight-darkness-layer {
  z-index: 1;
  pointer-events: none;
}

.skylight-light-layer {
  z-index: 2;
  pointer-events: none;
}

.skylight-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vw, 58px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: rgba(255, 238, 198, .76);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
  font-size: 11px;
  letter-spacing: .18em;
  white-space: nowrap;
  pointer-events: none;
  opacity: var(--hero-hint-opacity, 1);
  transition: opacity 1s ease, transform 1s ease;
  text-shadow: 0 2px 16px #000;
}

.skylight-hint::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(232, 182, 93, .08), 0 0 20px rgba(232, 182, 93, .42);
  animation: skylight-breathe 2.4s ease-in-out infinite;
}

.skylight-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
}

@keyframes skylight-breathe {
  0%, 100% { transform: scale(.88); opacity: .55; }
  50% { transform: scale(1.2); opacity: 1; }
}

@media (max-width: 640px) {
  .homepage-hero-shell { min-height: 480px; }
  .skylight-hint { bottom: 22px; font-size: 10px; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  .skylight-hint { transition: none; }
  .skylight-hint::before { animation: none; }

  .homepage-after-hero .hero-first-screen > .container {
    transform: none;
  }
}
