* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-0: #0a0b0f;
  --bg-1: #10131a;
  --bg-2: #151a22;
  --text: #e6e8ec;
  --muted: #9aa2ae;
  --glitch-a: rgba(84, 255, 255, 0.75);
  --glitch-b: rgba(255, 74, 90, 0.7);
  --neon-a: rgba(84, 255, 255, 0.18);
  --neon-b: rgba(255, 74, 90, 0.17);
  --neon-c: rgba(122, 255, 110, 0.26);
  --line: rgba(255, 255, 255, 0.05);
  --grain: rgba(255, 255, 255, 0.04);
}

html,
body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", "IBM Plex Mono", sans-serif;
  color: var(--text);
  background: #0c121a;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background: transparent;
  z-index: 0;
}

body::after {
  background: transparent;
  z-index: 0;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(-1px, 1px);
  }
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.stage::after {
  content: "";
  position: absolute;
  inset: -40% -10% -40% -10%;
  background: transparent;
  opacity: 0;
  animation: none;
  pointer-events: none;
  z-index: 0;
}


.content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.8rem;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
}

.glitch {
  position: relative;
  display: inline-block;
  width: auto;
  font-size: clamp(1.7rem, 7vw, 6rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0, "liga" 0, "clig" 0, "calt" 0;
  letter-spacing: clamp(0.04em, 0.8vw, 0.16em);
  z-index: 1;
  isolation: isolate;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.11),
    0 0 30px rgba(255, 255, 255, 0.08);
  filter: drop-shadow(0 1px 1.5px);
}

.glitch span {
  position: relative;
  display: inline-block;
  color: var(--text);
  animation: paths 5s step-end infinite;
}

.layers {
  position: relative;
}

.layers::before,
.layers::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  z-index: -1;
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0, "liga" 0, "clig" 0, "calt" 0;
  user-select: none;
}

.layers::before {
  color: var(--glitch-a);
  top: 0.08em;
  left: 0.05em;
  text-shadow:
    0 0 9px var(--neon-a),
    0 0 13px var(--neon-c),
    0 0 17px rgba(255, 255, 255, 0.06);
  mix-blend-mode: screen;
}

.layers::after {
  color: var(--glitch-b);
  top: -0.04em;
  left: -0.06em;
  text-shadow:
    0 0 9px var(--neon-b),
    0 0 15px rgba(255, 255, 255, 0.05);
  mix-blend-mode: screen;
}

.glitch::before {
  animation:
    paths 5s step-end infinite,
    opacity 5s step-end infinite,
    font 8s step-end infinite,
    movement 10s step-end infinite;
}

.glitch::after {
  animation:
    paths 5s step-end infinite,
    opacity 5s step-end infinite,
    font 7s step-end infinite,
    movement 8s step-end infinite;
}

@keyframes paths {
  0% {
    clip-path: polygon(
      0% 43%,
      83% 43%,
      83% 22%,
      23% 22%,
      23% 24%,
      91% 24%,
      91% 26%,
      18% 26%,
      18% 83%,
      29% 83%,
      29% 17%,
      41% 17%,
      41% 39%,
      18% 39%,
      18% 82%,
      54% 82%,
      54% 88%,
      19% 88%,
      19% 4%,
      39% 4%,
      39% 14%,
      76% 14%,
      76% 52%,
      23% 52%,
      23% 35%,
      19% 35%,
      19% 8%,
      36% 8%,
      36% 31%,
      73% 31%,
      73% 16%,
      1% 16%,
      1% 56%,
      50% 56%,
      50% 8%
    );
  }

  5% {
    clip-path: polygon(
      0% 29%,
      44% 29%,
      44% 83%,
      94% 83%,
      94% 56%,
      11% 56%,
      11% 64%,
      94% 64%,
      94% 70%,
      88% 70%,
      88% 32%,
      18% 32%,
      18% 96%,
      10% 96%,
      10% 62%,
      9% 62%,
      9% 84%,
      68% 84%,
      68% 50%,
      52% 50%,
      52% 55%,
      35% 55%,
      35% 87%,
      25% 87%,
      25% 39%,
      15% 39%,
      15% 88%,
      52% 88%
    );
  }

  30% {
    clip-path: polygon(
      0% 53%,
      93% 53%,
      93% 62%,
      68% 62%,
      68% 37%,
      97% 37%,
      97% 89%,
      13% 89%,
      13% 45%,
      51% 45%,
      51% 88%,
      17% 88%,
      17% 54%,
      81% 54%,
      81% 75%,
      79% 75%,
      79% 76%,
      38% 76%,
      38% 28%,
      61% 28%,
      61% 12%,
      55% 12%,
      55% 62%,
      68% 62%,
      68% 51%,
      0% 51%,
      0% 92%,
      63% 92%,
      63% 4%,
      65% 4%
    );
  }

  45% {
    clip-path: polygon(
      0% 33%,
      2% 33%,
      2% 69%,
      58% 69%,
      58% 94%,
      55% 94%,
      55% 25%,
      33% 25%,
      33% 85%,
      16% 85%,
      16% 19%,
      5% 19%,
      5% 20%,
      79% 20%,
      79% 96%,
      93% 96%,
      93% 50%,
      5% 50%,
      5% 74%,
      55% 74%,
      55% 57%,
      96% 57%,
      96% 59%,
      87% 59%,
      87% 65%,
      82% 65%,
      82% 39%,
      63% 39%,
      63% 92%,
      4% 92%,
      4% 36%,
      24% 36%,
      24% 70%,
      1% 70%,
      1% 43%,
      15% 43%,
      15% 28%,
      23% 28%,
      23% 71%,
      90% 71%,
      90% 86%,
      97% 86%,
      97% 1%,
      60% 1%,
      60% 67%,
      71% 67%,
      71% 91%,
      17% 91%,
      17% 14%,
      39% 14%,
      39% 30%,
      58% 30%,
      58% 11%,
      52% 11%,
      52% 83%,
      68% 83%
    );
  }

  76% {
    clip-path: polygon(
      0% 26%,
      15% 26%,
      15% 73%,
      72% 73%,
      72% 70%,
      77% 70%,
      77% 75%,
      8% 75%,
      8% 42%,
      4% 42%,
      4% 61%,
      17% 61%,
      17% 12%,
      26% 12%,
      26% 63%,
      73% 63%,
      73% 43%,
      90% 43%,
      90% 67%,
      50% 67%,
      50% 41%,
      42% 41%,
      42% 46%,
      50% 46%,
      50% 84%,
      96% 84%,
      96% 78%,
      49% 78%,
      49% 25%,
      63% 25%,
      63% 14%
    );
  }

  90% {
    clip-path: polygon(
      0% 56%,
      10% 56%,
      10% 85%,
      90% 85%,
      90% 39%,
      54% 39%,
      54% 26%,
      15% 26%,
      15% 50%,
      0% 50%
    );
  }

  1%,
  7%,
  33%,
  47%,
  78%,
  93% {
    clip-path: none;
  }
}

