:root {
  --pink: #ff6fb5;
  --burgundy: #4e0a27;
  --lime: #d7f25b;
  --cream: #fbf4ea;
  --paper: #ffffff;
  --ink: #1a1418;
  --u: min(calc(100vw / 1440), 1px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--cream); color: var(--ink); }

body {
  font-family: "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero {
  position: relative;
  width: min(100%, 1440px);
  height: max(100svh, calc(var(--u) * 900));
  min-height: calc(var(--u) * 900);
  margin: 0 auto;
  overflow: hidden;
}

/* top bar */
.top {
  position: absolute;
  inset: calc(var(--u) * 30) calc(var(--u) * 64) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.logo { display: block; width: calc(var(--u) * 146); line-height: 0; }
.logo svg { width: 100%; height: auto; overflow: visible; }
.logo #knob { transform-box: fill-box; transform-origin: center; animation: knob-off 1.1s var(--ease) .9s both; }

@keyframes knob-off {
  from { transform: translateX(98%); }
  to { transform: translateX(0); }
}

.soon {
  background: var(--lime);
  border-radius: 999px;
  padding: calc(var(--u) * 12) calc(var(--u) * 20);
  font-weight: 600;
  font-size: max(13px, calc(var(--u) * 15));
  animation: pop .7s var(--spring) 1.4s both;
}

/* headline */
.headline {
  position: absolute;
  left: calc(var(--u) * 56);
  top: calc(var(--u) * 126);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: calc(var(--u) * 176);
  line-height: .99;
  letter-spacing: -.05em;
  z-index: 2;
}

.line { display: flex; align-items: center; gap: calc(var(--u) * 18); }

.w { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) both; }

.line:nth-child(1) .w:nth-of-type(1) > span { animation-delay: .1s; }
.line:nth-child(1) .w:nth-of-type(2) > span { animation-delay: .22s; }
.line:nth-child(2) .w:nth-of-type(1) > span { animation-delay: .34s; }
.line:nth-child(2) .serif > span { animation-delay: .46s; }

.serif {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.01em;
  color: var(--burgundy);
  margin-left: calc(var(--u) * 12);
}

@keyframes rise { to { transform: translateY(0); } }

.pill {
  display: block;
  width: calc(var(--u) * 330);
  height: calc(var(--u) * 150);
  border-radius: 999px;
  overflow: hidden;
  margin-top: calc(var(--u) * 20);
  clip-path: inset(0 50% 0 50% round 999px);
  animation: open-pill 1.2s var(--ease) .55s both;
}

.pill img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.18); animation: settle 1.8s var(--ease) .55s both; }

@keyframes open-pill { to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes settle { to { transform: scale(1); } }

/* intro + form */
.intro {
  position: absolute;
  left: calc(var(--u) * 64);
  top: calc(var(--u) * 540);
  width: calc(var(--u) * 520);
  z-index: 2;
  animation: fade-up .9s var(--ease) .8s both;
}

.lead { font-size: max(16px, calc(var(--u) * 22)); line-height: 1.45; }

.waitlist {
  position: relative;
  margin-top: calc(var(--u) * 32);
  display: flex;
  align-items: center;
  height: max(56px, calc(var(--u) * 64));
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  transition: background .5s var(--ease), box-shadow .3s;
}

.waitlist:focus-within { box-shadow: 0 0 0 3px rgba(255, 111, 181, .35); }

.waitlist input[type=email] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: max(16px, calc(var(--u) * 18));
  color: var(--ink);
}

.waitlist input::placeholder { color: rgba(26, 20, 24, .45); }

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

.waitlist button {
  height: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0 calc(var(--u) * 26);
  min-width: 72px;
  background: var(--pink);
  color: var(--burgundy);
  font: inherit;
  font-weight: 600;
  font-size: max(15px, calc(var(--u) * 17));
  cursor: pointer;
  transition: transform .25s var(--spring), background .2s;
}

.waitlist button:hover { transform: scale(1.04); }
.waitlist button:active { transform: scale(.97); }
.btn-short { display: none; }

.waitlist.loading button { pointer-events: none; color: transparent; position: relative; }
.waitlist.loading button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -14px;
  border-radius: 50%;
  background: var(--burgundy);
  animation: knob-run .6s var(--ease) infinite alternate;
}

@keyframes knob-run { to { transform: translateX(16px); } }

