/* ============================================================================
   Living 4K Editorial & Retina Vector Ambient Canvas (Storefront Only)
   ============================================================================ */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  background-color: var(--paper);
}

.ambient-canvas.is-paused,
.ambient-canvas.is-paused *,
body:has(dialog[open]) .ambient-canvas,
body:has(dialog[open]) .ambient-canvas * {
  animation-play-state: paused !important;
}

.ambient-bg-art {
  position: absolute;
  inset: -28px;
  background-image: url("../assets/site-bg.jpg?v=2");
  background-image: image-set(
    url("../assets/site-bg-1x.webp?v=2") 1x type("image/webp"),
    url("../assets/site-bg.webp?v=2") 2x type("image/webp"),
    url("../assets/site-bg.jpg?v=2") 1x type("image/jpeg")
  );
  background-size: cover;
  background-position: top center;
  transform: translate3d(var(--amb-px, 0px), var(--amb-py, 0px), 0);
  animation: amb-art-drift 26s ease-in-out infinite alternate;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.ambient-orb--coral {
  top: -14%;
  right: -8%;
  width: min(56vw, 760px);
  height: min(56vw, 760px);
  background: radial-gradient(
    circle,
    rgba(214, 108, 72, 0.12) 0%,
    rgba(214, 108, 72, 0.04) 42%,
    rgba(214, 108, 72, 0) 70%
  );
  animation: amb-orb-float-a 20s ease-in-out infinite alternate;
}

.ambient-orb--sage {
  bottom: -18%;
  left: -10%;
  width: min(52vw, 680px);
  height: min(52vw, 680px);
  background: radial-gradient(
    circle,
    rgba(47, 118, 86, 0.095) 0%,
    rgba(47, 118, 86, 0.03) 42%,
    rgba(47, 118, 86, 0) 72%
  );
  animation: amb-orb-float-b 26s ease-in-out infinite alternate;
}

.ambient-orb--amber {
  top: 24%;
  left: 34%;
  width: min(44vw, 580px);
  height: min(44vw, 580px);
  background: radial-gradient(
    circle,
    rgba(232, 162, 112, 0.09) 0%,
    rgba(232, 162, 112, 0.028) 44%,
    rgba(232, 162, 112, 0) 70%
  );
  animation: amb-orb-float-c 22s ease-in-out infinite alternate;
}

.ambient-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(var(--amb-px, 0px) * -0.55), calc(var(--amb-py, 0px) * -0.55), 0);
}

.ambient-orbit-svg path,
.ambient-orbit-svg circle {
  vector-effect: non-scaling-stroke;
}

.topo-contours { opacity: 0.92; }
.topo-line { stroke-width: 1; }
.topo-line--warm { stroke: rgba(186, 114, 80, 0.22); }
.topo-line--sage { stroke: rgba(47, 111, 82, 0.18); }

.orbit-crosshair path {
  stroke: rgba(168, 116, 86, 0.34);
  stroke-width: 1;
  stroke-linecap: square;
}

.orbit-silk-group {
  will-change: transform;
  animation: amb-silk-drift 16s ease-in-out infinite alternate;
}

.orbit-silk-wave {
  stroke: url(#amb-silk-grad);
  stroke-width: 1.25;
}

.orbit-silk-wave--alt {
  stroke-width: 0.95;
  opacity: 0.72;
}

.orbit-wheel { will-change: transform; }

.orbit-wheel--outer {
  transform-origin: 1160px 190px;
  animation: amb-spin-cw 92s linear infinite;
}

.orbit-wheel--inner {
  transform-origin: 1160px 190px;
  animation: amb-spin-ccw 62s linear infinite;
}

.orbit-ring-ticks {
  stroke: rgba(201, 112, 76, 0.28);
  stroke-width: 1.15;
  stroke-dasharray: 1.5 9.5;
}

.orbit-ring-solid {
  stroke: rgba(176, 134, 104, 0.22);
  stroke-width: 1;
}

.orbit-ring-inner {
  stroke: rgba(209, 115, 79, 0.26);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.orbit-beacon-ring {
  stroke: rgba(217, 119, 87, 0.42);
  stroke-width: 1;
  animation: amb-beacon-pulse 3.8s ease-in-out infinite alternate;
}

.orbit-beacon-ring--sage { stroke: rgba(47, 111, 82, 0.42); }

.orbit-beacon {
  opacity: 0.88;
  animation: amb-beacon-pulse 3.8s ease-in-out infinite alternate;
}

.orbit-route-base {
  stroke: rgba(182, 134, 102, 0.22);
  stroke-width: 1;
}

.orbit-route-pulse {
  stroke: url(#amb-pulse-grad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 260 1600;
  stroke-dashoffset: 1860;
  animation: amb-stream-flow 11s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.orbit-route-pulse--alt {
  stroke: url(#amb-pulse-sage);
  stroke-width: 1.75;
  stroke-dasharray: 220 1600;
  stroke-dashoffset: 1820;
  animation: amb-stream-flow 15s cubic-bezier(0.4, 0, 0.2, 1) 3.5s infinite;
}

.ambient-cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(214, 108, 72, 0.075) 0%,
    rgba(240, 168, 136, 0.028) 44%,
    rgba(250, 246, 240, 0) 70%
  );
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.5s ease;
}

@keyframes amb-art-drift {
  0% { transform: translate3d(var(--amb-px, 0px), var(--amb-py, 0px), 0); }
  100% { transform: translate3d(calc(var(--amb-px, 0px) - 16px), calc(var(--amb-py, 0px) + 12px), 0); }
}

@keyframes amb-silk-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-18px, 14px, 0); }
}

@keyframes amb-orb-float-a {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.78; }
  100% { transform: translate3d(-72px, 54px, 0) scale(1.14); opacity: 1; }
}

@keyframes amb-orb-float-b {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.74; }
  100% { transform: translate3d(84px, -60px, 0) scale(1.16); opacity: 1; }
}

@keyframes amb-orb-float-c {
  0% { transform: translate3d(-30px, -18px, 0) scale(0.95); opacity: 0.58; }
  100% { transform: translate3d(46px, 34px, 0) scale(1.12); opacity: 0.92; }
}

@keyframes amb-spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes amb-spin-ccw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes amb-beacon-pulse {
  0% { opacity: 0.42; }
  100% { opacity: 0.98; }
}

@keyframes amb-stream-flow {
  0% { stroke-dashoffset: 1860; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -260; opacity: 0; }
}
