/* Bridges: in a cutaway of the jaw, the anchor teeth glow in turn, a false tooth (no root) lowers into the gap onto
   the gum ridge, its connectors slide out into the anchors and lock (a ping each, the glow flashing once more), then a
   gloss crosses all three crowns and sparkles twinkle.
   One 7.5 s loop: glow 3 to 15%, false tooth 16 to 32%, connectors 34 to 43% with their pings 41 to 52%, gloss 52
   to 62%, sparkles 58 to 70%, hold to 92% (1.65 s), reset 92 to 100% (the false tooth fades, then tucks its
   connectors back in). The unanimated styles are the finished state. */
.anim--bridges { --br-d: 7.5s; --br-out: cubic-bezier(.22, 1, .36, 1); --br-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--bridges .br-pontic,
.anim--bridges .br-link,
.anim--bridges .br-gloss,
.anim--bridges .br-ping,
.anim--bridges .br-spark { transform-box: fill-box; transform-origin: center; }

/* The glow only fades (it carries the tooth's transform attribute, so it takes no transform-origin). */
html.motion .anim--bridges.is-playing .br-halo--l { animation: bridges-halo-l var(--br-d) var(--br-out) infinite both; }
html.motion .anim--bridges.is-playing .br-halo--r { animation: bridges-halo-r var(--br-d) var(--br-out) infinite both; }
html.motion .anim--bridges.is-playing .br-pontic { animation: bridges-pontic var(--br-d) var(--br-io) infinite both; }
html.motion .anim--bridges.is-playing .br-link--l { animation: bridges-link-l var(--br-d) var(--br-io) infinite both; }
html.motion .anim--bridges.is-playing .br-link--r { animation: bridges-link-r var(--br-d) var(--br-io) infinite both; }
html.motion .anim--bridges.is-playing .br-ping--l { animation: bridges-ping-l var(--br-d) var(--br-out) infinite both; }
html.motion .anim--bridges.is-playing .br-ping--r { animation: bridges-ping-r var(--br-d) var(--br-out) infinite both; }
html.motion .anim--bridges.is-playing .br-gloss { animation: bridges-gloss var(--br-d) var(--br-io) infinite both; }
html.motion .anim--bridges.is-playing .br-spark--1 { animation: bridges-spark1 var(--br-d) var(--br-out) infinite both; }
html.motion .anim--bridges.is-playing .br-spark--2 { animation: bridges-spark2 var(--br-d) var(--br-out) infinite both; }
html.motion .anim--bridges.is-playing .br-spark--3 { animation: bridges-spark3 var(--br-d) var(--br-out) infinite both; }

/* Each anchor glows, settles to a faint hold while the false tooth comes in, flashes as its connector locks, then
   fades. */
@keyframes bridges-halo-l {
  0%, 3%    { opacity: 0; }
  7%        { opacity: .55; }
  13%, 39%  { opacity: .22; }
  42%       { opacity: .6; }
  52%, 100% { opacity: 0; }
}
@keyframes bridges-halo-r {
  0%, 6%    { opacity: 0; }
  10%       { opacity: .55; }
  16%, 41%  { opacity: .22; }
  44%       { opacity: .6; }
  54%, 100% { opacity: 0; }
}
@keyframes bridges-pontic {
  0%, 16%  { opacity: 0; transform: translateY(-44px); }
  19%      { opacity: 1; transform: translateY(-36px); }
  32%, 92% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  97%, 100% { opacity: 0; transform: translateY(0); }
}
/* The connectors start tucked behind the false tooth and slide out, the right one a beat after the left. */
@keyframes bridges-link-l {
  0%, 34%   { transform: translateX(18px); }
  41%, 97%  { transform: translateX(0); }
  100%      { transform: translateX(18px); }
}
@keyframes bridges-link-r {
  0%, 36%   { transform: translateX(-18px); }
  43%, 97%  { transform: translateX(0); }
  100%      { transform: translateX(-18px); }
}
@keyframes bridges-ping-l {
  0%, 40.5% { opacity: 0; transform: scale(.8); }
  42%       { opacity: .9; transform: scale(1); }
  51%, 100% { opacity: 0; transform: scale(2.3); }
}
@keyframes bridges-ping-r {
  0%, 42.5% { opacity: 0; transform: scale(.8); }
  44%       { opacity: .9; transform: scale(1); }
  53%, 100% { opacity: 0; transform: scale(2.3); }
}
@keyframes bridges-gloss {
  0%, 52%   { transform: translateX(-240px); }
  62%, 100% { transform: translateX(0); }
}
@keyframes bridges-spark1 {
  0%, 58%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  63%      { opacity: 1; transform: scale(1.15) rotate(0); }
  67%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes bridges-spark2 {
  0%, 61%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  66%      { opacity: 1; transform: scale(1.2) rotate(0); }
  70%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes bridges-spark3 {
  0%, 59.5% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  64.5%     { opacity: 1; transform: scale(1.2) rotate(0); }
  68.5%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--bridges * { animation: none !important; }
}
/* Checkups and exams: lens glides over three teeth, each sharpens, then a check badge.
   One 8 s loop: lens enters 0 to 14%, dwells and moves tooth to tooth to 48%, badge and check 50 to 70%,
   hold 70 to 90% (1.6 s), soft reset 90 to 100%. The unanimated styles are the finished state. */
.anim--checkups-and-exams { --ck-d: 8s; --ck-out: cubic-bezier(.22, 1, .36, 1); --ck-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--checkups-and-exams .ck-tick { transform-box: fill-box; transform-origin: center; }
.anim--checkups-and-exams .ck-badge,
.anim--checkups-and-exams .ck-ring,
.anim--checkups-and-exams .ck-spark { transform-box: fill-box; transform-origin: center; }
.anim--checkups-and-exams .ck-check { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
/* The magnifier: the lens translates by d; inside it, the magnified copy sits in a group scaled 1.45 about the lens
   centre (an attribute in the markup) and translates by -d in that group's units, which keeps it centred under the
   lens at every frame. The handle swings about the lens centre (174, 118), in view box coordinates. */
.anim--checkups-and-exams .ck-lens,
.anim--checkups-and-exams .ck-mag { transform-box: fill-box; transform-origin: center; }
.anim--checkups-and-exams .ck-handle { transform-box: view-box; transform-origin: 174px 118px; }

html.motion .anim--checkups-and-exams.is-playing .ck-lens { animation: checkups-and-exams-move var(--ck-d) var(--ck-io) infinite both, checkups-and-exams-fade var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-mag { animation: checkups-and-exams-mag var(--ck-d) var(--ck-io) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-handle { animation: checkups-and-exams-sway var(--ck-d) var(--ck-io) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-soft--1 { animation: checkups-and-exams-soft1 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-soft--2 { animation: checkups-and-exams-soft2 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-soft--3 { animation: checkups-and-exams-soft3 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-crisp--1 { animation: checkups-and-exams-crisp1 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-crisp--2 { animation: checkups-and-exams-crisp2 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-crisp--3 { animation: checkups-and-exams-crisp3 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-tick--1 { animation: checkups-and-exams-tick1 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-tick--2 { animation: checkups-and-exams-tick2 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-tick--3 { animation: checkups-and-exams-tick3 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-badge { animation: checkups-and-exams-badge var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-check { animation: checkups-and-exams-check var(--ck-d) var(--ck-io) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-ring { animation: checkups-and-exams-ring var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-spark--1 { animation: checkups-and-exams-spark1 var(--ck-d) var(--ck-out) infinite both; }
html.motion .anim--checkups-and-exams.is-playing .ck-spark--2 { animation: checkups-and-exams-spark2 var(--ck-d) var(--ck-out) infinite both; }

@keyframes checkups-and-exams-move {
  0%       { transform: translateX(-138px); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  14%, 20% { transform: translateX(-108px); }
  32%, 36% { transform: translateX(-54px); }
  48%, 90% { transform: translateX(0); }
  97%      { transform: translateX(18px); }
  100%     { transform: translateX(-138px); }
}
@keyframes checkups-and-exams-mag {
  0%       { transform: translateX(138px); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  14%, 20% { transform: translateX(108px); }
  32%, 36% { transform: translateX(54px); }
  48%, 90% { transform: translateX(0); }
  97%      { transform: translateX(-18px); }
  100%     { transform: translateX(138px); }
}
@keyframes checkups-and-exams-fade {
  0%       { opacity: 0; }
  8%, 90%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes checkups-and-exams-sway {
  0%       { transform: rotate(9deg); }
  14%      { transform: rotate(-3deg); }
  18%, 20% { transform: rotate(0); }
  26%      { transform: rotate(7deg); }
  32%      { transform: rotate(-2.5deg); }
  35%, 36% { transform: rotate(0); }
  42%      { transform: rotate(7deg); }
  48%      { transform: rotate(-2.5deg); }
  53%, 100% { transform: rotate(0); }
}
@keyframes checkups-and-exams-soft1 { 0%, 11% { opacity: 1; } 19%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes checkups-and-exams-soft2 { 0%, 27% { opacity: 1; } 35%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes checkups-and-exams-soft3 { 0%, 43% { opacity: 1; } 51%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes checkups-and-exams-crisp1 { 0%, 11% { opacity: 0; } 19%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes checkups-and-exams-crisp2 { 0%, 27% { opacity: 0; } 35%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes checkups-and-exams-crisp3 { 0%, 43% { opacity: 0; } 51%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes checkups-and-exams-tick1 {
  0%, 14% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  19%     { opacity: 1; transform: scale(1) rotate(0); }
  26%, 100% { opacity: 0; transform: scale(.5) rotate(30deg); }
}
@keyframes checkups-and-exams-tick2 {
  0%, 30% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  35%     { opacity: 1; transform: scale(1) rotate(0); }
  42%, 100% { opacity: 0; transform: scale(.5) rotate(30deg); }
}
@keyframes checkups-and-exams-tick3 {
  0%, 46% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  51%     { opacity: 1; transform: scale(1) rotate(0); }
  58%, 100% { opacity: 0; transform: scale(.5) rotate(30deg); }
}
@keyframes checkups-and-exams-badge {
  0%, 50% { opacity: 0; transform: scale(.5); }
  55%     { opacity: 1; transform: scale(1.06); }
  59%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.8); }
}
@keyframes checkups-and-exams-check {
  0%, 55% { stroke-dashoffset: 1.01; }
  63%, 95% { stroke-dashoffset: 0; }
  96%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes checkups-and-exams-ring {
  0%, 57% { opacity: 0; transform: scale(.8); }
  59%     { opacity: .9; transform: scale(.8); }
  72%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes checkups-and-exams-spark1 {
  0%, 61% { opacity: 0; transform: scale(.3) rotate(-40deg); }
  66%     { opacity: 1; transform: scale(1.15) rotate(0); }
  70%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes checkups-and-exams-spark2 {
  0%, 64% { opacity: 0; transform: scale(.3) rotate(-40deg); }
  69%     { opacity: 1; transform: scale(1.2) rotate(0); }
  73%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--checkups-and-exams * { animation: none !important; }
}
/* Cleanings: the polisher swings in, sweeps the crown on its arc and flicks the plaque specks off one by one,
   leaving a polished trail; it parks beside the tooth, a gloss streak crosses the enamel and sparkles twinkle.
   One 7.5 s loop: swing in 0 to 8%, sweep 8 to 48% (foam bubbles rise off the cup meanwhile), park 48 to 58%,
   gloss 54 to 66%, sparkles 60 to 76%, hold to 92%, reset 92 to 100% (specks return one by one, in step with
   their delays). The unanimated styles are the finished state. */
.anim--cleanings { --cl-d: 7.5s; --cl-out: cubic-bezier(.22, 1, .36, 1); --cl-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
/* The polisher rotates about its pivot above the canvas (120, -122), in view box coordinates; a negative angle swings
   the cup to the right. Its rest angle, -21deg, is an attribute on its wrapper, so these angles are relative to it. */
.anim--cleanings .cl-polisher { transform-box: view-box; transform-origin: 120px -122px; }
.anim--cleanings .cl-spin { transform-box: fill-box; transform-origin: center; }
.anim--cleanings .cl-trail { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.anim--cleanings .cl-gloss { transform-box: fill-box; transform-origin: center; }
.anim--cleanings .cl-speck { transform-box: fill-box; transform-origin: center; }
.anim--cleanings .cl-spark { transform-box: fill-box; transform-origin: center; }
.anim--cleanings .cl-bubble { transform-box: fill-box; transform-origin: center; }

html.motion .anim--cleanings.is-playing .cl-polisher { animation: cleanings-swing var(--cl-d) var(--cl-io) infinite both, cleanings-fade var(--cl-d) var(--cl-out) infinite both; }
html.motion .anim--cleanings.is-playing .cl-spin { animation: cleanings-spin var(--cl-d) linear infinite both; }
html.motion .anim--cleanings.is-playing .cl-trail { animation: cleanings-trail var(--cl-d) var(--cl-io) infinite both, cleanings-trail-fade var(--cl-d) var(--cl-out) infinite both; }
html.motion .anim--cleanings.is-playing .cl-gloss { animation: cleanings-gloss var(--cl-d) var(--cl-io) infinite both; }
html.motion .anim--cleanings.is-playing .cl-speck { animation: cleanings-speck var(--cl-d) var(--cl-out) infinite both; }
/* One keyframe set for every speck, written for a speck the cup reaches at 20%; each is delayed to the moment the
   cup actually passes it (its x on the arc, through the sweep's easing), in 1% steps of 0.075 s. */
html.motion .anim--cleanings.is-playing .cl-speck--1 { animation-delay: .147s; }
html.motion .anim--cleanings.is-playing .cl-speck--2 { animation-delay: .332s; }
html.motion .anim--cleanings.is-playing .cl-speck--3 { animation-delay: .416s; }
html.motion .anim--cleanings.is-playing .cl-speck--4 { animation-delay: .489s; }
html.motion .anim--cleanings.is-playing .cl-speck--5 { animation-delay: .622s; }
html.motion .anim--cleanings.is-playing .cl-speck--6 { animation-delay: .759s; }
html.motion .anim--cleanings.is-playing .cl-speck--7 { animation-delay: .839s; }
html.motion .anim--cleanings.is-playing .cl-speck--8 { animation-delay: .933s; }
html.motion .anim--cleanings.is-playing .cl-speck--9 { animation-delay: 1.156s; }
html.motion .anim--cleanings.is-playing .cl-foam { animation: cleanings-foam var(--cl-d) var(--cl-out) infinite both; }
/* Bubbles cycle six times per loop (1.25 s), so they stay in step with it. */
html.motion .anim--cleanings.is-playing .cl-bubble { animation: cleanings-bubble 1.25s var(--cl-out) infinite both; }
html.motion .anim--cleanings.is-playing .cl-bubble--2 { animation-delay: -.42s; }
html.motion .anim--cleanings.is-playing .cl-bubble--3 { animation-delay: -.83s; }
html.motion .anim--cleanings.is-playing .cl-spark--1 { animation: cleanings-spark1 var(--cl-d) var(--cl-out) infinite both; }
html.motion .anim--cleanings.is-playing .cl-spark--2 { animation: cleanings-spark2 var(--cl-d) var(--cl-out) infinite both; }
html.motion .anim--cleanings.is-playing .cl-spark--3 { animation: cleanings-spark3 var(--cl-d) var(--cl-out) infinite both; }

@keyframes cleanings-swing {
  0%       { transform: rotate(47deg); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  8%       { transform: rotate(34deg); }
  48%      { transform: rotate(8deg); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  58%, 92% { transform: rotate(0); }
  96%      { transform: rotate(-4deg); }
  100%     { transform: rotate(47deg); }
}
@keyframes cleanings-fade {
  0%       { opacity: 0; }
  6%, 92%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes cleanings-spin {
  0%, 6%    { transform: rotate(0); }
  54%, 100% { transform: rotate(1440deg); }
}
@keyframes cleanings-trail {
  0%, 8%    { stroke-dashoffset: 1.01; }
  48%, 100% { stroke-dashoffset: 0; }
}
@keyframes cleanings-trail-fade {
  0%, 56%   { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes cleanings-gloss {
  0%, 54%   { transform: translateX(-168px); }
  66%, 100% { transform: translateX(0); }
}
@keyframes cleanings-speck {
  0%, 19%  { opacity: 1; transform: translate(0, 0) scale(1); }
  23.5%    { opacity: 0; transform: translate(8px, -6px) scale(.2); }
  90%      { opacity: 0; transform: translate(0, 0) scale(.5); }
  97%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes cleanings-foam {
  0%, 9%    { opacity: 0; }
  13%, 44%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes cleanings-bubble {
  0%   { opacity: 0; transform: translate(0, 0) scale(.4); }
  30%  { opacity: 1; transform: translate(0, -3px) scale(1); }
  100% { opacity: 0; transform: translate(0, -12px) scale(1.1); }
}
@keyframes cleanings-spark1 {
  0%, 64%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  69%      { opacity: 1; transform: scale(1.15) rotate(0); }
  73%      { opacity: 1; transform: scale(1) rotate(0); }
  79%      { opacity: 1; transform: scale(.84) rotate(12deg); }
  85%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes cleanings-spark2 {
  0%, 67%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  72%      { opacity: 1; transform: scale(1.2) rotate(0); }
  76%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes cleanings-spark3 {
  0%, 60%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  64%      { opacity: 1; transform: scale(1.2) rotate(0); }
  68%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--cleanings * { animation: none !important; }
}
/* Crowns: a warm ring marks the crack, the damaged shell falls away in a puff of dust leaving the stump, a dashed
   outline marks the crown's place, the crown lowers and lands softly (a small settle, two puffs at its edge), then a
   shine sweeps across it and sparkles twinkle.
   One 8 s loop: ping 0 to 9%, shell and dust 8 to 22%, guide 18 to 48%, descent 26 to 46%, landing 46 to 56%,
   shine 56 to 66%, sparkles 59 to 73%, hold to 93% (1.6 s), reset 93 to 100% (the shell fades back over the crown).
   The unanimated styles are the finished state. */
.anim--crowns { --cr-d: 8s; --cr-out: cubic-bezier(.22, 1, .36, 1); --cr-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--crowns .cr-crown { transform-box: fill-box; transform-origin: center; }
/* The landing settle squashes the crown a touch toward its bottom edge. */
.anim--crowns .cr-settle { transform-box: fill-box; transform-origin: 50% 100%; }
.anim--crowns .cr-shell { transform-box: fill-box; transform-origin: 50% 85%; }
.anim--crowns .cr-guide { stroke-dashoffset: 0; }
.anim--crowns .cr-shine { transform-box: fill-box; transform-origin: center; }
.anim--crowns .cr-ping,
.anim--crowns .cr-dust,
.anim--crowns .cr-spark { transform-box: fill-box; transform-origin: center; }
.anim--crowns .cr-puff--l { transform-box: fill-box; transform-origin: 100% 50%; }
.anim--crowns .cr-puff--r { transform-box: fill-box; transform-origin: 0 50%; }

html.motion .anim--crowns.is-playing .cr-ping { animation: crowns-ping var(--cr-d) var(--cr-out) infinite both; }
html.motion .anim--crowns.is-playing .cr-shell { animation: crowns-shell var(--cr-d) var(--cr-io) infinite both; }
html.motion .anim--crowns.is-playing .cr-dust { animation: crowns-dust var(--cr-d) var(--cr-out) infinite both; }
html.motion .anim--crowns.is-playing .cr-dust--2 { animation-delay: .1s; }
html.motion .anim--crowns.is-playing .cr-dust--3 { animation-delay: .18s; }
html.motion .anim--crowns.is-playing .cr-dust--4 { animation-delay: .26s; }
html.motion .anim--crowns.is-playing .cr-dust--5 { animation-delay: .34s; }
html.motion .anim--crowns.is-playing .cr-dust--6 { animation-delay: .4s; }
html.motion .anim--crowns.is-playing .cr-guide { animation: crowns-guide var(--cr-d) var(--cr-out) infinite both, crowns-march var(--cr-d) linear infinite both; }
html.motion .anim--crowns.is-playing .cr-crown { animation: crowns-lower var(--cr-d) var(--cr-out) infinite both, crowns-fade var(--cr-d) var(--cr-out) infinite both; }
html.motion .anim--crowns.is-playing .cr-settle { animation: crowns-settle var(--cr-d) var(--cr-io) infinite both; }
html.motion .anim--crowns.is-playing .cr-puff--l,
html.motion .anim--crowns.is-playing .cr-puff--r { animation: crowns-puff var(--cr-d) var(--cr-out) infinite both; }
html.motion .anim--crowns.is-playing .cr-shine { animation: crowns-shine var(--cr-d) var(--cr-io) infinite both; }
html.motion .anim--crowns.is-playing .cr-spark--1 { animation: crowns-spark1 var(--cr-d) var(--cr-out) infinite both; }
html.motion .anim--crowns.is-playing .cr-spark--2 { animation: crowns-spark2 var(--cr-d) var(--cr-out) infinite both; }
html.motion .anim--crowns.is-playing .cr-spark--3 { animation: crowns-spark3 var(--cr-d) var(--cr-out) infinite both; }

@keyframes crowns-ping {
  0%, 1%    { opacity: 0; transform: scale(.75); }
  2.5%      { opacity: .9; transform: scale(.8); }
  11%, 100% { opacity: 0; transform: scale(1.45); }
}
@keyframes crowns-shell {
  0%, 8%    { opacity: 1; transform: scale(1); }
  20%       { opacity: 0; transform: scale(.9); }
  93%       { opacity: 0; transform: scale(1); }
  96.5%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes crowns-dust {
  0%, 9%    { opacity: 0; transform: translate(0, 0) scale(.5); }
  10.5%     { opacity: 1; transform: translate(0, 0) scale(1); }
  16%       { opacity: .8; transform: translate(calc(var(--dx) * .75), calc(var(--dy) * .75)) scale(.9); }
  20%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.5); }
}
@keyframes crowns-guide {
  0%, 18%   { opacity: 0; }
  25%, 44%  { opacity: 1; }
  48%, 100% { opacity: 0; }
}
@keyframes crowns-march {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -60; }
}
/* The crown comes down from above and decelerates into its seat. */
@keyframes crowns-lower {
  0%, 26%   { transform: translateY(-60px); }
  46%, 100% { transform: translateY(0); }
}
@keyframes crowns-fade {
  0%, 27%   { opacity: 0; }
  33%, 96%  { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@keyframes crowns-settle {
  0%, 45.5% { transform: scale(1, 1); }
  48%       { transform: scale(1.012, .975); }
  53%, 100% { transform: scale(1, 1); }
}
@keyframes crowns-puff {
  0%, 46%   { opacity: 0; transform: scale(.4); }
  48%       { opacity: 1; transform: scale(.9); }
  56%, 100% { opacity: 0; transform: scale(1.25); }
}
@keyframes crowns-shine {
  0%, 56%   { transform: translateX(-164px); }
  66%, 100% { transform: translateX(0); }
}
@keyframes crowns-spark1 {
  0%, 59%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  64%      { opacity: 1; transform: scale(1.15) rotate(0); }
  68%, 93% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes crowns-spark2 {
  0%, 62%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  67%      { opacity: 1; transform: scale(1.2) rotate(0); }
  71%, 93% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes crowns-spark3 {
  0%, 60%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  65%      { opacity: 1; transform: scale(1.2) rotate(0); }
  69%, 93% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--crowns * { animation: none !important; }
}
/* Dental implants: the post screws down into the bone (threads travel, an orbit ring spins round the collar), arcs
   pulse out as the bone takes hold, the abutment clicks on, the crown lowers and lands softly, a gloss crosses it and
   sparkles twinkle. One 8 s loop: post in 0 to 6%, screwing 7 to 29%, bone 29 to 41%, abutment 36 to 43% and its
   click 43 to 50%, crown 47 to 59% with a ring at the gum line 57 to 67%, gloss 60 to 70%, sparkles 64 to 74%,
   hold to 92% (1.4 s), reset 92 to 100% (the built implant fades as one group, then each part returns to its
   start). The unanimated styles are the finished state. */
.anim--dental-implants { --im-d: 8s; --im-out: cubic-bezier(.22, 1, .36, 1); --im-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--dental-implants .im-build,
.anim--dental-implants .im-post,
.anim--dental-implants .im-threads,
.anim--dental-implants .im-abut,
.anim--dental-implants .im-crown,
.anim--dental-implants .im-shine { transform-box: fill-box; transform-origin: center; }
.anim--dental-implants .im-arc,
.anim--dental-implants .im-land,
.anim--dental-implants .im-spark { transform-box: fill-box; transform-origin: center; }
/* Arcs and click marks grow away from the post: the left ones from their right edge, the right ones from their left. */
.anim--dental-implants .im-arc--l,
.anim--dental-implants .im-click--l { transform-box: fill-box; transform-origin: 100% 50%; }
.anim--dental-implants .im-arc--r,
.anim--dental-implants .im-click--r { transform-box: fill-box; transform-origin: 0 50%; }

html.motion .anim--dental-implants.is-playing .im-build { animation: dental-implants-build var(--im-d) var(--im-out) infinite both; }
html.motion .anim--dental-implants.is-playing .im-post { animation: dental-implants-post var(--im-d) var(--im-io) infinite both; }
/* The threads ride the same easing as the post, so they keep turning at a steady ratio to its descent. */
html.motion .anim--dental-implants.is-playing .im-threads { animation: dental-implants-threads var(--im-d) var(--im-io) infinite both; }
html.motion .anim--dental-implants.is-playing .im-ring { animation: dental-implants-ring var(--im-d) var(--im-out) infinite both, dental-implants-spin .6s linear infinite; }
html.motion .anim--dental-implants.is-playing .im-hole { animation: dental-implants-hole var(--im-d) var(--im-out) infinite both; }
html.motion .anim--dental-implants.is-playing .im-arc { animation: dental-implants-arc-l var(--im-d) var(--im-out) infinite both; }
html.motion .anim--dental-implants.is-playing .im-arc--r { animation-name: dental-implants-arc-r; }
/* One keyframe set for the arcs, written for the lowest pair; the others follow 2.5% (0.2 s) apart, rising. */
html.motion .anim--dental-implants.is-playing .im-arc--2 { animation-delay: .2s; }
html.motion .anim--dental-implants.is-playing .im-arc--3 { animation-delay: .4s; }
html.motion .anim--dental-implants.is-playing .im-abut { animation: dental-implants-abut var(--im-d) var(--im-io) infinite both; }
html.motion .anim--dental-implants.is-playing .im-click { animation: dental-implants-click var(--im-d) var(--im-out) infinite both; }
html.motion .anim--dental-implants.is-playing .im-crown { animation: dental-implants-crown var(--im-d) var(--im-out) infinite both; }
html.motion .anim--dental-implants.is-playing .im-land { animation: dental-implants-land var(--im-d) var(--im-out) infinite both; }
html.motion .anim--dental-implants.is-playing .im-shine { animation: dental-implants-shine var(--im-d) var(--im-io) infinite both; }
html.motion .anim--dental-implants.is-playing .im-spark--1 { animation: dental-implants-spark1 var(--im-d) var(--im-out) infinite both; }
html.motion .anim--dental-implants.is-playing .im-spark--2 { animation: dental-implants-spark2 var(--im-d) var(--im-out) infinite both; }
html.motion .anim--dental-implants.is-playing .im-spark--3 { animation: dental-implants-spark3 var(--im-d) var(--im-out) infinite both; }

@keyframes dental-implants-post {
  0%       { opacity: 0; transform: translateY(-70px); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  6%, 7%   { opacity: 1; transform: translateY(-58px); }
  29%, 96% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  96.5%, 100% { opacity: 0; transform: translateY(-70px); }
}
/* The built implant fades as one piece; each part then returns to its start while the group is invisible. */
@keyframes dental-implants-build {
  0%, 92%   { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes dental-implants-threads {
  0%, 7%    { transform: translateY(80px); }
  29%, 96%  { transform: translateY(0); }
  100%      { transform: translateY(80px); }
}
@keyframes dental-implants-ring {
  0%, 5%    { opacity: 0; }
  9%, 26%   { opacity: .95; }
  31%, 100% { opacity: 0; }
}
@keyframes dental-implants-spin { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -18; } }
@keyframes dental-implants-hole {
  0%        { opacity: 0; }
  4%, 22%   { opacity: 1; }
  29%, 100% { opacity: 0; }
}
@keyframes dental-implants-arc-l {
  0%, 29%   { opacity: 0; transform: translateX(0) scale(.7); }
  31%       { opacity: 1; transform: translateX(-2px) scale(.9); }
  38%, 100% { opacity: 0; transform: translateX(-8px) scale(1.15); }
}
@keyframes dental-implants-arc-r {
  0%, 29%   { opacity: 0; transform: translateX(0) scale(.7); }
  31%       { opacity: 1; transform: translateX(2px) scale(.9); }
  38%, 100% { opacity: 0; transform: translateX(8px) scale(1.15); }
}
@keyframes dental-implants-abut {
  0%, 36%  { opacity: 0; transform: translateY(-34px); }
  38.5%    { opacity: 1; transform: translateY(-26px); }
  43%, 96% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  96.5%, 100% { opacity: 0; transform: translateY(-34px); }
}
@keyframes dental-implants-click {
  0%, 42.5% { opacity: 0; transform: scale(.4); }
  44.5%     { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(1.25); }
}
/* The crown starts 30px up, so even at the top of its travel it stays well inside the canvas. */
@keyframes dental-implants-crown {
  0%, 47%  { opacity: 0; transform: translateY(-30px); }
  50%      { opacity: 1; transform: translateY(-24px); }
  59%, 96% { opacity: 1; transform: translateY(0); }
  96.5%, 100% { opacity: 0; transform: translateY(-30px); }
}
@keyframes dental-implants-land {
  0%, 57%   { opacity: 0; transform: scale(.8); }
  58.5%     { opacity: .8; transform: scale(.85); }
  67%, 100% { opacity: 0; transform: scale(1.3); }
}
@keyframes dental-implants-shine {
  0%, 60%   { transform: translateX(-200px); }
  70%, 100% { transform: translateX(0); }
}
@keyframes dental-implants-spark1 {
  0%, 64%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  69%      { opacity: 1; transform: scale(1.15) rotate(0); }
  73%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes dental-implants-spark2 {
  0%, 67%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  72%      { opacity: 1; transform: scale(1.2) rotate(0); }
  76%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes dental-implants-spark3 {
  0%, 65.5% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  70%       { opacity: 1; transform: scale(1.2) rotate(0); }
  74%, 92%  { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--dental-implants * { animation: none !important; }
}
/* Dentures: the base draws itself in, ten teeth arrive one by one round the arch (left molar to right molar), each
   dropping in from outside the curve and pressing into place, then the arch settles with a soft ring, a sheen
   crosses the base and sparkles twinkle. One 8 s loop: base 0 to 10%, teeth from 9% every 2.9% (0.23 s) to 40%,
   settle 41 to 52% with its ring 48 to 62%, sheen 52 to 62%, sparkles 56 to 68%, hold to 92% (1.9 s), reset 92 to
   100% (the whole set fades, then every part returns to its start while hidden). The unanimated styles are the
   finished state. */
.anim--dentures { --dn-d: 8s; --dn-out: cubic-bezier(.22, 1, .36, 1); --dn-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--dentures .dn-set,
.anim--dentures .dn-arch,
.anim--dentures .dn-fill,
.anim--dentures .dn-ring,
.anim--dentures .dn-sheen,
.anim--dentures .dn-tooth,
.anim--dentures .dn-spark { transform-box: fill-box; transform-origin: center; }
.anim--dentures .dn-line { stroke-dasharray: 1 2; stroke-dashoffset: 0; }

html.motion .anim--dentures.is-playing .dn-set { animation: dentures-set var(--dn-d) var(--dn-out) infinite both; }
html.motion .anim--dentures.is-playing .dn-arch { animation: dentures-arch var(--dn-d) var(--dn-out) infinite both; }
html.motion .anim--dentures.is-playing .dn-line { animation: dentures-line var(--dn-d) var(--dn-io) infinite both; }
html.motion .anim--dentures.is-playing .dn-fill { animation: dentures-fill var(--dn-d) var(--dn-out) infinite both; }
html.motion .anim--dentures.is-playing .dn-ring { animation: dentures-ring var(--dn-d) var(--dn-out) infinite both; }
html.motion .anim--dentures.is-playing .dn-sheen { animation: dentures-sheen var(--dn-d) var(--dn-io) infinite both; }
html.motion .anim--dentures.is-playing .dn-tooth { animation: dentures-tooth1 var(--dn-d) var(--dn-out) infinite both; }
html.motion .anim--dentures.is-playing .dn-tooth--1 { animation-name: dentures-tooth1; }
html.motion .anim--dentures.is-playing .dn-tooth--2 { animation-name: dentures-tooth2; }
html.motion .anim--dentures.is-playing .dn-tooth--3 { animation-name: dentures-tooth3; }
html.motion .anim--dentures.is-playing .dn-tooth--4 { animation-name: dentures-tooth4; }
html.motion .anim--dentures.is-playing .dn-tooth--5 { animation-name: dentures-tooth5; }
html.motion .anim--dentures.is-playing .dn-tooth--6 { animation-name: dentures-tooth6; }
html.motion .anim--dentures.is-playing .dn-tooth--7 { animation-name: dentures-tooth7; }
html.motion .anim--dentures.is-playing .dn-tooth--8 { animation-name: dentures-tooth8; }
html.motion .anim--dentures.is-playing .dn-tooth--9 { animation-name: dentures-tooth9; }
html.motion .anim--dentures.is-playing .dn-tooth--10 { animation-name: dentures-tooth10; }
html.motion .anim--dentures.is-playing .dn-spark--1 { animation: dentures-spark1 var(--dn-d) var(--dn-out) infinite both; }
html.motion .anim--dentures.is-playing .dn-spark--2 { animation: dentures-spark2 var(--dn-d) var(--dn-out) infinite both; }
html.motion .anim--dentures.is-playing .dn-spark--3 { animation: dentures-spark3 var(--dn-d) var(--dn-out) infinite both; }

@keyframes dentures-set {
  0%, 92%   { opacity: 1; }
  96.5%, 100% { opacity: 0; }
}
/* The arch waits a little raised while the teeth arrive, then settles. */
@keyframes dentures-arch {
  0%, 41%   { transform: translateY(-6px) scale(1.025); }
  52%, 97%  { transform: translateY(0) scale(1); }
  97.5%, 100% { transform: translateY(-6px) scale(1.025); }
}
@keyframes dentures-line {
  0%        { stroke-dashoffset: 1.01; }
  10%, 97%  { stroke-dashoffset: 0; }
  97.5%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes dentures-fill {
  0%, 2%    { opacity: 0; }
  10%, 97%  { opacity: 1; }
  97.5%, 100% { opacity: 0; }
}
/* The ring is the base's outer edge, behind it, so it ripples out from under the arch as it lands. */
@keyframes dentures-ring {
  0%, 48%   { opacity: 0; transform: scale(1); }
  50%       { opacity: .85; transform: scale(1.01); }
  62%, 100% { opacity: 0; transform: scale(1.05); }
}
@keyframes dentures-sheen {
  0%, 52%   { transform: translateX(-236px); }
  62%, 100% { transform: translateX(0); }
}
@keyframes dentures-tooth1 {
  0%, 9% { opacity: 0; transform: translateY(14px) scale(.4); }
  11.6% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  14%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth2 {
  0%, 11.9% { opacity: 0; transform: translateY(14px) scale(.4); }
  14.5% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  16.9%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth3 {
  0%, 14.8% { opacity: 0; transform: translateY(14px) scale(.4); }
  17.4% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  19.8%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth4 {
  0%, 17.7% { opacity: 0; transform: translateY(14px) scale(.4); }
  20.3% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  22.7%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth5 {
  0%, 20.6% { opacity: 0; transform: translateY(14px) scale(.4); }
  23.2% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  25.6%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth6 {
  0%, 23.5% { opacity: 0; transform: translateY(14px) scale(.4); }
  26.1% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  28.5%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth7 {
  0%, 26.4% { opacity: 0; transform: translateY(14px) scale(.4); }
  29% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  31.4%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth8 {
  0%, 29.3% { opacity: 0; transform: translateY(14px) scale(.4); }
  31.9% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  34.3%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth9 {
  0%, 32.2% { opacity: 0; transform: translateY(14px) scale(.4); }
  34.8% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  37.2%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-tooth10 {
  0%, 35.1% { opacity: 0; transform: translateY(14px) scale(.4); }
  37.7% { opacity: 1; transform: translateY(-1.5px) scale(1.08); }
  40.1%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  97.5%, 100% { opacity: 0; transform: translateY(14px) scale(.4); }
}
@keyframes dentures-spark1 {
  0%, 56%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  61%      { opacity: 1; transform: scale(1.15) rotate(0); }
  65%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes dentures-spark2 {
  0%, 59%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  64%      { opacity: 1; transform: scale(1.2) rotate(0); }
  68%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes dentures-spark3 {
  0%, 57.5% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  62.5%     { opacity: 1; transform: scale(1.2) rotate(0); }
  66.5%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--dentures * { animation: none !important; }
}
/* Emergency dental care: a cracked tooth aches over a hurried warm pulse; a phone disc pops in and rings while a clock
   ring sweeps round it; the pulse steadies into a calm blue beat; the crack seals and a sparkle replaces the ache.
   One 8 s loop: trace in and ache 0 to 30%, phone 12 to 46%, pulse steadies 34 to 56%, crack seals 46 to 70%,
   sparkles 60 to 72%, hold to 90% (the pulse dot beats once more), reset 90 to 100% (the calm trace runs off to the
   right, the phone shrinks away, the crack and the ache come back). The unanimated styles are the finished state. */
.anim--emergency-dental-care { --em-d: 8s; --em-out: cubic-bezier(.22, 1, .36, 1); --em-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--emergency-dental-care .em-tooth { transform-box: fill-box; transform-origin: 50% 40%; }
/* Each ache mark grows out from its end nearest the tooth. */
.anim--emergency-dental-care .em-ache--1 { transform-box: fill-box; transform-origin: 100% 100%; }
.anim--emergency-dental-care .em-ache--2 { transform-box: fill-box; transform-origin: 100% 50%; }
.anim--emergency-dental-care .em-ache--3 { transform-box: fill-box; transform-origin: 100% 0; }
.anim--emergency-dental-care .em-seam,
.anim--emergency-dental-care .em-rush,
.anim--emergency-dental-care .em-calm,
.anim--emergency-dental-care .em-sweep { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
/* The hurried line beats and flattens toward its own baseline (y 188, 22px down its box from y 166), about x 120. */
.anim--emergency-dental-care .em-rush { transform-box: fill-box; transform-origin: 86px 22px; }
.anim--emergency-dental-care .em-dot,
.anim--emergency-dental-care .em-ping,
.anim--emergency-dental-care .em-spark { transform-box: fill-box; transform-origin: center; }
/* The phone disc scales about its centre (182, 64); the node rides the clock ring about the same point. The disc's box
   starts at (151, 28.5) (the node on top of the ring) and the node's at (177.5, 28.5), so the centre is 31px, 35.5px
   into the first and 4.5px, 35.5px into the second. */
.anim--emergency-dental-care .em-call { transform-box: fill-box; transform-origin: 31px 35.5px; }
.anim--emergency-dental-care .em-node { transform-box: fill-box; transform-origin: 4.5px 35.5px; }
.anim--emergency-dental-care .em-handset { transform-box: fill-box; transform-origin: center; }
.anim--emergency-dental-care .em-wave { transform-box: fill-box; transform-origin: 0 50%; }

html.motion .anim--emergency-dental-care.is-playing .em-ache { animation: emergency-dental-care-ache var(--em-d) var(--em-out) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-ache--2 { animation-delay: .08s; }
html.motion .anim--emergency-dental-care.is-playing .em-ache--3 { animation-delay: .16s; }
html.motion .anim--emergency-dental-care.is-playing .em-tooth { animation: emergency-dental-care-throb var(--em-d) var(--em-io) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-crack { animation: emergency-dental-care-crack var(--em-d) var(--em-out) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-seam { animation: emergency-dental-care-seam var(--em-d) var(--em-io) infinite both, emergency-dental-care-seam-fade var(--em-d) var(--em-out) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-rush { animation: emergency-dental-care-rush var(--em-d) var(--em-io) infinite both, emergency-dental-care-rush-beat var(--em-d) var(--em-io) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-calm { animation: emergency-dental-care-calm var(--em-d) var(--em-io) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-dot { animation: emergency-dental-care-dot var(--em-d) var(--em-out) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-ping { animation: emergency-dental-care-ping var(--em-d) var(--em-out) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-call { animation: emergency-dental-care-call var(--em-d) var(--em-out) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-sweep { animation: emergency-dental-care-sweep var(--em-d) var(--em-io) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-node { animation: emergency-dental-care-node var(--em-d) var(--em-io) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-handset { animation: emergency-dental-care-ring var(--em-d) var(--em-io) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-wave--1 { animation: emergency-dental-care-wave var(--em-d) var(--em-out) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-wave--2 { animation: emergency-dental-care-wave var(--em-d) var(--em-out) .08s infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-spark--1 { animation: emergency-dental-care-spark1 var(--em-d) var(--em-out) infinite both; }
html.motion .anim--emergency-dental-care.is-playing .em-spark--2 { animation: emergency-dental-care-spark2 var(--em-d) var(--em-out) infinite both; }

@keyframes emergency-dental-care-ache {
  0%        { opacity: 1; transform: scale(1); }
  5%        { opacity: .5; transform: scale(.65); }
  10%       { opacity: 1; transform: scale(1.1); }
  14%       { opacity: 1; transform: scale(1); }
  19%       { opacity: .5; transform: scale(.65); }
  24%       { opacity: 1; transform: scale(1.1); }
  28%       { opacity: 1; transform: scale(1); }
  38%, 93%  { opacity: 0; transform: scale(.3); }
  100%      { opacity: 1; transform: scale(1); }
}
@keyframes emergency-dental-care-throb {
  0%, 5%    { transform: scale(1); }
  10%       { transform: scale(1.025); }
  15%, 19%  { transform: scale(1); }
  24%       { transform: scale(1.025); }
  29%, 100% { transform: scale(1); }
}
@keyframes emergency-dental-care-crack {
  0%, 52%   { opacity: 1; }
  58%, 93%  { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes emergency-dental-care-seam {
  0%, 46%   { stroke-dashoffset: 1.01; }
  56%, 100% { stroke-dashoffset: 0; }
}
@keyframes emergency-dental-care-seam-fade {
  0%, 45%   { opacity: 0; }
  47%, 60%  { opacity: 1; }
  70%, 100% { opacity: 0; }
}
/* The hurried trace draws in left to right, beats twice with the ache, then flattens away as the calm one arrives.
   It snaps back to undrawn at 96.5%, while it is invisible, and fades up again (still undrawn) for the next loop. */
@keyframes emergency-dental-care-rush {
  0%          { stroke-dashoffset: 1.01; }
  15%, 96.4%  { stroke-dashoffset: 0; }
  96.5%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes emergency-dental-care-rush-beat {
  0%, 5%    { opacity: 1; transform: scaleY(1); }
  10%       { opacity: 1; transform: scaleY(1.2); }
  14%, 19%  { opacity: 1; transform: scaleY(.95); }
  24%       { opacity: 1; transform: scaleY(1.18); }
  29%, 35%  { opacity: 1; transform: scaleY(1); }
  47%, 97%  { opacity: 0; transform: scaleY(.08); }
  100%      { opacity: 1; transform: scaleY(1); }
}
/* The calm trace draws over 36 to 54%, then at the end of the hold runs off: the dash slides past the end of the line
   and stays there; the loop restarts it undrawn (the jump happens between iterations, so it never flashes through
   fully drawn). */
@keyframes emergency-dental-care-calm {
  0%, 36%     { stroke-dashoffset: 1.01; }
  54%, 90%    { stroke-dashoffset: 0; }
  98%, 100%   { stroke-dashoffset: -1.01; }
}
@keyframes emergency-dental-care-dot {
  0%, 52%   { opacity: 0; transform: scale(.3); }
  56%       { opacity: 1; transform: scale(1.2); }
  60%, 90%  { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(.3); }
}
@keyframes emergency-dental-care-ping {
  0%, 55%   { opacity: 0; transform: scale(1); }
  56%       { opacity: .85; transform: scale(1); }
  67%, 74%  { opacity: 0; transform: scale(2.4); }
  75%       { opacity: .6; transform: scale(1); }
  86%, 100% { opacity: 0; transform: scale(2.2); }
}
@keyframes emergency-dental-care-call {
  0%, 12%   { opacity: 0; transform: scale(.4); }
  17%       { opacity: 1; transform: scale(1.06); }
  21%, 92%  { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes emergency-dental-care-sweep {
  0%, 18%     { stroke-dashoffset: 1.01; }
  46%, 97.4%  { stroke-dashoffset: 0; }
  97.5%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes emergency-dental-care-node {
  0%, 18%     { transform: rotate(0); }
  46%, 100%   { transform: rotate(360deg); }
}
/* Two short, decaying bursts of ringing, 80 ms per swing. */
@keyframes emergency-dental-care-ring {
  0%, 20%   { transform: rotate(0); }
  21%       { transform: rotate(13deg); }
  22%       { transform: rotate(-11deg); }
  23%       { transform: rotate(9deg); }
  24%       { transform: rotate(-7deg); }
  25%       { transform: rotate(4deg); }
  26%, 29%  { transform: rotate(0); }
  30%       { transform: rotate(12deg); }
  31%       { transform: rotate(-10deg); }
  32%       { transform: rotate(7deg); }
  33%       { transform: rotate(-4deg); }
  34%, 100% { transform: rotate(0); }
}
@keyframes emergency-dental-care-wave {
  0%, 20%   { opacity: 0; transform: scale(.6); }
  22%       { opacity: 1; transform: scale(1); }
  27%       { opacity: 0; transform: scale(1.2); }
  29%       { opacity: 0; transform: scale(.6); }
  31%       { opacity: 1; transform: scale(1); }
  37%, 100% { opacity: 0; transform: scale(1.2); }
}
@keyframes emergency-dental-care-spark1 {
  0%, 60%   { opacity: 0; transform: scale(.3) rotate(-45deg); }
  65%       { opacity: 1; transform: scale(1.15) rotate(0); }
  69%, 91%  { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes emergency-dental-care-spark2 {
  0%, 63%   { opacity: 0; transform: scale(.3) rotate(-45deg); }
  68%       { opacity: 1; transform: scale(1.2) rotate(0); }
  72%, 91%  { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--emergency-dental-care * { animation: none !important; }
}
/* Extractions: a warm ring marks the damaged middle tooth; it rocks gently, lifts out on a soft curve and fades,
   leaving its socket; the socket closes, the gum rises into a healed ridge as three small crosses float up,
   then a dashed outline of a future replacement appears in the gap and sparkles twinkle.
   One 8 s loop: ping 0 to 9%, rocking 8 to 24%, lift 24 to 40%, socket 27 to 47%, ridge 42 to 52%, crosses 41 to
   59%, outline 54 to 60%, sparkles 60 to 72%, hold to 94% (1.8 s), reset 94 to 100% (the outline fades, the
   ridge sinks and the tooth fades back in). The unanimated styles are the finished state. */
.anim--extractions { --ex-d: 8s; --ex-out: cubic-bezier(.22, 1, .36, 1); --ex-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
/* The tooth rocks about a point below the gumline (120, 150), in view box coordinates. */
.anim--extractions .ex-rock { transform-box: view-box; transform-origin: 120px 150px; }
.anim--extractions .ex-lift { transform-box: fill-box; transform-origin: center; }
.anim--extractions .ex-ping { transform-box: fill-box; transform-origin: center; }
/* The socket closes toward the gum's surface; the ridge rises from the bottom of its box. */
.anim--extractions .ex-socket { transform-box: fill-box; transform-origin: 50% 0; }
.anim--extractions .ex-ridge { transform-box: fill-box; transform-origin: 50% 100%; }
.anim--extractions .ex-plus,
.anim--extractions .ex-spark { transform-box: fill-box; transform-origin: center; }
.anim--extractions .ex-future { transform-box: fill-box; transform-origin: 50% 100%; }
.anim--extractions .ex-dash { stroke-dashoffset: 0; }

html.motion .anim--extractions.is-playing .ex-ping { animation: extractions-ping var(--ex-d) var(--ex-out) infinite both; }
html.motion .anim--extractions.is-playing .ex-out { animation: extractions-out var(--ex-d) var(--ex-out) infinite both; }
html.motion .anim--extractions.is-playing .ex-rock { animation: extractions-rock var(--ex-d) var(--ex-io) infinite both; }
html.motion .anim--extractions.is-playing .ex-lift { animation: extractions-lift var(--ex-d) var(--ex-io) infinite both; }
html.motion .anim--extractions.is-playing .ex-socket { animation: extractions-socket var(--ex-d) var(--ex-out) infinite both; }
html.motion .anim--extractions.is-playing .ex-ridge { animation: extractions-ridge var(--ex-d) var(--ex-out) infinite both; }
html.motion .anim--extractions.is-playing .ex-plus--1 { animation: extractions-plus var(--ex-d) var(--ex-out) infinite both; }
html.motion .anim--extractions.is-playing .ex-plus--2 { animation: extractions-plus var(--ex-d) var(--ex-out) infinite both; animation-delay: .22s; }
html.motion .anim--extractions.is-playing .ex-plus--3 { animation: extractions-plus var(--ex-d) var(--ex-out) infinite both; animation-delay: .42s; }
html.motion .anim--extractions.is-playing .ex-future { animation: extractions-future var(--ex-d) var(--ex-out) infinite both; }
html.motion .anim--extractions.is-playing .ex-dash { animation: extractions-march var(--ex-d) linear infinite both; }
html.motion .anim--extractions.is-playing .ex-spark--1 { animation: extractions-spark1 var(--ex-d) var(--ex-out) infinite both; }
html.motion .anim--extractions.is-playing .ex-spark--2 { animation: extractions-spark2 var(--ex-d) var(--ex-out) infinite both; }
html.motion .anim--extractions.is-playing .ex-spark--3 { animation: extractions-spark3 var(--ex-d) var(--ex-out) infinite both; }

@keyframes extractions-ping {
  0%, 1%    { opacity: 0; transform: scale(.8); }
  2.5%      { opacity: .9; transform: scale(.85); }
  10%, 100% { opacity: 0; transform: scale(1.35); }
}
@keyframes extractions-out {
  0%, 35%   { opacity: 1; }
  40%, 95%  { opacity: 0; }
  100%      { opacity: 1; }
}
/* Gentle side to side rocking that dies away before the lift. */
@keyframes extractions-rock {
  0%, 8%    { transform: rotate(0); }
  11%       { transform: rotate(-5deg); }
  14.5%     { transform: rotate(4.5deg); }
  18%       { transform: rotate(-3.5deg); }
  21%       { transform: rotate(2deg); }
  24%, 100% { transform: rotate(0); }
}
/* Up and out on a soft curve: mostly straight up at first, drifting right as it clears the gum. */
@keyframes extractions-lift {
  0%, 24%   { transform: translate(0, 0) rotate(0); }
  31%       { transform: translate(1px, -28px) rotate(1.5deg); }
  40%, 94%  { transform: translate(14px, -76px) rotate(9deg); }
  94.5%, 100% { transform: translate(0, 0) rotate(0); }
}
@keyframes extractions-socket {
  0%, 27%   { opacity: 0; transform: scale(1); }
  31%, 38%  { opacity: 1; transform: scale(1); }
  47%       { opacity: 0; transform: scale(.4, 0); }
  100%      { opacity: 0; transform: scale(.4, 0); }
}
@keyframes extractions-ridge {
  0%, 41%   { transform: scaleY(0); }
  51%, 94%  { transform: scaleY(1); }
  99%, 100% { transform: scaleY(0); }
}
@keyframes extractions-plus {
  0%, 41%   { opacity: 0; transform: translateY(6px) scale(.5); }
  44.5%     { opacity: 1; transform: translateY(0) scale(1); }
  50%       { opacity: 1; transform: translateY(-8px) scale(1); }
  53.5%, 100% { opacity: 0; transform: translateY(-13px) scale(.7); }
}
@keyframes extractions-future {
  0%, 54%   { opacity: 0; transform: scale(.9); }
  60%, 94%  { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}
/* The dashes march slowly, eight whole dash periods (18 units each) per loop, so the loop stays seamless. */
@keyframes extractions-march {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -144; }
}
@keyframes extractions-spark1 {
  0%, 60%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  65%      { opacity: 1; transform: scale(1.15) rotate(0); }
  69%, 94% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes extractions-spark2 {
  0%, 63%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  68%      { opacity: 1; transform: scale(1.2) rotate(0); }
  72%, 94% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes extractions-spark3 {
  0%, 61%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  66%      { opacity: 1; transform: scale(1.2) rotate(0); }
  70%, 94% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--extractions * { animation: none !important; }
}
/* Family dentistry: the roof draws on and the chimney rises; three teeth, large to small, walk in under the roof one
   after another and settle; a wave runs through them; a heart floats up from the chimney.
   One 8 s loop: roof 0 to 12% (gleam 11 to 17%), chimney 8 to 15%, teeth walk in 10 to 32% and settle by 39%,
   wave 40 to 63%, sparkles 50 to 62%, hearts 56 to 72%, hold 72 to 92% (1.6 s), reset 92 to 100%.
   The unanimated styles are the finished state. */
.anim--family-dentistry { --fd-d: 8s; --fd-out: cubic-bezier(.22, 1, .36, 1); --fd-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--family-dentistry .fd-draw,
.anim--family-dentistry .fd-gleam { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.anim--family-dentistry .fd-roof { transform-box: fill-box; transform-origin: center; }
.anim--family-dentistry .fd-chimney { transform-box: fill-box; transform-origin: 50% 100%; }
.anim--family-dentistry .fd-heart,
.anim--family-dentistry .fd-spark { transform-box: fill-box; transform-origin: center; }
/* Each tooth walks, rocks, squashes and sways from the middle of its base on the ground line (y 198), in view box
   coordinates. */
.anim--family-dentistry .fd-walk--1,
.anim--family-dentistry .fd-bob--1,
.anim--family-dentistry .fd-wave--1 { transform-box: view-box; transform-origin: 79px 198px; }
.anim--family-dentistry .fd-walk--2,
.anim--family-dentistry .fd-bob--2,
.anim--family-dentistry .fd-wave--2 { transform-box: view-box; transform-origin: 130px 198px; }
.anim--family-dentistry .fd-walk--3,
.anim--family-dentistry .fd-bob--3,
.anim--family-dentistry .fd-wave--3 { transform-box: view-box; transform-origin: 174px 198px; }

html.motion .anim--family-dentistry.is-playing .fd-roof { animation: family-dentistry-roof var(--fd-d) var(--fd-out) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-draw { animation: family-dentistry-draw var(--fd-d) var(--fd-out) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-gleam { animation: family-dentistry-gleam var(--fd-d) var(--fd-io) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-chimney { animation: family-dentistry-chimney var(--fd-d) var(--fd-out) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-walk--1 { animation: family-dentistry-walk1 var(--fd-d) var(--fd-io) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-walk--2 { animation: family-dentistry-walk2 var(--fd-d) var(--fd-io) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-walk--3 { animation: family-dentistry-walk3 var(--fd-d) var(--fd-io) infinite both; }
/* One waddle and one wave, written for the first tooth; the others follow 0.48 s (waddle) and 0.32 s (wave) apart. */
html.motion .anim--family-dentistry.is-playing .fd-bob { animation: family-dentistry-bob var(--fd-d) var(--fd-io) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-bob--2 { animation-delay: .48s; }
html.motion .anim--family-dentistry.is-playing .fd-bob--3 { animation-delay: .96s; }
html.motion .anim--family-dentistry.is-playing .fd-wave { animation: family-dentistry-wave var(--fd-d) var(--fd-io) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-wave--2 { animation-delay: .32s; }
html.motion .anim--family-dentistry.is-playing .fd-wave--3 { animation-delay: .64s; }
html.motion .anim--family-dentistry.is-playing .fd-heart--1 { animation: family-dentistry-heart1 var(--fd-d) var(--fd-out) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-heart--2 { animation: family-dentistry-heart2 var(--fd-d) var(--fd-out) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-spark--1 { animation: family-dentistry-spark1 var(--fd-d) var(--fd-out) infinite both; }
html.motion .anim--family-dentistry.is-playing .fd-spark--2 { animation: family-dentistry-spark2 var(--fd-d) var(--fd-out) infinite both; }

@keyframes family-dentistry-roof {
  0%, 92%   { opacity: 1; transform: translateY(0); }
  97%       { opacity: 0; transform: translateY(-6px); }
  100%      { opacity: 1; transform: translateY(0); }
}
/* The roof is undrawn again while it is faded out (97 to 100%), so the loop starts from a bare floor. */
@keyframes family-dentistry-draw {
  0%        { stroke-dashoffset: 1.01; }
  12%, 97%  { stroke-dashoffset: 0; }
  97.5%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes family-dentistry-gleam {
  0%, 11%   { stroke-dashoffset: 1.01; }
  17%, 97%  { stroke-dashoffset: 0; }
  97.5%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes family-dentistry-chimney {
  0%, 8%    { opacity: 0; transform: scaleY(.2); }
  10%       { opacity: 1; }
  15%, 92%  { opacity: 1; transform: scaleY(1); }
  96%, 100% { opacity: 0; transform: scaleY(1); }
}
/* Walk in from the right (the first tooth furthest), a small squash as it stops, then settle; fade at the end. */
@keyframes family-dentistry-walk1 {
  0%, 10%   { opacity: 0; transform: translate(70px, 0) scale(1, 1); }
  12%       { opacity: 1; }
  20%       { transform: translate(0, 0) scale(1, 1); }
  22%       { transform: translate(0, 0) scale(1.035, .955); }
  24.5%     { transform: translate(0, 0) scale(.995, 1.01); }
  27%, 92%  { opacity: 1; transform: translate(0, 0) scale(1, 1); }
  97%, 100% { opacity: 0; transform: translate(0, 6px) scale(1, 1); }
}
@keyframes family-dentistry-walk2 {
  0%, 16%   { opacity: 0; transform: translate(52px, 0) scale(1, 1); }
  18%       { opacity: 1; }
  26%       { transform: translate(0, 0) scale(1, 1); }
  28%       { transform: translate(0, 0) scale(1.035, .955); }
  30.5%     { transform: translate(0, 0) scale(.995, 1.01); }
  33%, 92%  { opacity: 1; transform: translate(0, 0) scale(1, 1); }
  97%, 100% { opacity: 0; transform: translate(0, 6px) scale(1, 1); }
}
@keyframes family-dentistry-walk3 {
  0%, 22%   { opacity: 0; transform: translate(38px, 0) scale(1, 1); }
  24%       { opacity: 1; }
  32%       { transform: translate(0, 0) scale(1, 1); }
  34%       { transform: translate(0, 0) scale(1.035, .955); }
  36.5%     { transform: translate(0, 0) scale(.995, 1.01); }
  39%, 92%  { opacity: 1; transform: translate(0, 0) scale(1, 1); }
  97%, 100% { opacity: 0; transform: translate(0, 6px) scale(1, 1); }
}
/* Three steps while walking: a lift and a rock to one side, down, a lift and a rock to the other. */
@keyframes family-dentistry-bob {
  0%, 10%   { transform: translateY(0) rotate(0); }
  11.33%    { transform: translateY(-3.5px) rotate(-4deg); }
  12.67%    { transform: translateY(0) rotate(0); }
  14%       { transform: translateY(-3.5px) rotate(4deg); }
  15.33%    { transform: translateY(0) rotate(0); }
  16.67%    { transform: translateY(-3.5px) rotate(-4deg); }
  18%       { transform: translateY(0) rotate(0); }
  19%       { transform: translateY(-1.5px) rotate(2deg); }
  20%, 100% { transform: translateY(0) rotate(0); }
}
/* A lift and a lean to the left, a lean back to the right, a small settle. */
@keyframes family-dentistry-wave {
  0%, 40%   { transform: translateY(0) rotate(0); }
  44%       { transform: translateY(-5px) rotate(-4deg); }
  48.5%     { transform: translateY(0) rotate(3.5deg); }
  52%       { transform: translateY(0) rotate(-1.5deg); }
  55%, 100% { transform: translateY(0) rotate(0); }
}
@keyframes family-dentistry-heart1 {
  0%, 56%   { opacity: 0; transform: translateY(16px) scale(.3); }
  60%       { opacity: 1; transform: translateY(-2px) scale(1.15); }
  64%       { transform: translateY(1px) scale(.95); }
  67%, 92%  { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(-6px) scale(.8); }
}
@keyframes family-dentistry-heart2 {
  0%, 60%   { opacity: 0; transform: translate(-22px, 16px) scale(.4); }
  64%       { opacity: 1; transform: translate(-6px, 2px) scale(1); }
  76%, 100% { opacity: 0; transform: translate(8px, -16px) scale(.9); }
}
@keyframes family-dentistry-spark1 {
  0%, 50%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  54%      { opacity: 1; transform: scale(1.2) rotate(0); }
  58%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes family-dentistry-spark2 {
  0%, 58%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  62%      { opacity: 1; transform: scale(1.2) rotate(0); }
  66%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--family-dentistry * { animation: none !important; }
}
/* Fillings: a warm ring marks the cavity, the handpiece leans in and pecks while the decay crumbs away and a clean
   space opens, it leaves; the dispenser comes in, two drops fall, the filling rises and swells a little above the
   surface, the dispenser's tip skims across and levels it, a shine crosses the filling and sparkles twinkle.
   One 9 s loop: ping 0 to 8%, handpiece 3 to 35% (three soft pecks while it works), dispenser 31 to 71% (drops 39 to 47%, rise 41 to 52%, swell 50 to
   54%, skim 57 to 64%), shine 67 to 75%, sparkles 69 to 79%, hold to 94% (1.35 s), reset 94 to 100%.
   The unanimated styles are the finished state. */
.anim--fillings { --fl-d: 9s; --fl-out: cubic-bezier(.22, 1, .36, 1); --fl-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--fillings .fl-drill,
.anim--fillings .fl-disp,
.anim--fillings .fl-glide { transform-box: view-box; transform-origin: 0 0; }
.anim--fillings .fl-bur { stroke-dashoffset: 0; }
.anim--fillings .fl-fill,
.anim--fillings .fl-shine,
.anim--fillings .fl-prep,
.anim--fillings .fl-wall { transform-box: fill-box; transform-origin: center; }
.anim--fillings .fl-rot,
.anim--fillings .fl-hole { transform-box: fill-box; transform-origin: 50% 40%; }
.anim--fillings .fl-gleam { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.anim--fillings .fl-ping,
.anim--fillings .fl-crumb,
.anim--fillings .fl-drop,
.anim--fillings .fl-spark { transform-box: fill-box; transform-origin: center; }
/* The swelling grows out of the surface: it scales from the bottom of its box (the dip in the chewing surface). */
.anim--fillings .fl-dome { transform-box: fill-box; transform-origin: 50% 100%; }
/* The skim window's left edge rides with the dispenser's tip; its contents counter-move so they stay put. */
.anim--fillings .fl-skim,
.anim--fillings .fl-unskim { transform-box: view-box; transform-origin: 0 0; }

html.motion .anim--fillings.is-playing .fl-ping { animation: fillings-ping var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-drill { animation: fillings-drill var(--fl-d) var(--fl-io) infinite both, fillings-drill-fade var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-bur { animation: fillings-bur .24s linear infinite; }
html.motion .anim--fillings.is-playing .fl-rot { animation: fillings-rot var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-hole { animation: fillings-hole var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-prep,
html.motion .anim--fillings.is-playing .fl-wall { animation: fillings-prep var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-crumb { animation: fillings-crumb var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-crumb--2 { animation-delay: .16s; }
html.motion .anim--fillings.is-playing .fl-crumb--3 { animation-delay: .34s; }
html.motion .anim--fillings.is-playing .fl-crumb--4 { animation-delay: .5s; }
html.motion .anim--fillings.is-playing .fl-crumb--5 { animation-delay: .7s; }
html.motion .anim--fillings.is-playing .fl-crumb--6 { animation-delay: .86s; }
html.motion .anim--fillings.is-playing .fl-disp { animation: fillings-disp var(--fl-d) var(--fl-io) infinite both, fillings-disp-fade var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-glide { animation: fillings-glide var(--fl-d) var(--fl-io) infinite both; }
html.motion .anim--fillings.is-playing .fl-drop--1 { animation: fillings-drop1 var(--fl-d) var(--fl-io) infinite both; }
html.motion .anim--fillings.is-playing .fl-drop--2 { animation: fillings-drop2 var(--fl-d) var(--fl-io) infinite both; }
html.motion .anim--fillings.is-playing .fl-fill { animation: fillings-fill var(--fl-d) var(--fl-io) infinite both, fillings-fill-fade var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-dome { animation: fillings-dome var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-skim { animation: fillings-skim var(--fl-d) var(--fl-io) infinite both; }
html.motion .anim--fillings.is-playing .fl-unskim { animation: fillings-unskim var(--fl-d) var(--fl-io) infinite both; }
html.motion .anim--fillings.is-playing .fl-shine { animation: fillings-shine var(--fl-d) var(--fl-io) infinite both; }
html.motion .anim--fillings.is-playing .fl-gleam { animation: fillings-gleam var(--fl-d) var(--fl-io) infinite both; }
html.motion .anim--fillings.is-playing .fl-spark--1 { animation: fillings-spark1 var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-spark--2 { animation: fillings-spark2 var(--fl-d) var(--fl-out) infinite both; }
html.motion .anim--fillings.is-playing .fl-spark--3 { animation: fillings-spark3 var(--fl-d) var(--fl-out) infinite both; }

@keyframes fillings-ping {
  0%, 1%    { opacity: 0; transform: scale(.75); }
  2.5%      { opacity: .9; transform: scale(.8); }
  10%, 100% { opacity: 0; transform: scale(1.5); }
}
/* The handpiece moves along its own axis (its wrapper leans it 32deg): in from up and right, a few pecks while it
   works, then back out the way it came. */
@keyframes fillings-drill {
  0%, 3%    { transform: translateY(-24px); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  12%       { transform: translateY(0); }
  15%       { transform: translateY(-2.4px); }
  18%       { transform: translateY(0); }
  21%       { transform: translateY(-2.4px); }
  24%       { transform: translateY(0); }
  26.5%     { transform: translateY(-1.5px); }
  28%       { transform: translateY(0); }
  35%, 100% { transform: translateY(-24px); }
}
@keyframes fillings-drill-fade {
  0%, 4.5%  { opacity: 0; }
  9%, 29%   { opacity: 1; }
  33%, 100% { opacity: 0; }
}
@keyframes fillings-bur { to { stroke-dashoffset: -3.2; } }
@keyframes fillings-rot {
  0%, 15%   { opacity: 1; transform: scale(1); }
  27%       { opacity: 0; transform: scale(.82); }
  95%       { opacity: 0; transform: scale(.82); }
  100%      { opacity: 1; transform: scale(1); }
}
@keyframes fillings-hole {
  0%, 19%   { opacity: 1; transform: scale(1); }
  28%       { opacity: 0; transform: scale(.9); }
  95%       { opacity: 0; transform: scale(.9); }
  100%      { opacity: 1; transform: scale(1); }
}
@keyframes fillings-prep {
  0%, 18%   { opacity: 0; }
  28%, 94%  { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@keyframes fillings-crumb {
  0%, 14%   { opacity: 0; transform: translate(0, 0) scale(.6) rotate(0); }
  15%       { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
  20%       { opacity: .9; transform: translate(calc(var(--dx) * .7), calc(var(--dy) * .7)) scale(.8) rotate(90deg); }
  24%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4) rotate(160deg); }
}
/* The dispenser also moves along its own axis (leaning -34deg); fl-glide carries its sideways moves in view box units. */
@keyframes fillings-disp {
  0%, 30%   { transform: translateY(-16px); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  38%, 39%  { transform: translateY(0); }
  42.5%     { transform: translateY(1.6px); }
  44%       { transform: translateY(0); }
  45.5%     { transform: translateY(1.6px); }
  47%       { transform: translateY(0); }
  64%       { transform: translateY(0); }
  71%, 100% { transform: translateY(-16px); }
}
@keyframes fillings-disp-fade {
  0%, 31.5% { opacity: 0; }
  35.5%, 65% { opacity: 1; }
  69%, 100% { opacity: 0; }
}
@keyframes fillings-glide {
  0%, 52%   { transform: translate(0, -2px); }
  57%       { transform: translate(-22px, 5px); }
  60.5%     { transform: translate(-2px, 8px); }
  64%, 100% { transform: translate(20px, 5px); }
}
@keyframes fillings-drop1 {
  0%, 41%   { opacity: 0; transform: translateY(-4px) scale(.4); }
  42%       { opacity: 1; transform: translateY(-3px) scale(1); }
  45%       { opacity: 1; transform: translateY(16px) scale(1); }
  46%, 100% { opacity: 0; transform: translateY(20px) scale(.6); }
}
@keyframes fillings-drop2 {
  0%, 44%   { opacity: 0; transform: translateY(-4px) scale(.4); }
  45%       { opacity: 1; transform: translateY(-3px) scale(1); }
  48%       { opacity: 1; transform: translateY(10px) scale(1); }
  49%, 100% { opacity: 0; transform: translateY(14px) scale(.6); }
}
@keyframes fillings-fill {
  0%, 43%   { transform: translateY(48px); }
  53%, 97%  { transform: translateY(0); }
  97.5%, 100% { transform: translateY(48px); }
}
@keyframes fillings-fill-fade {
  0%, 94%   { opacity: 1; }
  97%       { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes fillings-dome {
  0%, 50%   { transform: scaleY(0); }
  54%, 97%  { transform: scaleY(1); }
  97.5%, 100% { transform: scaleY(0); }
}
@keyframes fillings-skim {
  0%, 57%   { transform: translateX(-42px); }
  64%, 98%  { transform: translateX(0); }
  98.5%, 100% { transform: translateX(-42px); }
}
@keyframes fillings-unskim {
  0%, 57%   { transform: translateX(42px); }
  64%, 98%  { transform: translateX(0); }
  98.5%, 100% { transform: translateX(42px); }
}
@keyframes fillings-shine {
  0%, 67%   { opacity: 0; transform: translateX(-36px); }
  68%       { opacity: 1; transform: translateX(-32px); }
  74%       { opacity: 1; transform: translateX(30px); }
  75%, 100% { opacity: 0; transform: translateX(36px); }
}
@keyframes fillings-gleam {
  0%, 71%   { stroke-dashoffset: 1.01; }
  77%, 94%  { stroke-dashoffset: 0; }
  97%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes fillings-spark1 {
  0%, 69%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  74%      { opacity: 1; transform: scale(1.15) rotate(0); }
  78%, 94% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes fillings-spark2 {
  0%, 72%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  77%      { opacity: 1; transform: scale(1.2) rotate(0); }
  81%, 94% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes fillings-spark3 {
  0%, 70%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  75%      { opacity: 1; transform: scale(1.2) rotate(0); }
  79%, 94% { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--fillings * { animation: none !important; }
}
/* Gum disease treatment: the swollen gum throbs, a scaler works down the right root in two strokes (the tartar
   specks flick off), lifts out into the left pocket and does the same, then goes back to rest; the gum shrinks back
   to a firm pink line, a highlight draws along it and sparkles twinkle. One 8.5 s loop: throb 0 to 12%, scaler in
   12 to 18%, right strokes 18 to 30%, over to the left pocket 30 to 37%, left strokes 37 to 49%, back to rest 49 to
   58%, gum tightens 50 to 60%, highlights 60 to 66.5%, sparkles 62 to 72%, hold to 92% (1.7 s), reset 92 to 100%
   (the highlights go, the gum swells again and the specks return). The unanimated styles are the finished state. */
.anim--gum-disease-treatment { --gd-d: 8.5s; --gd-out: cubic-bezier(.22, 1, .36, 1); --gd-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--gum-disease-treatment .gd-tx,
.anim--gum-disease-treatment .gd-ty { transform-box: fill-box; transform-origin: center; }
/* The scaler turns about its tip at rest (178, 108): its box starts at (174.87, 29.63), so the tip is 3.13px in and
   78.37px down (its parents only translate). */
.anim--gum-disease-treatment .gd-rot { transform-box: fill-box; transform-origin: 3.13px 78.37px; }
/* The swollen gum shrinks down into the gum band, from its lower edge. */
.anim--gum-disease-treatment .gd-lobe { transform-box: fill-box; transform-origin: 50% 100%; }
.anim--gum-disease-treatment .gd-heat,
.anim--gum-disease-treatment .gd-speck,
.anim--gum-disease-treatment .gd-spark { transform-box: fill-box; transform-origin: center; }
.anim--gum-disease-treatment .gd-gloss { stroke-dasharray: 1 2; stroke-dashoffset: 0; }

html.motion .anim--gum-disease-treatment.is-playing .gd-tx { animation: gum-disease-treatment-tx var(--gd-d) var(--gd-io) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-ty { animation: gum-disease-treatment-ty var(--gd-d) var(--gd-io) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-rot { animation: gum-disease-treatment-rot var(--gd-d) var(--gd-io) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-lobe { animation: gum-disease-treatment-lobe var(--gd-d) var(--gd-io) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-lobe--r { animation-delay: -.12s; }
html.motion .anim--gum-disease-treatment.is-playing .gd-heat { animation: gum-disease-treatment-heat var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-heat--r { animation-delay: -.12s; }
html.motion .anim--gum-disease-treatment.is-playing .gd-speck--1 { animation: gum-disease-treatment-speck1 var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-speck--2 { animation: gum-disease-treatment-speck2 var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-speck--3 { animation: gum-disease-treatment-speck3 var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-speck--4 { animation: gum-disease-treatment-speck4 var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-speck--5 { animation: gum-disease-treatment-speck5 var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-speck--6 { animation: gum-disease-treatment-speck6 var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-gloss--l { animation: gum-disease-treatment-gloss-l var(--gd-d) var(--gd-io) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-gloss--r { animation: gum-disease-treatment-gloss-r var(--gd-d) var(--gd-io) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-spark--1 { animation: gum-disease-treatment-spark1 var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-spark--2 { animation: gum-disease-treatment-spark2 var(--gd-d) var(--gd-out) infinite both; }
html.motion .anim--gum-disease-treatment.is-playing .gd-spark--3 { animation: gum-disease-treatment-spark3 var(--gd-d) var(--gd-out) infinite both; }

/* The scaler's tip, relative to rest (178, 108): right root top (150, 101) and bottom (148, 121), left root top
   (90, 101) and bottom (92, 121). Between the sides it lifts out of the pocket and fades, then eases into the next
   one already angled (the jump at 34% and 53% happens while it is invisible), so it never sweeps across the crown
   or leaves the round card disc. */
@keyframes gum-disease-treatment-tx {
  0%, 12%  { transform: translateX(0); }
  18%      { transform: translateX(-28px); }
  21%      { transform: translateX(-30px); }
  24%      { transform: translateX(-28px); }
  27%      { transform: translateX(-30px); }
  30%      { transform: translateX(-28px); }
  33.9%    { transform: translateX(-18px); }
  34%      { transform: translateX(-94px); }
  37%      { transform: translateX(-88px); }
  40%      { transform: translateX(-86px); }
  43%      { transform: translateX(-88px); }
  46%      { transform: translateX(-86px); }
  49%      { transform: translateX(-88px); }
  52.9%    { transform: translateX(-98px); }
  53%      { transform: translateX(6px); }
  58%, 100% { transform: translateX(0); }
}
@keyframes gum-disease-treatment-ty {
  0%, 12%  { transform: translateY(0); }
  18%      { transform: translateY(-7px); }
  21%      { transform: translateY(13px); }
  24%      { transform: translateY(-7px); }
  27%      { transform: translateY(13px); }
  30%      { transform: translateY(-7px); }
  33.9%    { transform: translateY(-28px); }
  34%      { transform: translateY(-28px); }
  37%      { transform: translateY(-7px); }
  40%      { transform: translateY(13px); }
  43%      { transform: translateY(-7px); }
  46%      { transform: translateY(13px); }
  49%      { transform: translateY(-7px); }
  52.9%    { transform: translateY(-28px); }
  53%      { transform: translateY(-22px); }
  58%, 100% { transform: translateY(0); }
}
@keyframes gum-disease-treatment-rot {
  0%, 12%  { opacity: 1; transform: rotate(0); }
  18%      { opacity: 1; transform: rotate(-4deg); }
  21%      { opacity: 1; transform: rotate(-6deg); }
  24%      { opacity: 1; transform: rotate(-4deg); }
  27%      { opacity: 1; transform: rotate(-6deg); }
  30%      { opacity: 1; transform: rotate(-4deg); }
  33.5%    { opacity: 0; }
  33.9%    { opacity: 0; transform: rotate(4deg); }
  34%      { opacity: 0; transform: rotate(-34deg); }
  36%      { opacity: 1; }
  37%      { opacity: 1; transform: rotate(-28deg); }
  40%      { opacity: 1; transform: rotate(-26deg); }
  43%      { opacity: 1; transform: rotate(-28deg); }
  46%      { opacity: 1; transform: rotate(-26deg); }
  49%      { opacity: 1; transform: rotate(-28deg); }
  52.5%    { opacity: 0; }
  52.9%    { opacity: 0; transform: rotate(-36deg); }
  53%      { opacity: 0; transform: rotate(6deg); }
  56%      { opacity: 1; }
  58%, 100% { opacity: 1; transform: rotate(0); }
}
@keyframes gum-disease-treatment-lobe {
  0%, 2%   { opacity: 1; transform: scale(1); }
  4.5%     { opacity: 1; transform: scale(1.05); }
  7%       { opacity: 1; transform: scale(1); }
  9.5%     { opacity: 1; transform: scale(1.05); }
  12%, 50% { opacity: 1; transform: scale(1); }
  60%, 93% { opacity: 0; transform: scale(.94, .4); }
  99%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes gum-disease-treatment-heat {
  0%, 2%   { opacity: .9; transform: translateY(0) scale(1); }
  4.5%     { opacity: .35; transform: translateY(-2px) scale(1.1); }
  7%       { opacity: .9; transform: translateY(0) scale(1); }
  9.5%     { opacity: .35; transform: translateY(-2px) scale(1.1); }
  12%      { opacity: .9; transform: translateY(0) scale(1); }
  17%, 95% { opacity: 0; transform: translateY(-3px) scale(1.1); }
  100%     { opacity: .9; transform: translateY(0) scale(1); }
}
@keyframes gum-disease-treatment-speck1 {
  0%, 38.1% { opacity: 1; transform: translate(0, 0) scale(1); }
  42.1% { opacity: 0; transform: translate(-8px, -5px) scale(.2); }
  93% { opacity: 0; transform: translate(0, 0) scale(.4); }
  98%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes gum-disease-treatment-speck2 {
  0%, 38.6% { opacity: 1; transform: translate(0, 0) scale(1); }
  42.6% { opacity: 0; transform: translate(-8px, -5px) scale(.2); }
  93% { opacity: 0; transform: translate(0, 0) scale(.4); }
  98%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes gum-disease-treatment-speck3 {
  0%, 45.2% { opacity: 1; transform: translate(0, 0) scale(1); }
  49.2% { opacity: 0; transform: translate(-8px, -5px) scale(.2); }
  93% { opacity: 0; transform: translate(0, 0) scale(.4); }
  98%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes gum-disease-treatment-speck4 {
  0%, 19.1% { opacity: 1; transform: translate(0, 0) scale(1); }
  23.1% { opacity: 0; transform: translate(8px, -5px) scale(.2); }
  93% { opacity: 0; transform: translate(0, 0) scale(.4); }
  98%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes gum-disease-treatment-speck5 {
  0%, 19.6% { opacity: 1; transform: translate(0, 0) scale(1); }
  23.6% { opacity: 0; transform: translate(8px, -5px) scale(.2); }
  93% { opacity: 0; transform: translate(0, 0) scale(.4); }
  98%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes gum-disease-treatment-speck6 {
  0%, 26.2% { opacity: 1; transform: translate(0, 0) scale(1); }
  30.2% { opacity: 0; transform: translate(8px, -5px) scale(.2); }
  93% { opacity: 0; transform: translate(0, 0) scale(.4); }
  98%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes gum-disease-treatment-gloss-l {
  0%, 60%   { stroke-dashoffset: 1.01; }
  65%, 91%  { stroke-dashoffset: 0; }
  95%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes gum-disease-treatment-gloss-r {
  0%, 61.5% { stroke-dashoffset: 1.01; }
  66.5%, 91% { stroke-dashoffset: 0; }
  95%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes gum-disease-treatment-spark1 {
  0%, 62%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  67%      { opacity: 1; transform: scale(1.15) rotate(0); }
  71%, 91% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes gum-disease-treatment-spark2 {
  0%, 65%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  70%      { opacity: 1; transform: scale(1.2) rotate(0); }
  74%, 91% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes gum-disease-treatment-spark3 {
  0%, 63.5% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  68.5%     { opacity: 1; transform: scale(1.2) rotate(0); }
  72.5%, 91% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--gum-disease-treatment * { animation: none !important; }
}
/* Invisalign: dashed outlines show where the teeth belong, a clear aligner seats and the crooked teeth shift half way,
   it comes off, a second aligner seats and they finish the move; a gloss crosses the aligner and sparkles close it.
   One 8 s loop: outlines 2 to 10%, first aligner 10 to 19%, first move 19 to 31%, it comes off 32 to 39%, second
   aligner 39 to 47%, second move 47 to 59% (the outlines fade as the teeth reach them), gloss 58 to 68%, sparkles 62 to
   72%, hold to 92% (1.6 s), reset 92 to 100% (the aligner fades, the teeth drift back). The unanimated styles are the
   finished state; the crooked offsets exist only in the keyframes. */
.anim--invisalign { --inv-d: 8s; --inv-out: cubic-bezier(.22, 1, .36, 1); --inv-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
/* Each tooth tilts about the middle of its neck at the gum line: each crown's box starts 18px up inside the gum, so
   that point is half its width across and 18px down. */
.anim--invisalign .inv-tooth { transform-box: fill-box; }
.anim--invisalign .inv-tooth--1,
.anim--invisalign .inv-tooth--6 { transform-origin: 11.5px 18px; }
.anim--invisalign .inv-tooth--2,
.anim--invisalign .inv-tooth--5 { transform-origin: 12.5px 18px; }
.anim--invisalign .inv-tooth--3,
.anim--invisalign .inv-tooth--4 { transform-origin: 15.5px 18px; }
/* The shell tints what is under it without washing out the ink outlines. */
.anim--invisalign .inv-shell { mix-blend-mode: multiply; }
.anim--invisalign .inv-ghost,
.anim--invisalign .inv-shell,
.anim--invisalign .inv-tray,
.anim--invisalign .inv-gloss,
.anim--invisalign .inv-spark { transform-box: fill-box; transform-origin: center; }

html.motion .anim--invisalign.is-playing .inv-tooth--1 { animation: invisalign-t1 var(--inv-d) var(--inv-io) infinite both; }
html.motion .anim--invisalign.is-playing .inv-tooth--2 { animation: invisalign-t2 var(--inv-d) var(--inv-io) infinite both; }
html.motion .anim--invisalign.is-playing .inv-tooth--3 { animation: invisalign-t3 var(--inv-d) var(--inv-io) infinite both; }
html.motion .anim--invisalign.is-playing .inv-tooth--4 { animation: invisalign-t4 var(--inv-d) var(--inv-io) infinite both; }
html.motion .anim--invisalign.is-playing .inv-tooth--5 { animation: invisalign-t5 var(--inv-d) var(--inv-io) infinite both; }
html.motion .anim--invisalign.is-playing .inv-tooth--6 { animation: invisalign-t6 var(--inv-d) var(--inv-io) infinite both; }
/* The teeth start a beat apart (0.5% = 40 ms), centrals first, so the row settles like a wave rather than a block. */
html.motion .anim--invisalign.is-playing .inv-tooth--3,
html.motion .anim--invisalign.is-playing .inv-tooth--4 { animation-delay: 0s; }
html.motion .anim--invisalign.is-playing .inv-tooth--2,
html.motion .anim--invisalign.is-playing .inv-tooth--5 { animation-delay: .04s; }
html.motion .anim--invisalign.is-playing .inv-tooth--1,
html.motion .anim--invisalign.is-playing .inv-tooth--6 { animation-delay: .08s; }
html.motion .anim--invisalign.is-playing .inv-ghost { animation: invisalign-ghost var(--inv-d) var(--inv-out) infinite both; }
html.motion .anim--invisalign.is-playing .inv-ghost--1 { animation-delay: .15s; }
html.motion .anim--invisalign.is-playing .inv-ghost--2 { animation-delay: .1s; }
html.motion .anim--invisalign.is-playing .inv-ghost--3 { animation-delay: .05s; }
html.motion .anim--invisalign.is-playing .inv-ghost--4 { animation-delay: .05s; }
html.motion .anim--invisalign.is-playing .inv-ghost--5 { animation-delay: .1s; }
html.motion .anim--invisalign.is-playing .inv-ghost--6 { animation-delay: .15s; }
html.motion .anim--invisalign.is-playing .inv-shell,
html.motion .anim--invisalign.is-playing .inv-tray { animation: invisalign-tray var(--inv-d) var(--inv-out) infinite both, invisalign-tray-fade var(--inv-d) var(--inv-io) infinite both; }
html.motion .anim--invisalign.is-playing .inv-gloss { animation: invisalign-gloss var(--inv-d) var(--inv-io) infinite both; }
html.motion .anim--invisalign.is-playing .inv-spark--1 { animation: invisalign-spark1 var(--inv-d) var(--inv-out) infinite both; }
html.motion .anim--invisalign.is-playing .inv-spark--2 { animation: invisalign-spark2 var(--inv-d) var(--inv-out) infinite both; }
html.motion .anim--invisalign.is-playing .inv-spark--3 { animation: invisalign-spark3 var(--inv-d) var(--inv-out) infinite both; }

/* Crooked at 0%, 45% of the way at the first move, straight at the second. */
@keyframes invisalign-t1 {
  0%, 19%  { transform: translate(0, -2px) rotate(-4deg); }
  31%, 47% { transform: translate(0, -.9px) rotate(-1.8deg); }
  59%, 93% { transform: none; }
  100%     { transform: translate(0, -2px) rotate(-4deg); }
}
@keyframes invisalign-t2 {
  0%, 19%  { transform: translate(3px, -6px) rotate(9deg); }
  31%, 47% { transform: translate(1.35px, -2.7px) rotate(4deg); }
  59%, 93% { transform: none; }
  100%     { transform: translate(3px, -6px) rotate(9deg); }
}
@keyframes invisalign-t3 {
  0%, 19%  { transform: translate(1px, 3px) rotate(-7deg); }
  31%, 47% { transform: translate(.45px, 1.35px) rotate(-3.2deg); }
  59%, 93% { transform: none; }
  100%     { transform: translate(1px, 3px) rotate(-7deg); }
}
@keyframes invisalign-t4 {
  0%, 19%  { transform: translate(-4px, -2px) rotate(9deg); }
  31%, 47% { transform: translate(-1.8px, -.9px) rotate(4deg); }
  59%, 93% { transform: none; }
  100%     { transform: translate(-4px, -2px) rotate(9deg); }
}
@keyframes invisalign-t5 {
  0%, 19%  { transform: translate(1px, 5px) rotate(-8deg); }
  31%, 47% { transform: translate(.45px, 2.25px) rotate(-3.6deg); }
  59%, 93% { transform: none; }
  100%     { transform: translate(1px, 5px) rotate(-8deg); }
}
@keyframes invisalign-t6 {
  0%, 19%  { transform: translate(0, -3px) rotate(5deg); }
  31%, 47% { transform: translate(0, -1.35px) rotate(2.2deg); }
  59%, 93% { transform: none; }
  100%     { transform: translate(0, -3px) rotate(5deg); }
}
@keyframes invisalign-ghost {
  0%, 2%   { opacity: 0; transform: scale(1.06); }
  9%, 52%  { opacity: 1; transform: scale(1); }
  59%, 100% { opacity: 0; transform: scale(1); }
}
/* The aligner rises into place, comes off downwards, then the second one rises in; it fades during the reset. */
@keyframes invisalign-tray {
  0%, 10%  { transform: translateY(26px); }
  19%, 32% { transform: translateY(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  39%, 39.4% { transform: translateY(22px); }
  39.5%    { transform: translateY(26px); }
  47%, 100% { transform: translateY(0); }
}
@keyframes invisalign-tray-fade {
  0%, 10%  { opacity: 0; }
  15%, 33.5% { opacity: 1; }
  38%, 39.5% { opacity: 0; }
  43%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes invisalign-gloss {
  0%, 58%  { transform: translateX(-120px); }
  68%, 100% { transform: translateX(0); }
}
@keyframes invisalign-spark1 {
  0%, 62%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  67%      { opacity: 1; transform: scale(1.15) rotate(0); }
  71%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes invisalign-spark2 {
  0%, 65%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  70%      { opacity: 1; transform: scale(1.2) rotate(0); }
  74%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes invisalign-spark3 {
  0%, 68%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  73%      { opacity: 1; transform: scale(1.2) rotate(0); }
  77%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--invisalign * { animation: none !important; }
}
/* Oral cancer screening: the mouth opens, soft rings pulse out, four check points tick one by one (lips, tongue,
   cheek, throat), then a last ring and two sparkles. One 8 s loop: open 0 to 10%, rings 8 to 30%, ticks at 20, 30,
   40 and 50%, all clear 58 to 73%, hold to 90%, reset 90 to 100% (the checks clear, then the jaw closes a little).
   The unanimated styles are the finished state. */
.anim--oral-cancer-screening { --os-d: 8s; --os-out: cubic-bezier(.22, 1, .36, 1); --os-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
/* The jaw closes by scaling toward the corners of the mouth (y 106), in view box coordinates. It closes and reopens
   on the in-out curve so the turn at the seam is smooth rather than a sudden start. */
.anim--oral-cancer-screening .os-jaw { transform-box: view-box; transform-origin: 120px 106px; }
.anim--oral-cancer-screening .os-sonar { transform-box: fill-box; transform-origin: center; }
.anim--oral-cancer-screening .os-ping { transform-box: fill-box; transform-origin: center; }
.anim--oral-cancer-screening .os-dot,
.anim--oral-cancer-screening .os-spark { transform-box: fill-box; transform-origin: center; }
.anim--oral-cancer-screening .os-check { stroke-dasharray: 1 2; stroke-dashoffset: 0; }

html.motion .anim--oral-cancer-screening.is-playing .os-jaw { animation: oral-cancer-screening-jaw var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-todo { animation: oral-cancer-screening-todo var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-sonar--1 { animation: oral-cancer-screening-sonar1 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-sonar--2 { animation: oral-cancer-screening-sonar2 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-sonar--3 { animation: oral-cancer-screening-sonar3 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-spark--1 { animation: oral-cancer-screening-spark1 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-spark--2 { animation: oral-cancer-screening-spark2 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-dot--1 { animation: oral-cancer-screening-dot1 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-check--1 { animation: oral-cancer-screening-check1 var(--os-d) var(--os-io) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-ping--1 { animation: oral-cancer-screening-ping1 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-dot--2 { animation: oral-cancer-screening-dot2 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-check--2 { animation: oral-cancer-screening-check2 var(--os-d) var(--os-io) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-ping--2 { animation: oral-cancer-screening-ping2 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-dot--3 { animation: oral-cancer-screening-dot3 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-check--3 { animation: oral-cancer-screening-check3 var(--os-d) var(--os-io) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-ping--3 { animation: oral-cancer-screening-ping3 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-dot--4 { animation: oral-cancer-screening-dot4 var(--os-d) var(--os-out) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-check--4 { animation: oral-cancer-screening-check4 var(--os-d) var(--os-io) infinite both; }
html.motion .anim--oral-cancer-screening.is-playing .os-ping--4 { animation: oral-cancer-screening-ping4 var(--os-d) var(--os-out) infinite both; }

@keyframes oral-cancer-screening-jaw {
  0%       { transform: scaleY(.86); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  10%, 93% { transform: scaleY(1); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100%     { transform: scaleY(.86); }
}
@keyframes oral-cancer-screening-todo {
  0%, 5%    { opacity: 0; }
  11%, 94%  { opacity: 1; }
  99%, 100% { opacity: 0; }
}
@keyframes oral-cancer-screening-sonar1 { 0%, 8% { opacity: 0; transform: scale(.88); } 10% { opacity: .7; transform: scale(.9); } 26%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes oral-cancer-screening-sonar2 { 0%, 14% { opacity: 0; transform: scale(.88); } 16% { opacity: .55; transform: scale(.9); } 32%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes oral-cancer-screening-sonar3 { 0%, 58% { opacity: 0; transform: scale(.9); } 60% { opacity: .7; transform: scale(.92); } 75%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes oral-cancer-screening-spark1 {
  0%, 60%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  65%      { opacity: 1; transform: scale(1.15) rotate(0); }
  69%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes oral-cancer-screening-spark2 {
  0%, 63%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  68%      { opacity: 1; transform: scale(1.2) rotate(0); }
  72%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes oral-cancer-screening-dot1 {
  0%, 19%  { opacity: 0; transform: scale(.4); }
  23%      { opacity: 1; transform: scale(1.15); }
  26%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes oral-cancer-screening-check1 {
  0%, 22%  { stroke-dashoffset: 1.01; }
  28%, 100% { stroke-dashoffset: 0; }
}
@keyframes oral-cancer-screening-ping1 {
  0%, 21%  { opacity: 0; transform: scale(1); }
  23%      { opacity: .85; transform: scale(1); }
  33%, 100% { opacity: 0; transform: scale(1.8); }
}
@keyframes oral-cancer-screening-dot2 {
  0%, 29%  { opacity: 0; transform: scale(.4); }
  33%      { opacity: 1; transform: scale(1.15); }
  36%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes oral-cancer-screening-check2 {
  0%, 32%  { stroke-dashoffset: 1.01; }
  38%, 100% { stroke-dashoffset: 0; }
}
@keyframes oral-cancer-screening-ping2 {
  0%, 31%  { opacity: 0; transform: scale(1); }
  33%      { opacity: .85; transform: scale(1); }
  43%, 100% { opacity: 0; transform: scale(1.8); }
}
@keyframes oral-cancer-screening-dot3 {
  0%, 39%  { opacity: 0; transform: scale(.4); }
  43%      { opacity: 1; transform: scale(1.15); }
  46%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes oral-cancer-screening-check3 {
  0%, 42%  { stroke-dashoffset: 1.01; }
  48%, 100% { stroke-dashoffset: 0; }
}
@keyframes oral-cancer-screening-ping3 {
  0%, 41%  { opacity: 0; transform: scale(1); }
  43%      { opacity: .85; transform: scale(1); }
  53%, 100% { opacity: 0; transform: scale(1.8); }
}
@keyframes oral-cancer-screening-dot4 {
  0%, 49%  { opacity: 0; transform: scale(.4); }
  53%      { opacity: 1; transform: scale(1.15); }
  56%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes oral-cancer-screening-check4 {
  0%, 52%  { stroke-dashoffset: 1.01; }
  58%, 100% { stroke-dashoffset: 0; }
}
@keyframes oral-cancer-screening-ping4 {
  0%, 51%  { opacity: 0; transform: scale(1); }
  53%      { opacity: .85; transform: scale(1); }
  63%, 100% { opacity: 0; transform: scale(1.8); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--oral-cancer-screening * { animation: none !important; }
}
/* Children's dentistry: the baby tooth pops up and the grown-up tooth leans in; a toothbrush scrubs the little crown
   and swings down to stand beside it; it hops, sparkles pop, and the growth chart's marks rise as a star climbs to the
   top. One 8 s loop: baby tooth 2 to 13%, lean 8 to 20%, brush in 12 to 17%, scrub 17 to 35% (its shine draws 33 to
   40%), swing down beside the baby tooth 35 to 47%, hop 45 to 60%, sparkles 50 to 58%, chart 53 to 73%, hold 73 to 92% (1.5 s),
   reset 92 to 100%. The unanimated styles are the finished state. */
.anim--pediatric-dentistry { --pd-d: 8s; --pd-out: cubic-bezier(.22, 1, .36, 1); --pd-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
/* Pivots in view box coordinates: both teeth grow, lean and squash from the middle of their base (on the ground line,
   y 200); the toothbrush is placed by a full translate and rotate from the end of its handle, as in its attribute. */
.anim--pediatric-dentistry .pd-adult { transform-box: view-box; transform-origin: 148px 200px; }
.anim--pediatric-dentistry .pd-kid,
.anim--pediatric-dentistry .pd-baby { transform-box: view-box; transform-origin: 80px 200px; }
.anim--pediatric-dentistry .pd-brush { transform-box: view-box; transform-origin: 0 0; }
.anim--pediatric-dentistry .pd-shine { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.anim--pediatric-dentistry .pd-swish,
.anim--pediatric-dentistry .pd-star,
.anim--pediatric-dentistry .pd-ring,
.anim--pediatric-dentistry .pd-spark { transform-box: fill-box; transform-origin: center; }
.anim--pediatric-dentistry .pd-tick { transform-box: fill-box; transform-origin: 0 50%; }

html.motion .anim--pediatric-dentistry.is-playing .pd-baby { animation: pediatric-dentistry-baby var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-adult { animation: pediatric-dentistry-lean var(--pd-d) var(--pd-io) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-brush { animation: pediatric-dentistry-brush var(--pd-d) var(--pd-io) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-swish--1 { animation: pediatric-dentistry-swish1 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-swish--2 { animation: pediatric-dentistry-swish2 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-shine { animation: pediatric-dentistry-shine var(--pd-d) var(--pd-io) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-kid { animation: pediatric-dentistry-hop var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-spark--1 { animation: pediatric-dentistry-spark1 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-spark--2 { animation: pediatric-dentistry-spark2 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-spark--3 { animation: pediatric-dentistry-spark3 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-tick--1 { animation: pediatric-dentistry-tick1 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-tick--2 { animation: pediatric-dentistry-tick2 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-tick--3 { animation: pediatric-dentistry-tick3 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-tick--4 { animation: pediatric-dentistry-tick4 var(--pd-d) var(--pd-out) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-star { animation: pediatric-dentistry-star var(--pd-d) var(--pd-io) infinite both; }
html.motion .anim--pediatric-dentistry.is-playing .pd-ring { animation: pediatric-dentistry-ring var(--pd-d) var(--pd-out) infinite both; }

/* The baby tooth grows up from its base; at the end of the loop the whole kid group fades instead (see the hop), so
   the tooth and its brush leave together. */
@keyframes pediatric-dentistry-baby {
  0%, 2%    { opacity: 0; transform: scale(.3); }
  5%        { opacity: 1; }
  9%        { transform: scale(1.05); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  13%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes pediatric-dentistry-lean {
  0%, 8%    { transform: rotate(0); }
  13%       { transform: rotate(-4deg); }
  20%, 100% { transform: rotate(0); }
}
/* In: from above right to the brushing pose, bristles down on the crown. Scrub: three strokes across the crown with
   a small wrist turn. Then a swing up over the baby tooth and down to stand on the ground beside it, with a small
   rock as it comes to rest (280deg is the attribute's -80deg). */
@keyframes pediatric-dentistry-brush {
  0%, 12%  { opacity: 0; transform: translate(178px, 30px) rotate(136deg); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  17%      { opacity: 1; transform: translate(131px, 76.5px) rotate(150deg); }
  20%      { transform: translate(124px, 77.5px) rotate(153deg); }
  23%      { transform: translate(137px, 76px) rotate(147deg); }
  26%      { transform: translate(124px, 77.5px) rotate(153deg); }
  29%      { transform: translate(137px, 76px) rotate(147deg); }
  32%      { transform: translate(124px, 77.5px) rotate(153deg); }
  35%      { transform: translate(131px, 76.5px) rotate(150deg); }
  43%      { transform: translate(44px, 196px) rotate(284deg); }
  47%, 100% { opacity: 1; transform: translate(44px, 196px) rotate(280deg); }
}
@keyframes pediatric-dentistry-swish1 {
  0%, 18%   { opacity: 0; transform: scale(.6); }
  20%       { opacity: .9; transform: scale(1); }
  23%       { opacity: 0; transform: scale(.6); }
  26%       { opacity: .9; transform: scale(1); }
  29%       { opacity: 0; transform: scale(.6); }
  32%       { opacity: .9; transform: scale(1); }
  35%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes pediatric-dentistry-swish2 {
  0%, 21%   { opacity: 0; transform: scale(.6); }
  23%       { opacity: .9; transform: scale(1); }
  26%       { opacity: 0; transform: scale(.6); }
  29%       { opacity: .9; transform: scale(1); }
  32%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes pediatric-dentistry-shine {
  0%, 33%   { stroke-dashoffset: 1.01; }
  40%, 100% { stroke-dashoffset: 0; }
}
/* A crouch, a hop with a stretch, a soft squash on landing; the reset fades the tooth and brush out together. */
@keyframes pediatric-dentistry-hop {
  0%, 44%   { opacity: 1; transform: translateY(0) scale(1, 1); }
  47%       { transform: translateY(0) scale(1.035, .95); }
  51%       { transform: translateY(-14px) scale(.98, 1.03); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  55%       { transform: translateY(0) scale(1.035, .955); }
  58%       { transform: translateY(0) scale(.995, 1.01); }
  61%, 92%  { opacity: 1; transform: translateY(0) scale(1, 1); }
  97%, 100% { opacity: 0; transform: translateY(0) scale(.85, .85); }
}
@keyframes pediatric-dentistry-spark1 {
  0%, 50%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  54%      { opacity: 1; transform: scale(1.2) rotate(0); }
  58%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes pediatric-dentistry-spark2 {
  0%, 52%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  56%      { opacity: 1; transform: scale(1.2) rotate(0); }
  60%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes pediatric-dentistry-spark3 {
  0%, 71%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  75%      { opacity: 1; transform: scale(1.2) rotate(0); }
  79%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
/* Each mark draws out as the star steps up off it. */
@keyframes pediatric-dentistry-tick1 { 0%, 57% { opacity: 0; transform: scaleX(0); } 59.5%, 92% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes pediatric-dentistry-tick2 { 0%, 60.5% { opacity: 0; transform: scaleX(0); } 63%, 92% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes pediatric-dentistry-tick3 { 0%, 64% { opacity: 0; transform: scaleX(0); } 66.5%, 92% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes pediatric-dentistry-tick4 { 0%, 67.5% { opacity: 0; transform: scaleX(0); } 70%, 92% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; transform: scaleX(1); } }
/* The star appears at the lowest mark and climbs one mark at a time, turning a fifth of a turn each step. */
@keyframes pediatric-dentistry-star {
  0%, 53%   { opacity: 0; transform: translateY(88px) rotate(-144deg) scale(.4); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  56%, 57%  { opacity: 1; transform: translateY(88px) rotate(-144deg) scale(1); }
  59.5%, 60.5% { transform: translateY(70px) rotate(-108deg) scale(1); }
  63%, 64%  { transform: translateY(52px) rotate(-72deg) scale(1); }
  66.5%, 67.5% { transform: translateY(34px) rotate(-36deg) scale(1); }
  70.5%     { transform: translateY(-3px) rotate(4deg) scale(1.12); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  73%, 92%  { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(0) rotate(30deg) scale(.4); }
}
@keyframes pediatric-dentistry-ring {
  0%, 70%   { opacity: 0; transform: scale(.8); }
  72%       { opacity: .9; transform: scale(.9); }
  84%, 100% { opacity: 0; transform: scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--pediatric-dentistry * { animation: none !important; }
}
/* Root canals: warm rings throb from the infected pulp; the file comes in, the chamber cools to blue, the file works
   down the left canal (it cools behind the tip), back up, across, down the right canal, then leaves; the canals fill
   and seal from the top down, the chamber is sealed, the crown shell settles over the top and sparkles twinkle.
   One 9.5 s loop: throb and ache marks 0 to 13%, file 7 to 60% (left canal 14 to 30%, right canal 39 to 54%), cores 58 to 68%,
   seal 65 to 71%, crown 69 to 77%, sparkles 72 to 82%, hold to 95% (1.7 s after the crown lands), reset 95 to 100%.
   The unanimated styles are the finished state. */
.anim--root-canals { --rc-d: 9.5s; --rc-out: cubic-bezier(.22, 1, .36, 1); --rc-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--root-canals .rc-throb { transform-box: fill-box; transform-origin: center; }
.anim--root-canals .rc-ache--l { transform-box: fill-box; transform-origin: 100% 50%; }
.anim--root-canals .rc-ache--r { transform-box: fill-box; transform-origin: 0 50%; }
/* The file: rc-file moves along the file's own axis (tip at the root end at rest), rc-tilt swings it about the
   left canal's opening (111.2, 123.2) and rc-fx carries it across to the right canal's opening, 17.6px to the right. */
.anim--root-canals .rc-file,
.anim--root-canals .rc-fx { transform-box: view-box; transform-origin: 0 0; }
.anim--root-canals .rc-tilt { transform-box: view-box; transform-origin: 111.2px 123.2px; }
/* Canal windows (tooth units, inside the 0.8 group): the window's bottom edge rides down with the file's tip (from
   just above the canal's opening, under the chamber, to 4 units past the tip), its contents counter-move so they
   stay put. */
.anim--root-canals .rc-winL,
.anim--root-canals .rc-unwinL,
.anim--root-canals .rc-winR,
.anim--root-canals .rc-unwinR { transform-box: view-box; transform-origin: 0 0; }
.anim--root-canals .rc-core { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.anim--root-canals .rc-seal,
.anim--root-canals .rc-crown,
.anim--root-canals .rc-spark { transform-box: fill-box; transform-origin: center; }

html.motion .anim--root-canals.is-playing .rc-throb--1 { animation: root-canals-throb var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-throb--2 { animation: root-canals-throb var(--rc-d) var(--rc-out) infinite both; animation-delay: .45s; }
html.motion .anim--root-canals.is-playing .rc-ache--l,
html.motion .anim--root-canals.is-playing .rc-ache--r { animation: root-canals-ache var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-warm { animation: root-canals-warm var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-file { animation: root-canals-file var(--rc-d) var(--rc-io) infinite both, root-canals-file-fade var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-fx { animation: root-canals-fx var(--rc-d) var(--rc-io) infinite both; }
html.motion .anim--root-canals.is-playing .rc-tilt { animation: root-canals-tilt var(--rc-d) var(--rc-io) infinite both; }
html.motion .anim--root-canals.is-playing .rc-cool { animation: root-canals-cool var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-winL { animation: root-canals-winL var(--rc-d) var(--rc-io) infinite both; }
html.motion .anim--root-canals.is-playing .rc-unwinL { animation: root-canals-unwinL var(--rc-d) var(--rc-io) infinite both, root-canals-blue-fade var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-winR { animation: root-canals-winR var(--rc-d) var(--rc-io) infinite both; }
html.motion .anim--root-canals.is-playing .rc-unwinR { animation: root-canals-unwinR var(--rc-d) var(--rc-io) infinite both, root-canals-blue-fade var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-core--l { animation: root-canals-core-l var(--rc-d) var(--rc-io) infinite both, root-canals-core-fade var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-core--r { animation: root-canals-core-r var(--rc-d) var(--rc-io) infinite both, root-canals-core-fade var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-seal { animation: root-canals-seal var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-crown { animation: root-canals-crown var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-spark--1 { animation: root-canals-spark1 var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-spark--2 { animation: root-canals-spark2 var(--rc-d) var(--rc-out) infinite both; }
html.motion .anim--root-canals.is-playing .rc-spark--3 { animation: root-canals-spark3 var(--rc-d) var(--rc-out) infinite both; }

@keyframes root-canals-throb {
  0%        { opacity: 0; transform: scale(.7); }
  1.5%      { opacity: .9; transform: scale(.75); }
  9%, 100%  { opacity: 0; transform: scale(1.45); }
}
@keyframes root-canals-ache {
  0%        { opacity: 0; transform: scale(.5); }
  2%        { opacity: 1; transform: scale(1); }
  4.5%      { opacity: .35; transform: scale(.8); }
  6.5%      { opacity: 1; transform: scale(1.05); }
  11%, 100% { opacity: 0; transform: scale(.7); }
}
/* The warm pulp lies under the cooled layers for the whole loop; it shows only where they are not drawn yet. */
@keyframes root-canals-warm { 0%, 100% { opacity: 1; } }
@keyframes root-canals-file {
  0%, 7.4%  { transform: translateY(-50px); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  13.7%     { transform: translateY(-46.4px); }
  25.3%     { transform: translateY(-3.2px); }
  27.2%     { transform: translateY(-8px); }
  29.5%     { transform: translateY(0); }
  34.7%, 38.9% { transform: translateY(-46.4px); }
  49.5%     { transform: translateY(-3.2px); }
  51.4%     { transform: translateY(-8px); }
  53.7%     { transform: translateY(0); }
  60%, 100% { transform: translateY(-60px); }
}
@keyframes root-canals-file-fade {
  0%, 7.4%  { opacity: 0; }
  11.5%, 56.8% { opacity: 1; }
  60%, 100% { opacity: 0; }
}
@keyframes root-canals-fx {
  0%, 34.7%   { transform: translateX(0); }
  38.9%, 100% { transform: translateX(17.6px); }
}
@keyframes root-canals-tilt {
  0%, 34.7%   { transform: rotate(0); }
  38.9%, 100% { transform: rotate(-9.8deg); }
}
@keyframes root-canals-cool {
  0%, 10.5% { opacity: 0; }
  16.8%, 95% { opacity: 1; }
  99%, 100% { opacity: 0; }
}
@keyframes root-canals-winL {
  0%, 13.7%   { transform: translateY(-74px); }
  25.3%       { transform: translateY(-8px); }
  29.5%, 99%  { transform: translateY(0); }
  99.2%, 100% { transform: translateY(-74px); }
}
@keyframes root-canals-unwinL {
  0%, 13.7%   { transform: translateY(74px); }
  25.3%       { transform: translateY(8px); }
  29.5%, 99%  { transform: translateY(0); }
  99.2%, 100% { transform: translateY(74px); }
}
@keyframes root-canals-winR {
  0%, 38.9%   { transform: translateY(-74px); }
  49.5%       { transform: translateY(-8px); }
  53.7%, 99%  { transform: translateY(0); }
  99.2%, 100% { transform: translateY(-74px); }
}
@keyframes root-canals-unwinR {
  0%, 38.9%   { transform: translateY(74px); }
  49.5%       { transform: translateY(8px); }
  53.7%, 99%  { transform: translateY(0); }
  99.2%, 100% { transform: translateY(74px); }
}
@keyframes root-canals-blue-fade {
  0%, 95%   { opacity: 1; }
  98.5%, 99.2% { opacity: 0; }
  99.5%, 100% { opacity: 1; }
}
@keyframes root-canals-core-l {
  0%, 57.9% { stroke-dashoffset: 1.01; }
  66.3%, 99% { stroke-dashoffset: 0; }
  99.2%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes root-canals-core-r {
  0%, 60%   { stroke-dashoffset: 1.01; }
  68.4%, 99% { stroke-dashoffset: 0; }
  99.2%, 100% { stroke-dashoffset: 1.01; }
}
@keyframes root-canals-core-fade {
  0%, 94.7% { opacity: 1; }
  98%, 99.2% { opacity: 0; }
  99.5%, 100% { opacity: 1; }
}
@keyframes root-canals-seal {
  0%, 65.3% { opacity: 0; transform: scale(.8); }
  70.5%, 94.7% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes root-canals-crown {
  0%, 69.5% { opacity: 0; transform: translateY(-18px); }
  73.5%     { opacity: 1; }
  77%, 94.7% { opacity: 1; transform: translateY(0); }
  98%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes root-canals-spark1 {
  0%, 71.8% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  76%       { opacity: 1; transform: scale(1.15) rotate(0); }
  79.5%, 94.7% { opacity: 1; transform: scale(1) rotate(0); }
  97.5%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes root-canals-spark2 {
  0%, 74.5% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  78.5%     { opacity: 1; transform: scale(1.2) rotate(0); }
  82%, 94.7% { opacity: 1; transform: scale(1) rotate(0); }
  97.5%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes root-canals-spark3 {
  0%, 73%   { opacity: 0; transform: scale(.3) rotate(-45deg); }
  77%       { opacity: 1; transform: scale(1.2) rotate(0); }
  80.5%, 94.7% { opacity: 1; transform: scale(1) rotate(0); }
  97.5%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--root-canals * { animation: none !important; }
}
/* Sealants: food specks lift out of a molar's grooves; an applicator paints a translucent coat along the main groove
   (right to left) and the coat flows into the side grooves as it passes; the applicator parks, a glint crosses the
   sealed surface, a shield badge pops in, and a last speck bounces off the coat.
   One 8 s loop: specks out 3 to 14%, applicator in 9 to 15%, painting 15 to 37% (side grooves at 15, 26 and 36%),
   applicator parks 37 to 46%, glint 43 to 53% and gloss 50 to 56%, badge 50 to 60%, bounce 60 to 74%,
   hold 74 to 92% (1.4 s), reset 92 to 100% (the coat fades and the specks come back).
   The unanimated styles are the finished state. */
.anim--sealants { --sl-d: 8s; --sl-out: cubic-bezier(.22, 1, .36, 1); --sl-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--sealants .sl-paint,
.anim--sealants .sl-gloss,
.anim--sealants .sl-check { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
/* The applicator is placed by a full translate and rotate from its tip, as in its attribute. */
.anim--sealants .sl-brush { transform-box: view-box; transform-origin: 0 0; }
.anim--sealants .sl-speck,
.anim--sealants .sl-glint,
.anim--sealants .sl-drop,
.anim--sealants .sl-ping,
.anim--sealants .sl-badge,
.anim--sealants .sl-ring,
.anim--sealants .sl-spark { transform-box: fill-box; transform-origin: center; }

html.motion .anim--sealants.is-playing .sl-speck--1 { animation: sealants-speck1 var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-speck--2 { animation: sealants-speck2 var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-speck--3 { animation: sealants-speck3 var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-speck--4 { animation: sealants-speck4 var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-speck--5 { animation: sealants-speck5 var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-brush { animation: sealants-brush var(--sl-d) var(--sl-io) infinite both; }
html.motion .anim--sealants.is-playing .sl-coat { animation: sealants-coat var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-paint--main { animation: sealants-main var(--sl-d) var(--sl-io) infinite both; }
html.motion .anim--sealants.is-playing .sl-paint--r { animation: sealants-fork-r var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-paint--c { animation: sealants-fork-c var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-paint--l { animation: sealants-fork-l var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-glint { animation: sealants-glint var(--sl-d) var(--sl-io) infinite both; }
html.motion .anim--sealants.is-playing .sl-gloss { animation: sealants-gloss var(--sl-d) var(--sl-io) infinite both; }
html.motion .anim--sealants.is-playing .sl-badge { animation: sealants-badge var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-check { animation: sealants-check var(--sl-d) var(--sl-io) infinite both; }
html.motion .anim--sealants.is-playing .sl-ring { animation: sealants-ring var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-spark--1 { animation: sealants-spark1 var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-spark--2 { animation: sealants-spark2 var(--sl-d) var(--sl-out) infinite both; }
html.motion .anim--sealants.is-playing .sl-drop { animation: sealants-drop var(--sl-d) var(--sl-io) infinite both; }
html.motion .anim--sealants.is-playing .sl-ping { animation: sealants-ping var(--sl-d) var(--sl-out) infinite both; }

/* Each speck lifts out of its groove in turn, right to left; all come back once the coat has faded. */
@keyframes sealants-speck1 { 0%, 3% { opacity: 1; transform: translateY(0) scale(1); } 7%, 96% { opacity: 0; transform: translateY(-8px) scale(.3); } 99.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sealants-speck2 { 0%, 5% { opacity: 1; transform: translateY(0) scale(1); } 9%, 96% { opacity: 0; transform: translateY(-8px) scale(.3); } 99.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sealants-speck3 { 0%, 7% { opacity: 1; transform: translateY(0) scale(1); } 11%, 96% { opacity: 0; transform: translateY(-8px) scale(.3); } 99.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sealants-speck4 { 0%, 8.5% { opacity: 1; transform: translateY(0) scale(1); } 12.5%, 96% { opacity: 0; transform: translateY(-8px) scale(.3); } 99.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sealants-speck5 { 0%, 10% { opacity: 1; transform: translateY(0) scale(1); } 14%, 96% { opacity: 0; transform: translateY(-8px) scale(.3); } 99.5%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
/* In from the top right to the right end of the main groove, paint it to the left end leaning back the way it came,
   then lift, turn and park at top left. */
@keyframes sealants-brush {
  0%, 9%   { opacity: 0; transform: translate(196px, 32px) rotate(52deg); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  14%, 15% { opacity: 1; transform: translate(163.2px, 72px) rotate(35deg); }
  37%      { transform: translate(76.8px, 73.2px) rotate(26deg); }
  42%      { transform: translate(58px, 63px) rotate(-36deg); }
  46%, 92% { opacity: 1; transform: translate(54px, 70px) rotate(-30deg); }
  97%, 100% { opacity: 0; transform: translate(54px, 70px) rotate(-30deg); }
}
/* The coat fades out at the end and is undrawn while hidden (96.5%), ready to be painted again. */
@keyframes sealants-coat { 0%, 92% { opacity: 1; } 96% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes sealants-main { 0%, 15% { stroke-dashoffset: 1.01; } 37%, 96% { stroke-dashoffset: 0; } 96.5%, 100% { stroke-dashoffset: 1.01; } }
@keyframes sealants-fork-r { 0%, 15% { stroke-dashoffset: 1.01; } 19%, 96% { stroke-dashoffset: 0; } 96.5%, 100% { stroke-dashoffset: 1.01; } }
@keyframes sealants-fork-c { 0%, 25.5% { stroke-dashoffset: 1.01; } 30%, 96% { stroke-dashoffset: 0; } 96.5%, 100% { stroke-dashoffset: 1.01; } }
@keyframes sealants-fork-l { 0%, 36% { stroke-dashoffset: 1.01; } 40%, 96% { stroke-dashoffset: 0; } 96.5%, 100% { stroke-dashoffset: 1.01; } }
@keyframes sealants-glint {
  0%, 43%   { transform: translateX(-130px); }
  53%, 100% { transform: translateX(0); }
}
@keyframes sealants-gloss { 0%, 50% { stroke-dashoffset: 1.01; } 56%, 96% { stroke-dashoffset: 0; } 96.5%, 100% { stroke-dashoffset: 1.01; } }
@keyframes sealants-badge {
  0%, 50%  { opacity: 0; transform: scale(.4); }
  54%      { opacity: 1; transform: scale(1.08); }
  57%, 92% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(.8); }
}
@keyframes sealants-check { 0%, 54% { stroke-dashoffset: 1.01; } 60%, 96% { stroke-dashoffset: 0; } 96.5%, 100% { stroke-dashoffset: 1.01; } }
@keyframes sealants-ring {
  0%, 56%   { opacity: 0; transform: scale(.8); }
  58%       { opacity: .9; transform: scale(.8); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes sealants-spark1 {
  0%, 56%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  60%      { opacity: 1; transform: scale(1.2) rotate(0); }
  64%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes sealants-spark2 {
  0%, 59%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  63%      { opacity: 1; transform: scale(1.2) rotate(0); }
  67%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
/* A speck falls onto the coat and bounces off up and away. */
@keyframes sealants-drop {
  0%, 60%   { opacity: 0; transform: translate(6px, -42px); }
  61.5%     { opacity: 1; }
  64%       { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  68%       { opacity: .9; transform: translate(-13px, -20px); }
  71%, 100% { opacity: 0; transform: translate(-21px, -17px); }
}
@keyframes sealants-ping {
  0%, 63.5% { opacity: 0; transform: scale(.5); }
  64.5%     { opacity: .9; transform: scale(.7); }
  74%, 100% { opacity: 0; transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--sealants * { animation: none !important; }
}
/* Sedation dentistry: the tooth drifts down into the cloud, the cloud gives a little, the rings breathe twice (the
   tooth rises and sinks with them), the moon rises along the outer ring, stars twinkle, dots drift up off the cloud.
   One 9 s loop: settle 0 to 18%, cloud gives 15 to 31%, breaths 16 to 90% (in to 34%, out to 54%, in to 74%, out),
   moon 30 to 48%, stars 46 to 60% and a twinkle at 71%, hold to 92%, reset 92 to 100% (the moon carries on round
   the ring and fades, the tooth floats up again). The dots rise on their own 3 s cycle, three per loop. The breathing
   uses the symmetric ease throughout, so it never snaps. The unanimated styles are the finished state. */
.anim--sedation-dentistry { --sd-d: 9s; --sd-out: cubic-bezier(.22, 1, .36, 1); --sd-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--sedation-dentistry .sd-float { transform-box: fill-box; transform-origin: 50% 60%; }
.anim--sedation-dentistry .sd-bob { transform-box: fill-box; transform-origin: center; }
/* The cloud gives from its base below x 120 (its box starts at (37.7, 131.79), so that point is 82.3px across and
   60.21px down). The rings and the glow are circles centred on (120, 100) and breathe about their own centre; the moon
   orbits the same point, which lies 52px left of and 63px below the top left of its box (172, 37). */
.anim--sedation-dentistry .sd-cloud { transform-box: fill-box; transform-origin: 82.3px 60.21px; }
.anim--sedation-dentistry .sd-glow,
.anim--sedation-dentistry .sd-ring { transform-box: fill-box; transform-origin: center; }
.anim--sedation-dentistry .sd-moon { transform-box: fill-box; transform-origin: -52px 63px; }
.anim--sedation-dentistry .sd-star,
.anim--sedation-dentistry .sd-dot { transform-box: fill-box; transform-origin: center; }

html.motion .anim--sedation-dentistry.is-playing .sd-float { animation: sedation-dentistry-float var(--sd-d) var(--sd-io) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-bob { animation: sedation-dentistry-bob var(--sd-d) var(--sd-io) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-cloud { animation: sedation-dentistry-cloud var(--sd-d) var(--sd-io) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-glow { animation: sedation-dentistry-glow var(--sd-d) var(--sd-io) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-ring--1 { animation: sedation-dentistry-ring1 var(--sd-d) var(--sd-io) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-ring--2 { animation: sedation-dentistry-ring2 var(--sd-d) var(--sd-io) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-moon { animation: sedation-dentistry-moon var(--sd-d) var(--sd-out) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-star--1 { animation: sedation-dentistry-star1 var(--sd-d) var(--sd-out) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-star--2 { animation: sedation-dentistry-star2 var(--sd-d) var(--sd-out) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-star--3 { animation: sedation-dentistry-star3 var(--sd-d) var(--sd-out) infinite both; }
/* The dots rise on a 3 s cycle, three per loop, so they stay in step with it. */
html.motion .anim--sedation-dentistry.is-playing .sd-dot { animation: sedation-dentistry-dot 3s var(--sd-out) infinite both; }
html.motion .anim--sedation-dentistry.is-playing .sd-dot--2 { animation-delay: -1s; }
html.motion .anim--sedation-dentistry.is-playing .sd-dot--3 { animation-delay: -2s; }

@keyframes sedation-dentistry-float {
  0%       { transform: translateY(-18px) rotate(-7deg); }
  18%, 92% { transform: translateY(0) rotate(0); }
  100%     { transform: translateY(-18px) rotate(-7deg); }
}
@keyframes sedation-dentistry-bob {
  0%, 18%   { transform: translateY(0); }
  34%       { transform: translateY(-3.5px); }
  54%       { transform: translateY(1px); }
  74%       { transform: translateY(-3px); }
  90%, 100% { transform: translateY(0); }
}
@keyframes sedation-dentistry-cloud {
  0%, 15%   { transform: scale(1, 1); }
  20%       { transform: scale(1.03, .94); }
  26%       { transform: scale(.99, 1.02); }
  31%, 92%  { transform: scale(1, 1); }
  96%       { transform: scale(1, 1.02); }
  100%      { transform: scale(1, 1); }
}
@keyframes sedation-dentistry-glow {
  0%, 16%   { transform: scale(.95); }
  34%       { transform: scale(1.06); }
  54%       { transform: scale(.94); }
  74%       { transform: scale(1.04); }
  90%       { transform: scale(1); }
  100%      { transform: scale(.95); }
}
@keyframes sedation-dentistry-ring1 {
  0%, 18%   { opacity: .3; transform: scale(.93); }
  36%       { opacity: .55; transform: scale(1.06); }
  56%       { opacity: .3; transform: scale(.93); }
  76%       { opacity: .5; transform: scale(1.05); }
  92%       { opacity: .4; transform: scale(1); }
  100%      { opacity: .3; transform: scale(.93); }
}
@keyframes sedation-dentistry-ring2 {
  0%, 20%   { opacity: .14; transform: scale(.95); }
  38%       { opacity: .32; transform: scale(1.05); }
  58%       { opacity: .14; transform: scale(.95); }
  78%       { opacity: .3; transform: scale(1.04); }
  94%       { opacity: .22; transform: scale(1); }
  100%      { opacity: .14; transform: scale(.95); }
}
/* The moon rises counterclockwise along the outer ring from the right, and at the end carries on round and fades. */
@keyframes sedation-dentistry-moon {
  0%, 30%   { opacity: 0; transform: rotate(34deg); }
  38%       { opacity: 1; }
  48%, 92%  { opacity: 1; transform: rotate(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  99%, 100% { opacity: 0; transform: rotate(-16deg); }
}
@keyframes sedation-dentistry-star1 {
  0%, 46%   { opacity: 0; transform: scale(.3) rotate(-45deg); }
  52%       { opacity: 1; transform: scale(1.15) rotate(0); }
  56%, 67%  { opacity: 1; transform: scale(1) rotate(0); }
  71%       { opacity: 1; transform: scale(.8) rotate(12deg); }
  76%, 92%  { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes sedation-dentistry-star2 {
  0%, 50%   { opacity: 0; transform: scale(.3) rotate(-45deg); }
  56%       { opacity: 1; transform: scale(1.2) rotate(0); }
  60%, 74%  { opacity: 1; transform: scale(1) rotate(0); }
  78%       { opacity: 1; transform: scale(.8) rotate(10deg); }
  83%, 92%  { opacity: 1; transform: scale(1) rotate(0); }
  97%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes sedation-dentistry-star3 {
  0%, 54%   { opacity: 0; transform: scale(.2); }
  59%       { opacity: 1; transform: scale(1.3); }
  63%, 92%  { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(.2); }
}
@keyframes sedation-dentistry-dot {
  0%   { opacity: 0; transform: translateY(8px) scale(.5); }
  30%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-18px) scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--sedation-dentistry * { animation: none !important; }
}
/* Smile makeovers: a before and after divider appears at the left corner of the mouth and sweeps across the smile,
   leaving it even and bright behind it, with a glint as it passes each change; it fades at the right corner, a shine
   crosses the teeth and sparkles close it. One 8 s loop: divider in 3 to 9%, sweep 10 to 46%, glints about 26, 28.5 and
   33%, divider out 46 to 52%, shine 50 to 62%, sparkles 56 to 72%, hold to 92% (1.6 s), reset 92 to 100% (the before
   smile fades back in over the after one). The unanimated styles are the finished state. */
.anim--smile-makeovers { --sm-d: 8s; --sm-out: cubic-bezier(.22, 1, .36, 1); --sm-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
/* The windows' edges ride with the divider (all three start 148px left, at the left corner of the mouth); their
   contents counter-move so they stay put. The before window drops back behind the after layer at 92%, and the after
   window empties at 98.5% while the after layer is faded out. */
.anim--smile-makeovers .sm-bwin,
.anim--smile-makeovers .sm-bunwin,
.anim--smile-makeovers .sm-awin,
.anim--smile-makeovers .sm-aunwin,
.anim--smile-makeovers .sm-divider,
.anim--smile-makeovers .sm-knob,
.anim--smile-makeovers .sm-gloss,
.anim--smile-makeovers .sm-glint,
.anim--smile-makeovers .sm-spark { transform-box: fill-box; transform-origin: center; }

html.motion .anim--smile-makeovers.is-playing .sm-bwin { animation: smile-makeovers-bwin var(--sm-d) var(--sm-io) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-bunwin { animation: smile-makeovers-bunwin var(--sm-d) var(--sm-io) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-awin { animation: smile-makeovers-awin var(--sm-d) var(--sm-io) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-aunwin { animation: smile-makeovers-aunwin var(--sm-d) var(--sm-io) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-after { animation: smile-makeovers-after var(--sm-d) var(--sm-io) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-divider { animation: smile-makeovers-divider var(--sm-d) var(--sm-io) infinite both, smile-makeovers-divider-fade var(--sm-d) var(--sm-out) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-knob { animation: smile-makeovers-knob var(--sm-d) var(--sm-out) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-gloss { animation: smile-makeovers-gloss var(--sm-d) var(--sm-io) infinite both; }
/* One glint keyframe set, peaking at 23% (1.84 s); each glint is delayed to just after the divider passes it (x 92,
   121 and 166 cross at about 2.03, 2.25 and 2.64 s through the sweep's easing). */
html.motion .anim--smile-makeovers.is-playing .sm-glint { animation: smile-makeovers-glint var(--sm-d) var(--sm-out) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-glint--1 { animation-delay: .24s; }
html.motion .anim--smile-makeovers.is-playing .sm-glint--2 { animation-delay: .46s; }
html.motion .anim--smile-makeovers.is-playing .sm-glint--3 { animation-delay: .85s; }
html.motion .anim--smile-makeovers.is-playing .sm-spark--1 { animation: smile-makeovers-spark1 var(--sm-d) var(--sm-out) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-spark--2 { animation: smile-makeovers-spark2 var(--sm-d) var(--sm-out) infinite both; }
html.motion .anim--smile-makeovers.is-playing .sm-spark--3 { animation: smile-makeovers-spark3 var(--sm-d) var(--sm-out) infinite both; }

@keyframes smile-makeovers-bwin {
  0%, 10%  { transform: translateX(-148px); }
  46%, 92.4% { transform: translateX(0); }
  92.5%, 100% { transform: translateX(-148px); }
}
@keyframes smile-makeovers-bunwin {
  0%, 10%  { transform: translateX(148px); }
  46%, 92.4% { transform: translateX(0); }
  92.5%, 100% { transform: translateX(148px); }
}
@keyframes smile-makeovers-awin {
  0%, 10%  { transform: translateX(-148px); }
  46%, 98.9% { transform: translateX(0); }
  99%, 100% { transform: translateX(-148px); }
}
@keyframes smile-makeovers-aunwin {
  0%, 10%  { transform: translateX(148px); }
  46%, 98.9% { transform: translateX(0); }
  99%, 100% { transform: translateX(148px); }
}
@keyframes smile-makeovers-after {
  0%, 92%  { opacity: 1; }
  98%, 99% { opacity: 0; }
  99.5%, 100% { opacity: 1; }
}
@keyframes smile-makeovers-divider {
  0%, 10%  { transform: translateX(-148px); }
  46%, 96.4% { transform: translateX(0); }
  96.5%, 100% { transform: translateX(-148px); }
}
@keyframes smile-makeovers-divider-fade {
  0%, 3%   { opacity: 0; }
  9%, 46%  { opacity: 1; }
  52%, 100% { opacity: 0; }
}
@keyframes smile-makeovers-knob {
  0%, 3%   { transform: scale(.6); }
  9%, 46%  { transform: scale(1); }
  52%, 100% { transform: scale(.7); }
}
@keyframes smile-makeovers-gloss {
  0%, 50%  { transform: translateX(-190px); }
  62%, 100% { transform: translateX(0); }
}
@keyframes smile-makeovers-glint {
  0%, 20%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  23%      { opacity: 1; transform: scale(1.15) rotate(0); }
  27%      { opacity: 1; transform: scale(1) rotate(0); }
  33%, 100% { opacity: 0; transform: scale(.4) rotate(30deg); }
}
@keyframes smile-makeovers-spark1 {
  0%, 56%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  61%      { opacity: 1; transform: scale(1.15) rotate(0); }
  65%      { opacity: 1; transform: scale(1) rotate(0); }
  70%      { opacity: 1; transform: scale(.84) rotate(12deg); }
  75%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes smile-makeovers-spark2 {
  0%, 59%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  64%      { opacity: 1; transform: scale(1.2) rotate(0); }
  68%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes smile-makeovers-spark3 {
  0%, 62%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  67%      { opacity: 1; transform: scale(1.2) rotate(0); }
  71%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  96%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--smile-makeovers * { animation: none !important; }
}
/* Teeth whitening: a glow comes up behind the tooth, then the marker steps along the shade guide one tab at a time
   while the tooth lightens to match; the brightest tab drops out of the row, a ring spreads from the tooth and
   sparkles twinkle. One 8 s loop: glow 3 to 11%, three steps from 14 to 44.5% (each a 7% move, then a 5% pause), tab
   out 44 to 50%, ring 48 to 62%, sparkles 52 to 70%, hold to 90% (1.6 s), reset 90 to 100% (the marker fades and
   returns to the first tab while the tint comes back). The unanimated styles are the finished state. */
.anim--teeth-whitening { --wh-d: 8s; --wh-out: cubic-bezier(.22, 1, .36, 1); --wh-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--teeth-whitening .wh-glow,
.anim--teeth-whitening .wh-ring,
.anim--teeth-whitening .wh-marker,
.anim--teeth-whitening .wh-tab,
.anim--teeth-whitening .wh-spark { transform-box: fill-box; transform-origin: center; }

html.motion .anim--teeth-whitening.is-playing .wh-glow { animation: teeth-whitening-glow var(--wh-d) var(--wh-out) infinite both; }
html.motion .anim--teeth-whitening.is-playing .wh-ring { animation: teeth-whitening-ring var(--wh-d) var(--wh-out) infinite both; }
html.motion .anim--teeth-whitening.is-playing .wh-stain { animation: teeth-whitening-stain var(--wh-d) var(--wh-io) infinite both; }
html.motion .anim--teeth-whitening.is-playing .wh-marker { animation: teeth-whitening-marker var(--wh-d) var(--wh-io) infinite both, teeth-whitening-marker-fade var(--wh-d) var(--wh-io) infinite both; }
/* Each tab dips as the marker reaches it (the first is there from the start); the last drops out and stays out. */
html.motion .anim--teeth-whitening.is-playing .wh-tab--2 { animation: teeth-whitening-tab var(--wh-d) var(--wh-out) infinite both; animation-delay: .8s; }
html.motion .anim--teeth-whitening.is-playing .wh-tab--3 { animation: teeth-whitening-tab var(--wh-d) var(--wh-out) infinite both; animation-delay: 1.76s; }
html.motion .anim--teeth-whitening.is-playing .wh-tab--4 { animation: teeth-whitening-tab-out var(--wh-d) var(--wh-out) infinite both; }
html.motion .anim--teeth-whitening.is-playing .wh-spark--1 { animation: teeth-whitening-spark1 var(--wh-d) var(--wh-out) infinite both; }
html.motion .anim--teeth-whitening.is-playing .wh-spark--2 { animation: teeth-whitening-spark2 var(--wh-d) var(--wh-out) infinite both; }
html.motion .anim--teeth-whitening.is-playing .wh-spark--3 { animation: teeth-whitening-spark3 var(--wh-d) var(--wh-out) infinite both; }

@keyframes teeth-whitening-glow {
  0%, 3%   { opacity: 0; transform: scale(.6); }
  11%, 90% { opacity: .8; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes teeth-whitening-ring {
  0%, 48%  { opacity: 0; transform: scale(.96); }
  50%      { opacity: .9; transform: scale(1); }
  62%, 100% { opacity: 0; transform: scale(1.22); }
}
/* Tint strengths match the tabs: .42, .28, .14, then none. */
@keyframes teeth-whitening-stain {
  0%, 14%   { opacity: .42; }
  21%, 26%  { opacity: .28; }
  33%, 38%  { opacity: .14; }
  44.5%, 92% { opacity: 0; }
  100%      { opacity: .42; }
}
/* The tabs are 30px apart; the marker starts on the first, 90px left of its resting place. */
@keyframes teeth-whitening-marker {
  0%, 14%   { transform: translateX(-90px); }
  21%, 26%  { transform: translateX(-60px); }
  33%, 38%  { transform: translateX(-30px); }
  44.5%, 94.9% { transform: translateX(0); }
  95%, 100% { transform: translateX(-90px); }
}
@keyframes teeth-whitening-marker-fade {
  0%, 90%   { opacity: 1; }
  93.5%, 95.5% { opacity: 0; }
  99%, 100% { opacity: 1; }
}
/* Written for a tab the marker reaches at 11%; each tab is delayed to the end of its own step (21 and 33%, so 0.8 s
   and 1.76 s). */
@keyframes teeth-whitening-tab {
  0%, 8%   { transform: translateY(0); }
  11%      { transform: translateY(2px); }
  16%, 100% { transform: translateY(0); }
}
@keyframes teeth-whitening-tab-out {
  0%, 44%  { transform: translateY(-4px); }
  50%, 92% { transform: translateY(0); }
  100%     { transform: translateY(-4px); }
}
@keyframes teeth-whitening-spark1 {
  0%, 52%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  57%      { opacity: 1; transform: scale(1.15) rotate(0); }
  61%      { opacity: 1; transform: scale(1) rotate(0); }
  66%      { opacity: 1; transform: scale(.82) rotate(12deg); }
  71%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes teeth-whitening-spark2 {
  0%, 55%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  60%      { opacity: 1; transform: scale(1.2) rotate(0); }
  64%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes teeth-whitening-spark3 {
  0%, 58%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  63%      { opacity: 1; transform: scale(1.2) rotate(0); }
  67%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--teeth-whitening * { animation: none !important; }
}
/* TMJ and TMD therapy: the jaw starts clenched and grinds a little, with tension zigzags and a warm glow at the
   joint; it opens smoothly, a night guard slides on over the upper teeth, and the jaw closes gently onto it; the
   zigzags relax into smooth arcs and sparkles mark the fit. One 8.6 s loop: grind 0 to 15%, open 15 to 31%, guard 26
   to 42%, close 40 to 54%, relief 48 to 68%, sparkles 62 to 74%, hold to 90% (1.4 s), reset 90 to 100% (the arcs run off,
   the guard slides out, then the jaw clenches and the tension returns). The unanimated styles are the finished state. */
.anim--tmj-and-tmd-therapy { --tm-d: 8.6s; --tm-out: cubic-bezier(.22, 1, .36, 1); --tm-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
/* The lower jaw hinges about the joint, J (64, 92): the centre of its condyle (radius 13), whose top and back are the
   top and left of the jaw's box (51, 79), so 13px across and 13px down. Its wrapper holds the finished pose (4deg open from the
   clench), so these angles are relative to it: -4deg is clenched, 7deg is open. */
.anim--tmj-and-tmd-therapy .tm-jaw { transform-box: fill-box; transform-origin: 13px 13px; }
.anim--tmj-and-tmd-therapy .tm-glow { transform-box: fill-box; transform-origin: center; }
/* Each zigzag is drawn pointing up from the joint, so its inner end is the bottom of its box. */
.anim--tmj-and-tmd-therapy .tm-zig { transform-box: fill-box; transform-origin: 50% 100%; }
.anim--tmj-and-tmd-therapy .tm-arc { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.anim--tmj-and-tmd-therapy .tm-guard { transform-box: fill-box; transform-origin: center; }
.anim--tmj-and-tmd-therapy .tm-spark { transform-box: fill-box; transform-origin: center; }

html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-jaw { animation: tmj-and-tmd-therapy-jaw var(--tm-d) var(--tm-io) infinite both; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-glow { animation: tmj-and-tmd-therapy-glow var(--tm-d) var(--tm-io) infinite both; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-zig { animation: tmj-and-tmd-therapy-zig var(--tm-d) var(--tm-out) infinite both; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-zig--2 { animation-delay: .08s; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-zig--3 { animation-delay: .16s; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-guard { animation: tmj-and-tmd-therapy-guard var(--tm-d) var(--tm-out) infinite both; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-arc--1 { animation: tmj-and-tmd-therapy-arc1 var(--tm-d) var(--tm-io) infinite both; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-arc--2 { animation: tmj-and-tmd-therapy-arc2 var(--tm-d) var(--tm-io) infinite both; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-spark--1 { animation: tmj-and-tmd-therapy-spark1 var(--tm-d) var(--tm-out) infinite both; }
html.motion .anim--tmj-and-tmd-therapy.is-playing .tm-spark--2 { animation: tmj-and-tmd-therapy-spark2 var(--tm-d) var(--tm-out) infinite both; }

/* Grinding is a small forward and back shuffle while clenched; then a smooth open, a pause while the guard goes on,
   and a gentle close onto it. The jaw clenches again only after the guard has gone. */
@keyframes tmj-and-tmd-therapy-jaw {
  0%       { transform: rotate(-4deg) translateX(0); }
  4%       { transform: rotate(-4deg) translateX(-1.6px); }
  8%       { transform: rotate(-4deg) translateX(1.2px); }
  12%      { transform: rotate(-4deg) translateX(-.8px); }
  15%      { transform: rotate(-4deg) translateX(0); }
  31%, 40% { transform: rotate(7deg) translateX(0); }
  54%, 95% { transform: rotate(0) translateX(0); }
  100%     { transform: rotate(-4deg) translateX(0); }
}
@keyframes tmj-and-tmd-therapy-glow {
  0%        { opacity: .65; transform: scale(1); }
  4%        { opacity: .4; transform: scale(.75); }
  8%        { opacity: .7; transform: scale(1.1); }
  12%       { opacity: .4; transform: scale(.8); }
  16%, 46%  { opacity: .65; transform: scale(1); }
  60%, 95%  { opacity: 0; transform: scale(.4); }
  100%      { opacity: .65; transform: scale(1); }
}
@keyframes tmj-and-tmd-therapy-zig {
  0%        { opacity: 1; transform: scale(1); }
  4%        { opacity: .55; transform: scale(.7); }
  8%        { opacity: 1; transform: scale(1.06); }
  12%       { opacity: .55; transform: scale(.75); }
  16%       { opacity: 1; transform: scale(1); }
  23%       { opacity: 1; transform: scale(1.06); }
  30%, 48%  { opacity: 1; transform: scale(1); }
  58%, 94%  { opacity: 0; transform: scale(.3); }
  100%      { opacity: 1; transform: scale(1); }
}
@keyframes tmj-and-tmd-therapy-guard {
  0%, 26%   { opacity: 0; transform: translateX(14px); }
  30%       { opacity: 1; }
  42%, 90%  { opacity: 1; transform: translateX(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  95%, 100% { opacity: 0; transform: translateX(12px); }
}
/* The arcs draw in left to right, and at the end run off the same way (the dash slides past the end) and stay there;
   the loop restarts them undrawn, between iterations, so they never flash through fully drawn on the way. */
@keyframes tmj-and-tmd-therapy-arc1 {
  0%, 52%     { stroke-dashoffset: 1.01; }
  63%, 90%    { stroke-dashoffset: 0; }
  95.5%, 100% { stroke-dashoffset: -1.01; }
}
@keyframes tmj-and-tmd-therapy-arc2 {
  0%, 56%     { stroke-dashoffset: 1.01; }
  67%, 91%    { stroke-dashoffset: 0; }
  96.5%, 100% { stroke-dashoffset: -1.01; }
}
@keyframes tmj-and-tmd-therapy-spark1 {
  0%, 60%   { opacity: 0; transform: scale(.3) rotate(-45deg); }
  65%       { opacity: 1; transform: scale(1.15) rotate(0); }
  69%, 90%  { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes tmj-and-tmd-therapy-spark2 {
  0%, 64%   { opacity: 0; transform: scale(.3) rotate(-45deg); }
  69%       { opacity: 1; transform: scale(1.2) rotate(0); }
  73%, 90%  { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--tmj-and-tmd-therapy * { animation: none !important; }
}
/* Veneers: bonding dots appear on the chipped, stained tooth, a thin shell glides in from the side (skewed in flight,
   its blue edge showing how thin it is), lands and bonds: the edge goes, the shell turns white, a ring pulses out.
   A shine crosses the new surface and sparkles close it. One 7 s loop: dots 5 to 11%, the shell appears 8 to 14%,
   glides 14 to 30% and settles by 33%, bonds 31 to 40%, ring 33 to 47%, shine 42 to 56%, sparkles 52 to 66%, hold to
   90% (1.7 s), reset 90 to 100% (the veneer fades off the tooth). The unanimated styles are the finished state. */
.anim--veneers { --vn-d: 7s; --vn-out: cubic-bezier(.22, 1, .36, 1); --vn-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
.anim--veneers .vn-shell,
.anim--veneers .vn-gloss,
.anim--veneers .vn-dot,
.anim--veneers .vn-ring,
.anim--veneers .vn-spark { transform-box: fill-box; transform-origin: center; }

html.motion .anim--veneers.is-playing .vn-shell { animation: veneers-glide var(--vn-d) var(--vn-io) infinite both, veneers-shell-fade var(--vn-d) var(--vn-out) infinite both; }
html.motion .anim--veneers.is-playing .vn-edge { animation: veneers-edge var(--vn-d) var(--vn-out) infinite both; }
html.motion .anim--veneers.is-playing .vn-white { animation: veneers-white var(--vn-d) var(--vn-out) infinite both; }
html.motion .anim--veneers.is-playing .vn-dot { animation: veneers-dot var(--vn-d) var(--vn-out) infinite both; }
html.motion .anim--veneers.is-playing .vn-dot--2 { animation-delay: .1s; }
html.motion .anim--veneers.is-playing .vn-dot--3 { animation-delay: .2s; }
html.motion .anim--veneers.is-playing .vn-ring { animation: veneers-ring var(--vn-d) var(--vn-out) infinite both; }
html.motion .anim--veneers.is-playing .vn-gloss { animation: veneers-gloss var(--vn-d) var(--vn-io) infinite both; }
html.motion .anim--veneers.is-playing .vn-spark--1 { animation: veneers-spark1 var(--vn-d) var(--vn-out) infinite both; }
html.motion .anim--veneers.is-playing .vn-spark--2 { animation: veneers-spark2 var(--vn-d) var(--vn-out) infinite both; }
html.motion .anim--veneers.is-playing .vn-spark--3 { animation: veneers-spark3 var(--vn-d) var(--vn-out) infinite both; }

/* The shell waits beside the tooth, glides on while straightening out of its skew, then settles the last pixel. */
@keyframes veneers-glide {
  0%, 14%  { transform: translate(40px, -4px) rotate(5deg) skewX(-12deg); }
  30%      { transform: translate(-1.5px, .5px) rotate(0) skewX(0); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  33%, 96% { transform: none; }
  96.5%, 100% { transform: translate(40px, -4px) rotate(5deg) skewX(-12deg); }
}
@keyframes veneers-shell-fade {
  0%, 8%   { opacity: 0; }
  14%, 90% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes veneers-edge {
  0%, 31%  { opacity: 1; }
  37%, 96% { opacity: 0; }
  96.5%, 100% { opacity: 1; }
}
@keyframes veneers-white {
  0%, 32%  { opacity: 0; }
  40%, 96% { opacity: 1; }
  96.5%, 100% { opacity: 0; }
}
@keyframes veneers-dot {
  0%, 5%   { opacity: 0; transform: scale(.2); }
  9%       { opacity: 1; transform: scale(1.2); }
  11%, 30% { opacity: 1; transform: scale(1); }
  31%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes veneers-ring {
  0%, 33%  { opacity: 0; transform: scale(.92); }
  35%      { opacity: .85; transform: scale(.94); }
  47%, 100% { opacity: 0; transform: scale(1.16); }
}
@keyframes veneers-gloss {
  0%, 42%  { transform: translateX(-120px); }
  56%, 100% { transform: translateX(0); }
}
@keyframes veneers-spark1 {
  0%, 52%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  57%      { opacity: 1; transform: scale(1.15) rotate(0); }
  61%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes veneers-spark2 {
  0%, 55%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  60%      { opacity: 1; transform: scale(1.2) rotate(0); }
  64%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@keyframes veneers-spark3 {
  0%, 58%  { opacity: 0; transform: scale(.3) rotate(-45deg); }
  63%      { opacity: 1; transform: scale(1.2) rotate(0); }
  67%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(.3) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--veneers * { animation: none !important; }
}
/* X-rays: film rises and a second film fans out, viewfinder corners settle, a scan bar sweeps down revealing the
   tooth's inner structure, then a spot on the crown is circled. One 7.5 s loop: intro 0 to 12%, scan 14 to 46%,
   spot 50 to 74%, hold to 90% (about 1.2 s after the ping settles, 2.4 s after the ring), reset 90 to 100%.
   The unanimated styles are the finished state. */
.anim--x-rays { --xr-d: 7.5s; --xr-out: cubic-bezier(.22, 1, .36, 1); --xr-io: cubic-bezier(.65, 0, .35, 1); overflow: visible; }
/* The back film's fanned angle is an attribute on its wrapper; the animation starts it squared up behind the front film. */
.anim--x-rays .xr-back { transform-box: fill-box; transform-origin: center; }
.anim--x-rays .xr-film,
.anim--x-rays .xr-win,
.anim--x-rays .xr-unwin,
.anim--x-rays .xr-bar { transform-box: fill-box; transform-origin: center; }
.anim--x-rays .xr-corner--1 { transform-box: fill-box; transform-origin: 0 0; }
.anim--x-rays .xr-corner--2 { transform-box: fill-box; transform-origin: 100% 0; }
.anim--x-rays .xr-corner--3 { transform-box: fill-box; transform-origin: 100% 100%; }
.anim--x-rays .xr-corner--4 { transform-box: fill-box; transform-origin: 0 100%; }
.anim--x-rays .xr-spot,
.anim--x-rays .xr-ring,
.anim--x-rays .xr-ping { transform-box: fill-box; transform-origin: center; }

html.motion .anim--x-rays.is-playing .xr-film { animation: x-rays-film var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-back { animation: x-rays-back var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-corner--1 { animation: x-rays-corner1 var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-corner--2 { animation: x-rays-corner2 var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-corner--3 { animation: x-rays-corner3 var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-corner--4 { animation: x-rays-corner4 var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-win { animation: x-rays-win var(--xr-d) var(--xr-io) infinite both; }
html.motion .anim--x-rays.is-playing .xr-unwin { animation: x-rays-unwin var(--xr-d) var(--xr-io) infinite both; }
html.motion .anim--x-rays.is-playing .xr-detail { animation: x-rays-detail var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-bar { animation: x-rays-bar var(--xr-d) var(--xr-io) infinite both, x-rays-bar-fade var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-spot { animation: x-rays-spot var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-ring { animation: x-rays-ring var(--xr-d) var(--xr-out) infinite both; }
html.motion .anim--x-rays.is-playing .xr-ping { animation: x-rays-ping var(--xr-d) var(--xr-out) infinite both; }

@keyframes x-rays-film {
  0%       { transform: translateY(10px); }
  10%, 90% { transform: translateY(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100%     { transform: translateY(10px); }
}
@keyframes x-rays-back {
  0%, 2%   { transform: rotate(10deg) translate(8px, 7px); }
  14%, 90% { transform: rotate(0) translate(0, 0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100%     { transform: rotate(10deg) translate(8px, 7px); }
}
@keyframes x-rays-corner1 { 0%, 4% { opacity: 0; transform: scale(.4); } 10%, 90% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes x-rays-corner2 { 0%, 5.5% { opacity: 0; transform: scale(.4); } 11.5%, 90% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes x-rays-corner3 { 0%, 7% { opacity: 0; transform: scale(.4); } 13%, 90% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes x-rays-corner4 { 0%, 8.5% { opacity: 0; transform: scale(.4); } 14.5%, 90% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; transform: scale(.4); } }
/* The window's bottom edge rides with the bar (both start 160px up); its contents counter-move so they stay put.
   It snaps back at 96% while the revealed layer is faded out. */
@keyframes x-rays-win {
  0%, 14%     { transform: translateY(-160px); }
  46%, 96%    { transform: translateY(0); }
  96.5%, 100% { transform: translateY(-160px); }
}
@keyframes x-rays-unwin {
  0%, 14%     { transform: translateY(160px); }
  46%, 96%    { transform: translateY(0); }
  96.5%, 100% { transform: translateY(160px); }
}
@keyframes x-rays-detail {
  0%, 90%   { opacity: 1; }
  95%, 96.5% { opacity: 0; }
  97%, 100% { opacity: 1; }
}
@keyframes x-rays-bar {
  0%, 14%   { transform: translateY(-160px); }
  46%, 96%  { transform: translateY(0); }
  100%      { transform: translateY(-160px); }
}
@keyframes x-rays-bar-fade {
  0%, 12%   { opacity: 0; }
  15%, 45%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes x-rays-spot {
  0%, 49%  { opacity: 0; transform: scale(.3); }
  53%      { opacity: 1; transform: scale(1.3); }
  57%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.3); }
}
@keyframes x-rays-ring {
  0%, 52%  { opacity: 0; transform: scale(1.7) rotate(-90deg); }
  62%, 90% { opacity: 1; transform: scale(1) rotate(0); }
  95%, 100% { opacity: 0; transform: scale(1.2) rotate(30deg); }
}
@keyframes x-rays-ping {
  0%, 60%  { opacity: 0; transform: scale(1); }
  62%      { opacity: .8; transform: scale(1); }
  76%, 100% { opacity: 0; transform: scale(2.1); }
}
@media (prefers-reduced-motion: reduce) {
  .anim--x-rays * { animation: none !important; }
}
