:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #4bbccc;
  --font: "Montserrat", system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 42%,
      rgba(75, 188, 204, 0.07) 0%,
      transparent 55%
    ),
    var(--bg);
}

.cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(-2vh);
}

.logo-wrap {
  width: min(32vw, 168px);
  margin-bottom: 1.5rem;
  animation: logo-enter 0.5s ease-out both;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.logo-solid {
  animation: mark-settle 0.5s ease-out both;
}

.eye {
  transform-box: view-box;
  transform-origin: 134.68px 206.35px;
  animation: eye-blink 3s ease-in-out both;
}

.pupil {
  opacity: 0;
  animation: pupil-look 3s ease-in-out both;
}

.brand {
  margin: 0;
  line-height: 0;
  opacity: 0;
  animation: fade-up 0.75s ease-out 3.2s both;
}

.brand-img {
  display: block;
  width: min(72vw, 340px);
  height: auto;
}

.tagline {
  margin-top: 0.85rem;
  line-height: 0;
  opacity: 0;
  animation: fade-up 0.75s ease-out 3.8s both;
}

.tagline-img {
  display: block;
  width: min(72vw, 340px);
  height: auto;
}

.status {
  margin-top: 1.75rem;
  font-size: clamp(0.75rem, 1.8vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fade-up 0.75s ease-out 4.4s both;
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mark-settle {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pupil-look {
  0%,
  16% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20% {
    opacity: 1;
    transform: translate(0, 0);
  }
  31.5% {
    opacity: 1;
    transform: translate(-28px, 0);
  }
  46.5% {
    opacity: 1;
    transform: translate(28px, 0);
  }
  61.5%,
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes eye-blink {
  0%,
  71.5% {
    transform: scaleY(1);
  }
  /* Black almond gap fully closes */
  81.5% {
    transform: scaleY(0);
  }
  95%,
  100% {
    transform: scaleY(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap,
  .logo-solid,
  .eye,
  .pupil,
  .brand,
  .tagline,
  .status {
    animation: none !important;
  }

  .logo-wrap,
  .logo-solid,
  .brand,
  .tagline,
  .status {
    opacity: 1;
    transform: none;
  }

  .pupil {
    opacity: 1;
  }

  .eye {
    transform: scaleY(1);
  }
}

@media (max-width: 480px) {
  .logo-wrap {
    width: min(42vw, 140px);
    margin-bottom: 1.2rem;
  }

  .brand-img,
  .tagline-img {
    width: min(84vw, 340px);
  }

  .status {
    margin-top: 1.4rem;
  }
}
