:root {
  --bg: #050505;
  --ink: #f4f4f2;
  --mute: rgba(244, 244, 242, 0.58);
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --yellow: #ffff00;
  --font: "Instrument Sans", sans-serif;
}

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

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
}

#signal {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(68vw, 220px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 24px rgba(0, 255, 255, 0.16));
  animation: float 6s ease-in-out infinite;
  opacity: 0;
  animation:
    rise 0.9s ease forwards,
    float 6s ease-in-out 0.9s infinite;
}

.tagline {
  max-width: 22ch;
  margin-inline: auto;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--mute);
  min-height: 1.5em;
  opacity: 0;
  animation: rise 0.9s 0.2s ease forwards;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-top: 0.15rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(244, 244, 242, 0.82);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: rise 0.9s 0.35s ease forwards;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease,
    box-shadow 0.25s ease;
}

.mail:hover,
.mail:focus-visible {
  color: #fff;
  border-color: rgba(0, 255, 255, 0.45);
  background: rgba(0, 255, 255, 0.08);
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.12);
  outline: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 640px) {
  .stage {
    gap: 1.2rem;
    padding: 2rem;
  }

  .logo {
    width: min(42vw, 280px);
  }

  .tagline {
    max-width: 28ch;
    font-size: 1.1rem;
  }

  .mail {
    padding: 0.45rem 0.8rem;
    font-size: 0.84rem;
  }
}

@media (min-width: 1024px) {
  .logo {
    width: min(28vw, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .logo,
  .tagline,
  .mail {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
