.manifesto-gradient-letter,
.manifesto-dot-gradient {
  --manifesto-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2' intercept='-.5'/%3E%3CfeFuncG type='linear' slope='2' intercept='-.5'/%3E%3CfeFuncB type='linear' slope='2' intercept='-.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  --manifesto-field-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.manifesto .manifesto-gradient-letter {
  color: #1641da;
  background-image: var(--manifesto-noise), linear-gradient(125deg, #1638ad 5%, #1641da 34%, #315bc2 64%, #1b43c7 90%);
  background-blend-mode: overlay, normal;
  background-size: 180px 180px, 70vw 100vh;
  background-attachment: fixed;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: manifesto-letter-drift 14s ease-in-out infinite alternate;
}

.manifesto-final-dot-hidden { opacity: 0; }

.manifesto .text { position: relative; z-index: 2; }

.manifesto-dot-gradient {
  --manifesto-dot-ink: 1;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  visibility: hidden;
  background-image: linear-gradient(rgb(20 35 68 / var(--manifesto-dot-ink)), rgb(20 35 68 / var(--manifesto-dot-ink))), var(--manifesto-field-noise), radial-gradient(ellipse at 68% 100%, #b1c2ee 0%, #d1dcf3 38%, #e7eef7 78%);
  background-blend-mode: normal, soft-light, normal;
  background-size: auto, 180px 180px, 140% 140%;
  animation: manifesto-gradient-drift 14s ease-in-out infinite alternate;
}

.manifesto-dot-gradient.is-active { visibility: visible; }

.manifesto-streaks {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.manifesto-streak {
  position: absolute;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(22, 65, 218, .14) 36%, rgba(38, 88, 207, .68) 85%, transparent);
  transform: translate3d(var(--streak-x, 0px), var(--streak-y, 0px), 0) rotate(34deg);
  transform-origin: center;
  animation: manifesto-streak-fall 5.8s linear infinite;
  will-change: transform;
}

@keyframes manifesto-streak-fall {
  0% { opacity: 0; transform: translate3d(calc(var(--streak-x, 0px) - 18vw), calc(var(--streak-y, 0px) - 18vh), 0) rotate(34deg); }
  15%, 75% { opacity: var(--streak-alpha); }
  100% { opacity: 0; transform: translate3d(calc(var(--streak-x, 0px) + 18vw), calc(var(--streak-y, 0px) + 18vh), 0) rotate(34deg); }
}

@keyframes manifesto-gradient-drift {
  from { background-position: 0 0, 0 0, 40% 45%; }
  to { background-position: 0 0, 0 0, 60% 55%; }
}

@keyframes manifesto-letter-drift {
  from { background-position: 0 0, 0% 35%; }
  to { background-position: 0 0, 100% 65%; }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto .manifesto-gradient-letter,
  .manifesto-dot-gradient,
  .manifesto-streak { animation: none; }
}
