@media (prefers-reduced-motion: no-preference) {
  [data-bit="float"].bit-in-view {
    animation: bit-float .72s cubic-bezier(.2,.72,.3,1) both;
  }

  [data-bit="list"].bit-in-view li {
    animation: bit-list .55s cubic-bezier(.2,.72,.3,1) both;
  }

  [data-bit="list"].bit-in-view li:nth-child(2) { animation-delay: .1s; }
  [data-bit="list"].bit-in-view li:nth-child(3) { animation-delay: .2s; }

  [data-bit="shimmer"].bit-in-view {
    background: linear-gradient(110deg, var(--ink) 35%, #567998 50%, var(--ink) 65%) 100% 0 / 240% 100%;
    background-clip: text;
    color: transparent;
    animation: bit-shimmer 1.45s ease-out both;
  }

  [data-bit="scan"].bit-in-view::after {
    content: "";
    position: absolute;
    inset: .3rem;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 42%, #d0eaff58 49%, #e5f5ffb0 50%, transparent 51%) center / 100% 240%;
    animation: bit-scan 1.15s ease-out both;
  }

  [data-bit="edge"] {
    border: 1px solid #b7c6cd;
    transition: border-color .25s, box-shadow .25s;
  }

  [data-bit="edge"]:is(:hover,:focus-within,[open],:has(details[open])) {
    border-color: #7f9db2;
    box-shadow: inset 0 0 0 1px #acc9dc78, 0 0 0 3px #9ebbd43b;
  }

  [data-bit="focus"] details[open] summary {
    box-shadow: inset 3px 0 #426482;
    background: #edf3f7;
    border-radius: .4rem;
  }

  [data-bit="focus"] details[open] summary > span:nth-child(2) {
    animation: bit-focus .32s ease-out both;
  }

  .bit-spark {
    position: fixed;
    inset: auto;
    z-index: 4;
    pointer-events: none;
    color: #b99464;
  }

  .bit-spark i {
    position: absolute;
    width: .53rem;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform-origin: left center;
    animation: bit-ray .44s ease-out both;
  }

  @media (hover: hover) and (pointer: fine) {
    [data-bit="spotlight"], [data-bit="dots"], [data-bit="glare"] { position: relative; }

    [data-bit="spotlight"]::after,
    [data-bit="dots"]::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s;
    }

    [data-bit="spotlight"]::after {
      background: radial-gradient(10rem circle at var(--bit-x,50%) var(--bit-y,50%), #89abc338, transparent);
    }

    [data-bit="dots"]::after {
      background: radial-gradient(circle, #597d9b9c 1px, transparent 1.4px) 0 0 / .62rem .62rem;
      mask-image: radial-gradient(6.5rem circle at var(--bit-x,50%) var(--bit-y,50%), #000, transparent);
    }

    :is([data-bit="spotlight"],[data-bit="dots"]):is(:hover,:focus-visible)::after { opacity: 1; }

    [data-bit="glare"]::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      background: linear-gradient(112deg, transparent 29%, #fff0 38%, #fff3 49%, #fff0 61%);
      background-size: 250% 100%;
      background-position: 100% 0;
      opacity: 0;
      transition: opacity .25s, background-position .7s cubic-bezier(.24,.7,.3,1);
    }

    [data-bit="glare"]:hover::after { opacity: 1; background-position: 0 0; }

    [data-bit="tilt"] img {
      transform: perspective(68rem) rotateX(var(--bit-ry,0deg)) rotateY(var(--bit-rx,0deg));
      transition: transform .25s ease-out;
    }

    [data-bit="crosshair"]::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      pointer-events: none;
      opacity: 0;
      transition: opacity .25s;
      background:
        linear-gradient(#f6fbff8c,#f6fbff8c) var(--bit-x,50%) var(--bit-y,50%) / 1px 3rem no-repeat,
        linear-gradient(#f6fbff8c,#f6fbff8c) var(--bit-x,50%) var(--bit-y,50%) / 3rem 1px no-repeat;
    }

    [data-bit="crosshair"]:hover::after { opacity: 1; }

    [data-bit="magnet"] .service-icon {
      transform: translate(var(--bit-dx,0),var(--bit-dy,0));
      transition: transform .22s ease-out;
    }

    [data-bit="bounce"]:hover .service-icon { animation: bit-bounce .52s ease-out both; }

    [data-bit="chroma"] .service-icon {
      transition: color .25s, background .25s;
    }

    [data-bit="chroma"]:hover .service-icon { background: #456887; color: #fff; }
    [data-bit="chroma"]:nth-child(2):hover .service-icon { background: #4e7168; }
    [data-bit="chroma"]:nth-child(3):hover .service-icon { background: #806546; }
  }
}

@media (forced-colors: active) {
  [data-bit="shimmer"].bit-in-view { color: CanvasText; background: none; }
  [data-bit]::after, .bit-spark { display: none; }
}

@keyframes bit-float {
  from { transform: translateY(.8rem); }
  to { transform: none; }
}

@keyframes bit-list {
  from { transform: translateX(-.5rem); filter: blur(2px); }
  to { transform: none; filter: none; }
}

@keyframes bit-shimmer { to { background-position: 0 0; color: var(--ink); } }
@keyframes bit-scan {
  from { background-position: center 100%; }
  75% { opacity: 1; }
  to { background-position: center 0; opacity: 0; }
}

@keyframes bit-focus {
  from { transform: translateX(-.2rem); }
  to { transform: none; }
}

@keyframes bit-ray {
  from { transform: rotate(var(--bit-angle)) translateX(.3rem); opacity: 1; }
  to { transform: rotate(var(--bit-angle)) translateX(1.15rem) scaleX(.25); opacity: 0; }
}

@keyframes bit-bounce {
  35% { transform: translateY(-.26rem) rotate(-7deg); }
  65% { transform: translateY(.06rem) rotate(3deg); }
  to { transform: none; }
}
