/* Kinetic type (r2/kinetic.js). Slow, settled moves: a rise, a roll, a fold; nothing spins. */
kt-x { display: inline; } kt-w { display: inline-block; white-space: nowrap; } kt-l { display: inline-block; }
:root { --kt-ease: cubic-bezier(.16, 1, .3, 1); }

/* titles: the letters rise from just below, a little slanted, and straighten as they land */
.kt-t kt-l { transform: translateY(.55em) skewY(7deg); opacity: 0; transition: transform .9s var(--kt-ease), opacity .5s ease; transition-delay: calc(min(var(--i), 24) * 26ms); }
.kt-t.kt-in kt-l { transform: none; opacity: 1; }
.kt-whole.kt-t, .kt-whole.kt-p { transform: translateY(.4em); opacity: 0; transition: transform .9s var(--kt-ease), opacity .6s ease; }
.kt-whole.kt-t.kt-in, .kt-whole.kt-p.kt-in { transform: none; opacity: 1; }

/* body text: word after word */
.kt-p kt-w { transform: translateY(.7em); opacity: 0; transition: transform .8s var(--kt-ease), opacity .6s ease; transition-delay: calc(min(var(--wi), 40) * 16ms); }
.kt-p.kt-in kt-w { transform: none; opacity: 1; }

/* the chapter names on the fold cards: apart and light while the card folds up; one bold word once it lies flat */
.kt-s { font-weight: calc(720 - var(--r2f, 0) * 520); }
.kt-s kt-l { margin-right: calc(var(--r2f, 0) * .09em); }

/* buttons and links: the letters roll over to a fresh copy of themselves, one after another */
.kt-b kt-w { line-height: 1.2; clip-path: inset(0 -.15em); vertical-align: baseline; }
.kt-b kt-l { text-shadow: 0 1.2em 0 currentColor; transition: transform .55s var(--kt-ease); transition-delay: calc(min(var(--i), 20) * 16ms); }
.kt-b:hover kt-l, .kt-b:focus-visible kt-l, .kt-b.kt-tap kt-l { transform: translateY(-1.2em); }
.kt-b.kt-tap kt-l { transition-duration: .5s; }

/* reduced motion: everything in place, nothing moves */
.kt-still kt-l, .kt-still kt-w, .kt-still .kt-whole { transform: none !important; opacity: 1 !important; transition: none !important; }
.kt-still .kt-b kt-l { text-shadow: none; }
.kt-still .kt-s { font-weight: 700; }
