/* Content stays in normal flow throughout navigation and scrolling. */
@keyframes tn-arrive {
  from { opacity: .63; translate: 0 var(--tn-travel, 10px); }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes tn-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 190ms;
    animation-timing-function: ease-out;
  }

  .hero-copy h1, .detail-head h1, .guide > h1, .page-head h1, #startTitle {
    --tn-travel: 6px;
    animation: tn-arrive .32s cubic-bezier(.22,.68,.32,1);
  }
  :root:active-view-transition :is(.hero-copy h1,.detail-head h1,.guide > h1,.page-head h1,#startTitle) {
    animation: none;
  }
  .hero-kicker::before {
    transform-origin: left;
    animation: tn-draw .42s ease-out;
  }
  .tn-group[open] > .tn-panel, .catalog-process[open] > ol {
    --tn-travel: -4px;
    animation: tn-arrive .16s ease-out;
  }

  .tn-arrived {
    animation: tn-arrive .37s cubic-bezier(.22,.78,.34,1) backwards;
  }
  @media (min-width: 850px) {
    :is(.card-grid,.orders-spread,.example-grid,.buyer-choices) > .tn-arrived:nth-child(3n+2) {
      animation-delay: 45ms;
    }
    :is(.card-grid,.orders-spread,.example-grid,.buyer-choices) > .tn-arrived:nth-child(3n) {
      animation-delay: 85ms;
    }
  }
  .tn-arrived:focus-within, .tn-arrived:target { animation: none; }
  .tn-arrived:is(.section-head,.orders-heading) { --tn-travel: 6px; }

  @supports (animation-timeline: scroll()) {
    .tn-bar::after {
      content: "";
      position: absolute;
      pointer-events: none;
      inset-inline: 0;
      bottom: 0;
      height: 2px;
      background: var(--tn-copper, #f2c3a1);
      transform: scaleX(0);
      transform-origin: left center;
      animation: tn-draw linear both;
      animation-timeline: scroll(root block);
    }
    .tn-home .tn-bar::after { inset-inline: 24px; }
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}
