:root {
  color-scheme: dark;
  background: #111513;
  color: #fffdf6;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #111513;
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__video,
.hero__shade,
.hero__ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  background: #111513 url("/assets/cyphernova-water-poster.jpg") center / cover no-repeat;
  filter: saturate(0.72) contrast(1.08) brightness(0.78);
  transform: scale(1.01);
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 11, 10, 0.3), rgba(8, 11, 10, 0.08) 45%, rgba(8, 11, 10, 0.58)),
    rgba(8, 11, 10, 0.24);
  box-shadow: inset 0 0 14rem rgba(0, 0, 0, 0.36);
}

.hero__ascii {
  z-index: -1;
  height: 100%;
  pointer-events: none;
  opacity: 0.96;
  mix-blend-mode: screen;
}

.identity {
  width: min(44rem, calc(100vw - 2rem));
  display: grid;
  justify-items: center;
  gap: clamp(0.35rem, 1vw, 0.7rem);
  padding: 1rem;
  text-align: center;
  animation: arrive 1.8s ease-out both;
}

.identity h1,
.identity p {
  margin: 0;
}

.identity h1 {
  line-height: 0;
}

.identity__logo {
  width: min(31rem, 76vw);
  height: auto;
}

.identity p {
  color: rgba(255, 253, 246, 0.86);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  text-shadow: 0 0.12rem 1rem rgba(0, 0, 0, 0.92);
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }

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

@media (max-width: 640px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(8, 11, 10, 0.36), rgba(8, 11, 10, 0.22) 45%, rgba(8, 11, 10, 0.64)),
      rgba(8, 11, 10, 0.42);
  }

  .identity__logo {
    width: min(24rem, 68vw);
  }
}

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