:root {
  color-scheme: dark;
  --bg: #020102;
  --paper: #ffe9c7;
  --ink: #050203;
  --red: #e50914;
  --red-dark: #4c0308;
  --cyan: #55e8ff;
  --gold: #ffd061;
  --mx: 50%;
  --my: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --text-x: 0px;
  --text-y: 0px;
  --ease: cubic-bezier(.17, 1, .23, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: crosshair;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#shader-canvas,
.grain {
  position: fixed;
  inset: 0;
}

#shader-canvas {
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 233, 199, .09), transparent 18rem),
    radial-gradient(circle at 50% 6%, rgba(229, 9, 20, .24), transparent 28rem),
    linear-gradient(180deg, #090104 0%, #020102 62%, #000 100%);
}

.grain {
  z-index: 1;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle, rgba(255, 233, 199, .48) 0 1px, transparent 1.4px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 7px);
  background-size: 13px 13px, 100% 7px;
  mask-image: radial-gradient(ellipse at 50% 56%, black, transparent 78%);
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(255, 233, 199, .08), transparent 18rem),
    linear-gradient(180deg, #030102, #050102 52%, #000);
}

.intro-splash::before,
.intro-splash::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.intro-splash::before {
  background:
    linear-gradient(90deg, transparent 0 37%, rgba(229, 9, 20, .92) 43%, rgba(255, 233, 199, .55) 50%, rgba(229, 9, 20, .92) 57%, transparent 63%),
    repeating-linear-gradient(90deg, transparent 0 6.5%, rgba(229, 9, 20, .18) 7.25%, transparent 8.8%);
  filter: blur(.2px);
  transform: scaleX(.05);
  opacity: 0;
}

.intro-splash::after {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 22%, rgba(229, 9, 20, .2) 38%, transparent 66%),
    linear-gradient(120deg, transparent 0 46%, rgba(85, 232, 255, .1) 48%, transparent 51% 100%);
  opacity: 0;
}

.intro-beam {
  position: absolute;
  top: -16%;
  bottom: -16%;
  left: 50%;
  width: clamp(.32rem, 1.4vw, 1.1rem);
  background: linear-gradient(180deg, transparent, #ff2832 25%, #fff1d5 50%, #ff2832 75%, transparent);
  box-shadow:
    0 0 1.5rem rgba(229, 9, 20, .72),
    0 0 4rem rgba(229, 9, 20, .34);
  opacity: 0;
  transform: translateX(-50%) scaleY(.08);
}

.intro-title {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  font-family: Impact, Haettenschweiler, "Arial Black", "Arial Narrow Bold", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4.3rem, 13vw, 13rem);
  line-height: .74;
  letter-spacing: 0;
  text-align: center;
  transform: skewX(-7deg);
}

.intro-title span {
  display: block;
  color: var(--paper);
  -webkit-text-stroke: .018em var(--ink);
  text-shadow:
    .045em .05em 0 var(--red),
    -.018em -.016em 0 rgba(85, 232, 255, .7),
    0 0 .18em rgba(229, 9, 20, .3);
  clip-path: inset(0 50% 0 50%);
  transform: scaleX(.08);
  opacity: 0;
}

body.intro-active .intro-splash {
  visibility: visible;
  opacity: 1;
  animation: introLayer 2450ms var(--ease) both;
}

body.intro-active .intro-splash::before {
  animation: introColumns 1800ms var(--ease) both;
}

body.intro-active .intro-splash::after {
  animation: introAura 2450ms var(--ease) both;
}

body.intro-active .intro-beam {
  animation: introBeam 1600ms var(--ease) both;
}

body.intro-active .intro-title span {
  animation: introMark 2150ms var(--ease) both;
}

body.intro-active .intro-title span:nth-child(2) {
  animation-delay: 80ms;
}

body.intro-active .page-shell {
  animation: pageAfterIntro 2450ms var(--ease) both;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.page-shell::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 233, 199, .14), transparent 15rem),
    radial-gradient(circle at var(--mx) var(--my), rgba(229, 9, 20, .22), transparent 18rem),
    linear-gradient(90deg, transparent 0 33%, rgba(229, 9, 20, .16) 46%, transparent 54% 100%);
  mix-blend-mode: screen;
  opacity: .82;
}

.page-shell::after {
  inset: auto 0 0;
  height: 52svh;
  background: linear-gradient(0deg, rgba(0, 0, 0, .94), transparent);
}

.topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: 0;
  color: rgba(255, 233, 199, .92);
  text-shadow: 0 0 18px rgba(229, 9, 20, .36);
}

.bang-button {
  display: grid;
  width: 3.1rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 233, 199, .26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 38%, rgba(255, 233, 199, .18), transparent 32%),
    rgba(5, 2, 3, .58);
  color: var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 199, .08),
    0 0 38px rgba(229, 9, 20, .25);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 180ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}

.bang-button svg {
  width: 45%;
  height: 45%;
  fill: currentColor;
  transform: translateX(2px);
  filter: drop-shadow(0 0 10px rgba(255, 233, 199, .45));
}

