:root {
  --fs_xs: 10px;
  --fs_s: 12px;
  --fs_m: 16px;
  --fs_xl: 42px;
}

@media all and (min-width: 801px) {
  :root {
    --fs_xl: 52px;
  }
}
@media all and (min-width: 1440px) {
  :root {
    --fs_xs: 0.6944444444vw;
    --fs_s: 0.8333333333vw;
    --fs_m: 1.1111111111vw;
    --fs_xl: 3.6111111111vw;
  }
}
/*
@keyframes shakey {
  0%{
    transform: translate3d(-0.01em, -0.01em, 0);
  }
  10%{
    transform: translate3d(0.02em, 0.01em, 0);
  }
  13%{
    transform: translate3d(-0.02em, 0.03em, 0);
  }
  43%{
    transform: translate3d(0.0em, 0.0em, 0);
  }
  55%{
    transform: translate3d(-0.05em, -0.02em, 0);
  }
  75%{
    transform: translate3d(0.05em, -0.02em, 0);
  }
  100%{
    transform: translate3d(0.01em, 0.01em, 0);
  }
}
*/
* {
  box-sizing: border-box;
  outline: none;
  cursor: none;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  font-family: Arial, Helvetica, sans-serif;
  overflow-y: scroll;
  overflow-x: hidden;
  background-color: #fff;
  color: #000;
}
html.theme-black {
  background-color: #000;
  color: rgb(245, 245, 245);
}

body {
  margin: 0;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--fs_m) * 4);
  padding-bottom: calc(var(--fs_m) * 0.5 + var(--fs_s) * 1.5);
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}
main.visible {
  opacity: 1;
}

.canvas-container {
  width: 100vw;
  height: 100%;
  position: fixed;
  z-index: 1000;
  top: 0;
  bottom: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}
.theme-black .canvas-container {
  filter: invert(1);
}

.cartoonist {
  position: fixed;
  display: none;
  width: calc(var(--fs_xl) * 1.375);
  transform: translate3d(-17.5%, -130%, 0) rotate(-40deg);
  pointer-events: none;
  z-index: -1;
  visibility: hidden;
  opacity: 0.85;
}
.theme-black .cartoonist {
  filter: invert(1);
}
.cartoonist.ltr {
  transform: translate3d(-82.5%, -125%, 0) rotate(40deg) scaleX(-1);
}
.cartoonist.visible {
  visibility: visible;
  z-index: 1900;
}

canvas {
  display: flex;
  width: 100%;
  height: 100%;
}

h1, h2, h3, h4, h5, h6, a, p, button {
  font-weight: normal;
  margin: 0;
}

h1, h2, p, p > a {
  font-size: var(--fs_m);
  line-height: 1.5;
}

p {
  margin-bottom: 1em;
  letter-spacing: -0.025em;
  -webkit-hyphens: auto;
      -ms-hyphens: auto;
          hyphens: auto;
}

button {
  cursor: pointer;
  padding: 0;
  background: none;
}

