/* ===========================================================================
   ARC — A Random Web · Hero motion layer  (websites.html ONLY)
   ---------------------------------------------------------------------------
   Decorative <canvas> that brings the orange particle dunes of the hero art to
   life. Pairs with assets/js/arc-hero-effects.js. Loaded after
   websites-scroll.css.

   The canvas is a CHILD of .arc-hero, so it inherits the GSAP scroll
   compression (scale + border-radius) and stays glued to the image. It sits at
   z-index 2 — above the readability overlay (.arc-hero::after, z-index 1) so
   the warm motion stays vivid, but BELOW the content (.arc-hero__inner,
   z-index 3). It never captures pointer events.

   Stacking inside .arc-hero (isolation: isolate):
     image 0 · readability overlay 1 · MOTION CANVAS 2 · content 3
   ========================================================================= */

.arc-hero__fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;          /* never block clicks / links / the CTA */
  /* Match the hero's compression corner so the canvas edge stays clean while
     the hero rounds into a card. JS keeps this in sync with the GSAP value. */
  border-radius: inherit;
  /* The canvas only paints the warm regions (transparent elsewhere), so it
     blends straight onto the photo without a box. */
  opacity: 0;                    /* JS fades it in on the loader hand-off */
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}
.arc-hero__fx.is-live { opacity: 1; }

/* Reduced motion: never show the canvas at all (JS also bails before creating
   it; this is a belt-and-braces guard). The original image stays as-is. */
@media (prefers-reduced-motion: reduce) {
  .arc-hero__fx { display: none !important; }
}

/* ---------------------------------------------------------------------------
   DEV-ONLY proposal switcher. Rendered by the JS ONLY when the URL contains
   ?heroDev=1 (or any ?heroEffect=…). It is never present in a normal
   production load, satisfying "no visible test controls in production".
   ------------------------------------------------------------------------- */
.arc-fx-dev {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2147482000;           /* under the loader, above the page */
  display: flex;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.arc-fx-dev__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 999px;
  background: transparent;
  color: rgba(237, 238, 242, 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease;
}
.arc-fx-dev__btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.arc-fx-dev__btn.is-active {
  background: #D43828;
  color: #fff;
}
.arc-fx-dev__label {
  align-self: center;
  padding: 0 8px 0 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 238, 242, 0.4);
}
