@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080806;
  --text: #f4f1e9;
  --muted: #b9b5aa;
  --gold: #d4a82f;
  --gold-light: #f1cf68;
  --danger: #ff8d7c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

.launch {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  background: #080806;
}

.launch__media {
  position: absolute;
  inset: 0;
  z-index: -4;
  height: 100dvh;
  overflow: hidden;
}

.launch__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(.88) contrast(1.03) brightness(.78);
  transform: scale(1.025);
  animation: scene-breathe 18s cubic-bezier(.45, 0, .2, 1) infinite alternate;
}

.launch__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, .97) 0%, rgba(6, 7, 6, .92) 31%, rgba(7, 7, 6, .48) 61%, rgba(5, 5, 4, .18) 100%),
    linear-gradient(180deg, rgba(5, 5, 4, .48) 0%, transparent 32%, rgba(5, 5, 4, .62) 100%),
    radial-gradient(circle at 74% 24%, rgba(239, 176, 49, .22), transparent 30%);
}

.launch__veil::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 1px;
  top: 29%;
  right: -8vw;
  opacity: .52;
  background: linear-gradient(90deg, transparent, rgba(247, 207, 103, .78), transparent);
  box-shadow: 0 0 36px rgba(232, 174, 52, .32);
  animation: light-pass 9s ease-in-out infinite;
}

.launch__grain {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.launch__content {
  position: relative;
  width: min(100%, 1600px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(22px, 3.2vw, 50px) clamp(22px, 6.2vw, 100px) clamp(20px, 3vw, 44px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  animation: rise-in .8s .05s both;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(239, 193, 76, .35), 0 16px 44px rgba(0, 0, 0, .38);
}

.launch__message {
  align-self: center;
  width: min(720px, 56vw);
  padding: clamp(48px, 7vh, 90px) 0 58px;
}

.launch__eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: rise-in .8s .16s both;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .88;
  text-wrap: balance;
  animation: rise-in .9s .22s both;
}

.launch__intro {
  max-width: 590px;
  margin: 28px 0 30px;
  color: rgba(244, 241, 233, .76);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  animation: rise-in .9s .3s both;
}

.waitlist {
  width: min(650px, 100%);
  animation: rise-in .9s .38s both;
}

.waitlist > label {
  display: block;
  margin: 0 0 9px 2px;
  color: rgba(244, 241, 233, .88);
  font-size: 13px;
  font-weight: 700;
}

.waitlist__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(239, 207, 104, .3);
  border-radius: 18px;
  background: rgba(7, 8, 7, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 70px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}

.waitlist input[type="email"] {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 17px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.waitlist input::placeholder {
  color: #9a978f;
}

.waitlist input[type="email"]:focus-visible {
  border-radius: 11px;
  box-shadow: 0 0 0 2px rgba(241, 207, 104, .72);
}

.waitlist button {
  min-width: 148px;
  height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 236, 170, .32);
  border-radius: 12px;
  cursor: pointer;
  color: #171205;
  background: linear-gradient(135deg, #f0cf67, #c99522);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 36px rgba(171, 118, 17, .22);
  font-weight: 800;
  transition: transform .2s ease, filter .2s ease;
}

.waitlist button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.waitlist button:active {
  transform: translateY(1px) scale(.99);
}

.waitlist button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.waitlist button:disabled {
  cursor: wait;
  filter: saturate(.5);
  opacity: .72;
  transform: none;
}

.waitlist__promise,
.waitlist__status {
  margin: 10px 2px 0;
  color: #aaa69c;
  font-size: 12px;
  line-height: 1.45;
}

.waitlist__status {
  min-height: 18px;
  color: var(--gold-light);
  font-weight: 700;
}

.waitlist__status[data-state="error"] {
  color: var(--danger);
}

.waitlist__trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(244, 241, 233, .48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: rise-in .8s .48s both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scene-breathe {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-.8%, -.5%, 0); }
}

@keyframes light-pass {
  0%, 100% { opacity: .2; transform: translateX(-4%); }
  50% { opacity: .7; transform: translateX(4%); }
}

@media (max-width: 820px) {
  .launch {
    min-height: 100dvh;
  }

  .launch__media {
    height: 100dvh;
  }

  .launch__media img {
    object-position: 68% center;
    filter: saturate(.85) contrast(1.04) brightness(.62);
  }

  .launch__veil {
    background:
      linear-gradient(180deg, rgba(5, 5, 4, .34) 0%, rgba(5, 5, 4, .7) 38%, rgba(5, 5, 4, .98) 88%),
      radial-gradient(circle at 73% 18%, rgba(239, 176, 49, .18), transparent 33%);
  }

  .launch__veil::after {
    top: 25%;
    width: 80vw;
  }

  .launch__content {
    min-height: 100dvh;
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  }

  .brand {
    font-size: 12px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .launch__message {
    align-self: end;
    width: 100%;
    padding: 30vh 0 28px;
  }

  .launch__eyebrow {
    margin-bottom: 12px;
  }

  h1 {
    max-width: 560px;
    font-size: clamp(46px, 14vw, 70px);
    line-height: .92;
  }

  .launch__intro {
    margin: 18px 0 22px;
    font-size: 15px;
    line-height: 1.5;
  }

  footer {
    display: none;
  }
}

@media (max-width: 560px) {
  .waitlist__row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .waitlist input[type="email"],
  .waitlist button {
    width: 100%;
  }

  .waitlist button {
    min-width: 0;
  }
}

@media (max-height: 720px) and (min-width: 821px) {
  .launch__message {
    padding: 30px 0;
  }

  h1 {
    font-size: clamp(54px, 6.3vw, 88px);
  }

  .launch__intro {
    margin: 18px 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
