/* Linen book (INV-14 v2 · Luxe): a black linen book fills 95 % of the screen; frame, stamp, pen wreath, nib-written
   names, corners, initials and date draw on before the tap (CSS only). Tap: the cover opens outwards, the endpaper
   with its bookplate holds a beat, then turns away onto the card. No scale above 1. */
.op040 { position: fixed; inset: 0; z-index: 100; overflow: hidden; container-type: size;
  touch-action: none; overscroll-behavior: contain; color: var(--k-ink, #38342C);
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
.op040 p { margin: 0; font-weight: inherit; }
.op040 i { font-style: normal; }
/* sizes from the gate's box (book bw x bh at bx, by; cover cw x ch; m short side, e frame inset, sp spine, D wreath),
   set on the gate's children, never used inside the wreath (its own container) */
.op040 > * {
  --op040-bw: min(95cqw, 95cqh * 1.9); --op040-bh: 95cqh;
  --op040-bx: calc(50cqw - var(--op040-bw) / 2); --op040-by: calc(50cqh - var(--op040-bh) / 2);
  --op040-ge: clamp(5px, 1.1cqmin, 10px); --op040-fe: clamp(3px, .6cqmin, 6px);
  --op040-cw: calc(var(--op040-bw) - var(--op040-ge)); --op040-ch: calc(var(--op040-bh) - var(--op040-fe));
  --op040-m: min(var(--op040-cw), var(--op040-ch)); --op040-e: calc(var(--op040-m) * .06); --op040-sp: calc(var(--op040-m) * .075);
  --op040-D: min(var(--op040-cw) * .74, var(--op040-ch) * .40); }
@container (min-aspect-ratio: 1 / 1) { .op040 > * { --op040-D: min(var(--op040-cw) * .48, var(--op040-ch) * .42); } }
/* a phone on its side: a smaller wreath */
@container (min-aspect-ratio: 1 / 1) and (max-height: 480px) { .op040 > * { --op040-D: min(var(--op040-cw) * .48, var(--op040-ch) * .36); } }
/* the paper: it fades at the tap */
.op040 .op040__ground { position: absolute; inset: 0; background-color: var(--k-paper, #FEFCF9); background-image: var(--k-grain, none); }
/* the book; the cover and the endpaper turn in its perspective */
.op040 .op040__book { position: absolute; left: var(--op040-bx); top: var(--op040-by); width: var(--op040-bw); height: var(--op040-bh);
  perspective: calc(var(--op040-bw) * 2.6); perspective-origin: 50% 50%; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: op040-settle 650ms cubic-bezier(.2, .7, .2, 1) both; }
.op040 .op040__shd { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 3px 6px 6px 3px;
  box-shadow: 0 2px 3px rgb(20 16 10 / .3), 0 22px 46px -10px rgb(20 16 10 / .38); }
.op040 .op040__ge { position: absolute; top: .9%; left: calc(var(--op040-cw) - 3px); width: calc(var(--op040-ge) + 3px); height: calc(var(--op040-ch) * .982);
  border-radius: 0 2px 2px 0; clip-path: polygon(0 0, 100% 1.6%, 100% 98.4%, 0 100%);
  background: repeating-linear-gradient(90deg, rgb(90 62 24 / .28) 0 1px, transparent 1px 2.4px),
    linear-gradient(180deg, #7E5F37, var(--k-ig-foil-hi, #E9CA93) 30%, var(--k-ig-metal, #B8935F) 65%, var(--k-ig-foil-lo, #8E6C42)); }
.op040 .op040__fe { position: absolute; left: var(--op040-sp); top: calc(var(--op040-ch) - 2px); width: calc(var(--op040-cw) - var(--op040-sp) + var(--op040-ge) * .6);
  height: calc(var(--op040-fe) + 2px); border-radius: 0 0 2px 2px; clip-path: polygon(0 0, 100% 0, calc(100% - var(--op040-ge) * .6) 100%, .6% 100%);
  background: repeating-linear-gradient(0deg, rgb(90 62 24 / .28) 0 1px, transparent 1px 2.2px),
    linear-gradient(90deg, #7E5F37, var(--k-ig-foil-hi, #E9CA93) 35%, var(--k-ig-metal, #B8935F) 70%, var(--k-ig-foil-lo, #8E6C42)); }
.op040 .op040__hb { position: absolute; left: calc(var(--op040-sp) * .12); width: calc(var(--op040-sp) * .66); height: clamp(3px, .5cqmin, 5px);
  background: repeating-linear-gradient(90deg, var(--k-ig-foil-lo, #8E6C42) 0 1.5px, var(--k-ig-foil-hi, #E9CA93) 1.5px 3px, #1B1A19 3px 4.5px); }
.op040 .op040__hb--t { bottom: 100%; border-radius: 2px 2px 0 0; }
.op040 .op040__hb--b { top: var(--op040-ch); border-radius: 0 0 2px 2px; }
/* the endpaper: black, a gold floral repeat, the bookplate pasted in the middle */
.op040 .op040__leaf { position: absolute; left: 2px; top: 2px; width: calc(var(--op040-cw) - 5px); height: calc(var(--op040-ch) - 4px);
  transform-origin: 0 50%; border-radius: 2px 4px 4px 2px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden;
  background-color: #171411; background-image: linear-gradient(90deg, rgb(0 0 0 / .45), rgb(0 0 0 / 0) 7%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .4);
  --op040-pw: clamp(150px, min(var(--op040-cw) * .46, var(--op040-ch) * .34), 300px); }
.op040 .op040__ep { position: absolute; inset: 0; width: 100%; height: 100%; }
.op040 .op040-ep { fill: none; stroke: var(--k-ig-metal, #B8935F); opacity: .55; }
.op040 .op040-epf { fill: var(--k-ig-metal, #B8935F); stroke: none; }
.op040 .op040__plate { position: absolute; left: 50%; top: 50%; width: var(--op040-pw); aspect-ratio: 3 / 4; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--k-ig-cover, #F7F2E9) var(--k-grain, none); box-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 6px 14px -6px rgb(0 0 0 / .5);
  outline: 1px solid var(--k-ig-metal, #B8935F); outline-offset: calc(var(--op040-pw) * -.033); }
.op040 .op040__plate::after { content: ""; position: absolute; inset: calc(var(--op040-pw) * .05); border: .5px solid var(--k-ig-metal, #B8935F); pointer-events: none; }
.op040 .op040__pk, .op040 .op040__pf { font: 500 calc(var(--op040-pw) * .047) / 1.4 var(--k-font-caps, "Montserrat", sans-serif);
  letter-spacing: .34em; text-transform: uppercase; padding-left: .34em; }
.op040 .op040__pk { color: var(--k-ig-foil-lo, #8E6C42); }
.op040 .op040__pf { color: rgb(56 52 44 / .72); margin-top: calc(var(--op040-pw) * .07); }
.op040 .op040__pi { font: 400 calc(var(--op040-pw) * .17) / 1.1 var(--k-font-script, "Allison", cursive); color: var(--k-ink, #38342C); margin-top: calc(var(--op040-pw) * .05); }
.op040 .op040__pn { display: inline-block; font-size: 0; }
.op040 .op040__pn::first-letter { font-size: calc(var(--op040-pw) * .17); }
.op040 .op040__pa { color: var(--k-ig-metal, #B8935F); font-size: calc(var(--op040-pw) * .13); margin: 0 .08em; }
.op040 .op040__pr { display: block; width: calc(var(--op040-pw) * .2); height: 1px; margin-top: calc(var(--op040-pw) * .04); background: var(--k-ig-metal, #B8935F); }
.op040 .op040__pd { font: 400 calc(var(--op040-pw) * .067) / 1.35 var(--k-font-display, "Young Serif", Georgia, serif); color: var(--k-ink, #38342C);
  max-width: 78%; margin-top: calc(var(--op040-pw) * .02); }
/* the cover's shadow on the endpaper */
.op040 .op040__cast { position: absolute; left: 0; top: 0; bottom: 0; width: 70%; opacity: 0; transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, rgb(40 36 30 / .16), rgb(40 36 30 / .07) 45%, rgb(40 36 30 / 0)); }
/* the cover: black linen */
.op040 .op040__cv { position: absolute; left: 0; top: 0; width: var(--op040-cw); height: var(--op040-ch); overflow: hidden;
  border-radius: 3px 6px 6px 3px; transform-origin: 0 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  --op040-linen: #1B1A19;
  background:
    linear-gradient(115deg, rgb(255 255 255 / .07), transparent 38%, rgb(0 0 0 / .18)),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / .22) 0 1px, transparent 1px 2px),
    var(--k-grain, none), var(--op040-linen);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .04); }
.op040 .op040__spine { position: absolute; left: 0; top: 0; bottom: 0; width: var(--op040-sp);
  background: linear-gradient(90deg, rgb(0 0 0 / .45), rgb(255 255 255 / .05) 55%, rgb(0 0 0 / .35) 82%, rgb(255 255 255 / .06) 88%, transparent); }
.op040 .op040__sl { position: absolute; top: calc(var(--op040-e) * .5); bottom: calc(var(--op040-e) * .5); left: 74%; width: 1px; opacity: .9; transform-origin: 50% 0;
  background: linear-gradient(180deg, var(--k-ig-foil-lo, #8E6C42), var(--k-ig-foil-hi, #E9CA93) 30%, var(--k-ig-metal, #B8935F) 65%, var(--k-ig-foil-lo, #8E6C42));
  animation: op040-edy 800ms cubic-bezier(.4, 0, .3, 1) 200ms both; }
.op040 .op040__sl--2 { left: 88%; animation-delay: 280ms; }
/* the debossed frame and its gold rule */
.op040 .op040__frame { position: absolute; pointer-events: none;
  inset: var(--op040-e) var(--op040-e) var(--op040-e) calc(var(--op040-sp) + var(--op040-e) * .5);
  border: 1px solid rgb(0 0 0 / .55); box-shadow: 0 1px 0 rgb(255 255 255 / .07), inset 0 1px 0 rgb(255 255 255 / .05); }
.op040 .op040__fr { position: absolute; pointer-events: none;
  inset: calc(var(--op040-e) + 5px) calc(var(--op040-e) + 5px) calc(var(--op040-e) + 5px) calc(var(--op040-sp) + var(--op040-e) * .5 + 5px); }
.op040 .op040__fx { position: absolute;
  background: linear-gradient(90deg, var(--k-ig-foil-lo, #8E6C42), var(--k-ig-foil-hi, #E9CA93) 40%, var(--k-ig-metal, #B8935F) 70%, var(--k-ig-foil-lo, #8E6C42)); }
.op040 .op040__fx--r, .op040 .op040__fx--l {
  background: linear-gradient(180deg, var(--k-ig-foil-lo, #8E6C42), var(--k-ig-foil-hi, #E9CA93) 40%, var(--k-ig-metal, #B8935F) 70%, var(--k-ig-foil-lo, #8E6C42)); }
.op040 .op040__fx--t { left: 0; right: 0; top: 0; height: 1px; transform-origin: 0 50%; animation: op040-edx 300ms ease-in-out 150ms both; }
.op040 .op040__fx--r { top: 0; bottom: 0; right: 0; width: 1px; transform-origin: 50% 0; animation: op040-edy 300ms ease-in-out 450ms both; }
.op040 .op040__fx--b { left: 0; right: 0; bottom: 0; height: 1px; transform-origin: 100% 50%; animation: op040-edx 300ms ease-in-out 750ms both; }
.op040 .op040__fx--l { top: 0; bottom: 0; left: 0; width: 1px; transform-origin: 50% 100%; animation: op040-edy 300ms ease-in-out 1050ms both; }
/* corner ornaments, mirrored */
.op040 .op040__co { position: absolute; width: clamp(40px, calc(var(--op040-D) * .17), 64px); height: auto; aspect-ratio: 1; max-width: none; overflow: visible; pointer-events: none; }
.op040 .op040__co--tl { left: calc(var(--op040-sp) + var(--op040-e) * .5 + 9px); top: calc(var(--op040-e) + 9px); }
.op040 .op040__co--tr { right: calc(var(--op040-e) + 9px); top: calc(var(--op040-e) + 9px); transform: scaleX(-1); }
.op040 .op040__co--br { right: calc(var(--op040-e) + 9px); bottom: calc(var(--op040-e) + 9px); transform: scale(-1, -1); }
.op040 .op040__co--bl { left: calc(var(--op040-sp) + var(--op040-e) * .5 + 9px); bottom: calc(var(--op040-e) + 9px); transform: scaleY(-1); }
.op040 .op040__cp { fill: none; stroke: url(#op040-cof); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  animation: op040-draw 700ms cubic-bezier(.4, 0, .3, 1) calc(1450ms + var(--op040-t, 0) * 1000ms) both; }
/* the cover's column */
.op040 .op040__col { position: absolute; left: var(--op040-sp); right: 0; top: var(--op040-e); bottom: calc(var(--op040-e) + 56px + var(--op040-D) * .06);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.op040 .op040__inv { display: flex; align-items: center; gap: .9em; margin-bottom: calc(var(--op040-D) * .075); white-space: nowrap;
  font: 500 max(9px, calc(var(--op040-D) * .05)) / 1 var(--k-font-caps, "Montserrat", system-ui, sans-serif); letter-spacing: .42em; text-transform: uppercase; }
.op040 .op040__it { padding-left: .42em; }
.op040 .op040__it > i { display: inline-block; padding: .15em 0; opacity: 0;
  background: linear-gradient(180deg, var(--k-ig-foil-hi, #E9CA93), var(--k-ig-metal, #B8935F) 55%, var(--k-ig-foil-lo, #8E6C42));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: op040-stamp 380ms cubic-bezier(.2, .7, .2, 1) calc(300ms + var(--op040-i, 0) * 45ms) both; }
.op040 .op040__ir { display: block; width: calc(var(--op040-D) * .1); height: 1px; transform-origin: 100% 50%;
  background: linear-gradient(90deg, transparent, var(--k-ig-metal, #B8935F)); animation: op040-edx 500ms ease-out 900ms both; }
.op040 .op040__ir--r { transform-origin: 0 50%; background: linear-gradient(90deg, var(--k-ig-metal, #B8935F), transparent); }
.op040 .op040__ring { position: relative; flex: none; width: var(--op040-D); }
/* the wreath: its own container, so no container units inside it */
.op040 .op040__wr { position: relative; width: 100%; container: op040wr / inline-size; }
/* the wreath: inline pen lines in gold foil; each path holds its dash, start and length on the 1.8 s pen clock */
.op040 .op040__art { position: relative; width: 100%; aspect-ratio: 1.0052; --op040-pen: 8; }
@container op040wr (min-width: 140px) { .op040 .op040__art { --op040-pen: 7; } }
@container op040wr (min-width: 210px) { .op040 .op040__art { --op040-pen: 5.6; } }
@container op040wr (min-width: 280px) { .op040 .op040__art { --op040-pen: 4.2; } }
@container op040wr (min-width: 360px) { .op040 .op040__art { --op040-pen: 3.3; } }
@container op040wr (min-width: 460px) { .op040 .op040__art { --op040-pen: 2.6; } }
@container op040wr (min-width: 600px) { .op040 .op040__art { --op040-pen: 2; } }
.op040 .op040__pen { display: block; width: 100%; height: auto; overflow: visible; max-width: none; }
.op040:not(.is-opening) .op040__pen, .op040:not(.is-opening) .op040__names { will-change: transform; }
.op040 .op040__ln, .op040 .op040__lb { fill: none; stroke: url(#op040-foil); stroke-linecap: round; stroke-linejoin: round; }
.op040 .op040__ln path { stroke-width: calc(var(--op040-w, 1) * var(--op040-pen, 5.6)); opacity: 0;
  animation: op040-ink calc(max(var(--op040-d, .05), .045) * 1800ms) linear calc(350ms + var(--op040-a, 0) * 1800ms) both; }
.op040 .op040__lb path { stroke-width: calc(var(--op040-w, 1) * var(--op040-pen, 5.6)); opacity: 0;
  animation: op040-in calc(var(--op040-d, .08) * 1800ms + 200ms) ease-out calc(350ms + var(--op040-a, 0) * 1800ms) both; }
.op040 .op040__fl path { opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: op040-pop 160ms ease-out calc(350ms + var(--op040-a, 0) * 1800ms) both; }
.op040 .op040-fc, .op040 .op040-fi { fill: url(#op040-foil); }
.op040 .op040-s1 { stop-color: var(--k-ig-foil-lo, #8E6C42); }
.op040 .op040-s2 { stop-color: var(--k-ig-metal, #B8935F); }
.op040 .op040-s3 { stop-color: var(--k-ig-foil-hi, #E9CA93); }
/* the initials (::first-letter), foil-stamped and pressed into the wreath */
.op040 .op040__ini { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; padding: .4em .8em; text-align: center; white-space: nowrap; line-height: 1;
  font-family:var(--k-font-script, "Allison", cursive);
  background: var(--k-ig-foil, linear-gradient(118deg, #8E6C42 0%, #B8935F 22%, #E9CA93 40%, #B8935F 58%, #E9CA93 76%, #8E6C42 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: op040-press 420ms cubic-bezier(.2, .7, .2, 1) 2100ms both; }
.op040 .op040__n { display: inline-block; font-size: 0; }
.op040 .op040__n::first-letter { font-size: calc(var(--op040-D) * .22); }
.op040 .op040__amp { display: inline-block; font-size: calc(var(--op040-D) * .17); margin: 0 .06em; vertical-align: .08em; }
/* the names: a window sweeps open from the left while the words move back by the same distance (a nib writes them) */
.op040 .op040__names { position: relative; flex: none; white-space: nowrap;
  font: 400 min(calc(var(--op040-D) * .25), calc((var(--op040-cw) - var(--op040-sp)) * .86 * 2.73 / (2 * var(--op040-len, 6) + 3))) / 1 var(--k-font-script, "Allison", cursive);
  margin: calc(var(--op040-D) * .06 - .4em) 0 -.5em; }
.op040 .op040__wv { display: inline-block; vertical-align: top; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.1em), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 1.1em), transparent);
  animation: op040-wv 1500ms cubic-bezier(.4, .1, .45, 1) 1250ms both; }
.op040 .op040__wt { display: inline-block; padding: .4em 1.1em .5em;
  background: var(--k-ig-foil, linear-gradient(118deg, #8E6C42 0%, #B8935F 22%, #E9CA93 40%, #B8935F 58%, #E9CA93 76%, #8E6C42 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: op040-wt 1500ms cubic-bezier(.4, .1, .45, 1) 1250ms both; }
.op040 .op040__amp2 { font-size: .82em; margin: 0 .03em; }
/* the nib rides the writing edge, then lifts */
.op040 .op040__car { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none;
  animation: op040-wv 1500ms cubic-bezier(.4, .1, .45, 1) 1250ms both; }
.op040 .op040__nib { position: absolute; right: .38em; bottom: .78em; width: min(.34em, 26px); aspect-ratio: 14 / 26; opacity: 0;
  animation: op040-in 150ms ease 1200ms both, op040-lift 320ms ease-in 2750ms forwards; }
.op040 .op040__nibb { display: block; width: 100%; height: 100%; animation: op040-bob 1500ms linear 1250ms both; }
.op040 .op040__nibb svg { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; transform: rotate(28deg); transform-origin: 50% 100%; }
.op040 .op040__nb { fill: url(#op040-nibf); stroke: rgb(30 26 20 / .35); stroke-width: .5; }
.op040 .op040__ns { fill: none; stroke: rgb(30 26 20 / .6); stroke-width: .7; stroke-linecap: round; }
.op040 .op040__nh { fill: #1B1A19; }
/* the date between two fine gold rules that draw outwards */
.op040 .op040__date { display: flex; align-items: center; gap: .9em; margin-top: calc(var(--op040-D) * .035); white-space: nowrap;
  font: 500 max(9px, calc(var(--op040-D) * .046)) / 1 var(--k-font-caps, "Montserrat", system-ui, sans-serif); letter-spacing: .34em; text-transform: uppercase; }
.op040 .op040__dt { padding: .2em 0 .2em .34em; opacity: 0;
  background: linear-gradient(180deg, var(--k-ig-foil-hi, #E9CA93), var(--k-ig-metal, #B8935F) 55%, var(--k-ig-foil-lo, #8E6C42));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: op040-in 500ms ease 2750ms both; }
.op040 .op040__dr { display: block; width: calc(var(--op040-D) * .12); height: 1px; transform-origin: 100% 50%;
  background: linear-gradient(90deg, transparent, var(--k-ig-metal, #B8935F)); animation: op040-edx 400ms ease-out 2650ms both; }
.op040 .op040__dr--r { transform-origin: 0 50%; background: linear-gradient(90deg, var(--k-ig-metal, #B8935F), transparent); }
.op040 .op040__shade { position: absolute; inset: 0; opacity: 0; background: rgb(0 0 0 / .5); pointer-events: none; }
/* the hint: the open link, >= 44 px, quiet until 3 s */
.op040 .op040__hint { position: absolute; z-index: 1; width: max-content; min-height: 44px; transform: translateX(-50%);
  left: calc(var(--op040-bx) + var(--op040-sp) + (var(--op040-cw) - var(--op040-sp)) / 2);
  top: calc(var(--op040-by) + var(--op040-ch) - var(--op040-e) - 56px - var(--op040-D) * .02);
  padding: 0 18px 0 calc(18px + .34em); background: none; border: 0; color: var(--k-ig-foil-hi, #E9CA93);
  font: 500 max(10px, calc(var(--op040-D) * .04)) / 1 var(--k-font-caps, "Montserrat", system-ui, sans-serif); letter-spacing: .34em;
  opacity: 0; animation: op040-in 700ms ease 3000ms both; }
.op040 .op040__hint:focus-visible { opacity: 1; animation: none; outline: 2px solid var(--k-ig-foil-hi, #E9CA93); outline-offset: 2px; }
/* motion: transform, opacity, stroke dash only; the cover and endpaper may turn towards the guest (to -96deg) */
@keyframes op040-settle { from { opacity: 0; transform: translateY(1.4cqh); } to { opacity: 1; transform: none; } }
@keyframes op040-edx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes op040-edy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes op040-stamp { from { opacity: 0; transform: translateY(-.35em) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes op040-draw { to { stroke-dashoffset: 0; } }
@keyframes op040-press { from { opacity: 0; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes op040-wv { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes op040-wt { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes op040-bob { 0%, 14%, 28%, 42%, 57%, 71%, 85%, 100% { transform: translateY(0); } 7%, 21%, 35%, 50%, 64%, 78%, 93% { transform: translateY(-.1em); } }
@keyframes op040-lift { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(.2em, -.5em) rotate(-8deg); } }
@keyframes op040-ink { 0% { opacity: 0; } .1% { opacity: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes op040-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes op040-in { to { opacity: 1; } }
@keyframes op040-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes op040-turn { from { transform: rotateY(0deg); } to { transform: rotateY(-96deg); } }
@keyframes op040-leaf { from { transform: rotateY(0deg); } to { transform: rotateY(-96deg); } }
@keyframes op040-shade { from { opacity: 0; } to { opacity: .55; } }
@keyframes op040-cast { 0% { opacity: 0; transform: scaleX(1); } 30% { opacity: 1; } 100% { opacity: 0; transform: scaleX(.25); } }
/* the tap: the paper fades, the cover opens outwards (gone by 1150 ms), the endpaper holds, then turns (gone by 1750 ms) */
.op040.is-opening { pointer-events: none; animation: op040-out 200ms ease-in 1650ms both; }
.op040.is-opening .op040__hint { animation: op040-out 200ms ease both; }
.op040.is-opening .op040__ground { animation: op040-out 300ms ease 80ms both; }
.op040.is-opening .op040__cv { animation: op040-turn 900ms cubic-bezier(.5, 0, .25, 1) 250ms both, op040-out 110ms ease-in 1040ms both; }
.op040.is-opening .op040__shade { animation: op040-shade 900ms cubic-bezier(.5, 0, .25, 1) 250ms both; }
.op040.is-opening .op040__cast { animation: op040-cast 900ms ease-out 250ms both; }
.op040.is-opening .op040__shd, .op040.is-opening .op040__ge, .op040.is-opening .op040__fe, .op040.is-opening .op040__hb { animation: op040-out 400ms ease 1000ms both; }
.op040.is-opening .op040__leaf { animation: op040-leaf 650ms cubic-bezier(.45, 0, .3, 1) 1100ms both, op040-out 120ms ease-in 1630ms both; }
.op040.is-opening .op040__ln path, .op040.is-opening .op040__lb path, .op040.is-opening .op040__fl path { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
/* reduced motion: finished, cross-fade */
html.motion-reduce .op040 .op040__ln path, html.motion-reduce .op040 .op040__lb path, html.motion-reduce .op040 .op040__fl path { animation: none; opacity: 1; stroke-dashoffset: 0; }
html.motion-reduce .op040 .op040__book, html.motion-reduce .op040 .op040__sl, html.motion-reduce .op040 .op040__fx, html.motion-reduce .op040 .op040__ir,
html.motion-reduce .op040 .op040__dr, html.motion-reduce .op040 .op040__it > i, html.motion-reduce .op040 .op040__wv, html.motion-reduce .op040 .op040__wt,
html.motion-reduce .op040 .op040__dt { animation: none; opacity: 1; transform: none; }
html.motion-reduce .op040 .op040__cp { animation: none; stroke-dashoffset: 0; }
html.motion-reduce .op040 .op040__ini { animation: none; opacity: 1; transform: translate(-50%, -50%); }
html.motion-reduce .op040 .op040__hint { animation: none; opacity: 1; }
html.motion-reduce .op040 .op040__car { display: none; }
@media (prefers-reduced-motion: reduce) {
  .op040 .op040__ln path, .op040 .op040__lb path, .op040 .op040__fl path { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .op040 .op040__book, .op040 .op040__sl, .op040 .op040__fx, .op040 .op040__ir, .op040 .op040__dr, .op040 .op040__it > i, .op040 .op040__wv,
  .op040 .op040__wt, .op040 .op040__dt { animation: none; opacity: 1; transform: none; }
  .op040 .op040__cp { animation: none; stroke-dashoffset: 0; }
  .op040 .op040__ini { animation: none; opacity: 1; transform: translate(-50%, -50%); }
  .op040 .op040__hint { animation: none; opacity: 1; }
  .op040 .op040__car { display: none; }
}
html.motion-reduce .op040.is-opening { animation: op040-out .45s ease forwards; }
html.motion-reduce .op040.is-opening *, html.motion-reduce .op040.is-opening *::before, html.motion-reduce .op040.is-opening *::after { animation: none !important; transition: none !important; }
