/* Custom cursor (desktop only) */
.cad-cursor {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-neutral);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 150ms ease;
  will-change: transform;
}

@media (pointer: coarse) {
  .cad-cursor {
    display: none;
  }
}

.cad-page {
  position: relative;
  min-height: 100vh;
  color: var(--color-ink);
}

.relative {
  position: relative;
}

/* Soft ambient orb — thisaivi-style diffused glow behind logo (top-left) */
.cad-ambient {
  pointer-events: none;
  position: absolute;
  top: -8rem;
  left: -6rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 38% 32%,
      color-mix(in srgb, var(--color-primary) 32%, transparent) 0%,
      color-mix(in srgb, #8b7cf8 18%, transparent) 42%,
      transparent 72%
    );
  filter: blur(88px);
  opacity: 0.95;
  z-index: 0;
  animation: cad-ambient-float 6s ease-in-out infinite alternate;
}

@keyframes cad-ambient-float {
  from { transform: translateY(0); }
  to { transform: translateY(16px); }
}

@media (prefers-reduced-motion: reduce) {
  .cad-ambient {
    animation: none;
  }
}

/* Section shell spacing closer to thisaivi rhythm */
.cad-shell {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.cad-main {
  padding-top: 2.5rem;
  padding-bottom: 6rem;
}

/* Elementor canvas pages — no theme shell cap on main */
.cad-main--elementor {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: clip;
}

.cad-main--elementor > .elementor {
  width: 100%;
  max-width: 100%;
}

.cad-page:has(.cad-main--elementor) > .relative {
  overflow-x: clip;
}
