/* A quiet two-pixel outline with stepped corners, shared with the menu accent. */
.profile-illustration {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile-illustration .profile-avatar { position: relative; z-index: 1; }
.profile-illustration::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 8px solid transparent;
  border-image: url("assets/profile-pixel-frame.svg") 8 / 8px / 0 stretch;
  opacity: .62;
  pointer-events: none;
  image-rendering: pixelated;
}

.dream-background::before,
.dream-background::after {
  content: "";
  position: absolute;
  aspect-ratio: 3 / 1;
  background: url("assets/pearl-cloud-bank.png") center / contain no-repeat;
  image-rendering: pixelated;
  opacity: .12;
  animation: cloud-bank-drift 28s ease-in-out infinite alternate;
}
.dream-background::before {
  width: min(760px, 74vw);
  top: 17vh;
  right: -17vw;
}
.dream-background::after {
  width: min(1100px, 105vw);
  bottom: -7vh;
  left: -23vw;
  opacity: .16;
  animation-delay: -14s;
  animation-duration: 34s;
}
body[data-view="about"] .dream-background::before { opacity: .2; }
body[data-view="about"] .dream-background::after { opacity: .23; }
body[data-view="about"] .dream-background {
  background: radial-gradient(ellipse at 100% 65%, #e7eaff08, transparent 55%);
}

.about-preview { position: relative; isolation: isolate; }
.about-preview::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: -8px;
  width: min(280px, 70%);
  aspect-ratio: 3 / 1;
  background: url("assets/pearl-cloud-bank.png") center / contain no-repeat;
  image-rendering: pixelated;
  opacity: .12;
  pointer-events: none;
}

@keyframes cloud-bank-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-22px, -12px, 0); }
}
@media (max-width: 600px) {
  .dream-background::before { width: 110vw; right: -50vw; top: 25vh; }
  .dream-background::after { width: 140vw; left: -56vw; bottom: 4vh; }
  body[data-view="about"] .dream-background::before { opacity: .14; }
  body[data-view="about"] .dream-background::after { opacity: .17; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.motion-opt-in) .dream-background::before,
  body:not(.motion-opt-in) .dream-background::after { animation: none; }
}
.motion-paused .dream-background::before,
.motion-paused .dream-background::after { animation-play-state: paused !important; }