@keyframes movement {
  0% {
    transform: translate(-12px, 0);
  }

  15% {
    transform: translate(8px, 6px);
  }

  60% {
    transform: translate(-6px, 3px);
  }

  75% {
    transform: translate(10px, -5px);
  }

  100% {
    transform: translate(6px, 4px);
  }
}

@keyframes opacity {
  0% {
    opacity: 0.12;
  }

  5% {
    opacity: 0.65;
  }

  30% {
    opacity: 0.35;
  }

  45% {
    opacity: 0.55;
  }

  76% {
    opacity: 0.35;
  }

  90% {
    opacity: 0.75;
  }

  1%,
  7%,
  33%,
  47%,
  78%,
  93% {
    opacity: 0;
  }
}

@keyframes font {
  0% {
    font-weight: 300;
    color: var(--glitch-a);
    filter: blur(2px);
  }

  20% {
    font-weight: 600;
    color: var(--text);
    filter: blur(0);
  }

  50% {
    font-weight: 400;
    color: var(--glitch-b);
    filter: blur(1.5px);
  }

  60% {
    font-weight: 700;
    color: var(--text);
    filter: blur(0);
  }

  90% {
    font-weight: 500;
    color: var(--glitch-a);
    filter: blur(3px);
  }
}

.glitch-fall {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  line-height: 1;
  opacity: var(--fall-op);
  pointer-events: none;
  background: transparent;
  border: 0;
  isolation: isolate;
  animation:
    fall var(--fall-dur) linear forwards;
  z-index: 2;
}


.glitch-fall__glyph {
  position: relative;
  display: inline-block;
  animation:
    fall-spin var(--fall-spin-dur) linear infinite;
}

.glitch-fall__core {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
  animation:
    fall-glitch var(--fall-core-dur, 1.8s) steps(1, end) infinite,
    fall-flicker var(--fall-core-dur, 1.8s) steps(1, end) infinite,
    fall-color var(--fall-color-dur, 2.4s) steps(1, end) infinite;
  backface-visibility: hidden;
}

@keyframes fall {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) rotate(0deg);
    opacity: var(--fall-op);
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--fall-x), 140px) rotate(var(--fall-rot));
    opacity: 0;
  }
}

@keyframes fall-jitter {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(calc(var(--fall-jitter) * -1), 1px);
  }
  100% {
    transform: translate(var(--fall-jitter), -1px);
  }
}

@keyframes fall-flicker {
  0%,
  88%,
  100% {
    opacity: var(--fall-op);
  }
  90% {
    opacity: var(--fall-flicker-min);
  }
  94% {
    opacity: var(--fall-flicker-mid);
  }
}

@keyframes fall-glitch {
  0%,
  82%,
  100% {
    transform: translate(0, 0);
    filter: none;
  }
  84% {
    transform: translate(calc(var(--fall-jitter) * -1), -1px) skewX(6deg);
    filter: blur(0.2px);
  }
  86% {
    transform: translate(var(--fall-jitter), 1px);
  }
  88% {
    transform: translate(calc(var(--fall-jitter) * -0.5), 0);
  }
  90% {
    transform: translate(0, 0);
    filter: none;
  }
}

@keyframes fall-color {
  0%,
  82%,
  100% {
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
  }
  84% {
    color: rgba(255, 92, 195, 0.7);
    filter: drop-shadow(0 0 10px rgba(255, 92, 195, 0.35));
  }
  88% {
    color: rgba(122, 255, 110, 0.65);
    filter: drop-shadow(0 0 9px rgba(122, 255, 110, 0.3));
  }
}

@keyframes fall-spin {
  0% {
    transform: rotate(var(--fall-tilt));
  }
  100% {
    transform: rotate(calc(var(--fall-tilt) + var(--fall-spin)));
  }
}


@media (max-width: 640px) {
  .eyebrow {
    letter-spacing: 0.3em;
  }
}
