:root {
  color-scheme: dark;
  --black: #000000;
  --lime: #c1ff72;
  --white: #ffffff;
  --muted: #c7ccc5;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
}

::selection {
  color: var(--black);
  background: var(--lime);
}

.scene {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: var(--black);
  pointer-events: none;
}

.scene__poster,
.scene__video,
.scene__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene__poster {
  background: var(--black) url("/assets/background-poster.jpg") center / cover no-repeat;
}

.scene__video {
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

.has-video-frame .scene__video {
  opacity: 1;
}

.scene__shade {
  background: rgb(0 0 0 / 74%);
}

.page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 76px 28px 104px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 880px;
  text-align: center;
}

.brand {
  display: block;
  width: clamp(196px, 24vw, 276px);
  height: auto;
  margin-bottom: 56px;
  -webkit-user-drag: none;
}

.status {
  margin: 0 0 22px;
  color: var(--lime);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.075;
  text-wrap: balance;
}

.description {
  max-width: 51ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 400;
  line-height: 1.65;
  text-wrap: pretty;
}

.motion-control {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 6px;
  background: rgb(0 0 0 / 60%);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.motion-control[hidden] {
  display: none;
}

.motion-control:hover {
  border-color: rgb(255 255 255 / 50%);
  color: var(--white);
}

.motion-control:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.motion-control__icon {
  width: 10px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.motion-control[data-paused="true"] .motion-control__icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
}

@media (max-width: 480px) {
  .page {
    padding: 52px 24px 106px;
  }

  .brand {
    margin-bottom: 42px;
  }

  .status {
    margin-bottom: 18px;
  }

  .description {
    margin-top: 24px;
  }

  .motion-control {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene__video {
    display: none;
  }
}
