/* b1t landing. One viewport, no scroll. The bit field lives on a canvas behind everything. */

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Text sits on the left; the field fades toward it so copy never fights the visualization */
  mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.18) 0%, rgb(0 0 0 / 0.55) 40%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / 0.18) 0%, rgb(0 0 0 / 0.55) 40%, #000 70%);
}

.stage {
  position: relative;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--s5) var(--gutter);
  padding-top: max(var(--s5), env(safe-area-inset-top));
  padding-bottom: max(var(--s5), env(safe-area-inset-bottom));
  max-width: var(--container);
  margin: 0 auto;
}

.top,
.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  color: var(--fg);
}

.mark .lit,
.done .lit {
  fill: var(--accent);
}

.wordmark {
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: var(--track-tight);
  line-height: 1;
}

.wordmark .one {
  color: var(--accent-text);
}

.hero {
  align-self: center;
  max-width: 40rem;
  display: grid;
  gap: var(--s5);
  padding-block: var(--s6);
}

.hero h1 {
  max-width: 12ch;
}

.hero h1,
.lede,
.waitlist {
  /* One authored moment: the copy settles in while the field ignites. Visible default, motion is additive. */
  animation: settle var(--dur-4) var(--ease-out) both;
}

.lede {
  animation-delay: 80ms;
}

.waitlist {
  animation-delay: 160ms;
}

@keyframes settle {
  from {
    opacity: 0;
    translate: 0 12px;
    filter: blur(6px);
  }
}

.lede {
  font-size: var(--fs-lg);
  color: var(--fg-2);
  max-width: 34rem;
}

.waitlist {
  max-width: 30rem;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.done {
  display: grid;
  gap: var(--s3);
  animation: settle var(--dur-3) var(--ease-out) both;
}

.done h2 {
  margin-top: var(--s2);
}

.done p {
  color: var(--fg-2);
}

.bottom {
  font-size: var(--fs-sm);
  color: var(--fg-2);
}

.readout {
  color: var(--fg-3);
  font-size: var(--fs-xs);
}

.readout #set {
  color: var(--accent-text);
}

@media (max-width: 40rem) {
  #field {
    /* Portrait: the field runs behind the whole page, so dim it uniformly instead of by column */
    mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.55) 60%, rgb(0 0 0 / 0.8));
    -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.55) 60%, rgb(0 0 0 / 0.8));
  }

  .hero {
    padding-block: var(--s4);
    gap: var(--s4);
  }

  .field-group {
    flex-direction: column;
  }

  .field-group .btn {
    width: 100%;
  }

  .readout {
    display: none;
  }
}

@media (max-height: 30rem) {
  .hero {
    gap: var(--s3);
    padding-block: var(--s2);
  }

  .lede {
    font-size: var(--fs-md);
  }
}
