/* Desktop pointer only. A route dot that takes on a word over the parts of the
   page that can be driven, switched or submitted. */

.cur {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  display: none;
  place-items: center;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  mix-blend-mode: normal;
  will-change: transform;
  transition: width .32s var(--ease-brake), height .32s var(--ease-brake),
              background-color .3s linear, opacity .25s linear;
}
.cur span { opacity: 0; transition: opacity .18s linear; }
.cur.is-word {
  width: 74px; height: 74px;
  background: var(--accent);
  box-shadow: 0 14px 30px -14px rgba(7, 91, 120, .8);
}
.cur.is-word span { opacity: 1; }
.cur.is-hidden { opacity: 0; }

.cur__ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 89;
  pointer-events: none;
  display: none;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(21, 32, 38, .3);
  will-change: transform;
  transition: opacity .25s linear;
}
.cur__ring.is-hidden { opacity: 0; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-cursor { cursor: none; }
  html.has-cursor a, html.has-cursor button,
  html.has-cursor input, html.has-cursor select, html.has-cursor label { cursor: none; }
  .cur, .cur__ring { display: grid; }
}
