header {
  font-size: 40px;
  line-height: 1.2em;
  display: grid;
  grid-template-columns: 450px 1fr;
  align-items: end;
  gap: 100px;
  margin-bottom: 50px;
}
@media (min-width: 1720px) {
  header {
    grid-template-columns: 600px 1fr;
  }
}
@media (max-width: 749px) {
  header {
    margin-bottom: 30px;
  }
}
header .media {
  aspect-ratio: 600 / 750;
  background-color: #111;
}
header .media img,
header .media video {
  display: block;
  width: 100%;
  height: auto;
}
header h1 {
  font-size: 100%;
  max-width: 22ch;
}
header p.details {
  max-width: 30ch;
  text-wrap: balance;
}
@media (min-width: 1720px) {
  header h1,
  header p {
    font-size: 120%;
    line-height: 1.2em;
  }
}
@media (max-width: 749px) {
  header {
    display: block;
    font-size: 24px;
  }
  header .media {
    opacity: 0.5;
  }
  header .info {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    max-width: 100%;
    padding: 25px 20px;
  }
}
header,
.pad {
  position: relative;
  z-index: 1;
}
.about {
  margin-bottom: 140px;
}
@media (max-width: 749px) {
  .about {
    margin-bottom: 50px;
  }
}
.about a:hover {
  text-decoration: underline;
}
.about p a {
  text-underline-offset: 2px;
}
.about h2 {
  font-size: 24px;
  margin-bottom: 0.5em;
}
@media (max-width: 749px) {
  .about h2 {
    font-size: 20px;
  }
}
.about h2 a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-underline-thickness: 3px;
}
.about h2 a:hover {
  color: #999;
}
.about p + p {
  margin-top: 1em;
}
.about .order {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 50px;
}
@media (max-width: 749px) {
  .about .order {
    margin-top: 25px;
  }
}
.extra {
  padding: 50px 30px;
  font-weight: normal;
  letter-spacing: 0.2px;
  padding: 50px 30px 50px 550px;
  max-width: 1280px;
}
@media (max-width: 749px) {
  .extra {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 1720px) {
  .extra {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 30px;
  }
}
.extra.images img + img {
  margin-top: 250px;
}
.extra h3 {
  margin-bottom: 1em;
}
.extra a:hover {
  text-decoration: underline;
}
.extra p {
  max-width: 800px;
}
.extra p a {
  text-underline-offset: 2px;
}
.extra h2 {
  font-size: 150%;
  margin-bottom: 0.5em;
}
.extra h3 {
  margin: 1em 0 0.5em;
}
.extra p + p {
  margin-top: 1em;
}
.extra img,
.extra video,
.extra svg {
  display: block;
  max-width: 100%;
}
.extra img:not(:first-child),
.extra video:not(:first-child),
.extra svg:not(:first-child) {
  margin-top: 60px;
}
.extra img:not(:last-child),
.extra video:not(:last-child),
.extra svg:not(:last-child) {
  margin-bottom: 60px;
}
.extra img.sharp,
.extra img.padded {
  width: 100%;
  height: auto;
}
.extra img.sharp {
  image-rendering: pixelated;
}
.extra p + ul,
.extra p + ol,
.extra ul + p,
.extra ol + p {
  margin-top: 1em;
}
.extra .info.over {
  margin-top: 60px;
}
.extra .info.over + img {
  margin-top: 20px;
}
.extra img:has(+ .info.under) {
  margin-bottom: 15px;
}
.extra .info.under {
  font-size: 75%;
  line-height: 1.4em;
  color: #888;
}
.extra .info.under + p {
  margin-top: 60px;
}
.extra .p5Example {
  margin-top: 40px !important;
}
.extra p + iframe {
  margin-top: 20px !important;
}
.extra .small-note {
  font-size: 50%;
  line-height: 1.2em;
  text-align: right;
  margin-top: 15px !important;
  margin-bottom: 50px !important;
  letter-spacing: 0.2px;
}
@media (min-width: 750px) {
  .video-credits + .extra,
  .media-with-credits + .extra {
    margin-bottom: 80px;
  }
  .separator + .extra {
    margin-top: 75px;
  }
}
.description-with-tech {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 100px;
  font-weight: normal;
  max-width: 1220px;
}
@media (min-width: 1720px) {
  .description-with-tech {
    grid-template-columns: 600px 1fr;
    min-width: 1550px;
  }
}
.description-with-tech p {
  letter-spacing: 0.2px;
}
.description-with-tech .info {
  order: 2;
}
.description-with-tech .tech {
  order: 1;
  padding-left: 55px;
  color: #888;
}
@media (min-width: 1720px) {
  .description-with-tech .tech {
    padding-left: 80px;
  }
}
@media (max-width: 749px) {
  .description-with-tech .tech {
    font-size: 13px;
    line-height: 1.2em;
  }
  .description-with-tech .tech li {
    margin-top: 6px;
  }
}
.description-with-tech .tech ul {
  list-style: none;
  margin-left: 0;
}
@media (min-width: 750px) {
  .description-with-tech .tech ul {
    max-width: 38ch;
  }
}
.description-with-tech .tech ul li {
  display: inline;
}
.description-with-tech .tech ul li + li::before {
  content: "|";
  margin-right: 0.3em;
}
.description-with-tech .tech h2 {
  font-size: 100%;
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 0.5em;
}
@media (max-width: 749px) {
  .description-with-tech {
    display: block;
    padding: 0 20px;
  }
  .description-with-tech h2 {
    max-width: none;
  }
  .description-with-tech .info,
  .description-with-tech .tech {
    order: 0;
  }
  .description-with-tech .tech {
    padding-left: 0;
    margin-top: 30px;
  }
}
@media (min-width: 750px) and (max-width: 1280px) {
  header {
    display: block;
    font-size: 32px;
  }
  header .media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    opacity: 0.5;
  }
  header .media img,
  header .media video {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  header .info {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    padding: 25px 30px 25px 55px;
  }
  .about {
    margin-bottom: 80px;
  }
  .description-with-tech {
    display: block;
    max-width: none;
    padding: 0 30px 0 55px;
  }
  .description-with-tech .info,
  .description-with-tech .tech {
    max-width: 800px;
  }
  .description-with-tech .tech {
    padding-left: 0;
    margin-top: 30px;
  }
  .description-with-tech .tech ul {
    max-width: none;
  }
}
.video {
  margin: 80px 0;
  padding: 0 30px;
}
@media (max-width: 749px) {
  .video {
    padding: 0;
  }
}
.video iframe {
  border: 0;
  width: 100%;
  height: 100%;
}
.video video {
  display: block;
  width: 100%;
  height: auto;
}
.video-credits {
  padding: 15px 30px 15px 55px;
  margin-bottom: 80px;
  font-weight: normal;
}
@media (max-width: 749px) {
  .video-credits {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 1720px) {
  .video-credits {
    padding-left: 80px;
  }
}
.video-credits h3,
.video-credits p {
  display: inline-block;
  margin-right: 15px;
  font-size: 18px;
  line-height: 1.4em;
}
@media (max-width: 749px) {
  .video-credits h3,
  .video-credits p {
    font-size: 13px;
    line-height: 1.2em;
  }
}
.video-credits p {
  color: #888;
}
.video-credits p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 750px) {
  .video + .video-credits {
    margin-top: -80px;
  }
}
@media (min-width: 750px) {
  .media-with-credits {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin: 160px 0 80px;
    padding: 0 30px 0 0;
  }
  .media-with-credits > .video {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
  }
  .media-with-credits > .instagram {
    grid-column: 2;
    grid-row: 1;
  }
  .media-with-credits > .instagram iframe {
    flex: 1 1 240px;
  }
  .media-with-credits > .video-credits {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 0 0 55px;
    text-align: left;
  }
  .media-with-credits > .video-credits h3,
  .media-with-credits > .video-credits p {
    display: block;
    margin-right: 0;
  }
  .media-with-credits > .video-credits p:first-of-type {
    margin-top: auto;
  }
}
@media (min-width: 1200px) {
  .media-with-credits {
    grid-template-columns: 450px 1fr;
    gap: 100px;
  }
}
@media (min-width: 1720px) {
  .media-with-credits {
    grid-template-columns: 600px 1fr;
  }
  .media-with-credits > .video-credits {
    padding-left: 80px;
  }
}
.media-with-credits > .video-credits h3 {
  display: block;
  font-size: 24px;
  line-height: 1.2em;
  margin: 0 0 0.5em;
}
@media (max-width: 749px) {
  .media-with-credits > .video-credits h3 {
    font-size: 20px;
  }
}
@media (max-width: 749px) {
  .media-with-credits {
    display: flex;
    flex-direction: column;
    margin: 80px 0 40px;
  }
  .media-with-credits > .video,
  .media-with-credits > .instagram {
    margin: 0;
  }
  .media-with-credits > .video-credits {
    display: contents;
  }
  .media-with-credits > .video-credits h3,
  .media-with-credits > .video-credits p {
    margin-right: 0;
    padding: 0 20px;
  }
  .media-with-credits > .video-credits h3 {
    order: -1;
    margin-bottom: 15px;
  }
  .media-with-credits > .video-credits p {
    order: 1;
  }
  .media-with-credits > .video-credits p:first-of-type {
    margin-top: 15px;
  }
}
@media (max-width: 749px) {
  .about + .media-with-credits {
    margin-top: 40px;
  }
}
@media (min-width: 750px) {
  .about + .media-with-credits {
    margin-top: 80px;
  }
}
.instagram {
  background: #ccc;
  padding: 30px 30px 20px;
  min-height: 550px;
}
@media (max-width: 749px) {
  .instagram {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 749px) {
  .instagram {
    padding: 20px;
    width: 100%;
    overflow-x: hidden;
  }
  .instagram iframe {
    width: 100%;
    max-width: 400px;
    margin: 0 auto !important;
    max-height: 700px;
  }
  .instagram iframe + iframe {
    margin-top: 20px !important;
  }
}
@media (min-width: 750px) {
  .instagram {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .instagram iframe {
    min-width: 150px !important;
    width: 300px;
    max-height: 550px;
  }
}
.instagram[data-count="1"] iframe,
.instagram[data-count="2"] iframe,
.instagram[data-count="3"] iframe {
  min-width: 150px !important;
  max-width: 400px;
  width: 100%;
  max-height: 700px;
}
@media (max-width: 499px) {
  .instagram {
    padding-left: 20px;
    padding-right: 20px;
  }
  .instagram iframe,
  .instagram[data-count="1"] iframe,
  .instagram[data-count="2"] iframe,
  .instagram[data-count="3"] iframe {
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
@media (min-width: 750px) {
  .instagram-full:not([data-count="1"]):not([data-count="2"]) {
    container-type: inline-size;
    padding-bottom: 30px;
    --columns: 4;
  }
  .instagram-full:not([data-count="1"]):not([data-count="2"])[data-count="3"],
  .instagram-full:not([data-count="1"]):not([data-count="2"])[data-count="5"],
  .instagram-full:not([data-count="1"]):not([data-count="2"])[data-count="6"] {
    --columns: 3;
  }
  .instagram-full:not([data-count="1"]):not([data-count="2"]) iframe {
    --post-width: min(540px, calc((100cqw - (var(--columns) - 1) * 30px) / var(--columns)));
    flex: 0 0 var(--post-width);
    width: var(--post-width) !important;
    max-width: none;
    margin: 0 !important;
    max-height: calc(var(--post-width) * 1.25 + 177px);
  }
}
@media (min-width: 750px) and (max-width: 1099px) {
  .instagram-full:not([data-count="1"]):not([data-count="2"]):not([data-count="3"]) {
    --columns: 2;
  }
}
@media (min-width: 750px) {
  .about + .instagram {
    margin-top: 80px;
  }
  .extra + .instagram {
    margin-top: 80px;
  }
  .gallery + .instagram {
    margin-top: 80px;
  }
  .gallery + .extra {
    margin-top: 80px;
  }
  .extra + .gallery {
    margin-top: 80px;
  }
  .extra + .video-credits {
    margin-top: -50px;
  }
}
.gallery-title {
  font-size: 24px;
  line-height: 1.2em;
  margin: 160px 0 30px;
  padding: 0 30px 0 55px;
}
@media (max-width: 749px) {
  .gallery-title {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 1720px) {
  .gallery-title {
    padding-left: 80px;
  }
}
@media (max-width: 749px) {
  .gallery-title {
    font-size: 20px;
    margin-top: 80px;
    margin-bottom: 20px;
  }
}
.gallery {
  display: grid;
}
@media (max-width: 749px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 750px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery[data-count="1"] {
  grid-template-columns: repeat(1, 1fr);
}
@media (max-width: 749px) {
  .gallery {
    padding: 0;
    gap: 6px;
  }
}
@media (min-width: 750px) {
  .gallery {
    gap: 20px;
    padding: 10px 30px;
  }
}
.gallery a {
  display: block;
  cursor: zoom-in;
}
.gallery a img {
  display: block;
  width: 100%;
}
.gallery a figure {
  display: none;
}
@media (min-width: 750px) {
  .about + .gallery {
    margin-top: 80px;
  }
}
.gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.96);
  color: #ccc;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gallery-viewer__close,
.gallery-viewer__prev,
.gallery-viewer__next {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-viewer__close:hover,
.gallery-viewer__prev:hover,
.gallery-viewer__next:hover {
  opacity: 0.55;
}
.gallery-viewer__close:focus,
.gallery-viewer__prev:focus,
.gallery-viewer__next:focus {
  outline-offset: 4px;
}
.gallery-viewer__close svg,
.gallery-viewer__prev svg,
.gallery-viewer__next svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-viewer__close {
  top: 16px;
  right: 16px;
}
.gallery-viewer__prev,
.gallery-viewer__next {
  top: 50%;
  transform: translateY(-50%);
}
.gallery-viewer__prev {
  left: 8px;
}
.gallery-viewer__next {
  right: 8px;
}
.gallery-viewer__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 56px 24px;
  cursor: grab;
}
.gallery-viewer__stage.is-dragging {
  cursor: grabbing;
}
.gallery-viewer__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.gallery-viewer__img.is-instant {
  transition: none;
}
.gallery-viewer__caption {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 56px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.2em;
  color: #444;
  min-height: 1.4em;
}
@media (max-width: 799px) {
  .gallery-viewer__prev,
  .gallery-viewer__next {
    display: none;
  }
  .gallery-viewer__stage {
    padding: 56px 16px 16px;
  }
  .gallery-viewer__caption {
    padding: 8px 20px 24px;
    font-size: 14px;
  }
}
body.gallery-viewer-open {
  overflow: hidden;
}
.full {
  display: block;
  width: 100%;
  margin: 80px 0;
}
.full canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}
.full-with-pad {
  width: 100%;
  padding: 0 30px;
  aspect-ratio: 16/9;
}
@media (max-width: 749px) {
  .full-with-pad {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.full-with-pad iframe {
  width: 100%;
  height: 100%;
}
@media (min-width: 750px) {
  .full-with-pad + .instagram {
    margin-top: 80px;
  }
}
.pixelated {
  image-rendering: pixelated;
}
.code {
  border: 1px solid #888;
  font-size: 75%;
  line-height: 1.4em;
  color: #888;
  padding: 20px 25px;
  margin: 50px 0 !important;
  font-family: monospace;
  white-space: pre-wrap;
  -moz-tab-size: 2;
  tab-size: 2;
  max-width: 100%;
  overflow-x: auto;
}
.code.small {
  font-size: 50%;
}
.explanation + .code {
  margin-top: 10px !important;
}
#sketch.square canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 1024px;
  max-height: calc(100vh - 20px);
  object-fit: contain;
  margin: 0 auto;
}
#sketchSettings {
  text-align: center;
  padding: 30px 0 50px;
}
#sketchSettings input,
#sketchSettings select,
#sketchSettings button {
  display: inline-block;
  vertical-align: middle;
  width: 140px;
  margin: 15px 25px;
  cursor: pointer;
}
@media (max-width: 749px) {
  #sketchSettings {
    padding: 20px 0 35px;
  }
  #sketchSettings input,
  #sketchSettings select,
  #sketchSettings button {
    width: 130px;
    margin: 15px 20px;
  }
}
.p5Example iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
.p5Example a {
  font-size: 75%;
  display: inline-block;
  float: right;
  color: #aaa;
}
.p5Example.high iframe {
  height: 500px;
}
@media (max-width: 600px) {
  .p5Example.high iframe {
    height: 68vw;
  }
}
.p5Example.bordered iframe {
  border: 1px solid #aaa;
}
#techscheme {
  margin: 80px auto;
  padding: 60px 30px 30px;
  background: #0a0a0a;
}
@media (max-width: 749px) {
  #techscheme {
    padding-left: 20px;
    padding-right: 20px;
  }
}
#techscheme h2 {
  text-align: center;
  font-size: 150%;
  margin-bottom: 1em;
}
#techscheme .controls {
  text-align: center;
}
#techscheme .controls button {
  all: unset;
  display: inline-block;
  margin: 0 10px;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.7;
  text-underline-offset: 4px;
  text-underline-thickness: 2px;
}
#techscheme .controls button.active {
  opacity: 1;
}
#techscheme .controls button:hover {
  opacity: 1;
}
#techscheme .scheme {
  max-width: 1130px;
  display: grid;
  grid-template-columns: 500px 1fr;
  grid-gap: 60px;
  margin: 40px auto;
  align-items: center;
}
#techscheme .scheme .layers {
  position: relative;
  width: 100%;
}
#techscheme .scheme .layers .layer {
  transition: opacity 0.5s ease 0s;
  z-index: 3;
}
#techscheme .scheme .layers .layer:not(.active) {
  opacity: 0;
  transition-delay: 0.5s;
  z-index: 2;
}
#techscheme .scheme .layers .bg {
  position: relative;
}
#techscheme .scheme .layers .overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
#techscheme .scheme .layers img {
  width: 100%;
  max-width: 600px;
  height: auto;
  background-color: #333;
}
#techscheme .scheme .description {
  font-weight: normal;
  letter-spacing: 0.2px;
}
#techscheme .scheme .description p + p {
  margin-top: 1em;
}
#techscheme .scheme .description div:not(.active) {
  display: none;
}
@media screen and (max-width: 1120px) {
  #techscheme .controls button {
    margin: 0 2px;
  }
  #techscheme .scheme {
    grid-template-columns: 1fr;
  }
  #techscheme .scheme .layers {
    max-width: 600px;
    margin: 0 auto;
  }
}
#lotus_ledbylight,
#lotus_render {
  margin: 100px 0;
  width: 100%;
}
@media (max-width: 749px) {
  .about {
    margin-bottom: 40px;
  }
  .extra {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .extra img:not(:first-child),
  .extra video:not(:first-child),
  .extra svg:not(:first-child) {
    margin-top: 40px;
  }
  .extra img:not(:last-child),
  .extra video:not(:last-child),
  .extra svg:not(:last-child) {
    margin-bottom: 40px;
  }
  .extra .info.over {
    margin-top: 40px;
  }
  .extra .info.under + p {
    margin-top: 40px;
  }
  .video,
  .gallery,
  .instagram,
  .full,
  .full-with-pad,
  #techscheme,
  #lotus_ledbylight,
  #lotus_render {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .full-with-pad .video {
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
  }
  .video-credits {
    padding-bottom: 0;
    margin-top: -40px;
    margin-bottom: 40px;
  }
}
