/* Motion is an enhancement. All editorial content remains visible at rest. */
#datarc-reading-progress {
  display: none;
}

@media screen and (prefers-reduced-motion: no-preference) {
  .datarc-motion-ready #datarc-reading-progress {
    display: block;
    position: fixed;
    z-index: 31;
    inset: var(--mast-top) 0 auto;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, #174bd2 0%, #4479e3 73%, #75b4c0 91%, #bad765 100%);
    transform: scaleX(var(--datarc-reading, 0));
    transform-origin: left;
  }

  @supports (animation-timeline: scroll(root block)) {
    .datarc-motion-ready #datarc-reading-progress {
      animation: datarc-read linear both;
      animation-timeline: scroll(root block);
    }
  }

  @keyframes datarc-read {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  .datarc-motion-ready :is(.opening, .sub-hero) {
    position: relative;
    isolation: isolate;
  }

  .datarc-motion-ready :is(.opening, .sub-hero)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
      radial-gradient(ellipse, rgb(116 162 236 / 15%), transparent 65%),
      radial-gradient(ellipse, rgb(188 215 130 / 12%), transparent 63%);
    background-size: 58% 120%, 42% 96%;
    background-repeat: no-repeat;
    background-position: 92% 58%, 111% 15%;
    animation: datarc-polar-light 1.6s cubic-bezier(.21, .72, .21, 1) backwards;
  }

  @keyframes datarc-polar-light {
    from { opacity: .2; background-position: 68% 75%, 96% 35%; }
    to { opacity: 1; background-position: 92% 58%, 111% 15%; }
  }

  .datarc-motion-ready :is(.opening, .sub-hero) h1 {
    animation: datarc-title .74s cubic-bezier(.18, .74, .19, 1) backwards;
  }

  @keyframes datarc-title {
    from { opacity: .36; clip-path: inset(0 0 48% 0); transform: translateY(.15em); }
    to { opacity: 1; clip-path: inset(-.14em); transform: translateY(0); }
  }

  .datarc-motion-ready :is(.opening-copy, .sub-hero .sub-lead, .sub-hero .sub-actions,
                            .sub-hero .sub-index, .sub-hero .sub-chain) {
    animation: datarc-arrive .65s cubic-bezier(.16, .76, .2, 1) .085s backwards;
  }

  .datarc-motion-ready .brand-spark {
    animation: datarc-star .85s cubic-bezier(.18, .68, .22, 1) backwards;
  }

  @keyframes datarc-star {
    from { transform: rotate(-50deg) scale(.65); }
    to { transform: rotate(0) scale(1); }
  }

  .datarc-motion-ready .datarc-arriving {
    animation: datarc-arrive .6s cubic-bezier(.16, .76, .2, 1) backwards;
  }

  .datarc-motion-ready :is(.sub-columns, .choice-grid, .trust-logos, .home-models) > .datarc-arriving:nth-child(2) {
    animation-delay: .065s;
  }
  .datarc-motion-ready :is(.sub-columns, .trust-logos) > .datarc-arriving:nth-child(n+3) {
    animation-delay: .13s;
  }

  @keyframes datarc-arrive {
    from { opacity: .52; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .datarc-motion-ready .btn:not(#demo *) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .2s ease;
  }
  .datarc-motion-ready .btn:not(#demo *)::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 20%, rgb(255 255 255 / 6%) 36%, rgb(255 255 255 / 33%) 48%, transparent 64%);
    transform: translateX(-115%);
  }
  .datarc-motion-ready .btn-plain:not(#demo *)::after {
    background: linear-gradient(110deg, transparent 24%, rgb(71 118 209 / 13%) 48%, transparent 68%);
  }
  .datarc-motion-ready .btn:not(#demo *):focus-visible::after {
    animation: datarc-pill-glint .57s ease-out;
  }
  @media (hover: hover) and (pointer: fine) {
    .datarc-motion-ready .btn:not(#demo *):hover::after {
      animation: datarc-pill-glint .57s ease-out;
    }
    .datarc-motion-ready .btn:not(#demo *):hover {
      box-shadow: 0 3px 10px rgb(23 54 106 / 12%);
    }
  }

  @keyframes datarc-pill-glint {
    from { transform: translateX(-115%); }
    to { transform: translateX(115%); }
  }
}

@media print {
  #datarc-reading-progress { display: none !important; }
}
