:root {
  --page-bg: #515159;
  --text: #f8f8f8;
  --soft-text: rgba(255, 255, 255, 0.82);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --spotlight-x: 50vw;
  --spotlight-y: 50svh;
  --spotlight-size: clamp(360px, 34vmax, 620px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--page-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.top-page {
  min-height: 100svh;
}

.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  background:
    radial-gradient(
      circle calc(var(--spotlight-size) * 0.38) at var(--spotlight-x) var(--spotlight-y),
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    radial-gradient(
      circle var(--spotlight-size) at var(--spotlight-x) var(--spotlight-y),
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.05) 50%,
      rgba(0, 0, 0, 0.2) 80%,
      rgba(0, 0, 0, 0.6) 100%
    );
  will-change: background;
}

.dust-particles {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.dust-particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, var(--alpha));
  box-shadow:
    0 0 5px rgba(255, 255, 255, 0.76),
    0 0 11px rgba(255, 255, 255, 0.34);
  filter: brightness(1);
  animation:
    dust-float var(--duration) ease-in-out infinite alternate,
    dust-twinkle 3s ease-in-out infinite;
  animation-delay: var(--delay), var(--delay);
  will-change: transform, opacity, filter, box-shadow;
}

.dust-particles span:nth-child(1) {
  --x: 8%;
  --y: 15%;
  --size: 1.5px;
  --alpha: 0.88;
  --duration: 13s;
  --delay: -2s;
  --move-x: 32px;
  --move-y: -26px;
}

.dust-particles span:nth-child(2) {
  --x: 18%;
  --y: 34%;
  --size: 1.8px;
  --alpha: 0.8;
  --duration: 16s;
  --delay: -8s;
  --move-x: -22px;
  --move-y: -42px;
}

.dust-particles span:nth-child(3) {
  --x: 31%;
  --y: 22%;
  --size: 1.5px;
  --alpha: 0.94;
  --duration: 12s;
  --delay: -5s;
  --move-x: 18px;
  --move-y: 34px;
}

.dust-particles span:nth-child(4) {
  --x: 43%;
  --y: 9%;
  --size: 1.8px;
  --alpha: 0.82;
  --duration: 18s;
  --delay: -11s;
  --move-x: -34px;
  --move-y: 30px;
}

.dust-particles span:nth-child(5) {
  --x: 57%;
  --y: 27%;
  --size: 1.5px;
  --alpha: 0.9;
  --duration: 14s;
  --delay: -4s;
  --move-x: 38px;
  --move-y: -36px;
}

.dust-particles span:nth-child(6) {
  --x: 71%;
  --y: 16%;
  --size: 2.1px;
  --alpha: 0.76;
  --duration: 20s;
  --delay: -13s;
  --move-x: -28px;
  --move-y: 46px;
}

.dust-particles span:nth-child(7) {
  --x: 83%;
  --y: 31%;
  --size: 1.5px;
  --alpha: 0.92;
  --duration: 15s;
  --delay: -7s;
  --move-x: 24px;
  --move-y: -30px;
}

.dust-particles span:nth-child(8) {
  --x: 93%;
  --y: 12%;
  --size: 1.8px;
  --alpha: 0.8;
  --duration: 17s;
  --delay: -3s;
  --move-x: -42px;
  --move-y: 32px;
}

.dust-particles span:nth-child(9) {
  --x: 12%;
  --y: 54%;
  --size: 1.8px;
  --alpha: 0.74;
  --duration: 21s;
  --delay: -15s;
  --move-x: 28px;
  --move-y: -50px;
}

.dust-particles span:nth-child(10) {
  --x: 27%;
  --y: 64%;
  --size: 1.5px;
  --alpha: 0.86;
  --duration: 13s;
  --delay: -9s;
  --move-x: -32px;
  --move-y: -28px;
}

.dust-particles span:nth-child(11) {
  --x: 39%;
  --y: 48%;
  --size: 1.5px;
  --alpha: 0.9;
  --duration: 16s;
  --delay: -1s;
  --move-x: 26px;
  --move-y: 38px;
}

