:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow-x: hidden;
  background: #000411 radial-gradient(120% 70% at 50% 100%, #06143a 0%, #000411 60%) no-repeat fixed;
  color: #e9e4d8;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
}
.sr-only { position: absolute; left: -9999px; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; width: 100%; max-width: 1320px; overflow-x: clip; }

/* Poster: edges fade into the page so it reads as part of the sky. */
.hero { position: relative; margin: 0 auto; }
/* Larger screens: cap the poster by screen height so it always fits in view. */
@media (min-width: 641px) {
  .hero { max-width: 150vh; }
}
.poster {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
                      linear-gradient(to bottom, transparent, #000 12%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
              linear-gradient(to bottom, transparent, #000 12%, #000 78%, transparent);
  mask-composite: intersect;
  animation: rise 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* Slow breathing light over the sunrise in the poster. */
.glow {
  position: absolute; left: 50%; top: 73%; z-index: 1;
  width: 46%; aspect-ratio: 2.4 / 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 190, 110, 0.55), rgba(255, 150, 60, 0.16) 55%, transparent);
  mix-blend-mode: screen; pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}

/* Phones: enlarge the poster past the screen edges so the wordmark has presence. */
@media (max-width: 640px) {
  .hero { width: 140%; margin-left: -20%; }
}

@keyframes rise { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .poster, .glow { animation: none; }
}
