/* Compositor-led ambient motion; the content remains on quiet white surfaces. */
body.midnight.sua-ambient-page {
  background: #fffdfe;
}
body.midnight.sua-ambient-page::before {
  display: none;
}
.sua-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  contain: layout paint;
  isolation: isolate;
}
.sua-ambient__wash {
  position: absolute;
  width: min(75vw, 930px);
  aspect-ratio: 1;
  right: -28%;
  top: -42%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #f2cfdf55 0%, #f9e9f34d 28%, #fff0 67%);
  animation: sua-wash-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.sua-ambient__wash--lower {
  width: min(64vw, 820px);
  right: auto;
  left: -36%;
  top: auto;
  bottom: -37%;
  background: radial-gradient(ellipse, #e8d9ee40 0%, #f8e6ee38 33%, #fff0 69%);
  animation-name: sua-wash-return;
  animation-duration: 32s;
}
.sua-ambient__orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0.62;
  animation: sua-orbit-breathe 22s ease-in-out infinite alternate;
}
.sua-ambient__orbit {
  fill: none;
  stroke: #d8a6bf;
  stroke-width: 0.65;
  opacity: 0.18;
  vector-effect: non-scaling-stroke;
}
.sua-ambient__orbit--trace {
  stroke: #bf7b9f;
  stroke-width: 1;
  stroke-dasharray: 2 18;
  opacity: 0.24;
  animation: sua-orbit-trace 48s linear infinite;
}
.sua-ambient__glint {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 7px);
  height: var(--size, 7px);
  color: #b8799d;
  opacity: 0.15;
  animation: sua-glint var(--duration, 8s) ease-in-out var(--delay, 0s) infinite;
}
.sua-ambient__glint::before,
.sua-ambient__glint::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}
.sua-ambient__glint::before {
  width: 1px;
  height: 100%;
}
.sua-ambient__glint::after {
  width: 100%;
  height: 1px;
}
.sua-ambient__dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #bc7da2;
  opacity: 0.16;
  animation: sua-dust 19s ease-in-out var(--delay, 0s) infinite alternate;
}
.sua-ambient-page main,
.sua-ambient-page .site-footer {
  position: relative;
  z-index: 1;
}
.sua-ambient-page .site-header {
  z-index: 100;
  background: #fffdfbf0;
}
.sua-ambient-page .mini-hero,
.sua-ambient-page .mini-section {
  scroll-margin-top: 100px;
}
.sua-ambient[data-paused="true"] *,
.sua-motion-off .sua-ambient * {
  animation-play-state: paused !important;
}
.sua-motion-off .sua-ambient__glint,
.sua-motion-off .sua-ambient__dot {
  opacity: 0.13;
}
@keyframes sua-wash-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-8vw, 7vh, 0) scale(1.08);
  }
}
@keyframes sua-wash-return {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(7vw, -8vh, 0) scale(1.08);
  }
}
@keyframes sua-orbit-breathe {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -13px, 0);
  }
}
@keyframes sua-orbit-trace {
  to {
    stroke-dashoffset: -240;
  }
}
@keyframes sua-glint {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.75);
  }
  45%,
  60% {
    opacity: 0.4;
    transform: scale(1.15);
  }
}
@keyframes sua-dust {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.12;
  }
  to {
    transform: translate3d(6px, -15px, 0);
    opacity: 0.28;
  }
}
@media (max-width: 767px) {
  .sua-ambient__wash {
    width: 125vw;
    right: -79%;
    top: -10%;
    opacity: 0.65;
  }
  .sua-ambient__wash--lower {
    width: 120vw;
    left: -85%;
    bottom: -12%;
    opacity: 0.5;
  }
  .sua-ambient__orbits {
    opacity: 0.33;
  }
  .sua-ambient__glint:nth-of-type(n + 7),
  .sua-ambient__dot:nth-of-type(n + 11) {
    display: none;
  }
  .sua-ambient__glint {
    opacity: 0.12;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sua-ambient * {
    animation: none !important;
    will-change: auto;
  }
  .sua-ambient__glint,
  .sua-ambient__dot {
    opacity: 0.13;
  }
}
@media print {
  .sua-ambient {
    display: none;
  }
}
/* Continuous motion remains in the background, independent of pointer activity. */
.sua-ambient__wash {
  animation-duration: 18s;
  background: radial-gradient(ellipse, #efc3d955 0%, #f8e0ee50 30%, #fff0 67%);
}
.sua-ambient__wash--lower {
  animation-duration: 24s;
  background: radial-gradient(ellipse, #e2d1eb4d 0%, #f7dfeb3d 34%, #fff0 69%);
}
.sua-ambient__orbits {
  animation-duration: 18s;
}
.sua-ambient__orbit--trace {
  animation-duration: 32s;
  opacity: 0.28;
}
.sua-ambient__comet {
  fill: none;
  stroke: #bf7b9f;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 16 1184;
  opacity: 0.32;
  vector-effect: non-scaling-stroke;
  animation: sua-comet-flow 24s linear infinite;
}
.sua-ambient__dot {
  animation-duration: 12s;
}
@keyframes sua-comet-flow {
  from {
    stroke-dashoffset: 1200;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 767px) {
  .sua-ambient__comet {
    opacity: 0.23;
    stroke-width: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sua-ambient * {
    animation: none !important;
  }
}
