@media (min-width: 1601px) {
  html:not(.no-js) body #show-description,
html:not(.no-js) body #hide-description, html:not(.no-js) #p5_loading {
    margin-left: 5vw;
    margin-right: 5vw;
  }
}

@media (min-width: 1341px) and (max-width: 1600px) {
  html:not(.no-js) body #show-description,
html:not(.no-js) body #hide-description, html:not(.no-js) #p5_loading {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

@media (min-width: 701px) and (max-width: 1340px) {
  html:not(.no-js) body #show-description,
html:not(.no-js) body #hide-description, html:not(.no-js) #p5_loading {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

@media (max-width: 700px) {
  html:not(.no-js) body #show-description,
html:not(.no-js) body #hide-description, html:not(.no-js) #p5_loading {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes black-glow {
  from {
    background-color: #333;
  }
  to {
    background-color: rgba(51, 51, 51, 0.9);
  }
}

html.no-js #hide-description,
html.no-js #show-description {
  display: none;
}

html.no-js ul[role="navigation"],
html.no-js main,
html.no-js header h1 {
  animation: 2s fadein 1s backwards;
}

html.no-js #p5_loading {
  display: none;
}

main noscript {
  font-family: "Libre Franklin", sans-serif;
  margin-top: 1rem;
  margin-bottom: -2rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  max-width: 100%;
  color: crimson;
  font-weight: 700;
}

main noscript sup {
  vertical-align: top;
  line-height: 2.25;
  font-size: 0.75em;
}

@media (min-width: 1601px) {
  main noscript {
    font-size: 2.25rem;
    line-height: 3rem;
    margin-top: 0rem;
    padding-top: 0.825rem;
    padding-bottom: 0.175rem;
    margin-bottom: 0rem;
  }
}

@media (min-width: 1341px) and (max-width: 1600px) {
  main noscript {
    font-size: 1.9999899241rem;
    line-height: 3rem;
    margin-top: 0rem;
    padding-top: 0.9000030228rem;
    padding-bottom: 0.0999969772rem;
    margin-bottom: 0rem;
  }
}

@media (min-width: 701px) and (max-width: 1340px) {
  main noscript {
    font-size: 1.7777777769rem;
    line-height: 3rem;
    margin-top: 0rem;
    padding-top: 0.9666666669rem;
    padding-bottom: 0.0333333331rem;
    margin-bottom: 0rem;
  }
}

@media (max-width: 700px) {
  main noscript {
    font-size: 1.5625rem;
    line-height: 3rem;
    margin-top: 1rem;
    padding-top: 0.03125rem;
    padding-bottom: 0.96875rem;
    margin-bottom: -1rem;
  }
}

main figcaption.bottom p {
  min-width: 0 !important;
}

h1 {
  transition: transform 0.5s linear;
  transition: all 0.5s linear;
}

html:not(.isMobile) #singularity-wrapper {
  scroll-snap-type: y mandatory;
}

html:not(.no-js) #p5_loading {
  color: #fff;
  z-index: 2;
  position: absolute;
  left: 0;
  padding: 0;
  font-family: "Martel", serif;
  font-size: 18vw;
  font-weight: 300;
  line-height: 1;
  height: 1.05em;
  bottom: calc(2rem);
}

html:not(.no-js) #p5_loading::before {
  content: "";
  width: 100vw;
  height: 100vh;
  background-color: #333;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

html.no-js html:not(.no-js) #p5_loading {
  bottom: calc(2rem);
}

html:not(.no-js) html:not(.no-js) #p5_loading {
  bottom: calc(100vh - (var(--baselines_100vh)) * 1rem + 2rem);
}

html:not(.no-js) body #show-description,
html:not(.no-js) body #hide-description {
  position: fixed;
  z-index: 1;
  right: 0;
  transition-property: z-index, opacity;
  transition-duration: 0.1s, 1s;
  transition-delay: 0s, 0.1s !important;
  transition-timing-function: linear, linear;
  padding: 0.2em 0.9em 0.2em 1.7em;
  background-color: #fff;
  color: #333;
  box-shadow: 0.125rem 0.125rem 0.25rem rgba(51, 51, 51, 0.75);
  cursor: pointer;
  border-radius: 1rem;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0.125rem 0.125rem 0.25rem rgba(51, 51, 51, 0.5);
  border-radius: 1em;
  background-color: #333;
  color: #fff;
  animation-name: black-glow;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-direction: alternate-reverse;
  animation-timing-function: easeInOutElastic;
}

html:not(.no-js) body #show-description.hide,
html:not(.no-js) body #hide-description.hide {
  opacity: 0;
  z-index: -2;
  transition-delay: 0s, 0.1s;
}

