:root {
  color-scheme: dark;
  --background: #080808;
  --foreground: #f1f1ed;
  --muted: #8b8b87;
  --line: rgb(241 241 237 / 18%);
  --edge: clamp(1.25rem, 3.2vw, 3.5rem);
}

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

html {
  background: var(--background);
}

body {
  position: relative;
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: -35vmax;
  z-index: 0;
  content: "";
  background: linear-gradient(
    112deg,
    transparent 38%,
    rgb(241 241 237 / 4.5%) 49%,
    transparent 61%
  );
  opacity: 0.65;
  pointer-events: none;
  transform: translate3d(-12%, 0, 0) rotate(2deg);
}

.launch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--edge);
  isolation: isolate;
}

.launch__brand {
  align-self: center;
  justify-self: center;
  width: min(27vw, 23rem);
  margin: clamp(1rem, 4vh, 3rem) 0 0;
  line-height: 0;
}

.launch__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.launch__announcement {
  display: grid;
  grid-template-columns: auto minmax(3rem, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 3rem);
  padding: clamp(1.5rem, 3vh, 2.5rem) 0 clamp(0.9rem, 2.2vh, 1.5rem);
}

.launch__message,
.launch__status {
  margin: 0;
}

.launch__message {
  color: var(--foreground);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.launch__rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}

.launch__status {
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: light-pass 18s ease-in-out infinite alternate;
    will-change: transform, opacity;
  }

  .launch__brand {
    animation: content-in 1.25s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .launch__message,
  .launch__status {
    animation: content-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .launch__message {
    animation-delay: 0.5s;
  }

  .launch__status {
    animation-delay: 0.75s;
  }

  .launch__rule {
    animation: rule-in 1.1s 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes light-pass {
  0% {
    opacity: 0.4;
    transform: translate3d(-13%, 0, 0) rotate(2deg);
  }

  55% {
    opacity: 0.72;
  }

  100% {
    opacity: 0.48;
    transform: translate3d(13%, 0, 0) rotate(2deg);
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rule-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 47.99rem) {
  :root {
    --edge: clamp(1rem, 5.5vw, 1.5rem);
  }

  .launch__brand {
    width: min(36vw, 14rem);
    margin-top: 0;
  }

  .launch__announcement {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1.5rem 0 0.8rem;
  }

  .launch__message {
    max-width: 14rem;
    font-size: clamp(0.9375rem, 4.2vw, 1.125rem);
  }

  .launch__rule {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 2.5rem;
  }

  .launch__message,
  .launch__status {
    grid-row: 2;
  }

  .launch__status {
    align-self: end;
    font-size: 0.5625rem;
    letter-spacing: 0.2em;
  }
}

@media (max-height: 34rem) and (orientation: landscape) {
  .launch__brand {
    width: min(20vw, 13.5rem);
    margin-top: 0;
  }

  .launch__announcement {
    padding-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
