@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #050506;
  --ink: #fff5df;
  --muted: #d4c8ad;
  --acid: #b7ff34;
  --cyan: #00f0ff;
  --magenta: #ff2bbf;
  --ember: #ff9f1c;
  --scrim: rgba(2, 2, 3, 0.66);
  --max-copy: 58rem;
}

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

html {
  min-height: 100%;
  background: var(--void);
}

body {
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--void);
  font-family: "IBM Plex Mono", "Courier Prime", ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100dvh;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: var(--max-copy);
  margin: 0 auto;
  padding: 3rem 1.25rem 4.8rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

h1,
p,
blockquote {
  margin: 0;
}

h1 {
  font-size: 5.6rem;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 0.3rem rgba(255, 245, 223, 0.42), 0 0 2rem rgba(0, 240, 255, 0.32);
}

.pronounce {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.expansion {
  max-width: calc(100svw - 2rem);
  margin-top: 0.55rem;
  color: var(--acid);
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 0 1.2rem rgba(183, 255, 52, 0.45);
}

.typer {
  display: flex;
  min-height: 2.2rem;
  width: 100%;
  max-width: min(43rem, calc(100svw - 2rem));
  margin-top: 1.75rem;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 0 1.4rem rgba(0, 240, 255, 0.55);
}

.typed {
  overflow-wrap: anywhere;
}

.caret {
  display: inline-block;
  width: 0.75em;
  margin-left: 0.1em;
  color: var(--ember);
  animation: blink 1s steps(2, start) infinite;
}

.manifesto {
  width: 100%;
  max-width: min(50rem, calc(100svw - 2rem));
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 400;
  overflow-wrap: break-word;
  text-shadow: 0 0.12rem 0.65rem rgba(0, 0, 0, 0.9);
}

.static-phrases {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

footer {
  position: fixed;
  z-index: 2;
  right: 1rem;
  bottom: 0.85rem;
  left: 1rem;
  color: rgba(255, 245, 223, 0.68);
  font-size: 0.78rem;
  text-align: center;
  text-shadow: 0 0.1rem 0.45rem rgba(0, 0, 0, 0.9);
}

footer p {
  max-width: 46rem;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 43, 191, 0.18), transparent 34%),
    url("poster.webp") center / cover no-repeat,
    var(--void);
}

.bg.is-video-ready {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 43, 191, 0.18), transparent 34%),
    var(--void);
}

.bg-video,
.bg-pulse,
.bg-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-video {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.2s ease;
}

.bg-video.is-ready {
  opacity: 0.8;
}

.bg-pulse {
  background:
    radial-gradient(circle at 50% 48%, rgba(183, 255, 52, 0.42), transparent 20%),
    radial-gradient(circle at 42% 38%, rgba(255, 43, 191, 0.5), transparent 26%),
    radial-gradient(circle at 60% 43%, rgba(0, 240, 255, 0.42), transparent 30%),
    linear-gradient(125deg, rgba(255, 43, 191, 0.28), rgba(0, 240, 255, 0.18), rgba(255, 159, 28, 0.24));
  background-size: 180% 180%;
  mix-blend-mode: screen;
  opacity: 0.82;
  transform: scale(1);
  animation: pulse 7s ease-in-out infinite;
}

.bg-scrim {
  background:
    radial-gradient(circle at 50% 47%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72) 60%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), var(--scrim) 44%, rgba(0, 0, 0, 0.85));
}

.hero > * {
  opacity: 0;
  transform: translateY(1rem);
  animation: reveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero > h1 {
  animation-delay: 0.08s;
}

.hero > .pronounce {
  animation-delay: 0.2s;
}

.hero > .expansion {
  animation-delay: 0.32s;
}

.hero > .typer {
  animation-delay: 0.46s;
}

.hero > .manifesto {
  animation-delay: 0.62s;
}

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
    background-position: 0% 45%;
  }

  38% {
    opacity: 0.92;
    transform: scale(1.04);
    background-position: 100% 55%;
  }

  44% {
    opacity: 1;
    transform: scale(1.075);
  }

  70% {
    opacity: 0.7;
    transform: scale(1.02);
    background-position: 48% 100%;
  }
}

@media (max-width: 44rem) {
  .hero {
    padding: 2rem 1rem 4.2rem;
  }

  h1 {
    font-size: 3.45rem;
  }

  .pronounce {
    font-size: 0.9rem;
  }

  .expansion {
    max-width: 20rem;
    font-size: 1rem;
  }

  .typer {
    min-height: 3.2rem;
    max-width: 20.5rem;
    margin-top: 1.35rem;
    font-size: 0.9rem;
  }

  .manifesto {
    max-width: 20.5rem;
    margin-top: 1.1rem;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  footer {
    bottom: 0.65rem;
    font-size: 0.68rem;
  }

  footer p {
    max-width: 18rem;
  }
}

@media (max-height: 40rem) {
  .hero {
    padding-top: 1rem;
    padding-bottom: 3.4rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  .typer {
    margin-top: 0.9rem;
  }

  .manifesto {
    margin-top: 0.85rem;
    font-size: 1rem;
  }
}

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

  .hero > * {
    opacity: 1;
    transform: none;
  }

  .bg-video {
    opacity: 0.5;
    transform: none;
  }
}