.dust-particles span:nth-child(12) {
  --x: 51%;
  --y: 58%;
  --size: 1.8px;
  --alpha: 0.74;
  --duration: 19s;
  --delay: -12s;
  --move-x: -24px;
  --move-y: -44px;
}

.dust-particles span:nth-child(13) {
  --x: 64%;
  --y: 44%;
  --size: 1.5px;
  --alpha: 0.84;
  --duration: 14s;
  --delay: -6s;
  --move-x: 40px;
  --move-y: 26px;
}

.dust-particles span:nth-child(14) {
  --x: 76%;
  --y: 62%;
  --size: 1.8px;
  --alpha: 0.78;
  --duration: 22s;
  --delay: -17s;
  --move-x: -36px;
  --move-y: -38px;
}

.dust-particles span:nth-child(15) {
  --x: 89%;
  --y: 53%;
  --size: 1.5px;
  --alpha: 0.9;
  --duration: 15s;
  --delay: -10s;
  --move-x: 20px;
  --move-y: 42px;
}

.dust-particles span:nth-child(16) {
  --x: 5%;
  --y: 79%;
  --size: 1.5px;
  --alpha: 0.82;
  --duration: 18s;
  --delay: -14s;
  --move-x: 42px;
  --move-y: -30px;
}

.dust-particles span:nth-child(17) {
  --x: 21%;
  --y: 84%;
  --size: 2.1px;
  --alpha: 0.72;
  --duration: 23s;
  --delay: -4s;
  --move-x: -30px;
  --move-y: -54px;
}

.dust-particles span:nth-child(18) {
  --x: 36%;
  --y: 76%;
  --size: 1.5px;
  --alpha: 0.88;
  --duration: 14s;
  --delay: -8s;
  --move-x: 28px;
  --move-y: 36px;
}

.dust-particles span:nth-child(19) {
  --x: 49%;
  --y: 88%;
  --size: 1.8px;
  --alpha: 0.74;
  --duration: 19s;
  --delay: -16s;
  --move-x: -44px;
  --move-y: -34px;
}

.dust-particles span:nth-child(20) {
  --x: 62%;
  --y: 81%;
  --size: 1.5px;
  --alpha: 0.94;
  --duration: 12s;
  --delay: -2s;
  --move-x: 34px;
  --move-y: -46px;
}

.dust-particles span:nth-child(21) {
  --x: 73%;
  --y: 90%;
  --size: 1.8px;
  --alpha: 0.76;
  --duration: 21s;
  --delay: -11s;
  --move-x: -26px;
  --move-y: -52px;
}

.dust-particles span:nth-child(22) {
  --x: 86%;
  --y: 77%;
  --size: 1.5px;
  --alpha: 0.86;
  --duration: 17s;
  --delay: -6s;
  --move-x: 30px;
  --move-y: 28px;
}

.dust-particles span:nth-child(23) {
  --x: 95%;
  --y: 88%;
  --size: 1.5px;
  --alpha: 0.8;
  --duration: 15s;
  --delay: -12s;
  --move-x: -50px;
  --move-y: -40px;
}

.dust-particles span:nth-child(24) {
  --x: 2%;
  --y: 40%;
  --size: 1.8px;
  --alpha: 0.72;
  --duration: 20s;
  --delay: -5s;
  --move-x: 48px;
  --move-y: 44px;
}

@keyframes dust-float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.86);
  }

  45% {
    transform: translate3d(
      calc(var(--move-x) * 0.52),
      calc(var(--move-y) * -0.34),
      0
    ) scale(1.04);
  }

  100% {
    transform: translate3d(
      calc(var(--move-x) * 1.7),
      calc(var(--move-y) * 1.7),
      0
    ) scale(1.18);
  }
}