ul, ol {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

a {
  color: #000;
  cursor: pointer;
}
.theme-black a {
  color: rgb(245, 245, 245);
}

img,
figure {
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img.lazyload,
img.ls-is-cached,
figure img.lazyload,
figure img.ls-is-cached {
  opacity: 0;
  transition: opacity 0.125s ease-in-out;
}
img.lazyload.lazyloaded,
img.ls-is-cached.lazyloaded,
figure img.lazyload.lazyloaded,
figure img.ls-is-cached.lazyloaded {
  opacity: 1;
}

/*p, p>a{
	font-size: 28px;
	letter-spacing: -0.05em;
	font-weight: 500;
	line-height: 1.1;
}*/
figcaption {
  text-align: center;
  font-size: var(--fs_s);
  letter-spacing: 0.025em;
  line-height: 1.25;
}

h1, h2, h3, p, p > a, figcaption {
  /*-webkit-font-smoothing: none;
  -moz-osx-font-smoothing: none;*/
}

.about-content,
.legal-content {
  opacity: 1 !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  padding: var(--fs_m);
  /*html.no-touchevents &:hover{
    h1, a{
      //filter: drop-shadow(0 0 0.5em $white);
      background-color: $white;
    }
  }*/
}

.page-header-title-container {
  display: flex;
  flex-direction: column;
  width: calc(50% + var(--fs_xl) * 0.5 + var(--fs_m));
  text-decoration: none;
}
.page-header-title-container h1 {
  line-height: 1;
}
.page-header-title-container h1, .page-header-title-container h2 {
  cursor: pointer;
}

.page-header-menu-container {
  flex-direction: column;
  width: calc(50% - var(--fs_xl) * 0.5 - var(--fs_m));
}
.page-header-menu-container ol {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
}
.page-header-menu-container li:not(:first-child) {
  margin-left: var(--fs_m);
}
.page-header-menu-container a {
  display: inline-flex;
  font-size: var(--fs_m);
  line-height: 1.25;
  border-radius: 1.5em;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  padding: 0 0.25em;
  text-align: center;
  /*
  html.no-touchevents &:hover,
  &:active{
    box-shadow: 0vh .125vh 0.25vh rgba($black, 0.75);
  }
  html.no-touchevents.theme-black &:hover,
  html.theme-black &:active{
    box-shadow: inset 0vh .125vh 0.25vh rgba($white, 1);
  }
  */
}
.theme-black .page-header-menu-container a {
  border: 1px solid rgb(245, 245, 245);
  color: rgb(245, 245, 245);
}

@media all and (max-width: 800px) {
  header {
    position: absolute;
    flex-wrap: wrap;
    padding-bottom: var(--fs_xl);
  }
  .page-header-title-container,
  .page-header-menu-container {
    width: 100%;
  }
  .page-header-menu-container {
    margin-top: calc(var(--fs_m) * 0.5);
  }
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--fs_m) * 0.25) calc(var(--fs_m) - var(--fs_s) * 0.125);
}

.page-footer-copyright-container {
  display: flex;
  width: 50%;
}
.page-footer-copyright-container p {
  display: inline-flex;
  margin-bottom: 0;
  padding-top: 1px;
  -webkit-hyphens: none;
      -ms-hyphens: none;
          hyphens: none;
  font-size: var(--fs_s);
  letter-spacing: 0.05em;
}

.page-footer-menu-container {
  flex-direction: column;
  margin-left: calc(var(--fs_xl) * 0.5 + var(--fs_m) * 1);
  width: calc(50% - var(--fs_xl) * 0.5 - var(--fs_m));
}
.page-footer-menu-container ol {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
}
.page-footer-menu-container li:not(:first-child) {
  margin-left: var(--fs_m);
}
.page-footer-menu-container a {
  display: inline-flex;
  color: #000;
  padding: 0 0.25em;
  text-align: center;
  font-size: var(--fs_s);
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.theme-black .page-footer-menu-container a {
  color: rgb(245, 245, 245);
}
html.no-touchevents .page-footer-menu-container a:hover, .page-footer-menu-container a:active {
  text-decoration: underline;
}

@media all and (max-width: 800px) {
  footer {
    flex-direction: row-reverse;
  }
  .page-footer-menu-container {
    margin-left: 0;
    width: 50%;
  }
}
.block-type-text {
  padding: 1em 1em 1.5em 1em;
}
.theme-black .block-type-text p, .container-black .block-type-text p {
  color: rgb(245, 245, 245);
}
.block-type-text a {
  display: inline-block;
  border-radius: 1.5em;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  padding: 0 0.25em;
  line-height: 1.25;
  text-align: center;
}
.theme-black .block-type-text a, .container-black .block-type-text a {
  border: 1px solid rgb(245, 245, 245);
  color: rgb(245, 245, 245);
}

.block-type-image {
  width: 100%;
}

.block-type-list {
  padding: 1em 1em 1.5em 2em;
}
.block-type-list ul, .block-type-list ol {
  list-style: circle;
}

.block-type-heading {
  padding: 1em 1em 1.5em 1em;
}
.block-type-heading h2 {
  font-size: var(--fs_xl);
  letter-spacing: -0.0375em;
  word-spacing: -0.0875em;
  line-height: 0.975;
  transform: translateX(-0.025em) skewX(1.25deg);
  font-weight: 900;
}

.block-type-code {
  display: flex;
  border-radius: var(--fs_s);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.block-type-code iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--fs_m);
  position: relative;
  overflow: hidden;
  transition: max-height 0.3125s linear;
}
.project-container:last-child {
  margin-bottom: 0;
}
.project-container.expanded {
  max-height: 2500vh !important;
  transition: max-height 3.125s ease-in-out;
}

