:root {
  --bg: #000;
  --phrase-y: clamp(20px, 22vh, 280px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.about-page {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  isolation: isolate;
}

#fold-fire-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 4;
  background: transparent;
  opacity: 1;
}

.butterfly-layer,
.phrase-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.butterfly-layer-back {
  z-index: 1;
}

.phrase-layer {
  z-index: 2;
}

.butterfly-layer-mid {
  z-index: 3;
}

.butterfly-layer-front {
  z-index: 7;
}

.phrase-track {
  width: max-content;
  padding-left: 100vw;
  margin-top: var(--phrase-y);
  white-space: nowrap;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: clamp(190px, 30vw, 720px);
  line-height: 0.84;
  letter-spacing: 0.008em;
  color: #fff;
  text-transform: none;
  animation: phrase-scroll var(--scroll-duration, 20s) linear infinite;
}

.butterfly {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  image-rendering: pixelated;
  will-change: transform, opacity;
}

.butterfly-back {
  width: clamp(10px, 1.5vw, 22px);
  opacity: 0.58;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.22));
}

.butterfly-mid {
  width: clamp(13px, 2vw, 30px);
  opacity: 0.74;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.3))
    drop-shadow(0 0 8px rgba(255, 0, 0, 0.24));
}

.butterfly-front {
  width: clamp(16px, 2.7vw, 42px);
  opacity: 0.86;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 14px rgba(255, 0, 0, 0.3));
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.055;
  background-image: radial-gradient(circle, #fff 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  animation: noise-shift 180ms steps(2) infinite;
}

.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;
}

@keyframes phrase-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes noise-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(0.5px, -0.6px, 0);
  }
  66% {
    transform: translate3d(-0.8px, 0.5px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 900px) {
  :root {
    --phrase-y: clamp(8px, 12vh, 110px);
  }

  .phrase-track {
    font-size: clamp(130px, 32vw, 420px);
  }

  .butterfly-back {
    width: clamp(8px, 3.8vw, 18px);
  }

  .butterfly-mid {
    width: clamp(10px, 4.8vw, 24px);
  }

  .butterfly-front {
    width: clamp(12px, 5.8vw, 30px);
  }
}
