/* ============================================================
   RÜM INDEX — Custom cursor (1820-inspired, RUM palette)
   ============================================================ */

:root {
  --rum-cursor-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --rum-cursor-ease: cubic-bezier(0.33, 1, 0.68, 1);
}

@media (pointer: fine) {
  body.rum-index-page.rum-cursor-active,
  body.rum-index-page.rum-cursor-active a,
  body.rum-index-page.rum-cursor-active button {
    cursor: none !important;
  }
}

.rum-cursor {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  color: var(--brand, #f6a868);
}

.rum-cursor__circle,
.rum-cursor__icon,
.rum-cursor__box {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.rum-cursor__circle {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  transition: transform 0.28s var(--rum-cursor-spring);
}

.rum-cursor__icon {
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    transform 0.28s var(--rum-cursor-spring),
    opacity 0.14s var(--rum-cursor-ease);
}

.rum-cursor__box {
  margin: -14px 0 0 18px;
}

.rum-cursor__box-wrap {
  clip-path: inset(50% 50% round 2px);
  transition: clip-path 0.16s var(--rum-cursor-ease);
  will-change: clip-path;
}

.rum-cursor__box-text {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(246, 168, 104, 0.35);
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(8px);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff8f0;
  white-space: nowrap;
}

.rum-cursor [data-rum-cursor="progress"] {
  transition:
    stroke-dashoffset 0.14s var(--rum-cursor-ease),
    transform 0.16s cubic-bezier(0.78, 0, 0.22, 1);
  transform-origin: center center;
}

body.rum-mouse-out .rum-cursor {
  opacity: 0;
}

body.rum-mouse-out .rum-cursor__circle,
body.rum-mouse-out .rum-cursor__icon {
  transform: scale(0.45);
}

body.rum-cursor-active:has(a:hover) .rum-cursor__circle,
body.rum-cursor-active:has(button:hover) .rum-cursor__circle,
body.rum-cursor-active:has([data-rum-cursor-expand]:hover) .rum-cursor__circle {
  transform: scale(1.55);
}

body.rum-cursor-active:has([data-rum-cursor-fill]:hover) .rum-cursor [data-rum-cursor="progress"] {
  stroke-dashoffset: 0;
  transform: rotate(90deg);
}

body.rum-cursor-active:has([data-rum-cursor-view]:hover) .rum-cursor__box-wrap {
  clip-path: inset(0% 0% round 0px);
}

body.rum-cursor-active:has([data-rum-cursor-play]:hover) .rum-cursor__icon {
  opacity: 1;
  transform: scale(1);
}

body.rum-cursor-active:has([data-rum-cursor-dot]:hover) .rum-cursor__circle {
  transform: scale(0);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .rum-cursor {
    display: none !important;
  }
}
