/* Signature interactions — cursor, progress, typo marks, micro-motion */

/* —— Scroll progress (fracture energy line) —— */
.site-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  z-index: calc(var(--z-header) + 2);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 43, 43, 0.75),
    rgba(255, 90, 90, 0.45)
  );
  box-shadow: 0 0 10px rgba(255, 43, 43, 0.25);
  pointer-events: none;
  opacity: 0.85;
  transform-origin: left center;
}

/* —— Custom cursor (desktop only) —— */
.site-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: -0.575rem 0 0 -0.575rem;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 247, 247, 0.92);
  background: rgba(247, 247, 247, 0.28);
  box-shadow:
    0 0 0 1px rgba(5, 5, 5, 0.55),
    0 0 12px rgba(247, 247, 247, 0.35),
    0 0 2px rgba(5, 5, 5, 0.8);
  pointer-events: none;
  z-index: calc(var(--z-overlay) + 20);
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(1);
  transition:
    width var(--motion-fast) var(--ease-physical),
    height var(--motion-fast) var(--ease-physical),
    margin var(--motion-fast) var(--ease-physical),
    background-color var(--motion-fast) var(--ease-physical),
    border-color var(--motion-fast) var(--ease-physical),
    box-shadow var(--motion-fast) var(--ease-physical),
    opacity var(--motion-base) var(--ease-out);
  mix-blend-mode: difference;
}

.site-cursor::after {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  border: 1px solid rgba(247, 247, 247, 0.35);
  opacity: 0.85;
  pointer-events: none;
}

.site-cursor__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.7rem);
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--motion-fast) var(--ease-out);
}

.site-cursor.is-visible {
  opacity: 1;
}

.site-cursor.is-hot {
  width: 3.25rem;
  height: 3.25rem;
  margin: -1.625rem 0 0 -1.625rem;
  background: rgba(255, 43, 43, 0.16);
  border-color: rgba(255, 70, 55, 0.9);
  box-shadow:
    0 0 0 1px rgba(5, 5, 5, 0.45),
    0 0 18px rgba(255, 43, 43, 0.45);
  mix-blend-mode: normal;
}

.site-cursor.is-hot::after {
  inset: -0.45rem;
  border-color: rgba(255, 43, 43, 0.4);
}

.site-cursor.is-hot .site-cursor__label {
  opacity: 0.95;
}

html.has-copsos-cursor,
html.has-copsos-cursor body {
  cursor: none;
}

html.has-copsos-cursor a,
html.has-copsos-cursor button,
html.has-copsos-cursor [data-cursor] {
  cursor: none;
}

/* Never hide system cursor while mobile menu is open */
html.menu-open.has-copsos-cursor,
html.menu-open.has-copsos-cursor body,
html.menu-open.has-copsos-cursor a,
html.menu-open.has-copsos-cursor button,
html.menu-open.has-copsos-cursor [data-cursor] {
  cursor: auto;
}

html.menu-open .mobile-menu a,
html.menu-open .mobile-menu button,
html.menu-open .menu-toggle {
  cursor: pointer;
}

@media (hover: none), (pointer: coarse) {
  .site-cursor {
    display: none !important;
  }

  html.has-copsos-cursor,
  html.has-copsos-cursor body,
  html.has-copsos-cursor a,
  html.has-copsos-cursor button {
    cursor: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cursor,
  .site-scroll-progress {
    display: none !important;
  }

  html.has-copsos-cursor,
  html.has-copsos-cursor body {
    cursor: auto;
  }
}

/* —— Typographic signature marks —— */
.copsos-mark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 247, 247, 0.08);
  white-space: nowrap;
}

.copsos-mark--crop {
  font-size: clamp(6rem, 22vw, 16rem);
  overflow: hidden;
  max-width: 42%;
  opacity: 0.55;
}

.copsos-mark--outline {
  font-size: clamp(4rem, 14vw, 10rem);
  opacity: 0.4;
}

.copsos-mark--vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.2em;
  -webkit-text-stroke: 1px rgba(247, 247, 247, 0.1);
  opacity: 0.5;
}

.copsos-mark--fragment {
  font-size: clamp(5rem, 18vw, 12rem);
  clip-path: inset(0 48% 35% 0);
  opacity: 0.35;
}

.page-home #artist .copsos-mark {
  right: -2%;
  bottom: 8%;
}

.page-home #music .copsos-mark {
  right: 0;
  top: 12%;
  opacity: 0.3;
}

.page-home #gallery .copsos-mark {
  left: -4%;
  bottom: 6%;
}

.page-home .booking-cta .copsos-mark {
  right: -6%;
  top: 18%;
  opacity: 0.28;
  -webkit-text-stroke: 1px rgba(255, 43, 43, 0.12);
}

@media (max-width: 767px) {
  .copsos-mark--crop,
  .copsos-mark--fragment {
    max-width: 55%;
    opacity: 0.22;
  }

  .page-home #music .copsos-mark,
  .page-home #gallery .copsos-mark {
    display: none;
  }
}
