@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #101010;
}

body {
  min-width: 320px;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: clip;
  background: #101010;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgb(16 16 16 / 88%) 0,
    rgb(16 16 16 / 76%) 16%,
    rgb(16 16 16 / 28%) 39%,
    transparent 65%
  );
  content: "";
  pointer-events: none;
}

.cinema-orbits {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cinema-orbit {
  --orbit-size: 220px;
  --poster-width: 34px;
  --reveal-delay: 0.1s;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit-size);
  height: var(--orbit-size);
  border: 1px solid rgb(255 240 241 / 12%);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  animation: orbit-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1)
    var(--reveal-delay) forwards;
}

.cinema-orbit--1 {
  --orbit-size: 220px;
  --poster-width: 34px;
  --reveal-delay: 0.08s;
}

.cinema-orbit--2 {
  --orbit-size: 390px;
  --poster-width: 42px;
  --reveal-delay: 0.26s;
}

.cinema-orbit--3 {
  --orbit-size: 580px;
  --poster-width: 50px;
  --reveal-delay: 0.44s;
}

.cinema-orbit--4 {
  --orbit-size: 800px;
  --poster-width: 58px;
  --reveal-delay: 0.62s;
}

.cinema-orbit--5 {
  --orbit-size: 1060px;
  --poster-width: 66px;
  --reveal-delay: 0.8s;
}

.orbit-runner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--start-angle));
  will-change: transform;
  animation: orbit-travel var(--travel-time) linear infinite;
}

.orbit-radius {
  transform: translateX(calc(var(--orbit-size) / 2));
}

.orbit-counterspin {
  width: var(--poster-width);
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%)
    rotate(var(--counter-start-angle));
  will-change: transform;
  animation: orbit-counter-travel var(--travel-time) linear infinite;
}

.orbit-poster {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.74);
  box-shadow: 0 8px 18px rgb(0 0 0 / 45%);
  transform: scale(0.58);
  animation: poster-reveal 0.72s cubic-bezier(0.22, 1, 0.36, 1)
    var(--poster-delay) forwards;
}

@keyframes orbit-reveal {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes orbit-travel {
  to {
    transform: rotate(var(--end-angle));
  }
}

@keyframes orbit-counter-travel {
  to {
    transform: translate(-50%, -50%)
      rotate(var(--counter-end-angle));
  }
}

@keyframes poster-reveal {
  to {
    opacity: 0.84;
    transform: scale(1);
  }
}

.site-footer {
  position: fixed;
  z-index: 3;
  right: 24px;
  bottom: 18px;
  left: 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: rgb(255 221 224 / 48%);
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff0f1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  width: 519px;
  max-width: calc(100vw - 48px);
  flex-direction: column;
  align-items: center;
  gap: 32px;
  transform: translate(-50%, -50%);
}

.hero__logo {
  display: block;
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
}

.hero__copy {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

h1,
p {
  margin: 0;
  text-align: center;
}

h1 {
  color: #fff0f1;
  font-family: "Anton", Impact, sans-serif;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 56px;
  text-transform: uppercase;
}

p {
  color: rgb(255 221 224 / 64%);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

@media (max-width: 600px) {
  .hero::after {
    background: radial-gradient(
      circle at center,
      rgb(16 16 16 / 92%) 0,
      rgb(16 16 16 / 76%) 19%,
      rgb(16 16 16 / 25%) 43%,
      transparent 70%
    );
  }

  .cinema-orbit--1 {
    --orbit-size: 160px;
    --poster-width: 28px;
  }

  .cinema-orbit--2 {
    --orbit-size: 280px;
    --poster-width: 34px;
  }

  .cinema-orbit--3 {
    --orbit-size: 410px;
    --poster-width: 40px;
  }

  .cinema-orbit--4 {
    --orbit-size: 560px;
    --poster-width: 46px;
  }

  .cinema-orbit--5 {
    --orbit-size: 730px;
    --poster-width: 52px;
  }

  .hero__content {
    width: 350px;
    max-width: calc(100vw - 24px);
    gap: 24px;
  }

  .hero__logo {
    width: 80px;
    height: 80px;
  }

  .hero__copy {
    gap: 20px;
  }

  h1 {
    font-size: clamp(32px, 9.23vw, 36px);
    letter-spacing: -0.01em;
    line-height: 1;
  }

  .hero__title-line {
    display: block;
    white-space: nowrap;
  }

  .site-footer {
    right: 20px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 20px;
    gap: 14px;
    font-size: 11px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .cinema-orbit,
  .orbit-runner,
  .orbit-counterspin,
  .orbit-poster {
    animation: none;
  }

  .cinema-orbit {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .orbit-poster {
    opacity: 0.72;
    transform: scale(1);
  }
}