.bang-button:hover,
.bang-button:focus-visible {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 208, 97, .7);
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 199, .12),
    0 0 52px rgba(229, 9, 20, .34);
}

.bang-button:active {
  transform: translateY(1px) scale(.98);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 7rem 1.25rem 5rem;
}

.hero-title {
  position: relative;
  width: min(100%, 66rem);
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", "Arial Narrow Bold", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(5.2rem, 14vw, 13.6rem);
  line-height: .74;
  letter-spacing: 0;
  text-align: center;
  transform: translate3d(var(--text-x), var(--text-y), 0) perspective(60rem) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) skewX(-7deg) rotate(-1deg);
  transform-style: preserve-3d;
  transition: transform 260ms var(--ease);
  filter:
    drop-shadow(0 1.5rem 2.4rem rgba(0, 0, 0, .9))
    drop-shadow(0 0 3rem rgba(229, 9, 20, .24));
}

.hero-title::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: 78%;
  height: .035em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, .7), rgba(255, 233, 199, .48), transparent);
  box-shadow: 0 0 .38em rgba(229, 9, 20, .26);
  opacity: .64;
  transform: translate(-50%, -50%);
}

.ai-column {
  position: absolute;
  z-index: 0;
  top: .08em;
  left: calc(50% - .74em);
  width: .3em;
  height: .98em;
  pointer-events: none;
  transform: rotate(-9deg);
  transform-origin: 50% 50%;
}

.ai-column::before {
  content: "";
  position: absolute;
  inset: -.08em 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(85, 232, 255, 0), rgba(85, 232, 255, .72) 24%, rgba(255, 208, 97, .86) 52%, rgba(229, 9, 20, .58) 80%, rgba(229, 9, 20, 0));
  box-shadow:
    0 0 .1em rgba(85, 232, 255, .58),
    0 0 .28em rgba(255, 208, 97, .26);
  opacity: .7;
}

.ai-column::after {
  content: "";
  position: absolute;
  top: 43%;
  left: 50%;
  width: .18em;
  aspect-ratio: 1;
  border: .01em solid rgba(255, 208, 97, .54);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 232, 255, .22), transparent 64%);
  box-shadow: 0 0 .22em rgba(85, 232, 255, .3);
  transform: translate(-50%, -50%);
  opacity: .82;
}

.word {
  position: relative;
  z-index: 1;
  display: flex;
  width: fit-content;
  max-width: 100%;
  height: .76em;
  justify-content: center;
  margin-inline: auto;
  transform: translateX(var(--word-x, 0));
  isolation: isolate;
}

.word-one {
  --word-x: .08em;
}

.word-two {
  --word-x: -.12em;
  margin-top: -.13em;
}

.letter {
  position: relative;
  display: grid;
  width: .66em;
  place-items: center;
  color: transparent;
  background:
    linear-gradient(96deg, #7f050b 0 8%, #e50914 17%, #ffe9c7 34%, #fff7dc 50%, #ffd9ac 63%, #e50914 78%, #280204 100%),
    var(--paper);
  background-size: 180% 100%;
  background-position: 52% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .015em rgba(3, 1, 2, .92);
  text-shadow:
    0 .014em .02em rgba(255, 233, 199, .46),
    0 0 2.4rem rgba(229, 9, 20, .2);
}

.letter::before,
.letter::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: transparent;
  pointer-events: none;
}

.letter::before {
  z-index: -1;
  color: var(--red);
  -webkit-text-stroke: .02em currentColor;
  transform: translate(-.04em, .04em);
  text-shadow:
    0 0 1.2rem rgba(229, 9, 20, .72),
    0 .05em 0 rgba(0, 0, 0, .74);
}

.letter::after {
  z-index: -2;
  color: var(--ink);
  -webkit-text-stroke: .022em currentColor;
  transform: translate(.055em, .052em);
  text-shadow:
    -.016em -.016em 0 rgba(85, 232, 255, .26),
    0 .04em 0 rgba(0, 0, 0, .9);
}

.ai-letter {
  z-index: 2;
  background: linear-gradient(135deg, #fff7dc 0 15%, var(--gold) 31%, var(--cyan) 56%, #fff 73%, #e50914 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 .12em rgba(85, 232, 255, .58))
    drop-shadow(0 0 .2em rgba(255, 208, 97, .32));
  animation: aiGlint 3.6s ease-in-out infinite;
}

.ai-i {
  transform: translate(.035em, 0) skewX(-5deg);
}

.ai-a {
  transform: translate(-.035em, 0) skewX(-5deg);
}

.ai-letter::before {
  color: var(--gold);
  opacity: .82;
  transform: translate(-.045em, .035em);
}

.ai-letter::after {
  color: var(--cyan);
  opacity: .78;
  transform: translate(.05em, -.035em);
}

body:not(.is-banging) .word-one {
  animation: wordFloatOne 5.6s ease-in-out infinite;
}

body:not(.is-banging) .word-two {
  animation: wordFloatTwo 6s ease-in-out .2s infinite;
}

body:not(.is-banging) .letter {
  animation: fillShift 5.2s ease-in-out infinite;
}

.signature {
  position: relative;
  z-index: 3;
  margin: 1.8rem 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(255, 233, 199, .92);
  text-shadow:
    0 0 22px rgba(0, 0, 0, .82),
    0 0 24px rgba(229, 9, 20, .2);
}

.signature span {
  color: var(--gold);
}

body.is-banging .hero-title {
  animation: titleHit 720ms var(--ease) both;
}

body.is-banging .word-one {
  animation: wordHitOne 720ms var(--ease) both;
}

body.is-banging .word-two {
  animation: wordHitTwo 720ms var(--ease) both;
}

body.is-banging .letter::before {
  animation: redSplit 720ms var(--ease) both;
}

body.is-banging .letter::after {
  animation: cyanSplit 720ms var(--ease) both;
}

body.no-webgl #shader-canvas {
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 233, 199, .12), transparent 17rem),
    radial-gradient(circle at 50% 4%, rgba(229, 9, 20, .28), transparent 27rem),
    linear-gradient(180deg, #0a0104, #020102 64%, #000);
}

