@media screen and (prefers-reduced-motion:no-preference) {
  .record-metrics [data-count-from] { position:relative; }
  .record-metrics .is-counting > :first-child { opacity:0; }
  .record-metrics .record-count-frame { position:absolute; inset:0; pointer-events:none; }

  .office-record, .office-service {
    --record-ease:cubic-bezier(.16,1,.3,1);
  }

  .record-line {
    display:inline-block;
    max-width:100%;
    vertical-align:top;
    overflow:clip;
    padding-bottom:.09em;
    margin-bottom:-.09em;
  }
  .record-line > span { display:block; }
  .record-in-view .record-line > span {
    animation:record-title-rise .95s var(--record-ease) backwards;
  }
  .record-in-view .record-line:last-child > span { animation-delay:.12s; }
  .record-head.record-in-view .record-lead,
  .office-service.record-in-view .office-service-copy {
    animation:record-copy-rise .8s .12s var(--record-ease) backwards;
  }

  .record-metrics li:nth-child(2) { --cell-lag:.1s; }
  .record-metrics li:nth-child(3) { --cell-lag:.2s; }
  .record-metrics li.record-in-view > span {
    animation:record-copy-rise .72s calc(.14s + var(--cell-lag,0s)) var(--record-ease) backwards;
  }

  .record-action b, .office-service .ink-link span {
    transition:transform .32s var(--record-ease);
  }
  .record-action:focus-visible b { transform:translate(3px,-3px); }
  .office-service .ink-link:focus-visible span { transform:translateX(5px); }
  @media(hover:hover) {
    .record-action:hover b { transform:translate(3px,-3px); }
    .office-service .ink-link:hover span { transform:translateX(5px); }
  }
  @media(max-width:560px) {
    .record-metrics li:nth-child(n) { --cell-lag:0s; }
  }
}

@keyframes record-title-rise {
  from { transform:translateY(105%) rotate(2deg); }
  to { transform:translateY(0) rotate(0deg); }
}
@keyframes record-copy-rise {
  from { opacity:.15; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}

@media print, (prefers-reduced-motion:reduce) {
  .record-count-frame { display:none; }
}
