/* ==========================================================================
   Quantum Donkey — The universe moves. The donkey doesn't.
   ========================================================================== */

:root {
  --space: #030713;
  --navy: #07112b;
  --blue: #087cff;
  --cyan: #45dfff;
  --violet: #9255ff;
  --lavender: #c5a8ff;
  --core: #ffe6a1;
  --text: #f4f7ff;
  --muted: #a9b8d7;

  --line: rgba(169, 184, 215, 0.14);
  --line-strong: rgba(169, 184, 215, 0.28);

  --font-display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --nav-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1320px;
  --section-pad: clamp(5rem, 9vw, 8.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  background: var(--space);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--space);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(146, 85, 255, 0.45);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

[tabindex="-1"]:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--space);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.15rem, 1.2rem + 4.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow__dot {
  display: none;
}

.fineprint {
  font-size: 0.82rem;
  color: rgba(169, 184, 215, 0.7);
}

.fineprint--center {
  text-align: center;
}

.line--accent {
  color: var(--blue);
}

/* ---------- Starfield (site-wide, fixed) ---------- */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.starfield__layer {
  position: absolute;
  inset: 0 0 auto 0;
  will-change: transform;
}

.starfield__layer--far {
  height: calc(100% + 320px);
  opacity: 0.55;
  background-size: 320px 320px;
  background-image:
    radial-gradient(1px 1px at 24px 38px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 142px 96px, #cfe2ff 50%, transparent 52%),
    radial-gradient(1px 1px at 268px 22px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 76px 182px, #c5a8ff 50%, transparent 52%),
    radial-gradient(1px 1px at 212px 238px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 300px 160px, #9fd8ff 50%, transparent 52%),
    radial-gradient(1px 1px at 168px 300px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 12px 270px, #dfe8ff 50%, transparent 52%);
  animation: star-drift 260s linear infinite;
}

.starfield__layer--near {
  height: calc(100% + 560px);
  opacity: 0.7;
  background-size: 560px 560px;
  background-image:
    radial-gradient(1.6px 1.6px at 90px 120px, #fff 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 420px 60px, #45dfff 50%, transparent 55%),
    radial-gradient(1.8px 1.8px at 300px 380px, #fff 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 520px 470px, #c5a8ff 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 160px 500px, #fff 50%, transparent 55%);
  --star-shift: -560px;
  animation: star-drift-near 220s linear infinite;
}

@keyframes star-drift {
  to { transform: translate3d(0, -320px, 0); }
}

@keyframes star-drift-near {
  to { transform: translate3d(0, -560px, 0); }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-h: 3rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--btn-h);
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.3s ease;
}

.btn svg {
  flex: none;
}

.btn--sm {
  --btn-h: 2.5rem;
  padding: 0 1rem;
  font-size: 0.7rem;
}

.btn--lg {
  --btn-h: 3.5rem;
  padding: 0 1.75rem;
  font-size: 0.82rem;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px -12px rgba(8, 124, 255, 0.7);
}

.btn--primary:hover {
  background: #1d8bff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 40px -12px rgba(146, 85, 255, 0.85);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(7, 17, 43, 0.35);
}

.btn--ghost:hover {
  border-color: rgba(197, 168, 255, 0.6);
  background: rgba(146, 85, 255, 0.12);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--text);
  color: var(--space);
}

.btn--light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -14px rgba(197, 168, 255, 0.8);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn__tag {
  display: inline-flex;
  align-items: center;
  height: 1.35rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(255, 230, 161, 0.16);
  color: var(--core);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.btn--primary .btn__tag {
  background: rgba(3, 7, 19, 0.35);
}

.btn[aria-disabled="true"] {
  border: 1px dashed rgba(169, 184, 215, 0.4);
  background: rgba(7, 17, 43, 0.4);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn[aria-disabled="true"] .btn__tag {
  background: rgba(255, 230, 161, 0.12);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-row--center {
  justify-content: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 1.6rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 230, 161, 0.3);
  border-radius: 999px;
  color: var(--core);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--core);
  box-shadow: 0 0 10px var(--core);
}

/* ---------- Navigation ---------- */

.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled,
.nav.menu-open {
  background: rgba(3, 7, 19, 0.74);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(197, 168, 255, 0.25), 0 6px 20px -6px rgba(8, 124, 255, 0.8);
}

.brand__word {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__links ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__links a:hover,
.nav__links a[aria-current] {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a[aria-current]::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.icon-link:hover {
  border-color: rgba(69, 223, 255, 0.5);
  background: rgba(69, 223, 255, 0.08);
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(7, 17, 43, 0.5);
  cursor: pointer;
}

.nav__toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.nav__toggle-bars span:first-child { top: 0; }
.nav__toggle-bars span:last-child { top: calc(100% - 1.6px); }

.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:first-child {
  top: calc(50% - 0.8px);
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:last-child {
  top: calc(50% - 0.8px);
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(1rem, 3vh, 2.5rem));
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  overflow: clip;
}

.hero__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__nebula {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero__nebula--blue {
  top: 2%;
  right: -12%;
  width: min(1100px, 95vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(8, 124, 255, 0.32) 0%, rgba(8, 124, 255, 0.12) 32%, transparent 66%);
  animation: nebula-a 34s ease-in-out infinite alternate;
}

.hero__nebula--violet {
  top: -28%;
  left: -18%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(146, 85, 255, 0.24) 0%, rgba(146, 85, 255, 0.08) 38%, transparent 66%);
  animation: nebula-b 40s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--space));
  pointer-events: none;
}

@keyframes nebula-a {
  to { transform: translate3d(-4%, 5%, 0) scale(1.08); }
}

@keyframes nebula-b {
  to { transform: translate3d(6%, 4%, 0) scale(1.12); }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  grid-template-areas:
    "head figure"
    "body figure";
  grid-template-rows: auto auto;
  column-gap: clamp(1rem, 3vw, 3.5rem);
  align-items: center;
}

.hero__head {
  grid-area: head;
  align-self: end;
}

.hero__body {
  grid-area: body;
  align-self: start;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.15vw, 3.8rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.03em;
}

.hero__title .line > span {
  display: inline-block;
  white-space: nowrap;
}

.hero__title .line--gap {
  margin-top: 0.32em;
}

.hero__title .line--accent > span {
  color: var(--blue);
}

.hero__lede {
  max-width: 30rem;
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero__body .cta-row {
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
}

.hero__id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.9rem;
  margin-top: clamp(1.6rem, 3.5vh, 2.5rem);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__ticker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.hero__sep {
  width: 1px;
  height: 1rem;
  background: var(--line-strong);
}

.hero__figure {
  grid-area: figure;
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
  margin-right: calc(var(--gutter) * -0.75);
}

.hero__float {
  position: relative;
  z-index: 2;
  width: 100%;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: auto;
  max-height: calc(100svh - var(--nav-h) - 3.5rem);
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(8, 124, 255, 0.28));
}

.hero__orbits {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 118%;
  height: auto;
  max-width: none;
  aspect-ratio: 1;
  transform: translate(-50%, -52%);
  overflow: visible;
  pointer-events: none;
}

.hero__ground {
  position: absolute;
  z-index: 1;
  left: 15%;
  right: 12%;
  bottom: -2%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(69, 223, 255, 0.28), rgba(8, 124, 255, 0.1) 45%, transparent 70%);
}

/* Shared orbit styling */

.orbit-spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spin 90s linear infinite;
}

.orbit-spin--slow { animation-duration: 120s; }
.orbit-spin--slower { animation-duration: 200s; }
.orbit-spin--reverse { animation-duration: 150s; animation-direction: reverse; }

.hero__orbits ellipse,
.hero__orbits circle,
.philosophy__orbits ellipse,
.chart__emblem ellipse {
  fill: none;
  stroke: rgba(69, 223, 255, 0.26);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.orbit-spin--reverse ellipse {
  stroke: rgba(197, 168, 255, 0.24);
}

.hero__orbits .orbit-faint,
.philosophy__orbits .orbit-faint {
  stroke: rgba(169, 184, 215, 0.08);
  stroke-dasharray: 2 10;
}

.hero__orbits .orbit-dot,
.philosophy__orbits .orbit-dot,
.chart__emblem .orbit-dot {
  fill: var(--cyan);
  stroke: none;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.orbit-dot--violet {
  fill: var(--lavender) !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hero entrance */

@keyframes line-up {
  from { transform: translate3d(0, 108%, 0); }
  to { transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes donkey-enter {
  from { opacity: 0; transform: translate3d(0, 48px, 0) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes donkey-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.js .hero__title .line > span {
  transform: translate3d(0, 108%, 0);
  animation: line-up 1s var(--ease-out) forwards;
}

.js .hero__title .line:nth-child(1) > span { animation-delay: 0.15s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 0.25s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: 0.5s; }
.js .hero__title .line:nth-child(4) > span { animation-delay: 0.6s; }

.js .hero__eyebrow,
.js .hero__lede,
.js .hero__body .cta-row,
.js .hero__id {
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) forwards;
}

.js .hero__eyebrow { animation-delay: 0.05s; }
.js .hero__lede { animation-delay: 0.85s; }
.js .hero__body .cta-row { animation-delay: 0.98s; }
.js .hero__id { animation-delay: 1.1s; }

.js .hero__figure {
  opacity: 0;
  animation: donkey-enter 1.6s var(--ease-out) 0.3s forwards;
}

.hero__float {
  animation: donkey-float 8s ease-in-out 2s infinite;
}

.js .hero__orbits {
  opacity: 0;
  animation: fade-in 2.4s ease 0.8s forwards;
}

/* ---------- Drift band ---------- */

.drift {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: 1.15rem;
  border-block: 1px solid var(--line);
  background: rgba(7, 17, 43, 0.45);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.drift__track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  animation: drift 70s linear infinite;
  will-change: transform;
}

.drift__track span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(169, 184, 215, 0.75);
  white-space: nowrap;
}

.drift__track i {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

@keyframes drift {
  to { transform: translate3d(calc(-50% - 1.125rem), 0, 0); }
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0ms),
    transform 1.1s var(--ease-out) var(--d, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.reveal-line {
  display: block;
}

/* ---------- Origin ---------- */

.origin__header {
  max-width: 62rem;
}

.origin__title .reveal-line--muted {
  color: rgba(197, 168, 255, 0.5);
}

.origin__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3.5rem, 8vw, 7rem);
}

.origin__col--right {
  text-align: right;
}

.origin__col--right .origin__text {
  margin-left: auto;
}

.origin__index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.origin__giant {
  margin-block: 0.6rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.9vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(8, 124, 255, 0.55) 70%, rgba(8, 124, 255, 0.15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.origin__col--right .origin__giant {
  background-image: linear-gradient(180deg, var(--lavender) 0%, rgba(146, 85, 255, 0.6) 70%, rgba(146, 85, 255, 0.15) 100%);
}

.origin__text {
  max-width: 24rem;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--muted);
}

.origin__text strong {
  color: var(--text);
  font-weight: 700;
}

.origin__axis {
  position: relative;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

.origin__axis span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--space);
  border: 1px solid var(--lavender);
  transform: translate(-50%, -50%);
}

.origin__converge {
  height: clamp(70px, 10vw, 150px);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.origin__converge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.converge-path {
  fill: none;
  stroke: rgba(69, 223, 255, 0.55);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.converge-path--violet {
  stroke: rgba(197, 168, 255, 0.6);
}

.js .origin__converge .converge-path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease-out) 0.2s;
}

.js .origin__converge.is-visible .converge-path {
  stroke-dashoffset: 0;
}

.origin__merge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.origin__node {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.origin__node img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(197, 168, 255, 0.4), 0 0 60px -6px rgba(8, 124, 255, 0.8);
}

.origin__node::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(197, 168, 255, 0.35);
  animation: spin 40s linear infinite;
}

.origin__statement {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--muted);
}

.origin__punch {
  margin-block: 1.1rem 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.origin__coda {
  display: grid;
  gap: 0.15rem;
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  color: var(--muted);
}

.origin__coda span:last-child {
  margin-top: 0.4rem;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Philosophy ---------- */

.philosophy {
  display: grid;
  place-items: center;
  padding-block: clamp(6rem, 11vw, 10rem);
  overflow: clip;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(146, 85, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 55%, rgba(8, 124, 255, 0.12), transparent 75%);
}

.philosophy__field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.philosophy__orbits {
  width: min(1250px, 150vw);
  max-width: none;
  aspect-ratio: 1;
  overflow: visible;
}

.philosophy__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.philosophy__title {
  font-size: clamp(2.1rem, 0.8rem + 5.2vw, 6rem);
}

.philosophy__title-accent {
  color: transparent;
  background: linear-gradient(100deg, var(--cyan), var(--blue) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
}

.philosophy__lines {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--muted);
}

.philosophy__stand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.core-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff8e1;
  box-shadow: 0 0 0 4px rgba(255, 230, 161, 0.18), 0 0 24px 6px rgba(255, 230, 161, 0.55);
}

/* ---------- Contract & How to Buy ---------- */

.buy {
  background: linear-gradient(to bottom, transparent, rgba(7, 17, 43, 0.7) 18%, rgba(7, 17, 43, 0.7) 82%, transparent);
}

.buy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.buy__title {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ca {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(7, 17, 43, 0.9), rgba(3, 7, 19, 0.85));
}

.ca__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ca__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.ca__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 7, 19, 0.7);
}

.ca__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.05rem);
  color: var(--text);
  user-select: all;
}

.ca__value[data-state="pending"] {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lavender);
  user-select: none;
}

.ca__copy {
  flex: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
}

.ca__copy:hover:not(:disabled) {
  background: #1d8bff;
}

.ca__copy:active:not(:disabled) {
  transform: scale(0.96);
}

.ca__copy:disabled {
  background: rgba(169, 184, 215, 0.1);
  color: rgba(169, 184, 215, 0.6);
  cursor: not-allowed;
}

.ca__icon--check {
  display: none;
}

.ca.is-copied .ca__copy {
  background: #0ea5a0;
  background: color-mix(in srgb, var(--cyan) 30%, #0a3d6b);
  animation: pop 0.4s var(--ease-out);
}

.ca.is-copied .ca__icon--copy { display: none; }
.ca.is-copied .ca__icon--check { display: block; }

@keyframes pop {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.ca__hint {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.buy__cta {
  margin-top: 1.5rem;
}

.steps {
  counter-reset: step;
  padding-top: clamp(0rem, 2vw, 1.5rem);
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.1rem, 2.5vw, 2rem);
  padding-block: clamp(1.5rem, 3vw, 2.1rem);
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  min-width: 3ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(69, 223, 255, 0.55);
}

.step__title {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.step p {
  color: var(--muted);
}

/* ---------- Chart ---------- */

.chart__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.chart__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 26px);
  background: linear-gradient(170deg, var(--navy), var(--space) 70%);
  isolation: isolate;
}

.chart__atmos {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 40%, rgba(8, 124, 255, 0.22), transparent 38%),
    radial-gradient(circle at 70% 60%, rgba(146, 85, 255, 0.2), transparent 40%);
  animation: atmos 48s ease-in-out infinite alternate;
  will-change: transform;
}

.chart__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(169, 184, 215, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 184, 215, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.chart__frame.is-live::after,
.chart__frame.is-live .chart__atmos {
  display: none;
}

@keyframes atmos {
  to { transform: translate3d(6%, -4%, 0) rotate(8deg); }
}

.chart__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.chart__emblem {
  width: clamp(120px, 14vw, 180px);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.chart__emblem svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart__glyph {
  fill: none;
  stroke: var(--core);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 230, 161, 0.6));
}

.chart__msg {
  max-width: 18em;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.8rem + 2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.chart__sub {
  max-width: 32rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.chart__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Community ---------- */

.community {
  position: relative;
  padding-bottom: var(--section-pad);
  overflow: clip;
}

.community__banner {
  position: relative;
  height: clamp(320px, 38vw, 620px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 62%, transparent 100%);
}

.community__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.85;
}

.community__inner {
  position: relative;
  z-index: 1;
  margin-top: clamp(-5.5rem, -5vw, -2.5rem);
  text-align: center;
}

.community__title {
  font-size: clamp(2.2rem, 0.9rem + 5.4vw, 6.4rem);
  text-shadow: 0 6px 40px rgba(3, 7, 19, 0.85);
}

.community__text {
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--muted);
}

.community .cta-row {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.community .fineprint {
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */

.footer {
  overflow: clip;
  padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 19, 0.6);
}

.footer__glow {
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: min(1100px, 140vw);
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(8, 124, 255, 0.22), rgba(146, 85, 255, 0.1) 40%, transparent 70%);
  transform: translateX(-50%);
  animation: glow-breathe 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glow-breathe {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.25rem 2rem;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(197, 168, 255, 0.25), 0 10px 30px -10px rgba(8, 124, 255, 0.8);
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.footer__meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 2rem;
}

.footer__nav a {
  padding: 0.35rem 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--text);
}

.footer__disclaimer {
  grid-column: 1 / -1;
  max-width: 62rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(169, 184, 215, 0.8);
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: rgba(169, 184, 215, 0.6);
}

/* ---------- Pause ambient motion off-screen ---------- */

.is-offscreen .orbit-spin,
.is-offscreen .hero__nebula,
.is-offscreen .hero__float,
.is-offscreen .drift__track,
.is-offscreen .chart__atmos,
.is-offscreen .footer__glow {
  animation-play-state: paused;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav__links ul {
    gap: 1.4rem;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 68px;
  }

  .nav__links,
  .nav__actions > .icon-link,
  .nav__actions > .btn {
    display: none;
  }

  .nav__toggle {
    display: inline-grid;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.75rem;
    border-bottom: 1px solid var(--line);
    background: var(--space);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -10px, 0);
    transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0s;
  }

  .mobile-menu__links li + li {
    border-top: 1px solid var(--line);
  }

  .mobile-menu__links a {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.01em;
  }

  .mobile-menu__actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .mobile-menu__actions .btn {
    --btn-h: 3.25rem;
  }

  /* Hero stacks: headline, donkey, copy */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2.25rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "figure"
      "body";
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 4.6rem);
  }

  .hero__figure {
    width: calc(100% + var(--gutter) * 2);
    max-width: 640px;
    margin: clamp(0.5rem, 3vw, 1.5rem) calc(var(--gutter) * -1) 0;
    justify-self: center;
  }

  .hero__img {
    max-height: none;
  }

  .hero__orbits {
    width: 100%;
  }

  .hero__orbits .orbit-spin--slower {
    display: none;
  }

  .hero__nebula--blue {
    top: 22%;
    right: -40%;
    width: 140vw;
  }

  .hero__nebula--violet {
    top: -10%;
    left: -50%;
    width: 120vw;
  }

  .starfield__layer--near {
    display: none;
  }

  /* Origin stacks into a single column */
  .origin__split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .origin__giant {
    font-size: clamp(2.6rem, 12vw, 5.5rem);
  }

  .origin__axis {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
  }

  .buy__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart__frame {
    aspect-ratio: auto;
    height: clamp(440px, 115vw, 620px);
  }

  .chart__frame.is-live {
    height: clamp(520px, 140vw, 720px);
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__nav {
    justify-content: flex-start;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .chart__frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .btn--lg {
    --btn-h: 3.25rem;
    padding: 0 1.3rem;
    font-size: 0.76rem;
  }

  .hero__body .cta-row .btn,
  .community .cta-row .btn {
    flex: 1 1 100%;
  }

  .hero__body .cta-row .btn--ghost {
    flex-basis: 100%;
  }

  .brand__word {
    font-size: 0.84rem;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .ca__row {
    flex-wrap: wrap;
    padding: 0.85rem;
  }

  .ca__value {
    flex-basis: 100%;
  }

  .ca__copy {
    width: 100%;
    justify-content: center;
  }

  .philosophy {
    min-height: auto;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .starfield__layer,
  .hero__nebula,
  .hero__float,
  .orbit-spin,
  .drift__track,
  .chart__atmos,
  .footer__glow,
  .origin__node::before {
    animation: none !important;
  }

  .js .hero__title .line > span,
  .js .hero__eyebrow,
  .js .hero__lede,
  .js .hero__body .cta-row,
  .js .hero__id,
  .js .hero__figure,
  .js .hero__orbits,
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .js .origin__converge .converge-path {
    stroke-dashoffset: 0;
  }
}