html:not(.no-js) body #show-description::before,
html:not(.no-js) body #hide-description::before {
  width: 2em;
  display: block;
  left: 0;
  text-align: center;
  position: absolute;
}

html:not(.no-js) body #show-description::selection,
html:not(.no-js) body #hide-description::selection {
  background-color: transparent;
}

html:not(.no-js) body #show-description:hover,
html:not(.no-js) body #hide-description:hover {
  box-shadow: 0.125rem 0.125rem 0.35rem rgba(51, 51, 51, 0.75);
}

html:not(.no-js) body #show-description {
  top: calc((var(--baselines_100vh)) * 1rem - 3rem);
  color: #333;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(1rem);
  animation-name: white-glow;
  border: 0.05rem solid rgba(255, 255, 255, 0.25);
}

html:not(.no-js) body #show-description:before {
  content: "\2139\00FE0E";
  font-family: sans-serif;
}

html:not(.no-js) body #hide-description {
  top: calc((var(--baselines_100vh)) * 1rem - 3rem);
}

@media (min-width: 551px) and (max-width: 700px) {
  html:not(.no-js) body #hide-description {
    top: 4rem;
  }
}

@media (max-width: 550px) {
  html:not(.no-js) body #hide-description {
    top: 3rem;
  }
}

html:not(.no-js) body #hide-description:before {
  content: "\25CF\00FE0E";
  font-family: sans-serif;
}

html:not(.no-js) body header {
  z-index: 5;
  background-color: transparent;
}

html:not(.no-js) body header:before {
  background-color: transparent;
}

html:not(.no-js) body header * {
  user-select: none;
}

html:not(.no-js) body header h1 {
  text-shadow: 0 0 1rem #333;
}

html:not(.no-js) body #singularity-wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100vw;
  height: 100lvh;
  max-height: 100lvh;
  overflow: scroll;
}

html:not(.no-js) body #singularity-wrapper > canvas + section:first-of-type {
  margin-top: -100lvh;
  margin-top: calc(-100lvh - (100lvh - 100svh) / 2);
}

html:not(.no-js) body #singularity-wrapper > section {
  margin: 0;
  display: grid;
  align-content: center;
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) {
  user-select: none;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 0;
}

html.isMobile html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]).hide-me {
  display: none;
}

html:not(.isMobile) html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]).hide-me {
  padding: 0 !important;
  height: 0 !important;
}

html.isMobile html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) {
  grid-template-rows: calc(100dvh - 3rem);
}

