@font-face {
  font-family: 'Archivo Expanded';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/archivo-expanded-900.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/poppins-800.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --yellow: #f1ff3f;
  --ink: #000;
  --grey: #323232;
  --deep: #212121;
  --text: #f6f6f1;
  --soft: #d9d9d2;
  --muted: #b9b9b1;
  --cyan: #40ffc8;
  --display: 'Archivo Expanded', 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --cut: clamp(1.4rem, 3.4vw, 3.4rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pop: cubic-bezier(0.2, 1.5, 0.4, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .9 0 0 0 -.3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

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

html {
  background: var(--grey);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--text);
  background: var(--ink);
  font: 500 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

::selection {
  color: #000;
  background: var(--yellow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  color: #000;
  background: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  translate: 0 -300%;
}

.skip:focus {
  translate: 0 0;
}

.wrap {
  position: relative;
  width: min(73.75rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.grain {
  position: relative;
  isolation: isolate;
}

.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  pointer-events: none;
}

.tab {
  display: inline-block;
  padding: 0.74em 1em 0.66em 1.3em;
  color: #000;
  background: var(--yellow);
  font: 800 0.78rem/1 var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  rotate: -3deg;
  clip-path: polygon(0 10%, 100% 0, 97.5% 100%, 1.5% 90%);
}

.tab--ink {
  color: #fff;
  background: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 1.45em 1em;
  color: #000;
  background: var(--yellow);
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  font: 900 clamp(0.9rem, 1.2vw, 1.05rem) / 1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  rotate: -2deg;
  cursor: pointer;
  transition: translate 0.14s var(--ease), box-shadow 0.14s var(--ease);
}

.btn svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}

.btn:hover {
  translate: -3px -3px;
  box-shadow: 9px 9px 0 #000;
}

.btn:active {
  translate: 4px 4px;
  box-shadow: 2px 2px 0 #000;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font: 800 0.76rem/1 var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.meta--ink {
  color: #000;
}

.chip,
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.56em 0.8em 0.5em;
  color: #fff;
  background: #000;
}

.chip {
  color: var(--yellow);
}

.live::before {
  content: '';
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(64, 255, 200, 0.65);
  }

  100% {
    box-shadow: 0 0 0 0.75em rgba(64, 255, 200, 0);
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--gutter);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(26, 26, 26, 0.9);
  box-shadow: 0 3px 0 #000;
  opacity: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 0.25s;
}

.site-header.is-stuck::before {
  opacity: 1;
}

.brand {
  display: block;
  width: 2.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, rotate 0.3s var(--pop), scale 0.3s var(--pop);
}

.is-stuck .brand,
.brand:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.brand:hover {
  rotate: -8deg;
  scale: 1.08;
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 2.4rem);
}

.nav-list a {
  position: relative;
  display: block;
  padding: 0.55rem 0;
  font: 700 0.8rem/1 var(--body);
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-list a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--yellow);
  scale: 0 1;
  transform-origin: 0 50%;
  transition: scale 0.22s var(--ease);
}

.nav-list a:not(.nav-cta):hover::after,
.nav-list a:not(.nav-cta)[aria-current]::after {
  scale: 1 1;
}

.nav-list .nav-cta {
  padding: 0.8rem 1.1rem 0.74rem;
  color: #000;
  background: var(--yellow);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  transition: translate 0.14s var(--ease), box-shadow 0.14s var(--ease);
}

.nav-list .nav-cta:hover {
  translate: -2px -2px;
  box-shadow: 6px 6px 0 #000;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--grey);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-scene--tall {
  display: none;
}

.scene-rays {
  transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px));
  transform-origin: 1430px 945px;
  animation: rays-in 0.9s var(--ease) backwards;
}

.hero-scene--tall .scene-rays {
  transform-origin: 540px 1016px;
}

@keyframes rays-in {
  from {
    opacity: 0;
    scale: 0.3;
  }
}

