* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0907;
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
}

.background,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: -2;
  background-image: url('../assets/images/background.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.01);
}

.vignette {
  z-index: -1;
}

.hero {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 96px);
}

.logo {
  width: min(72vw, 680px);
  height: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.email {
  opacity: 0;
  transform: translateY(8px);
  text-decoration: none;
  white-space: nowrap;
  will-change: opacity, transform;
}

.is-loaded .logo {
  animation: logoReveal 1100ms cubic-bezier(.16, 1, .3, 1) 140ms forwards;
}

.is-loaded .email {
  animation: footerReveal 900ms ease 820ms forwards;
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@media (max-width: 640px) {
  .site-shell {
    min-height: 560px;
  }

  .logo {
    width: min(84vw, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .email {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