html.isMobile html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > * {
  grid-row: 1;
  grid-column: 1;
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > * {
  transition: all 1s linear;
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > h2 {
  transition: opacity 1s 0s linear;
  font-family: "Martel", serif;
  font-weight: 600;
  align-self: end;
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > h2 sup {
  vertical-align: top;
  line-height: 1.25;
  font-size: 0.75em;
}

@media (min-width: 1601px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > h2 {
    font-size: 2.25rem;
    line-height: 2rem;
    margin-top: -2rem;
    padding-top: 0.366625rem;
    padding-bottom: 0.633375rem;
    margin-bottom: -1rem;
  }
}

@media (min-width: 1341px) and (max-width: 1600px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > h2 {
    font-size: 1.9999899241rem;
    line-height: 2rem;
    margin-top: -2rem;
    padding-top: 0.4370028364rem;
    padding-bottom: 0.5629971636rem;
    margin-bottom: -1rem;
  }
}

@media (min-width: 701px) and (max-width: 1340px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > h2 {
    font-size: 1.7777777769rem;
    line-height: 2rem;
    margin-top: -2rem;
    padding-top: 0.4995555558rem;
    padding-bottom: 0.5004444442rem;
    margin-bottom: -1rem;
  }
}

@media (max-width: 700px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > h2 {
    font-size: 1.5625rem;
    line-height: 2rem;
    margin-top: -2rem;
    padding-top: 0.56015625rem;
    padding-bottom: 0.43984375rem;
    margin-bottom: -1rem;
  }
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > p {
  transition: opacity 0.75s 0.5s linear;
  font-family: "Libre Franklin", sans-serif;
  backdrop-filter: blur(1rem);
  max-width: 35ch;
  align-self: start;
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > p sup {
  vertical-align: top;
  line-height: 0.25;
  font-size: 0.75em;
}

@media (min-width: 1601px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > p {
    font-size: 0.6666666667rem;
    line-height: 1rem;
    margin-top: 1rem;
    padding-top: 0.3rem;
    padding-bottom: 0.7rem;
    margin-bottom: -1rem;
  }
}

@media (min-width: 1341px) and (max-width: 1600px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > p {
    font-size: 0.7071085624rem;
    line-height: 1rem;
    margin-top: 1rem;
    padding-top: 0.2878674313rem;
    padding-bottom: 0.7121325687rem;
    margin-bottom: -1rem;
  }
}

@media (min-width: 701px) and (max-width: 1340px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > p {
    font-size: 0.7500000002rem;
    line-height: 1rem;
    margin-top: 1rem;
    padding-top: 0.2749999999rem;
    padding-bottom: 0.7250000001rem;
    margin-bottom: -1rem;
  }
}

@media (max-width: 700px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > p {
    font-size: 0.8rem;
    line-height: 1rem;
    margin-top: 1rem;
    padding-top: 0.26rem;
    padding-bottom: 0.74rem;
    margin-bottom: -1rem;
  }
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) h2,
html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) p {
  color: #fff;
  text-shadow: 0 0 0.5em #333333;
  display: none;
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > a[next*="#"], html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > a#restart {
  padding: 1rem;
  font-size: 2rem;
  line-height: 1;
  justify-self: center;
  align-self: end;
  position: fixed;
  bottom: .5rem;
  left: 0;
  /* @media (max-width: $breakpoint-mobile) {
							top: calc((var(--baselines_100vh)) * 1rem - 6.5rem);

						}

						@media (min-width: $breakpoint-mobile-small) {
							top: calc((var(--baselines_100vh)) * 1rem - 3.5rem);

						} */
  color: #fff;
  user-select: none;
  cursor: pointer;
  font-family: "Libre Franklin", sans-serif;
  border-radius: 1.5rem;
  transition: opacity 1s 2.5s, z-index 0s 2.5s;
  transition: opacity 1s 0s, z-index 0s 0s;
}

@media (min-width: 420px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > a[next*="#"]:after {
    content: " advance";
  }
}

@media (min-width: 420px) {
  html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]) > a#restart:after {
    content: " restart";
  }
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]):not(.active) > *, html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]):not(.transitionDone) > * {
  z-index: -100;
  opacity: 0;
}

html:not(.no-js) body #singularity-wrapper > section[data-order]:not([data-order=""]).transitionDone > * {
  z-index: 0;
  opacity: 1;
}

html:not(.no-js) body #singularity-wrapper canvas {
  transition: background-color 1s linear;
  user-select: none;
  position: sticky;
  margin-top: calc((100lvh - 100svh) / -2);
  top: calc((100lvh - 100svh) / -2);
  bottom: 0;
  z-index: -1;
  overflow: hidden;
}

html:not(.no-js) body:not(.description-visible) #hide-description {
  opacity: 0;
}

html:not(.no-js) body:not(.description-visible) #singularity-wrapper {
  z-index: 0;
}

html:not(.no-js) body:not(.description-visible) #singularity-wrapper > canvas {
  background-color: black;
}

html:not(.no-js) body:not(.description-visible) header {
  border-bottom-color: transparent;
}

html:not(.no-js) body:not(.description-visible) header h1 {
  color: #fff;
  transform: translateX(var(--margin_left_auto));
}

html:not(.no-js) body:not(.description-visible) header nav {
  opacity: 0;
}

html:not(.no-js) body:not(.description-visible) main > section[role="description"],
html:not(.no-js) body:not(.description-visible) main > img,
html:not(.no-js) body:not(.description-visible) main > figure,
html:not(.no-js) body:not(.description-visible) main section#next-prev {
  opacity: 0;
}

html:not(.no-js) body.description-visible {
  background-color: rgba(255, 255, 255, 0.69);
}

html:not(.no-js) body.description-visible header h1 {
  text-shadow: 0 0 1rem transparent;
}

html:not(.no-js) body.description-visible header::before {
  backdrop-filter: blur(0);
}

html:not(.no-js) body.description-visible header.scrolled {
  border-bottom-color: rgba(51, 51, 51, 0.5);
}

html:not(.no-js) body.description-visible header.scrolled::before {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0.5rem);
  top: 0;
}

@media (max-width: 550px) {
  html:not(.no-js) body.description-visible header.scrolled {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
  }
}

html:not(.no-js) body.description-visible #singularity-wrapper {
  z-index: -1;
  filter: blur(0.25rem);
  transition: all 1s linear;
}

html:not(.no-js) body.description-visible #singularity-wrapper > section {
  opacity: 0;
}

html:not(.no-js) body.description-visible #singularity-wrapper > canvas {
  background-color: white;
}

html:not(.no-js) body.description-visible #show-description {
  opacity: 0;
}
