:root {
  color-scheme: dark;
  background: #020203;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: #020203;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.singularity {
  position: absolute;
  inset: -12vmax;
  z-index: 0;
  background-image: url("assets/singularity.webp");
  background-image: image-set(
    url("assets/singularity.avif") type("image/avif"),
    url("assets/singularity.webp") type("image/webp"),
    url("assets/singularity.png") type("image/png")
  );
  background-position: center;
  background-size: cover;
  opacity: 0.82;
  filter: saturate(1.08) contrast(1.05);
}

.singularity-video {
  position: absolute;
  inset: -6%;
  z-index: 1;
  width: 112%;
  height: 112%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(1.08) contrast(1.06);
  transform-origin: center;
  animation: video-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.landing::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    radial-gradient(circle at center, rgb(2 2 3 / 0) 0 28%, rgb(2 2 3 / 0.24) 48%, rgb(2 2 3 / 0.82) 100%),
    linear-gradient(180deg, rgb(2 2 3 / 0.18), rgb(2 2 3 / 0.56));
}

.email {
  position: relative;
  z-index: 3;
  max-width: min(92vw, 42rem);
  padding: clamp(1rem, 4vw, 2rem);
  color: rgb(250 251 255 / 0.94);
  font-size: clamp(1.05rem, 2.5vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 0 20px rgb(255 255 255 / 0.18), 0 2px 18px rgb(0 0 0 / 0.7);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.email:hover {
  color: #ffffff;
  text-shadow: 0 0 28px rgb(255 255 255 / 0.32), 0 2px 18px rgb(0 0 0 / 0.7);
}

.email:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.82);
  outline-offset: 0.5rem;
}

@keyframes video-drift {
  0% {
    transform: translate3d(-1.4%, -0.8%, 0) scale(1.02);
  }

  50% {
    transform: translate3d(1.1%, 0.9%, 0) scale(1.07);
  }

  100% {
    transform: translate3d(-0.4%, 1.2%, 0) scale(1.04);
  }
}
