/* FaceTales: the app's paper, ink and flat steps. Colour lives in the pictures; the page stays quiet. */

:root {
  --paper: #fff6e4;
  --raised: #fffbf2;
  --step: #ead9b8;
  --ink: #3b2a22;
  --ink-2: #5e4b3f;
  --ink-3: #7a6455;
  --line: rgb(59 42 34 / 0.12);
  --accent: #d43333;
  --accent-step: #a3262f;
  --sky: #9ed6f1;
  --night: #232659;
  --night-ground: #1a1d47;
  --night-ink: #f4f1e6;
  --night-ink-2: #c3c7e6;
  --moonlight: #fff0ca;
  --frame: #2a1d17;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --edge: clamp(20px, 5vw, 72px);
  --wide: 1240px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/28px var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--raised);
}

.skip:focus {
  top: 16px;
}

.wordmark {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* The first screen: the oak wood fills it, then closes into the tablet it lives in. */

.stage {
  position: relative;
  height: calc(100svh * 2.4);
}

.pin {
  --p: 0;
  --q: 0;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  height: 64px;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bar .wordmark {
  color: var(--raised);
  text-shadow: 0 2px 0 rgb(59 42 34 / 0.4);
  transition: color 300ms var(--ease), text-shadow 300ms var(--ease);
}

.pin.on-paper .bar .wordmark {
  color: var(--ink);
  text-shadow: none;
}

.bar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: -12px;
}

.bar-links a,
.music {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--ease);
}

.bar-links a:hover,
.music:hover {
  background: rgb(255 251 242 / 0.6);
}

.music svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music[aria-pressed="false"] .music-on,
.music[aria-pressed="true"] .music-off {
  display: none;
}

.screen {
  --w: max(100vw, 133.34svh);
  --h: calc(var(--w) * 0.75);
  --x: calc((100vw - var(--w)) / 2);
  --y: calc(-1 * clamp(0px, var(--h) * 0.933 + 24px - 100svh, var(--h) - 100svh));
  --bezel: 0px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  width: var(--w);
  height: var(--h);
  overflow: hidden;
  background: var(--sky);
  transform-origin: 0 0;
  box-shadow: 0 0 0 var(--bezel) var(--frame), 0 calc(var(--bezel) * 0.4) 0 var(--bezel) #150d0a;
  will-change: transform;
}

.world {
  --d: min(var(--w) * 0.24, 50vw - 96px);
  position: absolute;
  inset: 0;
  transform-origin: 50% 93.3%;
  will-change: transform;
}

.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actor {
  --side: 1;
  position: absolute;
  left: 50%;
  bottom: 6.7%;
  height: calc(var(--tall) * 1%);
  aspect-ratio: var(--fw) / var(--fh);
  translate: calc(var(--foot) * -1% + var(--d) * var(--side)) calc(var(--below) * 1%);
}

.actor[data-actor="red"] {
  --side: -1;
  --tall: 23.4;
  --fw: 303;
  --fh: 495;
  --foot: 40.9;
  --below: 1.6;
}

.actor[data-actor="wolf"] {
  --tall: 25;
  --fw: 371;
  --fh: 528;
  --foot: 54.4;
  --below: 0.6;
}

.actor canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: center / 100% 100% no-repeat;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.actor[data-actor="red"] canvas {
  background-image: url("/media/sprites/red-first.webp");
}

.actor[data-actor="wolf"] canvas {
  background-image: url("/media/sprites/wolf-first.webp");
}

.actor canvas.drawn,
.reader canvas.drawn {
  background-image: none;
}

.bubble {
  position: absolute;
  left: calc(var(--foot) * 1%);
  bottom: calc(100% + 16px);
  z-index: 2;
  width: max-content;
  max-width: min(15em, 42vw);
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--raised);
  box-shadow: 0 3px 0 rgb(59 42 34 / 0.2);
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  translate: -50% 8px;
  pointer-events: none;
  transition: opacity 200ms var(--ease), translate 300ms var(--ease);
}

.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.bubble.said {
  opacity: 1;
  translate: -50% 0;
}

/* The words stand in the open sky, between the old oak on the left and the sun. */
.hero {
  position: absolute;
  left: 50%;
  top: calc(64px + clamp(16px, 6svh, 72px));
  z-index: 3;
  width: min(40rem, 100% - 2 * var(--edge));
  text-align: center;
  opacity: calc(1 - var(--p) * 3.6);
  translate: -50% calc(var(--p) * -56px);
}

h1 span {
  display: block;
}

.pin.on-paper .hero {
  visibility: hidden;
}

.lede {
  margin: 20px auto 0;
  max-width: 31rem;
  font-size: 20px;
  line-height: 30px;
  color: var(--ink-2);
}

.actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  background: var(--accent);
  box-shadow: 0 4px 0 var(--accent-step);
  color: #fffdf8;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms var(--ease), transform 120ms var(--ease), box-shadow 120ms var(--ease);
}

.button:hover {
  background: #c22c2c;
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-step);
}

