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

@font-face {
  font-family: 'ONRAMP';
  src: url('../../@/ONRAMP.woff2') format('woff2'),
       url('../../@/ONRAMP.woff') format('woff'),
}

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

body {
    animation: fadeInAnimation ease 5s; /* 15 */
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    }
    @keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
        15% {
        opacity: 0.1;
    }
        /* 30% {
        opacity: 0.2;
    }
        45% {
        opacity: 0.3;
    }*/
        60% {
        opacity: 0.5;
    }
        /* 75% {
        opacity: 0.6;
    } */
        90% {
        opacity: 0.8;
    }
        100% {
        opacity: 1.0;
    }
}

body {
  --item-br: 7px;
  margin: 0;
  --color-bg: #fff;
  --color-marquee: rgb(255, 204, 1);
  --color-bg-variation: #ffffff;
  --font-family: 'ONRAMP';
  --font-size-marquee: clamp(2rem, 16vw, 14rem);
  --color-shadow-in: #181820ad;
  --color-shadow-out: #18182083;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

#video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
}

/* #video-background {
  height: auto;
  left: 50%;
  position: fixed;
  min-height: 100%;
  min-width: 100%;
  top: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  width: auto;
  z-index: -999;
} */

article {
  z-index: 999999;
}

:root {
  font-size: 11px;
  --page-padding: 1.5rem;
  --item-br: 0px;
  --item-ar: 4 / 5;
  --font-size-marquee: clamp(2rem, 16vw, 8rem);
  --blend-mode: difference;
  --color-bg-variation: #141414;
  --color-shadow-in: rgba(0, 0, 0, 0.2);
  --color-shadow-out: rgba(0, 0, 0, 0.8);
}

.content {
  --color-link: #FFCC01;
  --item-ar: 14 / 9;
  --color-bg-variation: #FFCC01;
  --blend-mode: plus-lighter;
}

@media (scripting: enabled) {
  .loading {

    &::before,
    &::after {
      content: "";
      position: fixed;
      z-index: 10000;
    }

    &::before {
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: transparent;
     /*  background: var(--color-bg); */
    }

    &::after {
      top: 50%;
      left: 50%;
      height: 1px;
      margin: 0 0 0 -50px;
      background: transparent;
      /* background: var(--color-link); */
      animation: loaderAnim 1.5s ease-in-out infinite alternate forwards;
    }
  }
}

@keyframes loaderAnim {
  0% {
    transform: scaleX(0);
    transform-origin: 0% 50%;
  }

  50% {
    transform: scaleX(1);
    transform-origin: 0% 50%;
  }

  50.1% {
    transform: scaleX(1);
    transform-origin: 100% 50%;
  }

  100% {
    transform: scaleX(0);
    transform-origin: 100% 50%;
  }
}

.frame {
  padding: var(--page-padding);
  display: grid;
  z-index: 10000;
  position: relative;
  gap: 1rem;
  pointer-events: none;
  justify-items: start;
  grid-template-columns: 100%;
  grid-template-areas:
    "title"
    "links"
    "demos"
    "tags"
    "sponsor";

  #cdawrap {
    justify-self: start;
    grid-area: sponsor;
  }

  @media screen and (min-width: 53em) {
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    gap: 3rem;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    align-content: space-between;
    grid-template-areas:
      "title links demos"
      "tags tags sponsor";

    .frame__tags {
      align-self: end;
    }

    .frame__demos,
    #cdawrap {
      justify-self: end;
      text-align: right;
    }
  }
}

.mark {
  position: fixed;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  z-index: 1;
  overflow: hidden;
  mix-blend-mode: var(--blend-mode);
}

body::after {
  content: "";
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
  background: radial-gradient(var(--color-shadow-in) 10%, var(--color-shadow-out) 90%);
  background-repeat: no-repeat;
  background-size: 100%;
}

.mark__inner {
  display: flex;
  gap: 3rem;
  width: max-content;
  position: relative;
  will-change: transform;
}

.mark__inner span {
  white-space: nowrap;
  color: var(--color-marquee);
  font-size: var(--font-size-marquee);
  line-height: 1;
}

.font-1 {
  font-family: 'ONRAMP';
  font-variation-settings:
    "wght"772,
    "wdth"60;
}

.gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 25vh;
  margin-bottom: 35vh;
}

.gallery__item-wrap img {
  width: 100%;
  height: auto;
  display: block;
  perspective: 900px;
  margin-bottom: -5rem;
}

.gallery__item {
  width: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform-style: preserve-3d;
  will-change: transform, filter;
  border-radius: var(--item-br);
  aspect-ratio: var(--item-ar);
}