/* Light mesh gradient: two soft blobs anchored to the top corners --------- */

.mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(44vw 30vw at 2% -8%, rgba(198, 194, 184, 0.34), transparent 68%),
    radial-gradient(42vw 28vw at 99% -6%, rgba(182, 186, 200, 0.3), transparent 70%),
    linear-gradient(180deg, #fdfcfa 0%, #faf9f6 38%, #ffffff 100%);
}

.mesh__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.mesh__blob--left {
  top: -26vh;
  left: -14vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle at 42% 42%, rgba(176, 170, 158, 0.42), rgba(255, 255, 255, 0) 70%);
  opacity: 0.62;
  animation: drift-left 28s ease-in-out infinite alternate;
}

.mesh__blob--right {
  top: -24vh;
  right: -16vw;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle at 56% 44%, rgba(158, 164, 184, 0.38), rgba(255, 255, 255, 0) 72%);
  opacity: 0.58;
  animation: drift-right 34s ease-in-out infinite alternate;
}

@keyframes drift-left {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(6vw, 5vh, 0) scale(1.14);
  }
}

@keyframes drift-right {
  0% {
    transform: translate3d(0, 0, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-7vw, 6vh, 0) scale(0.94);
  }
}

/* Barely-there grain so the large flat areas do not band */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: 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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
