:root {
  --bg: #000;
  --fg: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --glow: rgba(255, 255, 255, 0.55);
  --sans: Bahnschrift, "DIN Alternate", "Helvetica Neue", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --cn: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", Bahnschrift, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  min-height: 100%;
}

body {
  overflow-x: hidden;
  cursor: none;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: none;
}

.field,
.grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.field {
  z-index: 0;
}

.grain {
  z-index: 8;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  z-index: 7;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  border: 1px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s, mix-blend-mode 0.25s;
  mix-blend-mode: difference;
}

.cursor span {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

.cursor.is-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
}

.cursor.is-link span {
  opacity: 0;
}

@media (pointer: coarse) {
  body,
  button {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  width: min(420px, 86vw);
}

.loader-mark {
  width: 64px;
  margin: 0 auto 28px;
  animation: pulse 1.8s ease-in-out infinite;
}

.loader-kicker,
.loader-status {
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--muted);
}

.loader-title {
  font-size: clamp(42px, 8vw, 72px);
  letter-spacing: 0.28em;
  font-weight: 500;
  margin: 18px 0 32px;
}

.loader-bar {
  height: 1px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  animation: load 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  mix-blend-mode: difference;
  transition: transform 0.4s ease;
}

.nav.is-hidden {
  transform: translateY(-120%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.32em;
  font-size: 13px;
}

.nav-brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.22em;
}

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.22em;
  border: 1px solid #fff;
  padding: 9px 16px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 18px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
}

.nav-toggle span:first-child {
  top: 4px;
}

.nav-toggle span:last-child {
  bottom: 4px;
}

main,
footer {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  padding: 110px 48px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-telemetry {
  display: flex;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  flex: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-bottom: 22px;
}

.eyebrow .line {
  width: 42px;
  height: 1px;
  background: #fff;
  display: inline-block;
}

.hero h1 {
  position: relative;
  font-size: clamp(56px, 11vw, 148px);
  line-height: 0.82;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 .h-ghost {
  display: block;
  color: #fff;
}

.hero h1 .h-fill {
  display: none;
}

.hero-cn {
  font-family: var(--cn);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.34em;
  margin-bottom: 22px;
}

.hero-lead {
  font-family: var(--cn);
  max-width: 540px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.16em;
  border: 1px solid #fff;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: #fff;
  color: #000;
}

.btn-ghost {
  background: transparent;
}

.hero-stage {
  position: relative;
  height: min(72vh, 680px);
  display: grid;
  place-items: center;
}

.orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atom {
  width: min(420px, 70%);
  aspect-ratio: 1;
  position: relative;
  perspective: 900px;
  transform-style: preserve-3d;
}

.atom-core {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
  z-index: 4;
}

.atom-core img {
  width: 58%;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.45));
  animation: float 5.5s ease-in-out infinite;
}

.core-pulse {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: pulseRing 3.2s ease-out infinite;
}

.atom-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.atom-ring i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 16px #fff, 0 0 32px rgba(255, 255, 255, 0.6);
  top: 50%;
  left: 0;
  margin-top: -3.5px;
}

.atom-ring i:nth-child(2) {
  left: auto;
  right: 12%;
  top: 18%;
}

.r1 {
  animation: orbitA 18s linear infinite;
}

.r2 {
  inset: 2%;
  animation: orbitB 26s linear infinite;
  border-color: rgba(255, 255, 255, 0.16);
}

.r3 {
  inset: 14%;
  animation: orbitC 14s linear infinite;
}

.r4 {
  inset: -6%;
  border-color: rgba(255, 255, 255, 0.1);
  animation: orbitD 32s linear infinite;
}

.orbit-labels {
  position: absolute;
  inset: 8%;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  pointer-events: none;
}

.ol {
  position: absolute;
}

.ol-n { top: 0; left: 50%; transform: translateX(-50%); }
.ol-s { bottom: 0; left: 50%; transform: translateX(-50%); }
.ol-e { right: 0; top: 50%; transform: translateY(-50%); }
.ol-w { left: 0; top: 50%; transform: translateY(-50%); }

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
  width: max-content;
}

.scroll-hint b {
  width: 1px;
  height: 42px;
  background: linear-gradient(#fff, transparent);
  display: block;
  animation: drop 1.6s ease-in-out infinite;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}

.marquee {
  overflow: hidden;
}

.marquee div {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.42);
}

.chapter,
.lead,
.interact,
.habitats,
.close,
.footer {
  scroll-margin-top: 88px;
}

.chapter,
.lead,
.interact,
.habitats,
.close {
  padding: 120px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.chapter-index {
  display: flex;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--muted);
  margin-bottom: 48px;
}

.chapter-index span:first-child {
  color: #fff;
}

