:root {
  --bg-0: #0d0f12;
  --bg-1: #11151a;
  --bg-2: #171c23;
  --line: rgba(180, 192, 210, 0.18);
  --soft: rgba(210, 220, 236, 0.74);
  --text: #eceff4;
  --muted: #a8b2c0;
  --panel: rgba(16, 20, 26, 0.52);
  --panel-border: rgba(220, 232, 255, 0.16);
  --max-width: 68rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(circle at 15% 20%, var(--bg-2) 0%, var(--bg-1) 42%, var(--bg-0) 100%);
  color: var(--text);
}

body {
  font-family: "Cardo", Georgia, serif;
  line-height: 1.45;
  overflow-x: hidden;
}

#cosmos,
.atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#cosmos {
  z-index: -2;
}

.atmosphere {
  z-index: -1;
  background:
    radial-gradient(48rem 36rem at 14% 12%, rgba(144, 168, 205, 0.07), transparent 72%),
    radial-gradient(58rem 42rem at 88% 78%, rgba(96, 112, 145, 0.08), transparent 75%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.1) 0%, rgba(8, 9, 12, 0.48) 75%, rgba(8, 9, 12, 0.72) 100%);
}

.site {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100svh;
  padding: 1.25rem;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.9rem;
}

.hero-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1000ms ease-out 260ms forwards;
}

h1 {
  margin: 0;
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 10vw, 5.2rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(189, 207, 236, 0.2);
  opacity: 0;
  animation: fadeUp 1200ms ease-out 420ms forwards;
}

.hero-sub {
  margin: 0;
  color: var(--soft);
  font-size: clamp(0.9rem, 2.8vw, 1.15rem);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 1100ms ease-out 700ms forwards;
}

.scroll-cue {
  margin-top: 0.9rem;
  display: inline-grid;
  justify-items: center;
  gap: 0.38rem;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1000ms ease-out 980ms forwards;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--text);
}

.cue-arrow {
  width: 1.1rem;
  height: 1.1rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: cuePulse 2200ms ease-in-out infinite;
}

.stream {
  width: min(calc(100% - 1.4rem), var(--max-width));
  margin: 0 auto 4rem;
}

.stream-head {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(12, 15, 20, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  padding: 0.36rem 0.9rem;
  margin: 0 auto 1rem;
}

.stream-head p {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.stream-grid {
  display: grid;
  gap: 0.9rem;
}

.stream-item {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-radius: 0.95rem;
  padding: 0.95rem;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.stream-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stream-item h2 {
  margin: 0 0 0.36rem;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(1rem, 5.5vw, 1.45rem);
  letter-spacing: 0.04em;
}

.stream-item p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(0.88rem, 3.6vw, 1.02rem);
}

.stream-item-img {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 0.55rem;
  object-fit: cover;
  border: 1px solid var(--panel-border);
}

.stream-sentinel {
  height: 1px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cuePulse {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: rotate(45deg) translateY(4px);
    opacity: 1;
  }
}

@media (min-width: 40rem) {
  .hero {
    padding: 2rem;
  }

  .stream {
    width: min(calc(100% - 2.8rem), var(--max-width));
    margin-bottom: 5rem;
  }

  .stream-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .stream-item {
    padding: 1.1rem;
  }
}

@media (min-width: 64rem) {
  .stream {
    width: min(calc(100% - 4rem), var(--max-width));
  }

  .stream-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
