@font-face { font-family: "Young Serif"; src: url("/concepts/moon/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/concepts/moon/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 92%; }

:root {
  --ground: #1d1838;
  --ground-deep: #120f26;
  --ink: #f7f2ff;
  --ink-soft: #d9d2f4;
  --wall: #b9b0ef;
  --moon: #fff1da;
  --moon-warm: #ffd9a6;
  --rose: #f2b3aa;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Young Serif", "Serif Fallback", Georgia, serif;
  --text: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --popup-bg: #fbf8ff;
  --popup-ink: #1d1838;
  --popup-accent: #2a2252;
  --popup-accent-ink: #fff1da;
  --popup-soft: rgba(42, 34, 82, .08);
  --popup-line: rgba(42, 34, 82, .2);
  --popup-backdrop: rgba(18, 15, 38, .72);
  --popup-radius: 28px;
  --members-link-ink: #f7f2ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground-deep); }
body { margin: 0; background: var(--ground-deep); color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }

.nav { position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 26px; padding: 8px 8px 8px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ground) 52%, transparent); border: 1px solid rgba(255, 241, 218, .16); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 18px 50px rgba(8, 6, 20, .35); }
.nav__logo { display: block; padding: 5px 12px; border-radius: 999px; background: linear-gradient(180deg, #fffaf2, #f3ecff); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 0 24px rgba(255, 217, 166, .18); }
.nav__logo img { width: 112px; height: auto; }
.nav__links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { font-size: 15px; font-weight: 500; letter-spacing: .02em; text-decoration: none; color: var(--ink-soft); transition: color .3s; }
.nav__links a:hover { color: var(--moon); }
.nav__menu { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 241, 218, .1); color: var(--ink); cursor: pointer; place-items: center; }

.btn { --lift: 0px; position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 8px 26px 8px 8px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #fff6e6, var(--moon) 60%, #f7e2c2); color: #231c48; font-family: var(--text); font-size: 17px; font-weight: 700; letter-spacing: .01em; text-decoration: none; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 10px 30px rgba(255, 217, 166, .28), 0 0 60px rgba(255, 217, 166, .18); transform: translateY(var(--lift)); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.btn:hover { --lift: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 16px 40px rgba(255, 217, 166, .4), 0 0 90px rgba(255, 217, 166, .32); }
.btn:active { --lift: 1px; }
.btn__moon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b3170, #1d1838 70%); color: var(--moon); box-shadow: 0 0 0 2px rgba(35, 28, 72, .12), 0 0 18px rgba(185, 176, 239, .55) inset; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.btn__moon::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(35, 28, 72, .28); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s; }
.btn:hover .btn__moon { transform: rotate(-12deg); }
.btn:hover .btn__moon::after { transform: scale(1.18); opacity: 0; }
.btn__arrow { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.btn:hover .btn__arrow { transform: translateX(2px); }
.btn--nav { padding: 6px 20px 6px 6px; gap: 10px; font-size: 15px; }
.btn--nav .btn__moon { width: 32px; height: 32px; }
.btn__short { display: none; }

.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; background: var(--ground-deep); }
.stage { position: absolute; inset: 0; overflow: hidden; }
.stage__frame { position: absolute; left: 50%; top: 50%; width: max(100vw, 160svh); aspect-ratio: 1600 / 1000; transform: translate(-50%, -50%); transform-origin: 55% 52%; }
.stage__room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.moon { position: absolute; left: 56.4%; top: 52.2%; width: 13.8%; height: 33.4%; transform: translate(-50%, -50%); }
.moon__glow { position: absolute; inset: -70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 241, 218, .62), rgba(255, 217, 166, .26) 38%, rgba(185, 176, 239, .12) 62%, transparent 100%); mix-blend-mode: screen; opacity: .7; }
.moon__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.moon__ring { fill: none; stroke: var(--moon); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.moon__ring--draw { stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(255, 217, 166, .9)); }
.moon__ring--wave { opacity: 0; transform-origin: 100px 100px; transform-box: view-box; }

.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(18, 15, 38, .9) 0%, rgba(18, 15, 38, .7) 30%, rgba(18, 15, 38, .1) 58%, rgba(18, 15, 38, 0) 70%),
  linear-gradient(0deg, rgba(18, 15, 38, .85) 0%, rgba(18, 15, 38, 0) 40%),
  linear-gradient(180deg, rgba(18, 15, 38, .55) 0%, rgba(18, 15, 38, 0) 22%); }

.bella { position: absolute; z-index: 3; right: max(2vw, calc((100vw - 1300px) / 2)); bottom: 0; height: min(84svh, 980px); margin: 0; filter: drop-shadow(0 0 28px rgba(185, 176, 239, .35)) drop-shadow(0 30px 40px rgba(8, 6, 20, .45)); }
.bella img { width: auto; height: 100%; }
.bella::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -10px; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 6, 20, .6), transparent); z-index: -1; }

.hero__copy { position: absolute; z-index: 4; left: max(var(--gutter), calc((100vw - 1180px) / 2)); bottom: clamp(48px, 11svh, 120px); width: min(780px, 58vw); }
.hero__title { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(54px, min(7.6vw, 13svh), 120px); line-height: .96; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.hero__title span { display: block; }
.hero__b { color: var(--moon); text-shadow: 0 0 40px rgba(255, 217, 166, .35); }
.hero__line { max-width: 31ch; margin: 0 0 30px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-soft); }
.hero__line strong { color: var(--ink); font-weight: 700; }

@media (max-width: 960px) {
  .nav__links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 10px; border-radius: 26px; background: rgba(29, 24, 56, .94); border: 1px solid rgba(255, 241, 218, .14); }
  .nav__links a { display: block; padding: 14px 16px; font-size: 18px; }
  .nav.is-open .nav__links { display: flex; }
  .nav__menu { display: grid; }
  .btn--nav { margin-left: auto; }
}

@media (max-width: 760px) {
  .nav { top: 10px; gap: 8px; padding: 6px; }
  .nav__logo { padding: 4px 9px; }
  .nav__logo img { width: 88px; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
  .btn--nav { padding: 5px 15px 5px 5px; font-size: 14px; gap: 8px; }
  .btn--nav .btn__moon { width: 28px; height: 28px; }
  .stage__frame { width: max(100vw, 73.3svh); aspect-ratio: 720 / 982; transform-origin: 34% 40%; }
  .moon { left: 34.3%; top: 40.2%; width: 21.4%; height: 24.6%; }
  .hero { min-height: 640px; }
  .hero__shade { background:
    linear-gradient(0deg, rgba(18, 15, 38, .96) 0%, rgba(18, 15, 38, .82) 32%, rgba(18, 15, 38, 0) 60%),
    linear-gradient(180deg, rgba(18, 15, 38, .5) 0%, rgba(18, 15, 38, 0) 18%); }
  .bella { right: -6vw; bottom: 34svh; height: 50svh; }
  .hero__copy { left: 16px; right: 16px; bottom: 28px; width: auto; }
  .hero__title { font-size: clamp(46px, 13.4vw, 64px); margin-bottom: 12px; }
  .hero__line { margin-bottom: 22px; font-size: 17px; }
  .btn--hero { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn__moon, .btn__moon::after, .btn__arrow { transition: none; }
}