@keyframes dust-twinkle {
  0% {
    opacity: calc(var(--alpha) * 0.16);
    filter: brightness(0.3);
    box-shadow:
      0 0 3px rgba(255, 255, 255, 0.32),
      0 0 7px rgba(255, 255, 255, 0.12);
  }

  45% {
    opacity: calc(var(--alpha) * 1);
    filter: brightness(3);
    box-shadow:
      0 0 8px rgba(255, 255, 255, 0.96),
      0 0 20px rgba(255, 255, 255, 0.52);
  }

  58% {
    opacity: calc(var(--alpha) * 0.46);
    filter: brightness(1);
    box-shadow:
      0 0 4px rgba(255, 255, 255, 0.46),
      0 0 10px rgba(255, 255, 255, 0.18);
  }

  100% {
    opacity: calc(var(--alpha) * 0.16);
    filter: brightness(0.3);
    box-shadow:
      0 0 3px rgba(255, 255, 255, 0.32),
      0 0 7px rgba(255, 255, 255, 0.12);
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(22px, 4.8vh, 48px) clamp(18px, 4vw, 56px) clamp(20px, 4vh, 44px);
  isolation: isolate;
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 680px);
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.brand-icon {
  width: clamp(70px, 7vw, 100px);
  height: clamp(70px, 7vw, 100px);
  object-fit: contain;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.16))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.brand h1 {
  margin: -8px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
}

.brand p {
  margin: 10px 0 0;
  color: var(--soft-text);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  margin-top: clamp(20px, 3vh, 30px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.45vw, 1.38rem);
  font-weight: 700;
  line-height: 1.2;
}

.site-nav a {
  padding: 4px 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  transition:
    color 160ms ease,
    text-shadow 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  text-shadow:
    0 0 7px rgba(255, 255, 255, 0.42),
    0 2px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 6px;
}

.hero-art {
  --hero-shadow-x: 0px;
  --hero-shadow-y: 18px;
  --hero-shadow-blur: 18px;
  --hero-shadow-alpha: 0.62;
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 60.5%;
  width: min(112vw, 1620px);
  max-height: 80svh;
  object-fit: contain;
  transform: translate(-50%, -50%);
  /*
  filter:
    drop-shadow(
      var(--hero-shadow-x)
      var(--hero-shadow-y)
      var(--hero-shadow-blur)
      rgba(0, 0, 0, var(--hero-shadow-alpha))
    )
    drop-shadow(0 10px 6px rgba(0, 0, 0, 0.34));
  */
  pointer-events: none;
  user-select: none;
}

.hero-still,
.hero-video {
  transition: opacity 360ms ease;
}

.hero-still.is-hidden,
.hero-video {
  opacity: 0;
}

.hero-video.is-visible {
  opacity: 1;
}

@media (max-width: 700px) {
  .spotlight-overlay {
    background: transparent;
  }

  .dust-particles span:nth-child(n + 17) {
    display: none;
  }

  .hero {
    padding-top: clamp(62px, 11vh, 92px);
  }

  .brand {
    width: min(100%, 390px);
  }

  .brand-icon {
    width: clamp(58px, 18vw, 82px);
    height: clamp(58px, 18vw, 82px);
  }

  .brand h1 {
    margin-top: -5px;
    font-size: clamp(2.9rem, 13vw, 4rem);
  }

  .brand p {
    margin-top: 9px;
    font-size: clamp(0.92rem, 4vw, 1.15rem);
  }

  .site-nav {
    flex-direction: column;
    gap: 9px;
    margin-top: 34px;
    font-size: clamp(0.95rem, 4.2vw, 1.12rem);
  }

  .site-nav a {
    padding: 0;
  }

  .hero-art {
    top: 64%;
    width: min(90vw, 620px);
    max-height: 46svh;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    padding-top: 24px;
  }

  .brand-icon {
    width: 56px;
    height: 56px;
  }

  .brand h1 {
    font-size: clamp(2.6rem, 8vw, 4.3rem);
  }

  .brand p {
    margin-top: 7px;
  }

  .site-nav {
    margin-top: 14px;
  }

  .hero-art {
    top: 63%;
    max-height: 66svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-overlay {
    --spotlight-x: 50vw;
    --spotlight-y: 50svh;
  }

  .dust-particles span {
    animation: none;
    opacity: calc(var(--alpha) * 0.55);
  }
}