.scene-stars {
  transform: translate(calc(var(--px, 0) * -20px), calc(var(--py, 0) * -13px));
  animation: fade-in 0.8s 0.55s ease backwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.scene-moon {
  animation: moon-in 0.9s 0.1s var(--ease) backwards;
}

@keyframes moon-in {
  from {
    translate: 0 240px;
  }
}

.scene-cubes {
  transform: translate(calc(var(--px, 0) * -38px), calc(var(--py, 0) * -24px));
}

.cube {
  animation: pop-in 0.55s var(--pop) backwards, drift 7s ease-in-out infinite alternate;
}

.cube-1 {
  animation-duration: 0.55s, 7s;
  animation-delay: 0.42s, 0s;
}

.cube-2 {
  animation-duration: 0.55s, 9.5s;
  animation-delay: 0.49s, -4s;
}

.cube-3 {
  animation-duration: 0.55s, 6.2s;
  animation-delay: 0.56s, -2s;
}

.cube-4 {
  animation-duration: 0.55s, 8.4s;
  animation-delay: 0.63s, -6s;
}

.cube-5 {
  animation-duration: 0.55s, 7.6s;
  animation-delay: 0.70s, -1s;
}

.cube-6 {
  animation-duration: 0.55s, 10s;
  animation-delay: 0.77s, -5s;
}

.cube-7 {
  animation-duration: 0.55s, 6.8s;
  animation-delay: 0.84s, -3s;
}

@keyframes pop-in {
  from {
    opacity: 0;
    scale: 0;
  }
}

@keyframes drift {
  from {
    transform: translate(6px, 4px) rotate(-4deg);
  }

  to {
    transform: translate(-12px, -8px) rotate(5deg);
  }
}

.star {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 3.4s ease-in-out infinite;
}

.star-2 {
  animation-duration: 4.2s;
  animation-delay: -1.1s;
}

.star-3 {
  animation-delay: -2.3s;
}

.star-4 {
  animation-duration: 2.8s;
  animation-delay: -0.6s;
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.45) rotate(25deg);
  }
}

.hero.is-offscreen .cube {
  animation-play-state: running, paused;
}

.hero.is-offscreen .star {
  animation-play-state: paused;
}

.hero.is-launching .cube {
  animation: launch 0.62s cubic-bezier(0.55, 0, 0.9, 0.35) forwards;
}

@keyframes launch {
  to {
    transform: translate(-1500px, -700px) rotate(-40deg) scale(0.7);
  }
}

.hero.is-launching .hero-logo-stamp {
  animation: punch 0.5s var(--pop);
}

@keyframes punch {
  30% {
    transform: scale(0.93) rotate(-1.5deg);
  }

  100% {
    transform: none;
  }
}

.hero-content {
  display: grid;
  justify-items: center;
  gap: clamp(1.4rem, 3.4vh, 2.4rem);
  padding: 6.5rem var(--gutter) 5.5rem;
  text-align: center;
}

.hero-logo {
  width: min(82vw, 54rem, 105vh);
  perspective: 1000px;
}

.hero-logo-stamp {
  display: block;
  animation: stamp 0.75s var(--pop) both;
}

.hero-logo img {
  width: 100%;
  transform: rotateX(calc(var(--py, 0) * -9deg)) rotateY(calc(var(--px, 0) * 11deg));
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.7) rotate(-7deg);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.hero-line {
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  text-wrap: balance;
  animation: rise 0.6s 0.5s var(--ease) both;
}

.hero-line strong {
  color: #fff;
  font-weight: 800;
}

.btn--start {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  animation: rise 0.6s 0.62s var(--ease) both, nudge 2.6s 2.2s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 1.5rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes nudge {
  0%,
  76%,
  100% {
    scale: 1;
  }

  85% {
    scale: 1.07;
  }

  93% {
    scale: 0.98;
  }
}

.for-touch {
  display: none;
}

.wipe {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
}

.wipe.is-in {
  visibility: visible;
  pointer-events: auto;
  animation: wipe-in 0.44s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes wipe-in {
  to {
    clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%));
  }
}

.wipe-panel {
  position: absolute;
  inset: 0 0 calc(var(--cut) * -2);
  display: grid;
  place-items: center;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) * 2), 0 100%);
}

.wipe.is-out .wipe-panel {
  transform: translateY(-112%);
  transition: transform 0.52s cubic-bezier(0.7, 0, 0.2, 1);
}

.wipe-panel img {
  width: clamp(5.5rem, 16vw, 10.5rem);
  opacity: 0;
  transform: scale(0.4) rotate(-14deg);
}

.wipe.is-in .wipe-panel img {
  animation: wipe-icon 0.4s 0.2s var(--pop) forwards;
}

@keyframes wipe-icon {
  to {
    opacity: 1;
    transform: none;
  }
}

