* {
  box-sizing: border-box;
}

:root {
  font-size: 16px;
}
html {
  width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --color-text: #f6f1f1;
  --color-bg: #0f0e0e;
  --color-link: #a52d2d;
  --color-text-alt: #999797;
  --color-link-hover: #fff;
  --cursor-stroke: #a52d2d;
  --cursor-fill: transparent;
  --cursor-stroke-width: 1px;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: ivymode, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

a,
button {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  transition: color ease-out 0.3s;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
  /* Provide a fallback style for browsers
	 that don't support :focus-visible */
  outline: none;
  background: lightgrey;
}

a:focus:not(:focus-visible) {
  /* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
  background: transparent;
}

.oh {
  overflow: hidden;
}
.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
}

.unbutton:focus {
  outline: none;
}
/* Page Loader */
.js .loading::before,
.js .loading::after {
  content: "";
  position: fixed;
  z-index: 1000000;
}

.js .loading::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .loading::after {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

main {
  height: 100vh;
  width: 100vw;
  position: relative;
}

.menu {
  padding: 1rem;
  text-align: center;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
}

.menu__links a {
  margin: 0 1rem;
  font-size: 1.5rem;
  color: var(--color-text);
}

.about {
  padding: 5vw;
  font-size: 1.5em;
  letter-spacing: 0.1rem;
  line-height: 2rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.about p {
  margin-top: 4rem;
}
.about .goal {
  font-weight: 300;
  font-style: italic;
  text-align: right;
}

h2.content-title {
  font-size: 8vw;
  margin: 0 auto;
  max-width: 80%;
  text-align: center;
}

.spacer {
  height: 20vh;
}
.main-content {
  display: flex;
  flex-direction: column;
  width: 100vw;

  height: calc(100vh - 1em);
  position: relative;
  align-items: center;
  justify-content: center;
}

.items {
  padding: 0 5vw;
}
.frame {
  position: relative;
}

.frame--footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 40vh;
}

.frame__title-wrap {
  width: 80%;
  max-width: 600px;
}

.frame__title {
  font-size: 2.3rem;
  margin: 0;
}

.frame__tagline {
  margin: 2rem 0 2.5rem;
  line-height: 1.2;
  max-width: 45ch;
}

.frame__links a:not(:last-child) {
  margin-right: 1rem;
}

.heading {
  font-weight: 300;
  font-size: 6vw;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.1;
}

.heading .splitting .word,
.heading .splitting .char {
  display: flex;
}

.char-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.char {
  display: inline-block;
  will-change: transform;
}
.heading > span {
  display: flex;
}

.heading > span:first-child {
  font-size: 14vw;
  font-size: clamp(2rem, 14vw, 9rem);
}

.heading > span:nth-child(2) {
  margin-top: -2vw;
  text-transform: lowercase;
}

.item {
  margin: 15vh 0 20vh;
}

.item__imgwrap,
.content__imgwrap {
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 200px;
  will-change: transform;
}

.item__img,
.content__img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background-size: cover;
  background-position: 50% 50%;
  will-change: transform;
}

.item__meta {
  margin: 0.85rem 0 2rem;
  line-height: 1.3;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  overflow: hidden;
}

.item__meta-row {
  display: block;
  position: relative;
  overflow: hidden;
}

.item__meta-row span {
  display: block;
  will-change: transform;
}

.item__enter {
  display: none;
  will-change: transform;
}

.item__enter-circle {
  fill: none;
  stroke: #000;
  stroke-width: 1px;
  will-change: transform, opacity;
}

.item__excerpt {
  line-height: 1.2;
  will-change: transform;
  font-size: 1.2rem;
}

.item__excerpt-link {
  display: inline-block;
  position: relative;
  cursor: pointer;
  color: var(--color-link);
  font-weight: 500;
  line-height: 1;
  overflow: hidden;
  transform: color 0.3s ease-out;
}

.item__excerpt-link:hover {
  color: var(--color-link-hover);
}

.item__excerpt-link span {
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
}

.item__excerpt-link span::after {
  content: "";
  width: 100%;
  height: 2px;
  top: calc(100% - 10px);
  position: absolute;
  left: 0;
  background: var(--color-link);
  transition: transform 0.2s;
  transform-origin: 100% 0;
}

.item__excerpt-link span:hover::after {
  transform: scale3d(0, 1, 1);
  background: var(--color-text);
}

.content {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  pointer-events: none;
}

.content .heading {
  margin-bottom: 5rem;
  font-size: 10vw;
  font-size: clamp(2rem, 10vw, 6rem);
}

.content .heading > span:first-child {
  font-size: 14vw;
  font-size: clamp(2rem, 14vw, 10rem);
}

.content__article {
  height: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.content__article--open {
  pointer-events: auto;
  padding: 0 0 20vh;
  height: 100%;
  overflow-y: scroll;
}

.content__article .heading {
  text-align: center;
}

.content__text {
  padding: 0 1rem;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 65ch;
  will-change: transform;
}

.content__text p {
  margin: 1.5rem 0;
}

.content__text img,
.content__text video {
  max-width: 70%;
  margin: 5rem auto;
  display: block;
}

.content__back {
  position: absolute;
  top: 2rem;
  left: 2rem;
  opacity: 0;
  cursor: pointer;
}

.content__article--open ~ .content__back {
  pointer-events: auto;
}

@media screen and (min-width: 53em) {
  .item {
    position: relative;
    display: grid;
    grid-template-areas:
      "image image image enter"
      "meta meta meta meta"
      "... ... excerpt ...";
    grid-template-columns: 1fr auto 360px 1fr;
    grid-template-rows: minmax(420px, 40vh) auto auto;
  }
  .item--invert {
    grid-template-areas:
      "enter image image image"
      "meta meta meta meta"
      "... ... excerpt ...";
    grid-template-columns: 1fr auto 360px 1fr;
  }
  .item__imgwrap {
    grid-area: image;
  }
  .item__img {
    width: 100%;
    height: 100%;
    opacity: 0.5;
  }
  .item__enter {
    align-self: center;
    justify-self: center;
    display: flex;
    grid-area: enter;
    position: relative;
    z-index: 1000;
    max-width: 400px;
    max-height: 400px;
    align-items: center;
    justify-content: center;
  }
  .item__enter-circle {
    pointer-events: none;
    cursor: pointer;
    flex: none;
    stroke: #fff;
  }
  .item__meta {
    grid-area: meta;
  }
  .item--invert .item__meta {
    justify-self: end;
    text-align: right;
  }
  .item__excerpt {
    grid-area: excerpt;
  }
  .item__excerpt p {
    margin: 0 0 1.5rem;
  }
  .heading > span {
    justify-content: center;
  }
  .heading--item {
    margin: 0;
    grid-area: 1 / 1 / 2 / 5;
    justify-self: center;
    align-self: center;
    text-align: center;
  }
}

.grid {
  pointer-events: none;
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  display: grid;
  grid-template-columns: repeat(50, 2%);
  grid-template-rows: repeat(50, 2%);
}

.grid__item {
  position: relative;
}

.grid--img .grid__item {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.grid__item-img {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
}

.grid--img .grid__item-img {
  flex: none;
  width: calc(100% + 100px);
  height: calc(100% + 100px);
  will-change: transform;
}

/* Shorthand grid-area: grid-row-start / grid-column-start / grid-row-end / grid-column-end */

.pos-1 {
  grid-area: 10 / 1 / 26 / 7;
}

.pos-2 {
  grid-area: 1 / 18 / 9 / 27;
}

.pos-3 {
  grid-area: 1 / 36 / 14 / 42;
}

.pos-4 {
  grid-area: 13 / 11 / 32 / 18;
}

.pos-5 {
  grid-area: 17 / 32 / 32 / 38;
}

.pos-6 {
  grid-area: 20 / 46 / 28 / 51;
}

.pos-7 {
  grid-area: 43 / 1 / 51 / 10;
}

.pos-8 {
  grid-area: 38 / 14 / 46 / 22;
}

.pos-9 {
  grid-area: 40 / 26 / 51 / 32;
}

.pos-10 {
  grid-area: 37 / 39 / 48 / 47;
}

.content__title {
  font-weight: 400;
  font-size: 10vmax;
  margin: 0;
  line-height: 1;
  position: relative;
  text-align: center;
}

.content__title-sub {
  font-size: 4.5vmax;
  display: block;
  line-height: 0.5;
  margin: 0;
  text-align: center;
}

.slides {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  min-height: 700px;
}

.js .slides {
  display: grid;
  grid-template-rows: 100%;
  grid-template-columns: 100%;
}

.js .slide {
  align-items: center;
  display: flex;
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  justify-content: center;
}

.js .slide--current {
  opacity: 1;
  pointer-events: auto;
}

.slide {
  margin: 0 auto;
  height: 100%;
}

.slide__img-wrap {
  min-width: 790px;
  width: 100%;
  height: calc(100% - 6rem);
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  align-self: center;
  transform: rotate(-22.5deg);
  transform-origin: 50% 50%;
}

.slide__img {
  opacity: 0.4;
  flex: none;
  height: calc(50% - 1.5rem);
  display: block;
  background-size: cover;
  background-position: 50% 50%;
}

.slide__img--1,
.slide__img--4 {
  height: calc(50% + 3rem);
}

.slide__img--1,
.slide__img--3 {
  margin-right: 1.5rem;
}

.slide__img--1,
.slide__img--2 {
  margin-bottom: 1.5rem;
}

.slide__img--2 {
  align-self: flex-end;
}

.slide__img--3 {
  align-self: flex-start;
}

.break {
  flex-basis: 100%;
  height: 0;
}

.slide__title {
  margin: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  font-size: 15vw;
  font-size: clamp(2rem, 10vw, 10rem);
  font-weight: 200;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.slide__title-inner {
  display: block;
  position: relative;
  overflow: hidden;
  display: flex;
}

.slide__title-inner span {
  position: relative;
}

.slide__title-inner--middle {
  font-size: 2.5rem;
  display: block;
  font-weight: 300;
  text-transform: none;
}

.slides__nav {
  position: absolute;
  top: 50%;
  cursor: pointer;
  background: none;
  border: 0;
  width: 90px;
  height: 20px;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: transform 0.2s ease-out;
}

.slides__nav svg {
  display: block;
  width: 100%;
  height: 100%;
}

.slides__nav--prev {
  left: 5vw;
}

.slides__nav--next {
  right: 5vw;
}

.cursor {
  display: none;
}

.academia {
  min-height: 90vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.academia h2 {
  margin-bottom: 1em;
}
.academia__item {
  margin-top: 2em;
  width: 50%;
}
.academia__item-title {
  margin: 0;
}
.academia__item-dates {
  margin: 0;
}
footer.footer {
  display: flex;
  justify-content: space-between;
  padding: 0 5vw 10vh 5vw;
  flex-direction: column;
  align-items: center;
  gap: 5vh;
}

.footer .content-title {
  width: 60%;
}

.footer__contact h4 {
  margin: 0;
}
.footer__contact ul {
  margin: 1em 0 0 0;
  list-style: none;
}

@media screen and (min-width: 53em) {
  .slides {
    padding: 0;
  }
  .content {
    height: 100%;
    justify-content: center;
    max-height: none;
  }
  .slides__nav--prev:hover {
    transform: translate3d(-15%, 0, 0);
  }

  .slides__nav--next:hover {
    transform: translate3d(15%, 0, 0);
  }
  footer.footer {
    flex-direction: row;
  }
}

@media (any-pointer: fine) {
  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    pointer-events: none;
    /*mix-blend-mode: color-burn;*/
  }
  .cursor__inner {
    fill: var(--cursor-fill);
    stroke: var(--cursor-stroke);
    stroke-width: var(--cursor-stroke-width);
    opacity: 0.7;
  }
}

.audio-experience {
  width: 100vw;
  height: 100vh;
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.whitespace {
  width: 1.2rem;
}
