/* Keep the existing Unicorn animation, mapping its tones to wine/crimson (#5A0F1A).
   Midtones map to #5A0F1A; shadows and highlights retain the gradient. */
.background[data-us-project] {
  background: radial-gradient(ellipse at 50% 35%, #a44250 0%, #5a0f1a 50%, #160406 100%);
  pointer-events: none;
  contain: strict;
}

.background[data-us-project] canvas {
  filter: url("#plum-background");
  opacity: 0;
  transition: opacity 0.9s ease;
}

/* runtime.js adds .is-ready after the scene's first frame, so the texture
   crossfades in over the gradient instead of popping in. */
.background[data-us-project].is-ready canvas {
  opacity: 1;
}

@media (max-width: 600px) {
  [data-portfolio-clone] {
    display: none;
  }
}

.clipping-text,
.clipping-text * {
  background-image: linear-gradient(#5A0F1A, #5A0F1A) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.color-blue,
.btn-b.color-blue,
.btn-s.color-blue,
.svc-num {
  color: #5A0F1A !important;
}

.nav-tag.color-blue,
label .color-blue {
  color: #FFFFFF !important;
}

/* Mobile Safari ignores SVG filters on canvas, so on touch devices recolour the
   animated scene with CSS it does support: greyscale it, then multiply a plum
   tint over it, matching the desktop filter's midtones (#5a0f1a at 50% grey). */
@media (pointer: coarse) {
  .background[data-us-project] canvas {
    filter: grayscale(1);
  }

  .background[data-us-project]:has(canvas)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #b41e34;
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.9s ease;
  }

  .background[data-us-project].is-ready::after {
    opacity: 1;
  }
}
