:root {
  --ink: #14208a;
  --ink-soft: #4a52aa;
  --ink-faint: rgba(20, 32, 138, .62);
  --lavender: #c7c3ff;
  --violet: #8f67ff;
  --pearl: #fadff1;
  --sky: #e8efff;
  --peach: #ffedd6;
  --white: #fff;
  --mist: #fafbff;
  --line: rgba(20, 32, 138, .14);
  --shadow: 0 28px 80px rgba(58, 58, 150, .12);
  --serif: Lora, "Iowan Old Style", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("./assets/fonts/lora-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("./assets/fonts/lora-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 12%, rgba(250, 223, 241, .34), transparent 24rem),
    radial-gradient(circle at 16% 38%, rgba(232, 239, 255, .6), transparent 28rem),
    var(--white);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}
body.is-dragging { cursor: grabbing; user-select: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { color: var(--white); background: var(--ink); }

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.skip:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  padding: .9rem clamp(1rem, 3.5vw, 3rem);
  border-bottom: 1px solid rgba(20, 32, 138, .08);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: max-content;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}
.brand img, .footer-brand img {
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 2.65rem;
  object-fit: contain;
}
.desktop-nav, .nav-actions, footer nav {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.75rem);
}
.desktop-nav a, footer a:not(.footer-brand), .inline-links a:not(.button), .login-link {
  color: var(--ink-soft);
  font-size: .92rem;
  transition: color 180ms var(--ease-out);
}
.login-link { padding: .45rem .1rem; }
.desktop-nav a[aria-current], .mobile-menu a[aria-current] { color: var(--ink); }
.early-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  transition: transform 160ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.button.primary, .early-link {
  color: var(--white);
  border: 0;
  background: linear-gradient(135deg, #5c56cf, #14208a);
  box-shadow: 0 14px 34px rgba(40, 54, 166, .24);
}
.login-link:focus-visible { outline: 2px solid rgba(40, 54, 166, .34); outline-offset: 4px; }
.button:active, .early-link:active, .discover-grid button:active { transform: scale(.97); }
.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}
.menu-button span {
  display: block;
  width: 1.05rem;
  height: 1px;
  margin: .25rem auto;
  background: var(--ink);
}
.mobile-menu {
  position: fixed;
  inset: 4.9rem 1rem auto;
  z-index: 11;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}
.mobile-menu a {
  display: block;
  padding: .9rem;
  color: var(--ink-soft);
}

.site-shell {
  min-height: calc(100vh - 4.75rem);
  overflow: hidden;
}
.page-track {
  display: flex;
  width: max-content;
  min-height: calc(100vh - 4.75rem);
  transition: transform 620ms var(--ease-in-out);
  will-change: transform;
  touch-action: pan-y;
}
.page-track.dragging { transition: none; }
.page {
  flex: 0 0 100vw;
  width: 100vw;
  padding-left: max(1rem, calc((100vw - 1180px) / 2));
  padding-right: max(1rem, calc((100vw - 1180px) / 2));
}
.page:not(.active) { max-height: calc(100vh - 4.75rem); overflow: hidden; }
.home-page.active { max-height: none; overflow: visible; }

.hero {
  min-height: calc(100vh - 4.75rem);
  display: grid;
  grid-template-columns: minmax(18rem, .86fr) minmax(19rem, 1.14fr);
  align-items: center;
  gap: clamp(1rem, 6vw, 6rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.moon-stage {
  position: relative;
  justify-self: center;
  width: min(38vw, 28rem);
  aspect-ratio: 1;
}
.moon-stage::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 223, 241, .32) 0%, rgba(199, 195, 255, .26) 36%, transparent 68%);
  filter: blur(30px);
}
.moon-stage img {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 12px rgba(250, 223, 241, .34)) drop-shadow(0 28px 58px rgba(143, 103, 255, .16));
}
.hero-copy { max-width: 42rem; }
.brand-kicker {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .76rem;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(3.6rem, 7.2vw, 6.25rem);
  line-height: .95;
}
h2 {
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: 1.08;
}
h3 {
  margin-bottom: .65rem;
  font-size: .96rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-line {
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 2.55rem);
  line-height: 1.3;
}
.hero-subline, .lead, .section-copy p, .detail-page p {
  color: var(--ink-faint);
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.72;
}
.hero-subline {
  max-width: 35rem;
  margin-bottom: 2rem;
}

