body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

a,
button,
[role='button'],
input,
select,
textarea {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
}

@font-face {
  font-family: 'II Vorkurs';
  src:
    url('/fonts/ii-vorkurs/IIVorkurs-Medium.woff2') format('woff2'),
    url('/fonts/ii-vorkurs/II-Vorkurs-Medium.woff2') format('woff2'),
    url('/fonts/ii-vorkurs/IIVorkurs-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.tile-clip {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
}

.tile-clip .tile-scroll {
  margin-inline: 0;
}

.tile-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-inline: 0;
  padding-inline: 0;
}

.tile-scroll:not(.tile-scroll--auto)::before,
.tile-scroll:not(.tile-scroll--auto)::after {
  content: '';
  flex: 1 0 1.25rem;
}

@media (min-width: 640px) {
  .tile-scroll:not(.tile-scroll--auto)::before,
  .tile-scroll:not(.tile-scroll--auto)::after {
    flex-basis: 2.5rem;
  }
}

.tile-scroll--auto {
  overflow: hidden;
  scroll-snap-type: none;
}

.tile-scroll-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
}

.tile-scroll--auto .tile-scroll-track {
  animation: tile-marquee var(--marquee-duration, 120s) linear infinite;
  will-change: transform;
}

.tile-scroll--auto:is(:hover, .is-paused) .tile-scroll-track {
  animation-play-state: paused;
}

@keyframes tile-marquee {
  from {
    transform: translate3d(calc(-1 * var(--marquee-start, 0px)), 0, 0);
  }

  to {
    transform: translate3d(calc(-1 * var(--marquee-start, 0px) - var(--loop-width, 0px)), 0, 0);
  }
}

.tile-scroll article {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 42vw;
  aspect-ratio: 1 / 1;
  height: auto;
  scroll-snap-align: center;
  background: #000;
}

@media (min-width: 640px) {
  .tile-scroll article {
    width: 28vw;
  }
}

@media (min-width: 1024px) {
  .tile-scroll article {
    width: 11rem;
  }
}

.tile-scroll::-webkit-scrollbar {
  display: none;
}

.tile-animation,
.tile-animation-crop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #000;
  filter: grayscale(1) contrast(1.08);
}

.tile-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.tile-frame .tile-animation,
.tile-frame .tile-animation-crop {
  position: absolute;
  inset: 0;
}

.tile-animation-crop {
  width: 219.9%;
  height: 219.9%;
  left: -12.7%;
  top: -20.16%;
  inset: auto;
}

.tile-overlay {
  position: relative;
  z-index: 1;
}

.tile-nested::before,
.tile-nested::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.tile-nested::before {
  inset: 12%;
  z-index: 2;
  border: 1px solid #000;
}

.tile-nested::after {
  inset: 0;
  z-index: 1;
  background: #fff;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-size: 76% 76%, 100% 100%;
  -webkit-mask-position: center, center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-size: 76% 76%, 100% 100%;
  mask-position: center, center;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}

.tile-nested-mark {
  position: absolute;
  left: calc(12% + 6% * 0.76);
  top: calc(12% + 10% * 0.76);
  z-index: 3;
  width: calc(40% * 0.76);
  aspect-ratio: 1 / 1;
  border: 1px solid #000;
  border-radius: 9999px;
  pointer-events: none;
}
