/* ESCHATON DEVICES — the page is a photocopied fanzine.
   Every section is a page of the zine, printed positive (ink on paper) or negative (paper on ink), one after
   the other with no gap. Titles in Eschaton Cut, the letters cut out of a record cover (tools/cutfont.py);
   text on the typewriter (Courier Prime). Pictures are photocopies, pasted a little crooked with tape.
   Two skins: day prints the first page positive, night prints it negative. Only the variables change. */

@font-face { font-family: 'Eschaton Cut'; src: url('fonts/eschaton-cut.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('fonts/courier-prime-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('fonts/courier-prime-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root, html[data-skin="day"] { --paper: #fff; --ink: #0b0b0b; --tape: rgb(120 120 120 / .45); color-scheme: light; }
html[data-skin="night"] { --paper: #0b0b0b; --ink: #f1f1f1; --tape: rgb(255 255 255 / .28); color-scheme: dark; }
:root {
  --cut: 'Eschaton Cut', 'Arial Black', Impact, sans-serif;
  --type: 'Courier Prime', 'Courier New', Courier, monospace;
  --m: clamp(16px, 3.4vw, 48px);                       /* the one page margin */
  --gap: 16px;
  /* five sizes */
  --t-display: clamp(56px, 9.8vw, 168px);
  --t-h2: clamp(44px, 7.4vw, 120px);
  --t-h3: clamp(34px, 4.6vw, 72px);
  --t-body: 18px;
  --t-small: 15px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.55 var(--type); -webkit-text-size-adjust: 100%; }
body { background: var(--paper); overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
::selection { background: var(--fg, var(--ink)); color: var(--bg, var(--paper)); }
:focus-visible { outline: 3px solid var(--fg, var(--ink)); outline-offset: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-skin="night"] .ink-img { filter: invert(1); }           /* black ink turns white at night */

/* ================= the pages of the zine ================= */
.pos { --bg: var(--paper); --fg: var(--ink); }
.neg { --bg: var(--ink); --fg: var(--paper); }
.field { background: var(--bg); color: var(--fg); padding: clamp(96px, 11vw, 168px) var(--m); position: relative; overflow: clip; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

h1, h2, h3, .cut { font-family: var(--cut); font-weight: 400; line-height: .9; text-transform: uppercase; }
h2 { font-size: var(--t-h2); margin-bottom: clamp(44px, 5vw, 76px); transform: rotate(-.7deg); transform-origin: 0 100%; }
h3 { font-size: var(--t-h3); }
p { max-width: 62ch; }
p + p { margin-top: 1em; }
.small { font-size: var(--t-small); }

/* paper slips and tape */
.slip { display: inline-block; background: var(--fg); color: var(--bg); padding: .04em .08em 0; }
.taped { position: relative; }
.taped::before, .taped::after { content: ''; position: absolute; z-index: 2; width: clamp(70px, 9vw, 120px); height: clamp(22px, 2.4vw, 32px);
  background: var(--tape); pointer-events: none; }
.taped::before { top: -14px; left: 10%; transform: rotate(-9deg); }
.taped::after { top: -12px; right: 9%; transform: rotate(7deg); }

/* ================= controls ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--fg); color: var(--bg); border: 3px solid var(--fg); border-radius: 0;
  font: 700 var(--t-body)/1 var(--type); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .12s var(--ease); }
.btn:hover { background: var(--bg); color: var(--fg); }
.btn.line, .btn.in { background: transparent; color: var(--fg); }
.btn.line:hover, .btn.in:hover { background: var(--fg); color: var(--bg); }
.btn:active { transform: translate(3px, 3px); }
.btn[disabled] { background: transparent; color: var(--fg); opacity: .5; cursor: default; transform: none; }
.acts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* the leaders of a typewritten list: key . . . . . . value */
.leaders { list-style: none; max-width: 36em; }
.leaders li { display: flex; align-items: baseline; gap: .6ch; }
.leaders li > :first-child { white-space: nowrap; }
.leaders li::after { content: '. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .';
  order: 2; flex: 1 1 0; width: 0; min-width: 2ch; overflow: hidden; white-space: nowrap; height: 1.55em; }   /* width 0: the dots never widen the column */
.leaders li > :first-child { order: 1; }
.leaders li > :last-child { order: 3; font-weight: 700; text-align: right; max-width: 70%; }

/* ================= header: the masthead strip ================= */
.bar { display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; padding: 16px var(--m); font-size: 16px; }
.bar-name { font: 400 28px/1 var(--cut); text-decoration: none; text-transform: uppercase; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bar nav a, .cart-link { text-decoration: none; padding: 8px 0; }
.bar nav a:hover, .cart-link:hover, .bar nav a[aria-current] { text-decoration: underline; }
.skin { display: inline-flex; gap: 2px; margin-left: auto; }
.skin button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 3px solid transparent; cursor: pointer; }
.skin button[aria-pressed="true"] { border-color: currentColor; }
.skin svg { width: 22px; height: 22px; }
.cart-link { font-weight: 700; white-space: nowrap; }

/* ================= home: the cover ================= */
.hero { min-height: 100svh; padding-top: clamp(16px, 4vh, 48px); padding-bottom: clamp(40px, 7vh, 80px); align-content: space-between; row-gap: 40px; }
.hero-name { grid-column: 1 / 9; grid-row: 1; align-self: start; margin-top: clamp(24px, 9vh, 110px); font-size: var(--t-display); line-height: .84; position: relative; z-index: 1; }
.hero-name .ln { display: block; overflow: clip; padding: .1em .06em .16em; margin: -.1em -.06em -.16em; }
.hero-name .ln > span { display: inline-block; }
.hero-name .slip { transform: rotate(-1.6deg); }
.hero-face { grid-column: 8 / 13; grid-row: 1 / 3; justify-self: end; align-self: center; width: 100%; max-width: 600px; transform: rotate(1.6deg); }
.hero-face img { width: 100%; height: auto; max-height: 84svh; object-fit: contain; margin-left: auto; }
/* the face cut up (site.js, cutup): the pieces are copies of the picture, each clipped to its part */
.cutup { position: relative; }
.cutup img + img { position: absolute; inset: 0; height: 100%; }
.cutup img { transition: transform .55s var(--ease); }
.cutup.cut img { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); transition: transform .3s cubic-bezier(.2, 1.5, .4, 1) var(--d); }
.hero-foot { grid-column: 1 / 7; grid-row: 2; align-self: end; display: grid; gap: 26px; }
.hero-foot p { max-width: 30ch; }

/* ================= eschaton: the motto, pasted down in steps ================= */
#eschaton { min-height: 96svh; align-content: start; }
#eschaton h2 { grid-column: 1 / -1; }
.motto { grid-column: 1 / -1; display: grid; gap: clamp(14px, 2vw, 26px); }
.motto p { max-width: none; font: 400 var(--t-h3)/1 var(--cut); text-transform: uppercase; }
.motto p:nth-child(2) { padding-left: 24vw; }
.motto p:nth-child(3) { padding-left: 48vw; }
.motto .slip { padding: .1em .16em .04em; }
.motto p:nth-child(1) .slip { transform: rotate(-1.4deg); }
.motto p:nth-child(2) .slip { transform: rotate(.9deg); }
.motto p:nth-child(3) .slip { transform: rotate(-.5deg); }
.define { grid-column: 1 / 7; margin-top: clamp(64px, 9vw, 120px); font-size: var(--t-small); }
.define b { font-size: var(--t-body); }

/* ================= devices: one page each, the screen photocopied ================= */
.device { min-height: 90svh; row-gap: 0; align-items: start; }
.device > h2 { grid-column: 1 / -1; }
.device .plate { grid-column: 1 / 8; grid-row: 2; }
.device .side { grid-column: 9 / 13; grid-row: 2; display: grid; gap: 28px; align-content: start; min-width: 0; }
.device.flip .plate { grid-column: 6 / 13; }
.device.flip .side { grid-column: 1 / 5; }
.side h3 { font-size: var(--t-h3); }
.side h3 a { text-decoration: none; }
.side h3 a:hover { text-decoration: underline; text-decoration-thickness: 6px; }
.side .line { font-size: var(--t-body); font-weight: 700; }

/* the live thing: a photocopier. Each press copies the copy again */
.xerox { position: relative; transform: rotate(var(--tilt, -.9deg)); background: var(--paper); }
.flip .xerox { --tilt: .8deg; }
.xerox canvas, .xerox img { width: 100%; height: auto; }
.xerox img.raw { filter: grayscale(1) contrast(2.4); }          /* without script: a crude copy of the screen */
.xerox canvas + img.raw { display: none; }
.xerox.original canvas { display: none; }
.xerox.original canvas + img.raw { display: block; filter: none; }
html[data-skin="night"] .xerox:not(.dark):not(.original) { filter: invert(1); }
.xerox .scan { position: absolute; left: -3%; right: -3%; top: 0; height: 16%; background: var(--tape); opacity: 0; pointer-events: none; z-index: 1; }
.xerox.copying .scan { animation: scan .55s linear; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-100%); } 100% { opacity: 1; transform: translateY(640%); } }
.copier { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 26px; font-size: var(--t-small); }
.copier button { min-height: 44px; padding: 0 16px; background: transparent; color: var(--fg); border: 3px solid var(--fg); font: 700 var(--t-small)/1 var(--type); cursor: pointer; }
.copier button:hover, .copier button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.copier button:active { transform: translate(2px, 2px); }
.copier output { margin-left: auto; font-weight: 700; }

/* ================= transmissions and recordings ================= */
.media { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.media figure { min-width: 0; }
.media figure.tall { flex: 1 1 100%; display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.tall .screen { transform: rotate(-1.2deg); }
.tall video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.media figure.wide { flex: 1 1 520px; }
.wide .screen { aspect-ratio: 16 / 9; position: relative; }
.wide iframe, .wide video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bc iframe { width: min(100%, 420px); height: 472px; border: 0; display: block; }
.media figcaption { margin-top: 16px; }
.tall figcaption { margin: 0 0 8px; display: grid; gap: 22px; }
.tall figcaption h3 { font-size: var(--t-h3); }

/* a tape still waiting for its recording: a cassette j-card */
.jcard { width: min(100%, 600px); aspect-ratio: 10 / 6.4; border: 3px solid var(--fg); display: grid; grid-template-columns: 22% 1fr; transform: rotate(var(--tilt, -1deg)); }
.jcard:nth-child(2n) { --tilt: 1.3deg; }
.jcard .spine { background: var(--fg); color: var(--bg); display: grid; place-items: center; font: 400 26px/1 var(--cut); text-transform: uppercase; }
.jcard .spine span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.jcard .face { padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.jcard .face b { font: 400 34px/1 var(--cut); text-transform: uppercase; }

/* ================= contact: the back cover ================= */
.strip { grid-column: 1 / -1; margin: -24px calc(-1 * var(--m)) clamp(48px, 6vw, 80px); overflow: clip; }
.strip-run { display: flex; gap: 10px; width: max-content; animation: drift 70s linear infinite; }
.strip img { height: clamp(120px, 12vw, 170px); width: auto; flex: none; }
@keyframes drift { to { transform: translateX(-50%); } }
#contact h2 { grid-column: 1 / -1; }
.cells { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cell { min-height: 132px; padding: 18px 22px; background: var(--fg); color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; text-decoration: none; overflow-wrap: anywhere; }
.cell b { font: 400 min(var(--t-h3), 3.6vw)/1 var(--cut); text-transform: uppercase; }
a.cell:hover { background: var(--bg); color: var(--fg); outline: 3px solid var(--fg); outline-offset: -3px; }

/* ================= footer ================= */
.foot { padding-top: 72px; padding-bottom: 40px; row-gap: 32px; font-size: var(--t-small); }
.foot .motto-small { grid-column: 1 / -1; font: 400 var(--t-h3)/1 var(--cut); text-transform: uppercase; }
.foot nav { grid-column: 1 / 5; display: grid; gap: 4px; align-content: start; }
.foot nav a { text-decoration: none; } .foot nav a:hover { text-decoration: underline; }
.foot .seller { grid-column: 5 / 10; }
.foot .legal-link { grid-column: 10 / 13; justify-self: end; }

/* ================= product page ================= */
.p-hero { min-height: 92svh; padding-top: clamp(40px, 6vw, 88px); align-items: start; row-gap: 0; }
.p-hero h1 { grid-column: 1 / -1; font-size: var(--t-h2); margin-bottom: clamp(44px, 5vw, 76px); transform: rotate(-.7deg); transform-origin: 0 100%; }
.p-hero .plate { grid-column: 1 / 8; }
.p-hero .side { grid-column: 9 / 13; display: grid; gap: 28px; align-content: start; min-width: 0; }
.screens { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; margin-top: clamp(72px, 9vw, 128px); }
.screens figure { flex: 1 1 360px; transform: rotate(-.8deg); }
.screens figure:nth-child(2n) { transform: rotate(1deg); margin-top: 48px; }
.screens img { width: 100%; height: auto; }
.screens figcaption { margin-top: 14px; }
.notes { align-items: start; }
.notes h2 { grid-column: 1 / -1; }
.notes .text { grid-column: 1 / 8; display: grid; gap: 1em; }
.notes .text p { margin: 0; }
.notes .text p:first-child { font-weight: 700; }
.bullets { list-style: none; display: grid; gap: .2em; }
.bullets li::before { content: '• '; font-weight: 700; }
.notes .formats-list { grid-column: 9 / 13; }
.others { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px 56px; }
.others a { display: grid; gap: 24px; width: min(100%, 520px); font: 400 var(--t-h3)/.9 var(--cut); text-transform: uppercase; text-decoration: none; }
.others a:hover { text-decoration: underline; text-decoration-thickness: 8px; }
.trial-note { font-size: var(--t-small); }

/* ================= order form (cart) ================= */
.order { min-height: 80svh; padding-top: clamp(40px, 6vw, 88px); align-content: start; }
.order h1 { grid-column: 1 / -1; font-size: var(--t-h2); margin-bottom: clamp(44px, 5vw, 76px); transform: rotate(-.7deg); transform-origin: 0 100%; }
.order > * { grid-column: 1 / -1; }
.order .intro { margin-bottom: clamp(48px, 6vw, 80px); }
#cart > p { margin-bottom: 36px; }
.cart-list { list-style: none; display: grid; gap: 48px; }
.cart-list li { display: grid; grid-template-columns: clamp(110px, 14vw, 200px) minmax(0, 1fr); gap: 14px clamp(18px, 3vw, 40px); align-items: center; }
.thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(2.4); transform: rotate(-1deg); }
html[data-skin="night"] .thumb:not(.dark) { filter: grayscale(1) contrast(2.4) invert(1); }
.row-top { display: flex; align-items: baseline; gap: .6ch; }
.row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 14px; }
.cart-list .name { font: 400 var(--t-h3)/1 var(--cut); text-transform: uppercase; text-decoration: none; }
.cart-list .dots { flex: 1 1 0; width: 0; overflow: hidden; white-space: nowrap; min-width: 4ch; }
.rm { background: none; border: 0; padding: 8px 4px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.total { margin-top: 30px; font-weight: 700; }
.coupon { margin-top: clamp(56px, 7vw, 96px); border: 3px dashed var(--fg); padding: clamp(28px, 4vw, 52px); position: relative; max-width: 900px; }
.coupon > .scissors { position: absolute; top: -.72em; left: 28px; padding: 0 10px; background: var(--bg); font-size: 30px; line-height: 1; }
.coupon h2 { font-size: var(--t-h3); margin-bottom: 26px; }
.consent { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; margin-top: 18px; max-width: 70ch; cursor: pointer; }
/* the version ticks: format x system */
.pick { border: 0; display: grid; gap: 4px; min-width: 0; }
.pick-row { display: grid; grid-template-columns: 7ch minmax(0, 1fr); align-items: start; }
.pick-k { padding-top: 10px; }
.ticks { display: flex; flex-wrap: wrap; gap: 0 22px; }
.pick-k { width: 7ch; }
.tick { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.pick-note { font-size: var(--t-small); margin-top: 4px; }
.pick-note.warn { animation: warn .5s steps(2) 2; font-weight: 700; }
@keyframes warn { 50% { background: var(--fg); color: var(--bg); } }
.row-sub .pick { flex: 1 1 100%; }
.consent input, .tick input { appearance: none; width: 28px; height: 28px; border: 3px solid var(--fg); background: transparent; position: relative; cursor: pointer; margin-top: -2px; }
.tick input { width: 24px; height: 24px; margin: 0; flex: none; }
.consent input:checked::before, .consent input:checked::after, .tick input:checked::before, .tick input:checked::after { content: ''; position: absolute; left: 50%; top: -3px; width: 3px; height: 28px; margin-left: -1.5px; background: var(--fg); }
.tick input:checked::before, .tick input:checked::after { height: 24px; }
.consent input:checked::before, .tick input:checked::before { transform: rotate(45deg); } .consent input:checked::after, .tick input:checked::after { transform: rotate(-45deg); }
.pay-row { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; margin-top: 32px; }
.alert { margin-top: 22px; border: 3px solid var(--fg); padding: 12px 16px; font-weight: 700; }
.alert::before { content: 'error: '; }
#payhip-cart-launcher-icon-iframe, #payhip-cart-launcher-badge-iframe { display: none !important; }

/* ================= terms ================= */
.legal { padding-top: clamp(40px, 6vw, 88px); }
.legal h1 { font-size: var(--t-h2); margin-bottom: 20px; }
.legal h2 { font-size: var(--t-h3); margin: 64px 0 18px; transform: none; }
.legal p { max-width: 70ch; }

/* ================= phones and tablets ================= */
@media (max-width: 860px) {
  #eschaton, .device { min-height: 0; }
  .bar nav { order: 3; width: 100%; }
  .hero { min-height: auto; row-gap: 32px; }
  .hero-name { grid-column: 1 / -1; margin-top: 5vh; font-size: clamp(40px, 14.6vw, 110px); }
  .hero-foot { grid-column: 1 / -1; grid-row: 2; }
  .hero-face { grid-column: 4 / -1; grid-row: 3; max-width: 420px; }
  .motto p:nth-child(2) { padding-left: 8vw; } .motto p:nth-child(3) { padding-left: 16vw; }
  .define { grid-column: 1 / -1; }
  .device .plate, .device.flip .plate, .p-hero .plate { grid-column: 1 / -1; grid-row: auto; }
  .device .side, .device.flip .side, .p-hero .side { grid-column: 1 / -1; grid-row: auto; margin-top: 44px; }
  .device > h2, .p-hero h1 { order: -2; } .device .side, .p-hero .side { order: -1; margin: 0 0 48px; }
  .cart-list li { grid-template-columns: 72px minmax(0, 1fr); }
  .row-top { flex-wrap: wrap; } .row-top .dots { display: none; } .row-top b { flex-basis: 100%; text-align: right; }     /* on a phone the name comes before its picture */
  .media figure.tall { grid-template-columns: 1fr; }
  .tall .screen { max-width: 340px; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 104px; }
  .cell b { font-size: var(--t-h3); }
  .foot nav, .foot .seller, .foot .legal-link { grid-column: 1 / -1; justify-self: start; }
  .notes .text, .notes .formats-list { grid-column: 1 / -1; }
  .notes .formats-list { margin-top: 40px; }
  .screens figure, .screens figure:nth-child(2n) { transform: none; margin-top: 0; }
}

/* ================= motion ================= */
/* the cover: each line of the name rises from behind its own baseline */
.js .hero-name .ln > span { animation: rise .9s var(--ease) both; }
.js .hero-name .ln + .ln > span { animation-delay: .11s; }
.js .hero-foot, .js .hero-face { animation: paste .8s var(--ease) .35s both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes paste { from { opacity: 0; transform: translateY(24px) rotate(-3deg); } }
/* every page: its parts are pasted down one after the other as it comes in */
.js [data-in].pre { opacity: 0; transform: translateY(28px) rotate(var(--in-r, -1.5deg)); }
.js [data-in] { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  .js .hero-name .ln > span, .js .hero-foot, .js .hero-face { animation: none; }
  .js [data-in].pre { opacity: 1; transform: none; }
  .strip-run { animation: none; }
  .xerox.copying .scan { animation: none; }
  .corrupt-a, .corrupt-b, .corrupt-c { animation: none; }
}

/* ================= corruption: buttons and links break for an instant on hover, like a bad copy =================
   site.js adds one of these classes on pointer enter (and keyboard focus) and scrambles the typewritten text.
   Only how the control LOOKS breaks: the missing slices are a layer of paper laid over it (::after) that the pointer
   goes through, and the control itself only jolts sideways, so it stays clickable all the time. A press ends it. */
.corrupt-a, .corrupt-b, .corrupt-c { position: relative; }
.corrupt-a { animation: jolt-a .26s steps(1) both; }
.corrupt-b { animation: jolt-b .26s steps(1) both; }
.corrupt-c { animation: jolt-c .26s steps(1) both; }
.corrupt-a::after, .corrupt-b::after, .corrupt-c::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--bg, var(--paper)); pointer-events: none; }
.corrupt-a::after { animation: slice-a .26s steps(1) both; }
.corrupt-b::after { animation: slice-b .26s steps(1) both; }
.corrupt-c::after { animation: slice-c .26s steps(1) both; }
@keyframes jolt-a {
  0%   { transform: translateX(3px); }
  17%  { transform: translateX(-4px); filter: invert(1); }
  34%  { transform: translateX(2px); filter: none; }
  51%  { transform: translateX(-2px); }
  68%  { transform: translateX(4px); filter: invert(1); }
  85%, 100% { transform: none; filter: none; }
}
@keyframes jolt-b {
  0%   { transform: translateX(-4px); filter: invert(1); }
  20%  { transform: translateX(4px); filter: none; }
  40%  { transform: translateX(-2px); }
  60%  { transform: translateX(3px); filter: invert(1); }
  80%  { transform: translateX(-3px); filter: none; }
  100% { transform: none; filter: none; }
}
@keyframes jolt-c {
  0%   { transform: skewX(10deg); filter: invert(1); }
  25%  { transform: translateX(4px); filter: none; }
  50%  { transform: translateX(-4px); }
  75%  { transform: translateX(2px) skewX(-8deg); filter: invert(1); }
  100% { transform: none; filter: none; }
}
/* what the paper covers: the slices of the control that are missing at that instant */
@keyframes slice-a {
  0%   { clip-path: inset(45% 0 0 0); }
  17%  { clip-path: inset(0 0 62% 0); }
  34%  { clip-path: inset(0 0 28% 0); }
  51%  { clip-path: inset(40% 0 40% 0); }
  68%  { clip-path: inset(0 70% 0 0); }
  85%, 100% { clip-path: inset(100% 0 0 0); }
}
@keyframes slice-b {
  0%   { clip-path: inset(0 0 52% 0); }
  20%  { clip-path: inset(34% 0 0 0); }
  40%  { clip-path: inset(0 0 60% 0); }
  60%  { clip-path: inset(0 0 0 60%); }
  80%  { clip-path: inset(0 0 92% 0); }
  100% { clip-path: inset(100% 0 0 0); }
}
@keyframes slice-c {
  0%   { clip-path: inset(100% 0 0 0); }
  25%  { clip-path: inset(0 0 70% 0); }
  50%  { clip-path: inset(20% 0 0 0); }
  75%  { clip-path: inset(0 0 80% 0); }
  100% { clip-path: inset(100% 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .corrupt-a, .corrupt-b, .corrupt-c, .corrupt-a::after, .corrupt-b::after, .corrupt-c::after { animation: none; }
}