.chapter h2,
.lead h2,
.interact h2,
.habitats h2,
.close h2 {
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.chapter h2 em,
.lead h2 em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.48);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  color: transparent;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  font-family: var(--cn);
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
  font-weight: 300;
  max-width: 1000px;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.stats li {
  display: grid;
  gap: 10px;
}

.stats strong {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.stats span {
  font-family: var(--cn);
  font-size: 22px;
}

.stats b {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.lead {
  position: relative;
  max-width: none;
  padding-left: 48px;
  padding-right: 48px;
}

.lead-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.lead-bg span {
  font-size: 22vw;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  line-height: 0.8;
  user-select: none;
}

.lead-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.lead-glyph {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.lead-glyph strong {
  font-size: clamp(120px, 16vw, 220px);
  font-weight: 500;
  font-family: var(--cn);
  z-index: 2;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.18);
}

.lead-glyph p {
  position: absolute;
  bottom: 12%;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--muted);
}

.glyph-rings span {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.glyph-rings span:nth-child(2) {
  inset: 0;
  animation-duration: 28s;
  animation-direction: reverse;
  transform: rotateX(65deg);
}

.glyph-rings span:nth-child(3) {
  inset: 18%;
  animation-duration: 14s;
  border-color: rgba(255, 255, 255, 0.28);
}

.lead-copy {
  position: relative;
}

.lead-text {
  font-family: var(--cn);
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 18px;
}

.meta-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  max-width: 560px;
}

.meta-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 14px;
}

.meta-list dt {
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--muted);
}

.meta-list a {
  border-bottom: 1px solid var(--line-strong);
}

.interact-head,
.habitats-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}

.interact-head p,
.habitats-head p,
.close p {
  font-family: var(--cn);
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 300;
}

.quantum-board {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.qb-stage {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 58%);
}

.system-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.qb-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  letter-spacing: 0.28em;
  z-index: 2;
}

.qb-core small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}

.qb-core b {
  font-size: 22px;
  font-weight: 500;
}

.qb-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.qb-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.qb-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.qb-list span {
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 12px;
  padding-top: 4px;
}

.qb-list h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.qb-list p {
  font-family: var(--cn);
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
  font-weight: 300;
}

.habitat {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.habitat.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.habitat.reverse .habitat-copy {
  order: 2;
}

.habitat-copy span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 16px;
}

.habitat-copy h3 {
  font-family: var(--cn);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  margin-bottom: 16px;
}

.habitat-copy p,
.habitat-copy li {
  font-family: var(--cn);
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}

.habitat-copy ul {
  margin-top: 18px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.habitat figure {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #070707;
}

.habitat img {
  width: 100%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.88;
  transition: filter 0.5s ease, opacity 0.5s ease, transform 0.8s ease;
}

.habitat:hover img {
  filter: grayscale(0.35) contrast(1.08);
  opacity: 1;
  transform: scale(1.03);
}

.close {
  text-align: center;
  padding-top: 140px;
  padding-bottom: 140px;
}

.close .eyebrow,
.close h2,
.close p {
  justify-content: center;
}

.close .eyebrow {
  display: inline-flex;
}

.close p {
  max-width: 640px;
  margin: 0 auto;
}

.close-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.footer {
  padding: 28px 48px 32px;
  border-top: 1px solid var(--line);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--cn);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-bar .dot {
  margin: 0 8px;
}

.footer-bar a:hover {
  color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitA {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateZ(360deg); }
}

@keyframes orbitB {
  from { transform: rotateX(68deg) rotateY(62deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateY(62deg) rotateZ(-360deg); }
}

@keyframes orbitC {
  from { transform: rotateX(72deg) rotateY(-48deg) rotateZ(0deg); }
  to { transform: rotateX(72deg) rotateY(-48deg) rotateZ(360deg); }
}

@keyframes orbitD {
  from { transform: rotateX(66deg) rotateY(18deg) rotateZ(80deg); }
  to { transform: rotateX(66deg) rotateY(18deg) rotateZ(440deg); }
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.96);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes drop {
  0%,
  100% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  70% {
    transform: scaleY(0.2);
    opacity: 0.2;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes load {
  to {
    width: 100%;
  }
}

@keyframes revealName {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 980px) {
  .nav {
    mix-blend-mode: normal;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #000;
    padding: 28px 36px 40px;
    gap: 22px;
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .chapter,
  .lead,
  .interact,
  .habitats,
  .close,
  .footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-grid,
  .split,
  .stats,
  .lead-grid,
  .interact-head,
  .habitats-head,
  .quantum-board,
  .habitat,
  .habitat.reverse {
    grid-template-columns: 1fr;
  }

  .habitat.reverse .habitat-copy {
    order: 0;
  }

  .hero-stage {
    height: 300px;
  }

  .atom {
    width: min(280px, 72%);
  }

  .hero-telemetry {
    display: none;
  }

  .lead-bg span {
    font-size: 38vw;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