.soon {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

/* The tablet, the two readers in front of it and the faces to try. */

.play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". theatre" "copy theatre" "faces theatre" ". theatre";
  column-gap: clamp(32px, 5vw, 80px);
  padding: 80px var(--edge) 24px;
  opacity: var(--q);
  pointer-events: none;
}

.pin.is-play .play {
  pointer-events: auto;
}

.play-copy {
  grid-area: copy;
}

.play-copy p {
  margin-top: 16px;
  max-width: 28rem;
  font-size: 18px;
  color: var(--ink-2);
}

.faces {
  grid-area: faces;
  margin-top: 32px;
}

.faces-label {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-3);
}

.faces-grid {
  margin-top: 12px;
  max-width: 27rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faces button {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--raised);
  box-shadow: 0 2px 0 var(--step);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}

.faces button:hover {
  background: #fff;
}

.faces button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 2px 0 #1d130f;
  color: var(--raised);
  transform: translateY(1px);
}

.theatre {
  grid-area: theatre;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device {
  position: relative;
  width: min(100%, (100svh - 288px) * 4 / 3);
  padding: 14px;
}

.device-slot {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.lens {
  position: absolute;
  left: 50%;
  top: 5px;
  z-index: 3;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #6a554a;
}

.readers {
  position: relative;
  z-index: 3;
  width: 88%;
  margin-top: -32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.reader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.reader canvas {
  width: clamp(80px, 13svh, 124px);
  aspect-ratio: 1;
  border: 4px solid var(--raised);
  border-radius: 50%;
  background: var(--step) center / 100% 100% no-repeat;
  box-shadow: 0 4px 0 var(--step);
}

.reader[data-reader="child"] canvas {
  background-image: url("/media/sprites/child-first.webp");
}

.reader[data-reader="parent"] canvas {
  background-image: url("/media/sprites/parent-first.webp");
}

.reader figcaption {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.reader b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* How a story goes */

.steps {
  max-width: calc(var(--wide) + 2 * var(--edge));
  margin: 0 auto;
  padding: 112px var(--edge) 112px;
}

.steps ol {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-3);
}

.steps h3 {
  margin-top: 8px;
}

.steps p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-2);
}

/* The shelf: one world at a time, one story open and the others beside it. */

.shelf {
  padding-bottom: 128px;
}

.shelf-head,
.band,
.tales {
  max-width: var(--wide);
  margin-inline: max(var(--edge), (100% - var(--wide)) / 2);
}

.shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 32px;
}

.shelf-head p {
  margin-top: 12px;
  max-width: 34rem;
  color: var(--ink-2);
}

.worlds {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--raised);
}

.worlds button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.worlds button:hover {
  color: var(--ink);
}

.worlds button[aria-selected="true"] {
  background: var(--ink);
  color: var(--raised);
}

.band {
  position: relative;
  height: clamp(168px, 24vw, 304px);
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--step);
}

.band video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--at, 50%);
  transition: opacity 400ms var(--ease);
}

.band video[hidden] {
  opacity: 0;
}

.band video[data-world="fiabe"] {
  --at: 70%;
}

.band video[data-world="paura"] {
  --at: 34%;
}

.band video[data-world="circo"] {
  --at: 72%;
}

.band video[data-world="avventure"] {
  --at: 40%;
}

.tales {
  position: relative;
  margin-top: -64px;
  padding: 0 16px;
}

.tales[hidden] {
  display: none;
}

.tale {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--raised);
  box-shadow: 0 4px 0 var(--step);
}

.tale[hidden] {
  display: none;
}

.cover {
  position: relative;
  aspect-ratio: 8 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--step);
}

.cover img,
.cover video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover video {
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.cover video.running {
  opacity: 1;
}

.tale-text {
  padding: 12px 20px 12px 0;
}

.tale h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tale-text > p {
  margin-top: 12px;
  color: var(--ink-2);
}

.who {
  --s: 44px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.who li {
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--step) url("/media/sprites/cast.webp") no-repeat;
  background-size: calc(16 * var(--s)) auto;
  background-position: calc((var(--c) + var(--l, 0)) * var(--s) * -1) calc(var(--r) * var(--s) * -1);
}

.who li:hover,
.who.merry li {
  --l: 1;
}

.tale-text > .names {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-3);
}

.picks {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pick {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.pick img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 150ms var(--ease);
}

.pick span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 150ms var(--ease);
}

.pick:hover span,
.pick[aria-pressed="true"] span {
  color: var(--ink);
}

.pick[aria-pressed="true"] img {
  box-shadow: 0 0 0 3px var(--ink);
}

/* For parents */

.parents {
  max-width: calc(var(--wide) + 2 * var(--edge));
  margin: 0 auto;
  padding: 0 var(--edge) 128px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
}

.parents-head p {
  margin-top: 16px;
  max-width: 26rem;
  font-size: 18px;
  color: var(--ink-2);
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.facts div {
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 600;
  line-height: 24px;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-2);
}

/* Night: the two of them asleep, and when the app arrives. */