@keyframes introLayer {
  0%, 80% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes introColumns {
  0% {
    opacity: 0;
    transform: scaleX(.04);
  }
  22% {
    opacity: 1;
    transform: scaleX(.08);
  }
  58% {
    opacity: .92;
    transform: scaleX(.64);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.18);
  }
}

@keyframes introAura {
  0%, 22% {
    opacity: 0;
  }
  58% {
    opacity: .72;
  }
  100% {
    opacity: 0;
  }
}

@keyframes introBeam {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleY(.08);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) scaleY(.28);
  }
  55% {
    opacity: .94;
    transform: translateX(-50%) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scaleY(1.18) scaleX(5);
  }
}

@keyframes introMark {
  0% {
    opacity: 0;
    clip-path: inset(0 50% 0 50%);
    transform: scaleX(.08);
    filter: blur(10px);
  }
  24% {
    opacity: 1;
  }
  48% {
    clip-path: inset(0 3% 0 3%);
    transform: scaleX(1);
    filter: blur(0);
  }
  78% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1.02);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: scale(1.18);
  }
}

@keyframes pageAfterIntro {
  0%, 64% {
    opacity: 0;
    transform: scale(.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wordFloatOne {
  0%, 100% { transform: translateX(var(--word-x)) translateY(0); }
  52% { transform: translateX(calc(var(--word-x) - .01em)) translateY(-.012em); }
}

@keyframes wordFloatTwo {
  0%, 100% { transform: translateX(var(--word-x)) translateY(0); }
  52% { transform: translateX(calc(var(--word-x) + .01em)) translateY(.012em); }
}

@keyframes fillShift {
  0%, 100% {
    background-position: 48% 50%;
  }
  50% {
    background-position: 66% 50%;
  }
}

@keyframes aiGlint {
  0%, 100% {
    background-position: 0% 50%;
    filter:
      drop-shadow(0 0 .1em rgba(85, 232, 255, .46))
      drop-shadow(0 0 .16em rgba(255, 208, 97, .28));
  }
  50% {
    background-position: 100% 50%;
    filter:
      drop-shadow(0 0 .16em rgba(85, 232, 255, .72))
      drop-shadow(0 0 .25em rgba(255, 208, 97, .46));
  }
}

@keyframes titleHit {
  0%, 100% {
    transform: translate3d(var(--text-x), var(--text-y), 0) perspective(60rem) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) skewX(-7deg) rotate(-1deg) scale(1);
  }
  38% {
    transform: translate3d(var(--text-x), var(--text-y), 0) perspective(60rem) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) skewX(-7deg) rotate(-1deg) scale(1.025);
  }
}

@keyframes wordHitOne {
  0%, 100% { transform: translateX(var(--word-x)) translateY(0); }
  36% { transform: translateX(calc(var(--word-x) - .035em)) translateY(-.014em); }
}

@keyframes wordHitTwo {
  0%, 100% { transform: translateX(var(--word-x)) translateY(0); }
  36% { transform: translateX(calc(var(--word-x) + .035em)) translateY(.014em); }
}

@keyframes redSplit {
  0%, 100% { transform: translate(-.04em, .04em); }
  42% { transform: translate(-.12em, .07em); }
}

@keyframes cyanSplit {
  0%, 100% { transform: translate(.055em, .052em); }
  42% { transform: translate(.12em, .07em); }
}

@media (max-width: 860px) {
  .topbar {
    padding: 1.35rem;
  }

  .hero {
    padding-inline: 1rem;
  }

  .hero-title {
    font-size: clamp(4.6rem, 18vw, 8rem);
  }

  .signature {
    margin-top: 1.35rem;
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  body {
    cursor: default;
  }

  .intro-title {
    font-size: clamp(4.2rem, 22vw, 7rem);
  }

  .brand {
    font-size: .8rem;
  }

  .bang-button {
    width: 3rem;
  }

  .hero-title {
    font-size: clamp(4.05rem, 20vw, 5.4rem);
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 3.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .hero-title {
    transform: none;
  }

  .intro-splash {
    display: none;
  }

  body.intro-active .page-shell {
    animation: none;
  }
}