.games {
  z-index: 1;
  margin-top: calc(var(--cut) * -1);
  padding: calc(clamp(4.5rem, 8vw, 6rem) + var(--cut)) 0 calc(clamp(5rem, 10vw, 8rem) + var(--cut));
  background: var(--deep);
  outline: none;
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.plays {
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
}

.plays-number {
  display: block;
  color: var(--yellow);
  font: 900 clamp(1.5rem, min(8.7vw, 17.5vh), 7.4rem) / 1 var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
  filter: drop-shadow(0.05em 0.05em 0 #000);
}

.plays-label {
  display: block;
  margin-top: clamp(0.6rem, 1.4vw, 1.1rem);
  font: 800 clamp(0.8rem, 1.5vw, 1.2rem) / 1.3 var(--body);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.odo-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: top;
}

.odo-reel {
  display: block;
  transition: transform 2s cubic-bezier(0.14, 0.8, 0.2, 1);
}

.odo-reel > span {
  display: block;
  height: 1em;
  line-height: 1;
}

.odo-sep,
.odo-plus {
  display: inline-block;
  line-height: 1;
  vertical-align: top;
}

.odo-plus {
  scale: 0;
  transition: scale 0.4s var(--pop);
}

.is-counted .odo-plus {
  scale: 1;
}

.lineup {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  margin-top: clamp(1.8rem, 3.6vw, 2.8rem);
}

.game {
  --tx: 0;
  --ty: 0;
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #000;
  border: 4px solid #000;
  box-shadow: 7px 7px 0 #000;
  transform: perspective(900px) rotateX(calc(var(--ty) * -8deg)) rotateY(calc(var(--tx) * 10deg));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.game--live {
  box-shadow: 7px 7px 0 var(--yellow);
}

.game:hover {
  box-shadow: 11px 11px 0 var(--yellow);
}

.game-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.4s, scale 0.6s var(--ease);
}

.game-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  mix-blend-mode: multiply;
  transition: opacity 0.4s;
}

.game--live .game-art img,
.game:hover .game-art img {
  filter: none;
}

.game:hover .game-art img {
  scale: 1.06;
}

.game--live .game-art::after,
.game:hover .game-art::after {
  opacity: 0;
}

.game-art .live {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  font: 800 0.62rem/1 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.game-art--cubes,
.game-art--type {
  display: grid;
  place-items: center;
  background-color: var(--yellow);
}

.game-art--cubes::after,
.game-art--type::after {
  content: none;
}

.game-art--cubes span {
  display: grid;
  place-items: center;
  width: 50%;
  aspect-ratio: 1;
  color: #000;
  background: #fff;
  border: 0.11em solid #000;
  border-radius: 0.32em;
  box-shadow: 0.13em 0.17em 0 #000;
  font: 900 clamp(2.2rem, 5vw, 3.9rem) / 1 var(--display);
  rotate: -8deg;
  transition: rotate 0.4s var(--pop), scale 0.4s var(--pop);
}

.game:hover .game-art--cubes span {
  rotate: 8deg;
  scale: 1.1;
}

.game-art--type {
  background-image: repeating-conic-gradient(from 278deg at 112% 122%, #000 0 2.6deg, transparent 2.6deg 9deg);
}

.game-art--type span {
  padding: 0.16em 0.3em 0.12em;
  color: var(--yellow);
  background: #000;
  font: 900 clamp(1.1rem, 2.5vw, 1.9rem) / 0.9 var(--display);
  text-align: left;
  text-transform: uppercase;
  rotate: -6deg;
  transition: rotate 0.4s var(--pop), scale 0.4s var(--pop);
}

.game:hover .game-art--type span {
  rotate: 3deg;
  scale: 1.08;
}

.game h3 {
  padding: 0.85rem 0.95rem 0;
  font: 900 0.8rem/1.15 var(--display);
  font-size: clamp(0.6rem, 6.9cqi, 0.9rem);
  text-transform: uppercase;
}

.game p {
  padding: 0.55rem 0.95rem 0.9rem;
  color: var(--yellow);
  font: 800 0.7rem/1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(4rem, 9vw, 7.5rem);
}

.deck {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.4;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.deck-card {
  position: absolute;
  inset: 7.5% 6%;
  overflow: hidden;
  background: #000;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 #000;
  transition: transform 0.5s var(--pop), filter 0.4s;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-card[data-pos='0'] {
  z-index: 3;
  transform: rotate(-2.5deg);
}

.deck-card[data-pos='1'] {
  z-index: 2;
  filter: brightness(0.7);
  transform: translate(5%, -6%) rotate(4deg) scale(0.96);
}

.deck-card[data-pos='2'] {
  z-index: 1;
  filter: brightness(0.45);
  transform: translate(-4.5%, 6%) rotate(-7.5deg) scale(0.92);
}

.deck-card.is-leaving {
  transform: translate(64%, -10%) rotate(15deg);
  transition-duration: 0.28s;
  transition-timing-function: cubic-bezier(0.5, 0, 0.8, 0.4);
}

.feature-info {
  container-type: inline-size;
}

.feature h3 {
  margin: 1.1rem 0 1rem;
  font: 900 clamp(1.4rem, 3.2vw, 2.5rem) / 1 var(--display);
  font-size: clamp(1.4rem, 8.2cqi, 3.4rem);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.feature h3 span {
  display: block;
}

.feature-blurb {
  max-width: 31ch;
  color: var(--soft);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.4rem, 3vw, 2.6rem);
  margin: 1.7rem 0 2.1rem;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.45rem;
}

.stats dt {
  color: var(--muted);
  font: 700 0.7rem/1 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stats dd {
  color: var(--yellow);
  font: 900 clamp(1.5rem, 2.5vw, 2.1rem) / 1 var(--display);
}

.cubes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(4.5rem, 10vw, 8rem);
  padding: clamp(1.8rem, 4.5vw, 3.4rem) clamp(1.4rem, 4.5vw, 3.6rem);
  color: #000;
  background: var(--yellow);
  border: 4px solid #000;
  box-shadow: 10px 10px 0 #000;
  rotate: -1deg;
}

.cubes-word {
  display: flex;
  gap: clamp(0.4rem, 1.2vw, 0.9rem);
  font: 900 clamp(1.3rem, 6.6vw, 3.6rem) / 1 var(--display);
}

.cubes-word span {
  display: grid;
  place-items: center;
  width: 1.75em;
  aspect-ratio: 1;
  background: #fff;
  border: 0.1em solid #000;
  border-radius: 0.34em;
  box-shadow: 0.13em 0.17em 0 #000;
  cursor: pointer;
  user-select: none;
  animation: bob 3.2s ease-in-out infinite;
  transition: rotate 0.35s var(--pop), background-color 0.2s, color 0.2s;
}

.cubes-word span:nth-child(1) {
  rotate: -7deg;
}

.cubes-word span:nth-child(2) {
  rotate: 5deg;
  animation-delay: -0.5s;
}

.cubes-word span:nth-child(3) {
  rotate: -3deg;
  animation-delay: -1s;
}

.cubes-word span:nth-child(4) {
  rotate: 7deg;
  animation-delay: -1.5s;
}

.cubes-word span:nth-child(5) {
  rotate: -5deg;
  animation-delay: -2s;
}

.cubes-word span:hover {
  color: var(--yellow);
  background: #000;
  rotate: 0deg;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.14em);
  }
}

.cubes-line {
  margin-top: 0.9rem;
  font: 700 clamp(1.1rem, 2vw, 1.5rem) / 1.3 var(--body);
}

.studio {
  position: relative;
  z-index: 2;
  margin-block: calc(var(--cut) * -1);
  padding: calc(clamp(5rem, 10vw, 8.5rem) + var(--cut)) 0 calc(clamp(3.5rem, 7vw, 6rem) + var(--cut));
  overflow: hidden;
  color: #000;
  background: var(--yellow);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.studio :focus-visible {
  outline-color: #000;
}

.studio-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

.statement {
  font: 900 clamp(2.6rem, 8.3vw, 6.6rem) / 0.9 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.statement span {
  display: block;
}

.studio-cube {
  width: clamp(8rem, 21vw, 17rem);
  rotate: 9deg;
  animation: bob 4.5s ease-in-out infinite;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2.2rem, 5vw, 4rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 4px solid #000;
}

.studio-copy p {
  max-width: 33ch;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.55;
}

.studio-copy p + p {
  margin-top: 1em;
}

.studio-copy strong {
  font-weight: 800;
}

.studio-copy .sign {
  margin-top: 1.7rem;
  font: 800 0.8rem/1 var(--body);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.formerly {
  justify-self: end;
  font: 700 clamp(1rem, 1.5vw, 1.2rem) / 1.5 var(--body);
  text-align: right;
}

.formerly strong {
  padding: 0.12em 0.42em 0.08em;
  color: var(--yellow);
  background: #000;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.community {
  padding: calc(clamp(5rem, 10vw, 8rem) + var(--cut)) 0 calc(clamp(4.5rem, 9vw, 7rem) + var(--cut));
  background: var(--grey);
}

.display {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font: 900 clamp(1.9rem, 5.6vw, 4.6rem) / 0.96 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display span {
  display: block;
  color: var(--yellow);
}

.socials {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  margin-top: clamp(2rem, 4.5vw, 3.4rem);
}

.social {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  min-height: clamp(10rem, 16vw, 13.5rem);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  color: #fff;
  background: #000;
  border: 4px solid #000;
  box-shadow: 7px 7px 0 #000;
  text-decoration: none;
  transition: translate 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s, color 0.18s;
}

.social svg {
  width: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: auto;
  fill: currentColor;
}

.social-name {
  font: 900 clamp(1.15rem, 1.9vw, 1.6rem) / 1 var(--display);
  text-transform: uppercase;
}

.social-meta {
  color: var(--muted);
  font: 700 0.74rem/1.3 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.18s;
}

.social:hover {
  color: #000;
  background: var(--yellow);
  box-shadow: 11px 11px 0 #000;
  translate: -4px -4px;
}

.social:hover .social-meta,
.social--primary .social-meta {
  color: #000;
}

.social--primary {
  color: #000;
  background: var(--yellow);
}

.social--primary:hover {
  background: #fff;
}

.contact {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--cut) * -1);
  padding: calc(clamp(4.5rem, 9vw, 7.5rem) + var(--cut)) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: #000;
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.contact-line {
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

.email {
  padding-bottom: 0.12em;
  color: var(--yellow);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 0.09em no-repeat;
  font: 900 clamp(1.55rem, 5.7vw, 4.6rem) / 1.05 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background-size 0.35s var(--ease);
}

.email:hover {
  background-size: 100% 0.09em;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--muted);
}

.copy {
  padding: 0.82em 1.1em 0.72em;
  color: #000;
  background: var(--yellow);
  border: 0;
  font: 800 0.74rem/1 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  rotate: -2deg;
  cursor: pointer;
  transition: scale 0.2s var(--pop), background-color 0.2s;
}

.copy:hover {
  scale: 1.06;
}

.copy.is-done {
  background: #fff;
}

.site-footer {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--muted);
  background: #000;
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 2px solid #2a2a2a;
}

.footer-brand {
  flex: none;
  width: 3.2rem;
  transition: rotate 0.3s var(--pop);
}

.footer-brand:hover {
  rotate: -10deg;
}

.to-top {
  margin-left: auto;
  color: var(--text);
  font: 800 0.72rem/1 var(--body);
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.to-top:hover {
  color: var(--yellow);
}

.error {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem var(--gutter);
  background: var(--grey);
  text-align: center;
}

.error-inner {
  display: grid;
  justify-items: center;
  gap: 1.6rem;
}

.error img {
  width: clamp(7rem, 22vw, 11rem);
  rotate: -8deg;
}

.error h1 {
  color: var(--yellow);
  font: 900 clamp(4rem, 18vw, 10rem) / 0.9 var(--display);
  filter: drop-shadow(0.05em 0.05em 0 #000);
}

.js [data-reveal] {
  opacity: 0;
  translate: 0 1.75rem;
  transition: opacity 0.6s ease, translate 0.75s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--w, 0s));
}

.js [data-reveal='1'] {
  --d: 0.07s;
}

.js [data-reveal='2'] {
  --d: 0.14s;
}

.js [data-reveal='3'] {
  --d: 0.21s;
}

.js [data-reveal='4'] {
  --d: 0.28s;
}

.js [data-reveal='5'] {
  --d: 0.35s;
}

.js.is-wiping [data-reveal] {
  --w: 0.25s;
}

.js [data-reveal].in {
  opacity: 1;
  translate: 0 0;
}

.js .game[data-reveal] {
  transition: opacity 0.6s ease calc(var(--d, 0s) + var(--w, 0s)), translate 0.75s var(--ease) calc(var(--d, 0s) + var(--w, 0s)), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

@media (hover: hover) {
  .deck:hover .deck-card[data-pos='0'] {
    transform: rotate(-1deg) scale(1.02);
  }
}

@media (min-width: 120rem) {
  html {
    font-size: 112.5%;
  }
}

@media (min-width: 150rem) {
  html {
    font-size: 125%;
  }
}

@media (hover: none) {
  .for-pointer {
    display: none;
  }

  .for-touch {
    display: inline;
  }

  .game-art img {
    filter: none;
  }

  .game-art::after {
    opacity: 0;
  }
}

@media (max-aspect-ratio: 3/2) {
  .hero-scene--wide .cube-5 {
    display: none;
  }
}

@media (max-aspect-ratio: 4/5) {
  .hero-scene--wide {
    display: none;
  }

  .hero-scene--tall {
    display: block;
  }
}

@media (min-aspect-ratio: 1/2) and (max-aspect-ratio: 4/5) {
  .hero-scene--tall .cube-5 {
    display: none;
  }
}

@media (max-height: 30rem) and (min-aspect-ratio: 4/5) {
  .hero-content {
    gap: 0.9rem;
    padding: 4.6rem var(--gutter) 2.6rem;
  }

  .hero-logo {
    width: min(82vw, 54rem, 84vh);
  }
}

@media (max-width: 56rem) {
  .feature,
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cubes {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .formerly {
    justify-self: start;
    text-align: left;
  }

  .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lineup {
    grid-template-columns: none;
    grid-auto-columns: clamp(9.6rem, 42vw, 13rem);
    grid-auto-flow: column;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.5rem var(--gutter) 1.1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

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

  .game {
    scroll-snap-align: start;
  }

  .game h3 {
    padding: 0.7rem 0.6rem 0;
  }

  .game p {
    padding: 0.5rem 0.6rem 0.75rem;
    font-size: 0.62rem;
  }

  .game-art--cubes span {
    font-size: 2.5rem;
  }

  .game-art--type span {
    font-size: 1.3rem;
  }
}

@media (max-width: 45rem) {
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    background: var(--yellow);
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 1.3rem;
    height: 3px;
    background: #000;
    transition: rotate 0.25s var(--ease), translate 0.25s var(--ease), background-color 0.15s;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before {
    translate: 0 -7px;
  }

  .nav-toggle-bars::after {
    translate: 0 7px;
  }

  .nav-open .nav-toggle-bars {
    background: transparent;
  }

  .nav-open .nav-toggle-bars::before {
    rotate: 45deg;
    translate: 0 0;
  }

  .nav-open .nav-toggle-bars::after {
    rotate: -45deg;
    translate: 0 0;
  }

  .nav-list {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.1rem;
    padding: 5rem var(--gutter) 3rem;
    background: var(--yellow);
    visibility: hidden;
    clip-path: circle(0 at calc(100% - var(--gutter) - 1.5rem) 2.3rem);
    transition: clip-path 0.4s var(--ease), visibility 0s 0.4s;
  }

  .nav-open .nav-list {
    visibility: visible;
    clip-path: circle(150vmax at calc(100% - var(--gutter) - 1.5rem) 2.3rem);
    transition: clip-path 0.55s var(--ease), visibility 0s;
  }

  .nav-list a,
  .nav-list .nav-cta {
    padding: 0.15em 0;
    color: #000;
    background: none;
    border: 0;
    box-shadow: none;
    font: 900 clamp(2rem, 10.5vw, 3.2rem) / 1.05 var(--display);
    letter-spacing: -0.02em;
  }

  .nav-list .nav-cta:hover {
    translate: 0 0;
    box-shadow: none;
  }

  .nav-list a:not(.nav-cta)::after {
    background: #000;
  }

  .nav-list :focus-visible {
    outline-color: #000;
  }

  .hero-content {
    padding-bottom: 7.5rem;
  }

  .studio-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .statement {
    font-size: clamp(2.2rem, 11.6vw, 4.6rem);
  }

  .studio-cube {
    position: absolute;
    top: -1.2rem;
    right: 0;
    width: 5.2rem;
  }

  .socials {
    grid-template-columns: minmax(0, 1fr);
  }

  .social {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.3rem 1.1rem;
    min-height: 0;
    padding: 1.05rem 1.2rem;
  }

  .social svg {
    grid-row: 1 / 3;
    width: 2.1rem;
    margin: 0;
  }

  .social-name {
    align-self: end;
  }

  .social-meta {
    align-self: start;
  }

  .email {
    font-size: clamp(1.9rem, 10.4vw, 3.2rem);
  }

  .site-footer .wrap {
    flex-wrap: wrap;
  }

  .footer-legal {
    order: 3;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