.joined {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-weight: 600;
  font-size: max(15px, calc(var(--u) * 17));
  opacity: 0;
  pointer-events: none;
}

.waitlist.done { background: var(--lime); }
.waitlist.done > :not(.joined) { opacity: 0; transition: opacity .2s; pointer-events: none; }
.waitlist.done .joined { opacity: 1; transition: opacity .4s .2s; }
.waitlist.done .joined-text { animation: fade-up .6s var(--ease) .2s both; }
.waitlist.shake { animation: shake .4s; }

.fine { margin-top: 14px; padding-left: 24px; font-size: max(12px, calc(var(--u) * 13)); font-weight: 500; color: rgba(26, 20, 24, .6); }
.fine.error { color: var(--burgundy); }

/* stage */
.stage { position: absolute; inset: 0; pointer-events: none; }

.block {
  position: absolute;
  left: calc(var(--u) * 840);
  top: calc(var(--u) * 520);
  width: calc(var(--u) * 560);
  height: calc(var(--u) * 560);
  border-radius: calc(var(--u) * 60);
  background: var(--pink);
  transform-origin: bottom right;
  animation: grow 1s var(--ease) .55s both;
}

.phone {
  position: absolute;
  left: calc(var(--u) * 940);
  top: calc(var(--u) * 470);
  width: calc(var(--u) * 342);
  padding: calc(var(--u) * 10);
  border-radius: calc(var(--u) * 52);
  background: var(--ink);
  animation: phone-in 1.1s var(--ease) .7s both;
  will-change: transform;
}

.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--u) * 43); }

.island {
  position: absolute;
  left: 50%;
  top: calc(var(--u) * 20);
  width: calc(var(--u) * 98);
  height: calc(var(--u) * 28);
  margin-left: calc(var(--u) * -49);
  border-radius: 999px;
  background: var(--ink);
}

.badge {
  position: absolute;
  left: calc(var(--u) * 1176);
  top: calc(var(--u) * 590);
  padding: calc(var(--u) * 12) calc(var(--u) * 18);
  border-radius: 999px;
  background: var(--lime);
  font-weight: 600;
  font-size: calc(var(--u) * 17);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  rotate: 8deg;
  animation: pop .8s var(--spring) 1.5s both, bob 5s ease-in-out 2.4s infinite;
}

@keyframes grow { from { transform: translateY(48px) scale(.96); opacity: 0; } }
@keyframes phone-in { from { transform: translateY(64px); opacity: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@keyframes bob { 50% { margin-top: -8px; } }
@keyframes fade-up { from { transform: translateY(16px); opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.foot {
  position: absolute;
  left: calc(var(--u) * 64);
  bottom: calc(var(--u) * 34);
  font-size: 12px;
  font-weight: 500;
  color: rgba(26, 20, 24, .5);
  z-index: 2;
  animation: fade-up .9s var(--ease) 1s both;
}

.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* mobile */
@media (max-width: 760px) {
  .hero { height: auto; min-height: 100svh; padding: 22px 20px 0; }

  .top { position: static; }
  .logo { width: 104px; }
  .soon { padding: 7px 12px; }
  .soon-long { display: none; }

  .headline {
    position: static;
    margin: 40px -4px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    font-size: min(20.4vw, 84px);
  }

  .line { display: contents; }
  .pill { width: 38vw; height: 18vw; margin: .1em 0 0; }
  .serif { margin-left: 0; width: 100%; font-size: 1.05em; line-height: .9; }

  .intro { position: static; width: auto; margin-top: 24px; }
  .lead { font-size: 17px; }
  .waitlist { margin-top: 24px; }
  .btn-long { display: none; }
  .btn-short { display: inline; }
  .fine { padding-left: 20px; }

  .stage { position: relative; inset: auto; height: 440px; margin: 40px -20px 0; overflow: hidden; }
  .block { left: 20px; right: 20px; top: 60px; width: auto; height: 420px; border-radius: 44px; }
  .phone { left: 50%; top: 0; width: 240px; margin-left: -120px; padding: 7px; border-radius: 37px; }
  .phone img { border-radius: 30px; }
  .island { top: 14px; width: 69px; height: 20px; margin-left: -34.5px; }
  .badge { left: auto; right: 14px; top: 64px; font-size: 13px; padding: 9px 14px; }

  .foot { position: static; padding: 20px 0 28px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