.fragment-section, .status-section {
  min-height: 78vh;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 5rem 0;
}
.section-copy { max-width: 46rem; }
.section-copy.centered {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
}
.fragment-visual {
  position: relative;
  min-height: 27rem;
  display: grid;
  place-items: center;
}
.fragment-visual::before, .fragment-visual::after, .world::before {
  content: "";
  position: absolute;
  border: 1px solid rgba(40, 54, 166, .16);
  border-radius: 50%;
}
.fragment-visual::before { width: 21rem; height: 21rem; }
.fragment-visual::after {
  width: 8rem;
  height: 8rem;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 24px 72px rgba(104, 97, 205, .09);
}
.fragment-visual span, .world span {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sky), var(--lavender));
}
.fragment-visual span:nth-child(1) { transform: translate(-9rem, -7rem); }
.fragment-visual span:nth-child(2) { transform: translate(8rem, -5.5rem); }
.fragment-visual span:nth-child(3) { transform: translate(-8rem, 7rem); }
.fragment-visual span:nth-child(4) { transform: translate(9rem, 7.5rem); }
.fragment-visual strong {
  position: relative;
  z-index: 1;
  max-width: 13rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.promise-section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.promise-list, .founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.promise-list article, .status-list article, .roadmap-map article, .timeline article, .founders article, .reveal-panel {
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 52px rgba(62, 66, 140, .07);
}
.glyph-atlas {
  padding: 5rem 0 4rem;
  border-top: 1px solid var(--line);
}
.section-heading { max-width: 42rem; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.15rem, 4.5vw, 4rem); }
.glyph-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.glyph-row > div {
  display: grid;
  justify-items: center;
  gap: .9rem;
  min-width: 0;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .66rem;
  text-align: center;
}
.glyph-row .glyph { margin-bottom: 0; }
.glyph {
  position: relative;
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.6rem;
}
.glyph.entity {
  background: linear-gradient(145deg, #9f96ff, #eeecff);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.glyph.crystal {
  background: linear-gradient(160deg, #f8f9ff, #b7adff);
  clip-path: polygon(50% 0, 86% 30%, 70% 100%, 30% 100%, 14% 30%);
}
.glyph.ring {
  border: .55rem solid var(--lavender);
  border-radius: 50%;
}
.glyph.identity {
  border: .35rem solid var(--lavender);
  border-radius: 50%;
  box-shadow: inset 0 0 0 .55rem var(--white), inset 0 0 0 .78rem #a89fff;
}
.glyph.connection::before,
.glyph.connection::after {
  content: "";
  position: absolute;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 1.55rem 1.95rem 0 var(--lavender), -1.55rem 1.95rem 0 var(--lavender);
  left: 1.2rem;
  top: .2rem;
}
.glyph.connection::after {
  width: 2.2rem;
  height: 2.2rem;
  left: .52rem;
  top: .82rem;
  z-index: -1;
  border: .11rem solid var(--lavender);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.glyph.evolution {
  width: 2.15rem;
  margin-left: .55rem;
  border-radius: 60% 20% 60% 20%;
  background: linear-gradient(155deg, var(--violet), var(--pearl) 48%, var(--lavender));
  transform: skewY(-18deg) rotate(22deg);
}
.glyph.evolution::after {
  content: "";
  position: absolute;
  inset: 1.05rem .55rem;
  border-left: .1rem solid var(--white);
  border-radius: 50%;
}
.glyph.freedom {
  width: 0;
  height: 0;
  margin: .55rem 1.1rem 1.05rem;
  border-left: 1rem solid transparent;
  border-right: 1rem solid transparent;
  border-bottom: 2.8rem solid var(--lavender);
  transform: rotate(-29deg);
}
.glyph.freedom::after {
  content: "";
  position: absolute;
  left: .05rem;
  top: .15rem;
  width: .85rem;
  height: 2.6rem;
  background: var(--violet);
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  transform: rotate(58deg);
}

.community-glimpse {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 5rem 0;
}
.world {
  position: relative;
  width: min(28vw, 17rem);
  aspect-ratio: 1;
}
.world::before { inset: 14%; }
.world span:nth-child(1) { left: 42%; top: 3%; }
.world span:nth-child(2) { left: 6%; top: 56%; }
.world span:nth-child(3) { right: 5%; top: 58%; }
.second-world { opacity: .7; }
.campfire {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
}
.campfire i {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  width: 1.4rem;
  height: 3.9rem;
  border-radius: 100% 0 100% 100%;
  transform-origin: bottom center;
  background: linear-gradient(180deg, var(--peach), var(--lavender));
}
.campfire i:nth-child(1) { transform: translateX(-50%) rotate(-26deg); }
.campfire i:nth-child(2) { transform: translateX(-50%) scale(.85); background: linear-gradient(180deg, #fff, #d9d5ff); }
.campfire i:nth-child(3) { transform: translateX(-50%) rotate(26deg); }

.status-list {
  display: grid;
  gap: .85rem;
}
.status-list b, .roadmap-map b, time {
  display: block;
  margin-bottom: .55rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
}
.status-list article:nth-child(2) { opacity: .78; }
.status-list article:nth-child(3) { opacity: .58; }

.detail-page {
  min-height: calc(100vh - 4.75rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.detail-page h1 {
  max-width: 62rem;
  font-size: clamp(3.4rem, 8vw, 7rem);
}
.lead { max-width: 42rem; }
.discover-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 3rem 0 1rem;
}
.discover-grid button {
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.discover-grid button.active { color: var(--white); background: var(--ink); }
.reveal-panel {
  max-width: 47rem;
  margin-top: 1rem;
}
.reveal-panel h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.window-line {
  margin-top: 4rem;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 4rem) !important;
  line-height: 1.3 !important;
}
.campfire-focus {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  margin: 4rem 0;
}
.campfire.big { width: 9rem; height: 9rem; }
.campfire.big i { height: 6rem; width: 2.2rem; }
.participation {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.participation span {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}
.roadmap-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 4rem 0 2rem;
}
.roadmap-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
}
.roadmap-map article[data-state="next"] { opacity: .8; }
.roadmap-map article[data-state="later"] { opacity: .66; }
.roadmap-map article[data-state="exploring"] { opacity: .48; border-style: dashed; }
.timeline {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 3rem 0;
}
.access-form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin: 2.5rem 0 1rem;
}
.access-form label {
  display: grid;
  gap: .45rem;
  color: var(--ink-soft);
}
input, textarea {
  width: 100%;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, .84);
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(40, 54, 166, .34);
  outline-offset: 3px;
}
.invite-link { width: fit-content; color: var(--ink-soft); }
.vision-lines {
  display: grid;
  gap: 1.4rem;
  max-width: 54rem;
  margin-top: 4rem;
}
.vision-lines p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 1.3;
}
.founders { grid-template-columns: repeat(2, 1fr); max-width: 42rem; }
.manifesto { max-width: 42rem; margin-top: 3rem; }

footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
footer p { margin: 0; color: var(--ink-soft); font-size: .86rem; }

@media (prefers-reduced-motion: no-preference) {
  .moon-stage img { animation: moon-breathe 7s ease-in-out infinite; }
  .fragment-visual span { animation: drift 9s ease-in-out infinite alternate; }
  .fragment-visual span:nth-child(2n) { animation-duration: 11s; }
  @keyframes moon-breathe { 50% { transform: translateY(-5px); } }
  @keyframes drift { 100% { margin-top: .8rem; margin-left: .45rem; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-track { transition: none; }
  .moon-stage img, .fragment-visual span { animation: none; }
}
@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover,
  footer a:hover,
  .inline-links a:not(.button):hover { color: var(--ink); }
  .early-link:hover,
  .button:hover,
  .discover-grid button:hover { transform: translateY(-1px); }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .login-link { display: none; }
  .site-header { min-height: 4.35rem; padding: .78rem 1rem; }
  .nav-actions .early-link { display: none; }
  .brand span { font-size: 1.2rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 2rem 0 3.5rem;
  }
  .moon-stage { width: min(70vw, 20rem); }
  .fragment-section, .status-section, .community-glimpse {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 4rem 0;
  }
  .fragment-visual { min-height: 20rem; transform: scale(.86); }
  .promise-list, .roadmap-map, .founders { grid-template-columns: 1fr; }
  .glyph-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2rem; }
  .community-glimpse .world { width: 11rem; justify-self: center; }
  .section-copy.centered { text-align: left; }
  .campfire { justify-self: center; }
  .campfire-focus, footer {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 { font-size: clamp(2.9rem, 14vw, 4rem); }
  .hero-line { font-size: clamp(1.32rem, 7.4vw, 2.05rem); }
  .hero-subline { margin-bottom: 1.55rem; }
  .hero-copy { width: 100%; overflow: hidden; }
}
