@media (hover:hover) and (pointer:fine) {
  html.has-quilia-cursor,
  html.has-quilia-cursor body,
  html.has-quilia-cursor body *,
  html.has-quilia-cursor body *::before,
  html.has-quilia-cursor body *::after,
  html.has-quilia-cursor :is(a,button,input,textarea,select,[role="button"],[data-open-ai],[data-header-nav] .brx-submenu-toggle) {
    cursor:none!important;
  }

  .quilia-cursor {
    position:fixed;
    z-index:2147483647;
    top:0;
    left:0;
    width:7px;
    height:7px;
    margin:-3.5px 0 0 -3.5px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 0 5px 1px rgba(255,255,255,.95),0 0 16px 5px rgba(180,224,255,.42);
    opacity:0;
    pointer-events:none;
    mix-blend-mode:screen;
    will-change:transform,opacity;
    transition:opacity .22s ease,background-color .28s ease,box-shadow .28s ease;
  }

  .quilia-cursor::before,
  .quilia-cursor::after {
    position:absolute;
    top:50%;
    left:50%;
    border-radius:50%;
    content:"";
    pointer-events:none;
  }

  .quilia-cursor::before {
    width:64px;
    height:64px;
    background:radial-gradient(circle,rgba(232,247,255,.18) 0,rgba(125,205,238,.09) 26%,rgba(85,94,214,.035) 50%,transparent 72%);
    transform:translate(-50%,-50%);
    filter:blur(2px);
    transition:width .35s cubic-bezier(.16,1,.3,1),height .35s cubic-bezier(.16,1,.3,1),opacity .25s ease;
  }

  .quilia-cursor::after {
    width:26px;
    height:26px;
    border:1px solid rgba(220,242,255,.26);
    transform:translate(-50%,-50%) scale(.35);
    opacity:0;
    transition:transform .35s cubic-bezier(.16,1,.3,1),opacity .25s ease,border-color .28s ease,box-shadow .28s ease;
  }

  .quilia-cursor.is-visible { opacity:1; }
  .quilia-cursor.is-interactive {
    background:#f8fdff;
    box-shadow:0 0 8px 2px #fff,0 0 20px 6px rgba(154,215,244,.58);
  }
  .quilia-cursor.is-interactive::before { width:74px;height:74px;opacity:1; }
  .quilia-cursor.is-interactive::after {
    border-color:rgba(220,242,255,.52);
    box-shadow:inset 0 0 10px rgba(175,225,248,.1),0 0 12px rgba(127,199,232,.14);
    transform:translate(-50%,-50%) scale(1);
    opacity:1;
  }
  .quilia-cursor.is-header-nav {
    box-shadow:0 0 8px 2px #fff,0 0 24px 8px rgba(145,214,246,.66);
  }
  .quilia-cursor.is-header-nav::after {
    border-color:rgba(226,247,255,.7);
    box-shadow:inset 0 0 12px rgba(175,225,248,.14),0 0 16px rgba(127,199,232,.2);
  }
  .quilia-cursor.is-pressed::after { transform:translate(-50%,-50%) scale(.72); }

  #brx-header [data-header-nav] :is(a,.brx-submenu-toggle) {
    opacity:.64;
    text-shadow:0 0 0 transparent;
    transition:opacity .32s ease,color .32s ease,text-shadow .38s ease;
  }

  #brx-header [data-header-nav] a[aria-current="page"] { opacity:.82; }

  #brx-header [data-header-nav] :is(a,.brx-submenu-toggle):is(:hover,:focus-visible,:focus-within) {
    opacity:1;
    text-decoration:none;
    text-shadow:0 0 12px rgba(205,238,255,.3),0 0 28px rgba(115,193,231,.16);
  }
}

@media (prefers-reduced-motion:reduce) {
  .quilia-cursor,
  .quilia-cursor::before,
  .quilia-cursor::after { transition:none!important; }
}
