/* Valor Cloud — shared website atmosphere. Source: ValorCloud/brand.
   Decorative layer only: no change to content/controls, no assets or runtime dependency.
   Place an aria-hidden .valor-atmosphere with three spans behind content;
   .site-atmosphere is the existing valor.pro adapter. Host body needs isolation:isolate. */
:root[data-theme='valor'] {
  color-scheme: light;
  --valor-cloud-base: #f3f8fb;
  --valor-cloud-blue: rgb(26 141 207 / 28%);
  --valor-cloud-green: rgb(32 169 140 / 23%);
  --valor-cloud-gold: rgb(225 172 67 / 18%);
  --valor-cloud-mauve: rgb(162 135 194 / 12%);
  --valor-cloud-veil: rgb(255 255 255 / 42%);
}
:root[data-theme='valor'] body { isolation: isolate; background: var(--valor-cloud-base); }
:root[data-theme='light'] {
  --valor-cloud-base: #f3f8fb;
  --valor-cloud-blue: rgb(26 141 207 / 24%);
  --valor-cloud-green: rgb(32 169 140 / 19%);
  --valor-cloud-gold: rgb(225 172 67 / 15%);
  --valor-cloud-mauve: rgb(162 135 194 / 10%);
  --valor-cloud-veil: rgb(255 255 255 / 42%);
}
:root[data-theme='dark'] {
  --valor-cloud-base: #0d1b28;
  --valor-cloud-blue: rgb(38 171 240 / 30%);
  --valor-cloud-green: rgb(39 196 146 / 25%);
  --valor-cloud-gold: rgb(236 178 66 / 20%);
  --valor-cloud-mauve: rgb(162 135 194 / 16%);
  --valor-cloud-veil: rgb(255 255 255 / 4%);
}
:root:is([data-theme='dark'], [data-theme='light']) body { isolation: isolate; }
.valor-atmosphere { display: none; }
:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) {
  display: block; position: fixed; z-index: -1; inset: 0;
  overflow: hidden; pointer-events: none; contain: strict;
  background: var(--valor-cloud-base);
}
/* Broad, smooth colour falloff replaces fine contours and grain.
   No animated blur/filter or raster texture: gradients are painted once. */
html:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere)::before {
  content: ''; position: absolute; z-index: 1; inset: -10%;
  background: radial-gradient(ellipse at 72% 28%, var(--valor-cloud-mauve), transparent 68%),
    radial-gradient(ellipse at 32% 58%, var(--valor-cloud-veil), transparent 74%);
  -webkit-mask: none; mask: none; transform: none; animation: none;
}
:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere)::after { content: none; }
:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span {
  position: absolute; width: min(100vw, 1400px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--valor-cloud-blue), transparent 76%);
}
:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span:first-child { top: -32%; left: -24%; }
:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span:nth-child(2) {
  right: -24%; top: 2%; background: radial-gradient(ellipse, var(--valor-cloud-green), transparent 76%);
}
:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span:last-child {
  left: 12%; bottom: -45%; background: radial-gradient(ellipse, var(--valor-cloud-gold), transparent 76%);
}
@keyframes valor-cloud-drift {
  from { transform: translate3d(-12vw, 8vh, 0) scale(1); }
  to { transform: translate3d(12vw, -8vh, 0) scale(1.18); }
}
@keyframes valor-cloud-cross {
  from { transform: translate3d(10vw, -10vh, 0) scale(1.16); }
  to { transform: translate3d(-14vw, 6vh, 0) scale(1); }
}
@keyframes valor-cloud-rise {
  from { transform: translate3d(-8vw, 10vh, 0) scale(1); }
  to { transform: translate3d(16vw, -6vh, 0) scale(1.18); }
}
@media (prefers-reduced-motion: no-preference) {
  html:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span {
    animation: valor-cloud-drift 18s ease-in-out -4.5s infinite alternate both;
  }
  html:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span:nth-child(2) {
    animation-name: valor-cloud-cross; animation-duration: 24s; animation-delay: -9.6s;
  }
  html:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span:last-child {
    animation-name: valor-cloud-rise; animation-duration: 30s; animation-delay: -15s;
  }
}
html:is([data-theme='valor'], [data-theme='light'], [data-theme='dark'])[data-page-visibility='hidden'] :is(.valor-atmosphere, .site-atmosphere) > span { animation-play-state: paused; }
html:is([data-theme='valor'], [data-theme='light'], [data-theme='dark'])[data-motion='reduced'] :is(.valor-atmosphere, .site-atmosphere) > span { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html:is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span { animation: none; }
}
@media (max-width: 640px) {
  :is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) > span { width: 160vw; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  :is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) { display: none; }
}
@media print {
  :is([data-theme='valor'], [data-theme='light'], [data-theme='dark']) :is(.valor-atmosphere, .site-atmosphere) { display: none; }
}
