@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body { margin: 0; background: #ffffff; }

.stage {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #0b0b0f;
  font-family: Figtree, system-ui, -apple-system, sans-serif;
}

.melly { width: 220px; height: 220px; overflow: visible; }

.name {
  margin: 0;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.rise { animation: rise .26s cubic-bezier(.3, 1.3, .5, 1) both; }
.rise-2 { animation-delay: .045s; }



.note { margin: 0; font-size: 17px; line-height: 26px; color: #55555f; }
.note a { color: #0b0b0f; }

/* Coming soon */

.center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 560px;
  text-align: center;
}

.melly-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 40%;
  -webkit-tap-highlight-color: transparent;
}
.melly-button:focus-visible { outline: 3px solid #A98AF0; outline-offset: 6px; }
.melly-button .melly { display: block; transform-origin: 50% 100%; }

.melly .happy { display: none; }
.melly.is-happy .happy { display: inline; }
.melly.is-happy .calm { display: none; }

@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  22% { transform: translateY(0) scale(1.08, .9); }
  48% { transform: translateY(-26px) scale(.95, 1.06); }
  74% { transform: translateY(0) scale(1.05, .94); }
  100% { transform: translateY(0) scale(1, 1); }
}
.melly.hop { animation: hop .7s cubic-bezier(.3, 1.2, .5, 1) both; }

.name { font-size: clamp(48px, 7vw, 76px); letter-spacing: -0.025em; }

.soon {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 16px;
  border-radius: 999px;
  background: #0b0b0f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}
.soon .dot { width: 9px; height: 9px; border-radius: 50%; background: #DDC9FF; animation: dot 2.4s ease-in-out infinite; }
@keyframes dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.62); opacity: .55; } }

.line {
  margin: 0;
  max-width: 480px;
  min-height: 60px;
  text-wrap: balance;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  font-weight: 400;
  color: #55555f;
}

.rise-3 { animation-delay: .09s; }
.rise-4 { animation-delay: .135s; }

/* Background shapes: three layers that drift with the pointer (melly.js) */

.shapes, .layer { position: absolute; inset: 0; pointer-events: none; }
.layer { transition: transform .5s cubic-bezier(.2, .8, .3, 1); }

@keyframes pop {
  from { opacity: 0; transform: scale(.6) rotate(var(--r, 0deg)); }
  to { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(var(--dx, 6px), var(--dy, -14px)) rotate(var(--spin, 6deg)); }
}
.shape { position: absolute; transform: rotate(var(--r, 0deg)); animation: pop .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.shape > div { animation: float var(--t, 9s) ease-in-out infinite; }
.sq { corner-shape: superellipse(2); }
.round { border-radius: 50%; }

.s-amber { left: 5%; top: 9%; --r: -14deg; animation-delay: .1s; }
.s-amber .sq { width: clamp(120px, 15vw, 230px); height: clamp(120px, 15vw, 230px); border-radius: 56px; background: #FFDE9E; --t: 11s; --spin: 5deg; }
.s-blue { right: 7%; top: 11%; animation-delay: .2s; }
.s-blue .round { width: clamp(84px, 10vw, 150px); height: clamp(84px, 10vw, 150px); background: #C9DAFF; --t: 9s; --dx: -10px; --dy: 12px; }
.s-green { left: 9%; bottom: 10%; --r: 16deg; animation-delay: .3s; }
.s-green .sq { width: clamp(150px, 19vw, 280px); height: clamp(64px, 8vw, 116px); border-radius: 999px; background: #91E696; --t: 12s; --spin: -4deg; }
.s-rose { right: 6%; bottom: 13%; --r: 12deg; animation-delay: .4s; }
.s-rose .sq { width: clamp(104px, 12vw, 176px); height: clamp(104px, 12vw, 176px); border-radius: 40px; background: #FFCFC9; --t: 10s; --dx: -8px; --spin: -7deg; }

.s-note { right: 17%; top: 50%; --r: 7deg; animation-delay: .5s; }
.s-note .sq { width: 150px; height: 112px; box-sizing: border-box; border-radius: 30px; background: #FFDE9E; border: 1px solid #EBCC91; padding: 22px 20px 0; display: flex; flex-direction: column; gap: 14px; --t: 13s; --spin: -3deg; }
.s-note span { display: block; height: 3px; border-radius: 3px; background: #6E5B4E; opacity: .28; }
.s-note span:nth-child(1) { width: 92%; }
.s-note span:nth-child(2) { width: 70%; }
.s-note span:nth-child(3) { width: 82%; }
.s-sky { left: 15%; top: 38%; --r: -9deg; animation-delay: .6s; }
.s-sky .sq { width: 128px; height: 128px; border-radius: 40px; background: #C9DAFF; border: 1px solid #B9C9EB; --t: 11s; --spin: 4deg; }
.s-lav { left: 26%; top: 72%; animation-delay: .7s; }
.s-lav .round { width: 54px; height: 54px; background: #DDC9FF; --t: 8s; --dy: -18px; }
.s-grey { right: 28%; top: 20%; animation-delay: .75s; }
.s-grey .round { width: 36px; height: 36px; box-sizing: border-box; background: #EEF2F3; border: 1px solid #DBDFE0; --t: 7s; --dx: 10px; }
.s-squiggle-a { left: 30%; top: 12%; --r: -6deg; animation-delay: .8s; }
.s-squiggle-a > div { --t: 10s; --spin: 8deg; }
.s-squiggle-b { right: 30%; bottom: 9%; --r: 10deg; animation-delay: .85s; }
.s-squiggle-b > div { --t: 9s; --spin: -10deg; }
.s-squiggle-a path, .s-squiggle-b path { fill: none; stroke-width: 5; stroke-linecap: round; }
.s-squiggle-a path { stroke: #F2B544; }
.s-squiggle-b path { stroke: #F28B80; }

.d1 { left: 38%; top: 16%; animation-delay: .9s; }
.d2 { right: 36%; top: 78%; animation-delay: .95s; }
.d3 { left: 20%; top: 26%; animation-delay: 1s; }
.d4 { right: 21%; top: 36%; animation-delay: 1.05s; }
.d5 { left: 44%; bottom: 8%; animation-delay: 1.1s; }
.d1 .round, .d2 .round { width: 12px; height: 12px; }
.d3 .round, .d4 .round, .d5 .round { width: 10px; height: 10px; }
.d1 .round { background: #4FC45C; --t: 6s; --dy: -10px; }
.d2 .round { background: #7FA3F5; --t: 7s; --dx: -8px; }
.d3 .round { background: #A98AF0; --t: 5s; }
.d4 .round { background: #F2B544; --t: 6.5s; --dy: 12px; }
.d5 .round { background: #F28B80; --t: 5.5s; }

@media (max-width: 700px) { .hide-sm { display: none; } }
@media (max-width: 480px) { .melly { width: 180px; height: 180px; } }

@media (prefers-reduced-motion: reduce) {
  .rise, .melly.hop, .shape, .shape > div, .soon .dot { animation: none; }
  .layer { transition: none; }
}
