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

@font-face {
  font-family: Geist;
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 300 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/roboto-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --white: #f4f4f4;
  --black: #000;
  --muted: rgb(244 244 244 / 25%);
  --body-font: Inter, Arial, sans-serif;
  --heading-font: Geist, Arial, sans-serif;
  --mono-font: "Roboto Mono", monospace;
  --hero-inset: clamp(20px, 3vw, 30px);
  --image-duration: 820ms;
  --text-duration: 560ms;
  --reveal-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 16px / 1.1 var(--body-font);
}

h1, h2, p { margin: 0; }

button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding: var(--hero-inset);
  padding-block-end: max(var(--hero-inset), env(safe-area-inset-bottom));
  overflow: clip;
}

.hero__images, .hero__image, .hero::after {
  position: absolute;
  inset: 0;
}

.hero__images {
  z-index: -2;
  overflow: hidden;
}

.hero__image {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(5px);
}

.hero__image.is-current {
  z-index: 2;
  opacity: 1;
  filter: none;
  transition: opacity var(--image-duration) var(--reveal-easing),
    filter var(--image-duration) var(--reveal-easing);
}

.hero__image.is-previous {
  z-index: 1;
  opacity: 0;
  filter: none;
  transition: opacity 0s var(--image-duration);
}

.hero::after {
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / 76%), transparent 240px);
}

.hero__content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.hero__copy {
  display: grid;
  gap: 5px;
  min-inline-size: 0;
}

.hero__copy h1 {
  font: 400 clamp(27px, 4vw, 32px) / 1.1 var(--heading-font);
  letter-spacing: -0.03em;
}

.hero__copy p, .research__copy p {
  color: var(--muted);
  letter-spacing: -0.02em;
}

.hero__copy p { max-inline-size: 769px; }

.hero__controls {
  display: grid;
  flex: none;
  justify-items: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 167px;
  min-block-size: 30px;
  padding: 6px 8px;
  background: var(--white);
  color: var(--black);
  font: 400 16px / 1.1 var(--mono-font);
  letter-spacing: -0.05em;
  white-space: nowrap;
  transition: background-color 180ms ease;
}

.button--outline {
  min-inline-size: 195px;
  min-block-size: 32px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--white);
}

.image-picker {
  display: flex;
  align-items: center;
}

.image-picker button {
  display: grid;
  place-items: center;
  inline-size: 12px;
  block-size: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.image-picker button::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--white);
  opacity: .3;
  transition: opacity 200ms ease;
}

.image-picker button:hover::before {
  opacity: .6;
}

.image-picker button[aria-pressed="true"]::before {
  opacity: 1;
}

.research {
  display: grid;
  justify-items: center;
  gap: 48px;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 64px);
  text-align: center;
}

.research__copy {
  display: grid;
  gap: 20px;
  max-inline-size: 870px;
}

.research h2, .information h2 {
  font: 300 clamp(30px, 4.5vw, 36px) / 1.1 var(--heading-font);
  letter-spacing: -0.03em;
}

.clock { font-variant-numeric: tabular-nums; }
.research__note {
  display: block;
  color: rgb(244 244 244 / 70%);
}

.research__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 30px;
}

.footer {
  display: grid;
  justify-items: center;
  padding: 24px var(--hero-inset);
}

.footer__links {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font: 400 14px / 18px var(--mono-font);
  letter-spacing: -0.04em;
}

.footer__links button { transition: color 180ms ease; }

@media (hover: hover) {
  .button:hover { background: #ebebeb; }
  .button--outline:hover { background: rgb(244 244 244 / 4%); }
  .image-picker button[aria-pressed="false"]:hover::before { background: rgb(244 244 244 / 50%); }
  .footer__links button:hover { color: rgb(244 244 244 / 25%); }
}

.information {
  inline-size: min(460px, calc(100% - 40px));
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgb(244 244 244 / 30%);
  background: #0a0a0a;
  color: var(--white);
}

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

.information p {
  margin-block: 16px 24px;
  color: var(--muted);
  line-height: 1.55;
}

.information .button {
  min-inline-size: 0;
  padding-inline: 16px;
}

.waitlist { color: var(--paper); }
.waitlist h2 { padding-inline-end: 32px; }
.waitlist p { color: rgb(244 244 244 / 70%); }

.waitlist__dismiss {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
}

.waitlist__dismiss button {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  color: var(--paper);
  font: 300 28px / 1 var(--heading-font);
}

#waitlist-form:not([hidden]) {
  display: grid;
  gap: 10px;
  margin-block-end: 16px;
}

#waitlist-email {
  min-inline-size: 0;
  padding: 10px 12px;
  border: 1px solid rgb(244 244 244 / 50%);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
}

#waitlist-email:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 2px;
}

.waitlist .button { min-block-size: 44px; }
.waitlist .button:disabled { opacity: 0.65; cursor: wait; }
#waitlist-status:not(:empty) { line-height: 1.4; }

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes fade-in {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: none; }
}

@keyframes sunrise {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__images { animation: sunrise 4s ease-in-out both; }

  .hero__copy, .hero__controls, .is-revealed {
    animation: fade-in var(--text-duration) var(--reveal-easing) both;
  }

  .hero__copy { animation-delay: 70ms; }
  .hero__controls { animation-delay: 110ms; }

  .is-pending:not(:focus-within) {
    opacity: 0;
    filter: blur(4px);
  }

  .hero__controls:focus-within, .is-revealed:focus-within { animation: none; }
}

@media (max-width: 600px) {
  body { line-height: 1.35; }

  .hero::after {
    background: linear-gradient(to top, rgb(0 0 0 / 86%), transparent 460px);
  }

  .hero__content {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .research { gap: 36px; }
  .research__note { margin-block-start: 8px; }
}

@media (pointer: coarse) {
  .button { min-block-size: 44px; }
}

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

  .hero__image, .hero__image.is-current, .hero__image.is-previous,
  .button, .image-picker button::before, .footer__links button {
    transition: none;
  }
}
