*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05060f;
  color: #fff;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 20%,
    rgba(5, 6, 15, 0.72) 100%
  );
  pointer-events: none;
  z-index: 5;
}

.ui {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;   /* let the flock react to the cursor behind the text */
  z-index: 10;
  padding: 2rem;
  text-align: center;
}

.brand {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(11px, 1.8vw, 16px);
  letter-spacing: 0.38em;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 1.8rem;
  text-transform: lowercase;
}

h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(30px, 5.6vw, 74px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 0 60px rgba(90, 130, 255, 0.22),
    0 0 120px rgba(90, 130, 255, 0.08);
  max-width: 80vw;
  margin-bottom: 1.6rem;
}

.descriptor {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(10px, 1.3vw, 13px);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.8;
  max-width: 60vw;
  margin-bottom: 2.6rem;
}

.cta {
  pointer-events: auto;   /* the one interactive element */
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.14em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.85em 1.5em;
  border: 1px solid rgba(140, 165, 255, 0.35);
  border-radius: 999px;
  background: rgba(90, 120, 255, 0.06);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.cta:hover,
.cta:focus-visible {
  border-color: rgba(160, 185, 255, 0.85);
  background: rgba(90, 120, 255, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.cta svg {
  transition: transform 0.25s ease;
}

.cta:hover svg,
.cta:focus-visible svg {
  transform: translateX(3px);
}

.hint {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  animation: blink 3.2s ease-in-out infinite;
  transition: opacity 1.2s ease;
}

.hint.hidden {
  opacity: 0 !important;
  animation: none;
}

@keyframes blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

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