.project-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  width: 100%;
  z-index: 10;
  padding: 0 var(--fs_m) var(--fs_m) var(--fs_m);
}

h3 {
  width: calc(50% - var(--fs_xl) * 0.5);
  font-size: var(--fs_xl);
  letter-spacing: -0.0375em;
  word-spacing: -0.0875em;
  line-height: 0.975;
  transform: translateX(-0.025em) skewX(1.25deg);
  font-weight: 900;
  /*transition: transform .125s ease-in-out;
  .expanded & {
  	transform: translateX(var(--fs_m));
  }*/
  /*&:active{
  	transform: skewX(-1.25deg);
  }*/
  cursor: pointer;
}
.expanded h3 {
  cursor: none;
}

h3 sup {
  font-size: var(--fs_xs);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.expanded h3 sup {
  cursor: none;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  font-family: arial, helvetica, sans-serif;
  font-size: var(--fs_xl);
  font-weight: 300;
  line-height: 0;
  text-align: center;
  height: 1em;
  width: 1em;
  border-radius: 100%;
  border: none;
  color: #000;
  border: 0.0875em solid #000;
  transition: transform 0.075s ease-in-out, margin-left 0.375s ease-in-out;
}
.theme-black button {
  border: 0.0875em solid rgb(245, 245, 245);
  color: rgb(245, 245, 245);
}
.expanded button {
  transform: rotate(45deg);
  margin-left: calc(50% - var(--fs_m));
}
button:active {
  font-weight: 900;
  border-width: 0.125em;
}

.project-content {
  display: flex;
  position: relative;
  z-index: 5;
  flex-direction: column;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}
.expanded .project-content {
  opacity: 1;
}

.row,
.column {
  display: flex;
  width: 100%;
}

.column {
  flex-flow: column;
}
.column.width-full {
  flex-basis: 100%;
}
.column.width-3_4 {
  flex-basis: 75%;
}
.column.width-2_3 {
  flex-basis: 66.6666666667%;
}
.column.width-1_2 {
  flex-basis: 50%;
}
.column.width-1_3 {
  flex-basis: 33.3333333333%;
}
.column.width-1_4 {
  flex-basis: 25%;
}

figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  margin: 0;
  width: 100%;
}
figure img {
  display: flex;
  width: 100%;
}
figure figcaption {
  padding-bottom: 1.25em;
}

@media all and (max-width: 800px) {
  h3 {
    width: calc(100% - var(--fs_xl));
  }
  .expanded button {
    margin-left: 0;
  }
  .row {
    flex-wrap: wrap;
  }
  .column.width-full, .column.width-3_4, .column.width-2_3, .column.width-1_2, .column.width-1_3, .column.width-1_4 {
    flex-basis: 100vw;
  }
  .column.width-full.empty, .column.width-3_4.empty, .column.width-2_3.empty, .column.width-1_2.empty, .column.width-1_3.empty, .column.width-1_4.empty {
    display: none;
  }
  figure img {
    width: 100vw;
  }
}