.night {
  position: relative;
  overflow: hidden;
  padding: 128px var(--edge) 0;
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 8% 22%, #dfe3ff 0 1.5px, transparent 2px),
    radial-gradient(circle at 21% 54%, #dfe3ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 37% 12%, #dfe3ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 52% 38%, #dfe3ff 0 1.5px, transparent 2px),
    radial-gradient(circle at 64% 16%, #dfe3ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 58%, #dfe3ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 93% 47%, #dfe3ff 0 1.5px, transparent 2px);
  color: var(--night-ink);
}

.night :focus-visible {
  outline-color: var(--night-ink);
}

.moon {
  position: absolute;
  right: clamp(32px, 12vw, 208px);
  top: 80px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--moonlight);
  box-shadow: 0 0 0 20px rgb(255 240 202 / 0.08);
}

.night-copy {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
}

.night-copy h2 {
  max-width: 14em;
}

.night-copy p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--night-ink-2);
}

.sleepers {
  --tall: clamp(160px, 22vw, 232px);
  margin-top: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.sleepers canvas {
  display: block;
  width: auto;
  height: var(--tall);
  transform-origin: 50% 100%;
  animation: breathe 4.6s ease-in-out infinite;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sleepers canvas[data-sprite="red"] {
  height: calc(var(--tall) * 0.937);
  margin-bottom: calc(var(--tall) * 0.01);
  animation-delay: -1.7s;
}

@keyframes breathe {
  50% {
    transform: scaleY(1.018);
  }
}

.ground {
  margin: 0 calc(var(--edge) * -1);
  padding: 24px var(--edge) 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  background: var(--night-ground);
  font-size: 14px;
  line-height: 20px;
  color: var(--night-ink-2);
}

.ground .wordmark {
  font-size: 20px;
  color: var(--night-ink);
}

.ground a:not(.wordmark) {
  text-underline-offset: 3px;
}

.lost {
  min-height: 100svh;
  padding: 96px var(--edge);
}

.lost p + p {
  margin-top: 16px;
  color: var(--ink-2);
}

/* Narrower screens */

@media (max-width: 1000px) {
  .tale {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tale-text {
    padding: 20px 8px 12px;
  }

  .parents {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
    line-height: 26px;
  }

  .bar {
    height: 56px;
  }

  .hero {
    left: var(--edge);
    top: calc(56px + clamp(8px, 3svh, 32px));
    text-align: left;
    translate: 0 calc(var(--p) * -56px);
  }

  .lede {
    margin: 12px 0 0;
    font-size: 17px;
    line-height: 26px;
  }

  .actions {
    margin-top: 20px;
    justify-content: flex-start;
  }

  /* The two stand close to the edges here: each one's words lean toward the middle. */
  .bubble {
    --lean: 24%;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 20px;
    translate: calc(var(--lean) * -1) 8px;
  }

  .bubble.said {
    translate: calc(var(--lean) * -1) 0;
  }

  .bubble::after {
    left: var(--lean);
  }

  .actor[data-actor="wolf"] .bubble {
    --lean: 76%;
  }

  .play {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: "." "copy" "theatre" "faces" ".";
    row-gap: 16px;
    padding: 64px var(--edge) 16px;
  }

  .play-copy p {
    display: none;
  }

  .device {
    width: min(100%, (100svh - 372px) * 4 / 3);
    padding: 10px;
  }

  .device-slot {
    border-radius: 10px;
  }

  .lens {
    top: 3px;
    width: 4px;
    height: 4px;
  }

  .readers {
    margin-top: -24px;
  }

  .reader canvas {
    width: clamp(64px, 11svh, 96px);
    border-width: 3px;
  }

  .reader figcaption {
    font-size: 13px;
    line-height: 16px;
  }

  .faces {
    margin-top: 0;
  }

  .faces-label {
    display: none;
  }

  .faces-grid {
    margin-top: 0;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .faces button {
    height: 36px;
    padding: 0 4px;
    font-size: 13px;
    white-space: nowrap;
  }

  .steps {
    padding: 80px var(--edge);
  }

  .steps ol {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .shelf {
    padding-bottom: 96px;
  }

  .worlds {
    width: 100%;
  }

  .worlds button {
    flex: 1;
    padding: 0 8px;
  }

  .band {
    margin-inline: 0;
    border-radius: 0;
  }

  .tales {
    margin-top: -48px;
    margin-inline: 0;
    padding: 0 var(--edge);
  }

  .picks {
    margin-inline: calc(var(--edge) * -1);
    padding: 4px var(--edge);
    grid-template-columns: repeat(5, 42vw);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .picks::-webkit-scrollbar {
    display: none;
  }

  .pick {
    scroll-snap-align: center;
  }

  .parents {
    padding-bottom: 96px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .night {
    padding-top: 96px;
  }

  .moon {
    top: 32px;
    width: 64px;
    height: 64px;
    box-shadow: 0 0 0 14px rgb(255 240 202 / 0.08);
  }

  .night-copy h2 {
    max-width: 10em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation: none !important;
  }
}
