:root {
  --bg: oklch(0.98 0.004 95);
  --ink: oklch(0.12 0.01 95);
  --muted: oklch(0.48 0.015 95);
  --line: oklch(0.83 0.01 95);
  --gold: oklch(0.78 0.15 82);
  --green: oklch(0.39 0.07 155);
  --seal: oklch(0.42 0.12 31);
  --ember: oklch(0.72 0.13 58);
  --soft: oklch(0.94 0.01 95);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  right: auto;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid color-mix(in oklch, white 14%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, black 72%, transparent);
  color: white;
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.home-mark {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.home-mark::before,
.home-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 8px;
  height: 16px;
  border-radius: 2px;
  background: var(--gold);
  transform: skewX(-12deg);
}

.home-mark::before {
  left: 2px;
}

.home-mark::after {
  right: 2px;
}

.nav nav {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  font-size: 14px;
}

.nav nav a {
  color: oklch(0.78 0 0);
  border-radius: 999px;
  padding: 8px 12px;
  transition: color 180ms ease, transform 180ms ease;
}

.nav a.is-active {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--gold) 38%, transparent);
  transform: translateY(-1px);
}

.brand.is-active .home-mark::before,
.brand.is-active .home-mark::after {
  background: var(--ink);
}

.snap {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.snap.is-programmatic {
  scroll-snap-type: none;
}

.panel {
  min-height: 100vh;
  scroll-snap-align: start;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  padding: 96px clamp(22px, 7vw, 140px) 64px;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in oklch, var(--gold) 42%, transparent), transparent 24%),
    linear-gradient(135deg, oklch(0.08 0.008 95), oklch(0.15 0.018 120));
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49%, color-mix(in oklch, var(--gold) 42%, transparent) 49.1% 49.3%, transparent 49.4%),
    linear-gradient(0deg, transparent 0 58%, color-mix(in oklch, var(--gold) 28%, transparent) 58.1% 58.25%, transparent 58.35%);
  opacity: 0.38;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -22%;
  width: 72%;
  height: 72%;
  background:
    radial-gradient(ellipse at 68% 62%, color-mix(in oklch, var(--gold) 62%, transparent), transparent 18%),
    radial-gradient(ellipse at 44% 72%, color-mix(in oklch, var(--green) 48%, transparent), transparent 24%),
    linear-gradient(115deg, transparent 0 36%, color-mix(in oklch, var(--gold) 34%, transparent) 44%, transparent 58%),
    linear-gradient(150deg, transparent 0 48%, color-mix(in oklch, var(--gold) 22%, transparent) 52%, transparent 62%);
  filter: blur(18px) saturate(1.15);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: gold-current 16s ease-in-out infinite alternate;
  mask-image: linear-gradient(to top, black 10%, transparent 86%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 26px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.96;
  font-weight: 300;
  white-space: nowrap;
}

.hero-copy > p:last-of-type {
  max-width: 620px;
  color: oklch(0.78 0.01 95);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.75;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin-top: 34px;
  padding: 0 26px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.cta::after {
  content: "→";
  margin-left: 18px;
}

.project-docs {
  display: block;
  overflow: hidden;
  padding: 112px clamp(86px, 8vw, 150px) 70px;
  padding-right: clamp(86px, 9vw, 168px);
  background:
    linear-gradient(112deg, color-mix(in oklch, var(--green) 13%, transparent) 0 42%, transparent 42% 100%),
    oklch(0.13 0.012 102);
  color: white;
}

.project-docs::before {
  content: "";
  position: absolute;
  inset: 12% 0 10% 49%;
  background: color-mix(in oklch, var(--gold) 18%, transparent);
  clip-path: polygon(10% 0, 100% 0, 92% 100%, 0 100%);
  opacity: 0.32;
  pointer-events: none;
}

.project-docs > .index,
.docs-layout {
  position: relative;
  z-index: 1;
}

.project-docs .side-controls {
  z-index: 2;
}

.project-docs > .index {
  position: absolute;
  top: 104px;
  left: clamp(86px, 8vw, 150px);
  color: var(--gold);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(430px, 1.05fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
  width: 100%;
  padding-top: 32px;
}

.docs-copy {
  max-width: 650px;
}

.docs-copy small {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.project-docs h2 {
  max-width: none;
  margin-bottom: 26px;
  color: white;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1;
  font-weight: 600;
}

.docs-copy > p {
  max-width: 560px;
  color: oklch(0.82 0.012 95);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.7;
}

.docs-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  border-bottom: 2px solid color-mix(in oklch, var(--gold) 72%, transparent);
  padding-bottom: 7px;
  color: var(--gold);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 900;
  letter-spacing: 0;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.docs-link::after {
  content: "↗";
  font-size: 16px;
  transform: translateY(-1px);
}

.docs-link:hover,
.docs-link:focus-visible {
  color: white;
  border-color: white;
  transform: translateY(-1px);
}

.docs-panel {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in oklch, white 18%, transparent);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 32px);
  background: color-mix(in oklch, black 18%, transparent);
}

.docs-panel span {
  display: block;
  border-bottom: 1px solid color-mix(in oklch, white 16%, transparent);
  padding: 18px 0;
  color: white;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  font-weight: 800;
}

.docs-panel span:last-child {
  border-bottom: 0;
}

.browser {
  overflow: hidden;
  width: 100%;
  border: 1px solid color-mix(in oklch, white 14%, transparent);
  border-radius: 8px;
  background: oklch(0.96 0.006 95);
  box-shadow: 0 28px 70px color-mix(in oklch, black 38%, transparent);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  background: oklch(0.09 0.006 95);
  color: oklch(0.7 0.01 95);
}

.browser-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: oklch(0.3 0 0);
}

.browser-top strong {
  margin-left: 14px;
  border: 1px solid oklch(0.22 0 0);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
}

.stage {
  position: relative;
  min-height: 320px;
  padding: 22px;
}

.preview {
  position: absolute;
  inset: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  transition:
    opacity 820ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.preview.is-current {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.preview.dark {
  background: var(--ink);
  color: white;
}

.preview.green {
  background: var(--green);
  color: white;
}

.preview.guilai-preview {
  justify-content: flex-start;
  gap: 10px;
  background:
    linear-gradient(160deg, color-mix(in oklch, white 16%, transparent), transparent 42%),
    oklch(0.2 0.045 230);
}

.guilai-preview-logo {
  display: block;
  width: 80%;
  margin-inline: auto;
  aspect-ratio: 740 / 352;
  border-radius: 6px;
  object-fit: cover;
}

.guilai-preview h2 {
  font-size: clamp(28px, 2.6vw, 36px);
}

.guilai-preview p {
  display: none;
}

.preview.xianxia {
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--seal) 42%, transparent), transparent 58%),
    oklch(0.14 0.012 70);
  color: white;
}

.preview.xianxia .project-icon {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  image-rendering: auto;
}

.tokenking-preview-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  image-rendering: auto;
}

.preview small {
  color: var(--gold);
  font-weight: 800;
}

.project-icon {
  width: 54px;
  height: 54px;
  image-rendering: pixelated;
}

.preview h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}

.preview p {
  margin-bottom: 0;
  color: color-mix(in oklch, currentColor 72%, transparent);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: clamp(32px, 8vw, 120px);
  align-items: center;
  padding: 96px clamp(22px, 8vw, 150px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.project-feature {
  display: block;
  overflow: hidden;
  padding: 112px clamp(86px, 8vw, 150px) 70px;
  padding-right: clamp(86px, 9vw, 168px);
  background:
    linear-gradient(112deg, transparent 0 43%, color-mix(in oklch, var(--green) 8%, transparent) 43% 100%),
    var(--bg);
}

.project-feature::before {
  content: "";
  position: absolute;
  inset: 14% 0 12% 50%;
  background: color-mix(in oklch, var(--gold) 16%, white);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.56;
  pointer-events: none;
}

.project-feature > .index,
.feature-layout {
  position: relative;
  z-index: 1;
}

.project-feature .side-controls {
  z-index: 2;
}

.project-feature > .index {
  position: absolute;
  top: 104px;
  left: clamp(86px, 8vw, 150px);
}

.project.muted {
  background: var(--soft);
}

.dark-panel {
  background: var(--ink);
  color: white;
}

.index {
  align-self: start;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.dark-panel .index {
  color: var(--gold);
}

.project h2 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(40px, 5vw, 78px);
  line-height: 1.02;
  font-weight: 500;
}

.project div > p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.7;
}

.project.project-docs {
  background:
    linear-gradient(112deg, color-mix(in oklch, var(--green) 13%, transparent) 0 42%, transparent 42% 100%),
    oklch(0.13 0.012 102);
  color: white;
}

.project-docs .docs-copy > p {
  max-width: 560px;
  color: oklch(0.82 0.012 95);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.7;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(32px, 4vw, 58px);
  align-items: center;
  width: 100%;
  padding-top: 32px;
}

.feature-copy {
  max-width: 610px;
}

.feature-title {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 28px;
}

.logo-tile {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: oklch(0.16 0.018 125);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, white 16%, transparent),
    10px 10px 0 color-mix(in oklch, var(--green) 22%, transparent);
}

.logo-tile::before,
.logo-tile::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--gold);
}

.logo-tile::before {
  top: 12px;
  right: 12px;
}

.logo-tile::after {
  bottom: 14px;
  left: 14px;
  background: color-mix(in oklch, var(--green) 78%, white);
}

.logo-tile img {
  width: 58px;
  height: 58px;
  image-rendering: pixelated;
}

.feature-title small {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.project-feature h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.96;
  font-weight: 600;
  white-space: nowrap;
}

.feature-copy > p {
  max-width: 590px;
  color: oklch(0.28 0.018 110);
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.82;
  text-wrap: pretty;
}

.feature-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 560px;
}

.feature-metrics div {
  border: 1px solid color-mix(in oklch, var(--green) 20%, transparent);
  border-radius: 8px;
  padding: 15px 14px 13px;
  background: color-mix(in oklch, white 82%, transparent);
}

.feature-metrics strong {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  font-weight: 800;
}

.feature-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.feature-copy > .project-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  border-bottom: 2px solid color-mix(in oklch, var(--green) 58%, transparent);
  padding-bottom: 7px;
  color: var(--green);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 900;
  letter-spacing: 0;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.feature-copy > .project-link::after {
  content: "↗";
  font-size: 16px;
  transform: translateY(-1px);
}

.feature-copy > .project-link:hover,
.feature-copy > .project-link:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.shot-stage {
  position: relative;
  min-height: clamp(390px, 42vw, 540px);
}

.shot-stage::before {
  content: "";
  position: absolute;
  inset: 12% 6% 9% 14%;
  border-radius: 8px;
  background: color-mix(in oklch, var(--gold) 12%, white);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  opacity: 0.72;
}

.shot-stage figure {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: white;
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--ink) 18%, transparent),
    12px 12px 0 color-mix(in oklch, var(--green) 10%, transparent);
}

.shot-main {
  top: 4%;
  left: 0;
  width: 78%;
}

.shot-secondary {
  right: 0;
  bottom: 4%;
  width: 64%;
}

.shot-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.project-ops {
  display: block;
  overflow: hidden;
  padding: 112px clamp(86px, 8vw, 150px) 70px;
  padding-right: clamp(86px, 9vw, 168px);
  background:
    linear-gradient(112deg, color-mix(in oklch, var(--green) 7%, transparent) 0 42%, transparent 42% 100%),
    var(--soft);
}

.project-ops::before {
  content: "";
  position: absolute;
  inset: 12% 48% 10% 0;
  background: color-mix(in oklch, var(--gold) 10%, white);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
  opacity: 0.72;
  pointer-events: none;
}

.project-ops > .index,
.ops-layout {
  position: relative;
  z-index: 1;
}

.project-ops .side-controls {
  z-index: 2;
}

.project-ops > .index {
  position: absolute;
  top: 104px;
  left: clamp(86px, 8vw, 150px);
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(500px, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
  width: 100%;
  padding-top: 32px;
}

.ops-shot {
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--ink) 12%, transparent),
    12px 12px 0 color-mix(in oklch, var(--green) 9%, transparent);
}

.ops-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.ops-copy {
  max-width: 560px;
}

.ops-title {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.ops-title img {
  display: block;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  box-shadow: 9px 9px 0 color-mix(in oklch, var(--green) 12%, transparent);
}

.ops-title small {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.project-ops h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(42px, 4.7vw, 64px);
  line-height: 1;
  font-weight: 600;
}

.project-ops h2 span {
  display: block;
  color: var(--green);
}

.ops-copy > p {
  max-width: 560px;
  color: oklch(0.28 0.018 110);
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.82;
  text-wrap: pretty;
}

.ops-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.ops-chain div {
  border: 1px solid color-mix(in oklch, var(--green) 18%, transparent);
  border-radius: 8px;
  padding: 14px 13px 12px;
  background: color-mix(in oklch, white 82%, transparent);
}

.ops-chain strong {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  font-weight: 800;
}

.ops-chain span {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.ops-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  border-bottom: 2px solid color-mix(in oklch, var(--green) 58%, transparent);
  padding-bottom: 7px;
  color: var(--green);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 900;
  letter-spacing: 0;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ops-link::after {
  content: "↗";
  font-size: 16px;
  transform: translateY(-1px);
}

.ops-link:hover,
.ops-link:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.project-game {
  display: block;
  overflow: hidden;
  padding: 112px clamp(86px, 8vw, 150px) 70px;
  padding-right: clamp(86px, 9vw, 168px);
  background:
    linear-gradient(112deg, color-mix(in oklch, var(--green) 18%, transparent) 0 44%, transparent 44% 100%),
    var(--ink);
}

.project-game::before {
  content: "";
  position: absolute;
  inset: 10% 0 10% 48%;
  background: color-mix(in oklch, var(--gold) 18%, transparent);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.34;
  pointer-events: none;
}

.project-game > .index,
.game-layout {
  position: relative;
  z-index: 1;
}

.project-game .side-controls {
  z-index: 2;
}

.project-game > .index {
  position: absolute;
  top: 104px;
  left: clamp(86px, 8vw, 150px);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
  width: 100%;
  padding-top: 32px;
}

.game-copy {
  max-width: 570px;
}

.game-copy small {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.project-game h2 {
  max-width: none;
  margin-bottom: 24px;
  color: white;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1;
  font-weight: 600;
}

.game-copy > p {
  max-width: 570px;
  color: oklch(0.8 0.012 95);
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.85;
  text-wrap: pretty;
}

.game-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.game-points div {
  border: 1px solid color-mix(in oklch, white 16%, transparent);
  border-radius: 8px;
  padding: 14px 13px 12px;
  background: color-mix(in oklch, white 7%, transparent);
}

.game-points strong {
  display: block;
  color: white;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  font-weight: 800;
}

.game-points span {
  display: block;
  margin-top: 8px;
  color: oklch(0.82 0.035 92);
  font-size: 12px;
  font-weight: 700;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  border-bottom: 2px solid color-mix(in oklch, var(--gold) 68%, transparent);
  padding-bottom: 7px;
  color: var(--gold);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 900;
  letter-spacing: 0;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.game-link::after {
  content: "↗";
  font-size: 16px;
  transform: translateY(-1px);
}

.game-link:hover,
.game-link:focus-visible {
  color: white;
  border-color: white;
  transform: translateY(-1px);
}

.game-media {
  display: grid;
  gap: 14px;
}

.game-shot,
.game-stills img {
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow:
    0 0 0 1px color-mix(in oklch, white 18%, transparent),
    10px 10px 0 color-mix(in oklch, var(--gold) 14%, transparent);
}

.game-shot video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
}

.game-stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-stills img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.dark-panel div > p {
  color: oklch(0.78 0.01 95);
}

.project-xianxia {
  display: block;
  overflow: hidden;
  padding: 112px clamp(86px, 8vw, 150px) 70px;
  padding-right: clamp(86px, 9vw, 168px);
  background:
    linear-gradient(112deg, transparent 0 40%, color-mix(in oklch, var(--seal) 7%, transparent) 40% 100%),
    var(--bg);
}

.project-xianxia::before {
  content: "";
  position: absolute;
  inset: 12% 0 11% 47%;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--seal) 12%, white), color-mix(in oklch, var(--ember) 9%, white));
  clip-path: polygon(9% 0, 100% 0, 92% 100%, 0 100%);
  opacity: 0.86;
  pointer-events: none;
}

.project-xianxia > .index,
.xianxia-layout {
  position: relative;
  z-index: 1;
}

.project-xianxia .side-controls {
  z-index: 2;
}

.project-xianxia > .index {
  position: absolute;
  top: 104px;
  left: clamp(86px, 8vw, 150px);
  color: var(--seal);
}

.xianxia-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
  width: 100%;
  padding-top: 32px;
}

.xianxia-copy {
  max-width: 590px;
}

.xianxia-title {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 26px;
}

.xianxia-title img {
  display: block;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  box-shadow: 9px 9px 0 color-mix(in oklch, var(--seal) 12%, transparent);
}

.xianxia-title small {
  display: block;
  margin-bottom: 10px;
  color: var(--seal);
  font-size: 14px;
  font-weight: 800;
}

.project-xianxia h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(46px, 5vw, 70px);
  line-height: 1;
  font-weight: 600;
}

.xianxia-role {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.xianxia-role span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid color-mix(in oklch, var(--seal) 22%, transparent);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--seal);
  background: color-mix(in oklch, white 72%, transparent);
  font-size: 14px;
  font-weight: 800;
}

.xianxia-copy > p {
  max-width: 580px;
  color: oklch(0.27 0.016 88);
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.84;
  text-wrap: pretty;
}

.xianxia-copy > .xianxia-module-label {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.xianxia-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  margin-top: 0;
  max-width: 560px;
}

.xianxia-modules div {
  display: block;
  border-top: 1px solid color-mix(in oklch, var(--seal) 22%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--seal) 18%, transparent);
  padding: 14px 0 13px;
}

.xianxia-modules strong {
  display: block;
  color: var(--ink);
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 800;
}

.xianxia-modules span {
  display: block;
  margin-top: 7px;
  color: var(--seal);
  font-size: 14px;
  font-weight: 700;
  white-space: normal;
}

.xianxia-media {
  position: relative;
  display: grid;
  grid-template-columns: clamp(86px, 8vw, 126px) minmax(0, 1fr);
  gap: 18px 20px;
  align-items: end;
}

.xianxia-media::before {
  content: "";
  position: absolute;
  inset: 16% 2% 5% 10%;
  border-radius: 8px;
  background: color-mix(in oklch, white 72%, var(--seal));
  clip-path: polygon(7% 0, 100% 0, 94% 100%, 0 100%);
  opacity: 0.38;
}

.xianxia-app-icon,
.xianxia-board {
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 8px;
  background: white;
}

.xianxia-app-icon {
  grid-column: 1;
  width: clamp(86px, 8vw, 126px);
  height: clamp(86px, 8vw, 126px);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--ink) 14%, transparent),
    10px 10px 0 color-mix(in oklch, var(--seal) 12%, transparent);
}

.xianxia-board {
  grid-column: 1 / -1;
  justify-self: end;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: top left;
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--ink) 18%, transparent),
    12px 12px 0 color-mix(in oklch, var(--seal) 11%, transparent);
}

.side-controls {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  top: 50%;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.side-controls a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px);
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.side-controls a:hover,
.side-controls a:focus-visible {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.side-controls a:active {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(1px) scale(0.96);
}

.side-controls a.is-clicked {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.side-controls svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dark-panel .side-controls a {
  border-color: color-mix(in oklch, white 22%, transparent);
  color: white;
  background: color-mix(in oklch, black 36%, transparent);
}

.project-docs .side-controls a {
  border-color: color-mix(in oklch, white 22%, transparent);
  color: white;
  background: color-mix(in oklch, black 36%, transparent);
}

.dark-panel .side-controls a:hover,
.dark-panel .side-controls a:focus-visible,
.dark-panel .side-controls a:active,
.project-docs .side-controls a:hover,
.project-docs .side-controls a:focus-visible,
.project-docs .side-controls a:active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

@keyframes gold-current {
  from {
    transform: translate3d(-3%, 2%, 0) rotate(-2deg) scale(1);
    opacity: 0.42;
  }

  to {
    transform: translate3d(3%, -2%, 0) rotate(2deg) scale(1.06);
    opacity: 0.58;
  }
}

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

  .preview {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero::after {
    animation: none;
  }

  .preview:not(:first-child) {
    display: none;
  }
}

@media (max-width: 1100px) {
  .feature-layout,
  .ops-layout,
  .game-layout,
  .xianxia-layout,
  .docs-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero,
  .project {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 112px;
  }

  .project-feature {
    padding: 128px clamp(22px, 7vw, 80px) 76px;
    padding-right: clamp(78px, 9vw, 104px);
  }

  .project-ops {
    padding: 128px clamp(22px, 7vw, 80px) 76px;
    padding-right: clamp(78px, 9vw, 104px);
  }

  .project-game {
    padding: 128px clamp(22px, 7vw, 80px) 76px;
    padding-right: clamp(78px, 9vw, 104px);
  }

  .project-xianxia {
    padding: 128px clamp(22px, 7vw, 80px) 76px;
    padding-right: clamp(78px, 9vw, 104px);
  }

  .project-docs {
    padding: 128px clamp(22px, 7vw, 80px) 76px;
    padding-right: clamp(78px, 9vw, 104px);
  }

  .project-feature > .index,
  .project-ops > .index,
  .project-game > .index,
  .project-xianxia > .index,
  .project-docs > .index {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 22px;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  h1 {
    max-width: none;
  }

}

@media (max-width: 620px) {
  .nav {
    height: auto;
    top: 12px;
    padding-block: 18px;
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
    border-radius: 18px;
  }

  .nav nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav nav a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .hero {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .preview {
    min-height: 300px;
  }

  .stage {
    min-height: 360px;
  }

  .project {
    padding-inline: 22px;
  }

  .project-feature {
    padding-left: 22px;
    padding-right: 74px;
  }

  .project-ops {
    padding-left: 22px;
    padding-right: 74px;
  }

  .project-game {
    padding-left: 22px;
    padding-right: 74px;
  }

  .project-xianxia {
    padding-left: 22px;
    padding-right: 74px;
  }

  .project-docs {
    padding-left: 22px;
    padding-right: 74px;
  }

  .feature-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .logo-tile {
    width: 74px;
    height: 74px;
  }

  .logo-tile img {
    width: 50px;
    height: 50px;
  }

  .shot-stage {
    min-height: 430px;
  }

  .shot-main {
    width: 100%;
  }

  .shot-secondary {
    width: 76%;
  }

  .ops-chain {
    grid-template-columns: 1fr;
  }

  .ops-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .ops-title img {
    width: 70px;
    height: 70px;
  }

  .game-points {
    grid-template-columns: 1fr;
  }

  .game-media {
    display: grid;
    gap: 14px;
    min-height: 0;
  }

  .game-shot,
  .game-stills img {
    position: static;
    width: 100%;
  }

  .game-stills {
    display: grid;
  }

  .game-stills {
    grid-template-columns: 1fr;
  }

  .xianxia-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .xianxia-title img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }

  .xianxia-modules div {
    padding-block: 14px;
  }

  .xianxia-modules {
    grid-template-columns: 1fr;
  }

  .xianxia-media {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .xianxia-media::before {
    display: none;
  }

  .xianxia-app-icon,
  .xianxia-board {
    position: relative;
  }

  .xianxia-app-icon {
    width: 84px;
    height: 84px;
    border-radius: 18px;
  }

  .xianxia-board {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .snap {
    height: 100svh;
    scroll-snap-type: y proximity;
  }

  .panel {
    min-height: 100svh;
    scroll-snap-align: start;
  }

  .nav {
    top: max(10px, env(safe-area-inset-top));
    width: calc(100% - 20px);
    min-height: 50px;
    padding: 6px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    border-radius: 999px;
    background: color-mix(in oklch, black 76%, transparent);
  }

  .brand {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
  }

  .home-mark {
    width: 20px;
    height: 20px;
  }

  .nav nav {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: 3px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-right: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
  }

  .nav nav::-webkit-scrollbar {
    display: none;
  }

  .nav nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    padding: 0 9px;
    font-size: 0;
    font-weight: 800;
    color: oklch(0.8 0.006 95);
  }

  .nav nav a::before {
    content: attr(data-short);
    font-size: 12px;
  }

  .nav a.is-active {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 0 0 1px color-mix(in oklch, white 22%, transparent);
  }

  .hero {
    min-height: 100svh;
    align-items: start;
    padding: max(150px, 22svh) 18px max(44px, calc(34px + env(safe-area-inset-bottom)));
  }

  .hero::before {
    background:
      linear-gradient(90deg, transparent 0 58%, color-mix(in oklch, var(--gold) 36%, transparent) 58.1% 58.35%, transparent 58.45%),
      linear-gradient(0deg, transparent 0 48%, color-mix(in oklch, var(--gold) 22%, transparent) 48.1% 48.25%, transparent 48.35%);
    opacity: 0.3;
  }

  .hero::after {
    right: -30%;
    bottom: -16%;
    width: 112%;
    height: 62%;
    filter: blur(16px) saturate(1.06);
    opacity: 0.46;
  }

  .hero-copy {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(32px, 9.5vw, 38px);
    line-height: 1.05;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero-copy > p:last-of-type {
    max-width: 12em;
    font-size: 18px;
    line-height: 1.55;
  }

  .cta {
    min-height: 46px;
    margin-top: 26px;
    padding: 0 18px;
    font-size: 14px;
  }

  .project,
  .project-feature,
  .project-ops,
  .project-game,
  .project-xianxia,
  .project-docs {
    display: block;
    min-height: 100svh;
    padding: 82px 18px max(78px, calc(62px + env(safe-area-inset-bottom)));
  }

  .project-feature::before,
  .project-ops::before,
  .project-game::before,
  .project-xianxia::before,
  .project-docs::before {
    inset: auto -18% 0 26%;
    height: 46%;
    opacity: 0.36;
  }

  .project-feature > .index,
  .project-ops > .index,
  .project-game > .index,
  .project-xianxia > .index,
  .project-docs > .index {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.2;
  }

  .feature-layout,
  .ops-layout,
  .game-layout,
  .xianxia-layout,
  .docs-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
    padding-top: 0;
  }

  .ops-copy {
    order: 1;
  }

  .ops-shot {
    order: 2;
  }

  .feature-copy,
  .ops-copy,
  .game-copy,
  .xianxia-copy,
  .docs-copy {
    max-width: none;
  }

  .project h2,
  .project-feature h2,
  .project-ops h2,
  .project-game h2,
  .project-xianxia h2,
  .project-docs h2 {
    max-width: none;
    margin-bottom: 16px;
    font-size: clamp(28px, 8.4vw, 34px);
    line-height: 1.08;
    letter-spacing: 0;
    white-space: normal;
    text-wrap: balance;
  }

  .project div > p,
  .feature-copy > p,
  .ops-copy > p,
  .game-copy > p,
  .xianxia-copy > p,
  .docs-copy > p,
  .project-docs .docs-copy > p {
    max-width: none;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.72;
    text-wrap: pretty;
  }

  .feature-title,
  .ops-title,
  .xianxia-title {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    margin-bottom: 18px;
  }

  .logo-tile,
  .ops-title img,
  .xianxia-title img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    box-shadow: 6px 6px 0 color-mix(in oklch, var(--green) 10%, transparent);
  }

  .logo-tile img {
    width: 38px;
    height: 38px;
  }

  .logo-tile::before,
  .logo-tile::after {
    width: 8px;
    height: 8px;
  }

  .ops-title img {
    border-radius: 999px;
  }

  .xianxia-title img {
    border-radius: 12px;
    box-shadow: 6px 6px 0 color-mix(in oklch, var(--seal) 12%, transparent);
  }

  .feature-title small,
  .ops-title small,
  .game-copy small,
  .docs-copy small {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .project-ops h2 span {
    display: inline;
    margin-left: 6px;
  }

  .xianxia-role {
    gap: 6px;
    margin-bottom: 14px;
  }

  .xianxia-role span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .xianxia-copy > .xianxia-module-label {
    margin: 20px 0 8px;
    font-size: 14px;
  }

  .feature-metrics,
  .ops-chain,
  .game-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 18px;
    max-width: none;
  }

  .feature-metrics div,
  .ops-chain div,
  .game-points div {
    min-width: 0;
    padding: 11px 8px 10px;
    border-radius: 8px;
  }

  .feature-metrics strong,
  .ops-chain strong,
  .game-points strong {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1;
    white-space: nowrap;
  }

  .feature-metrics span,
  .ops-chain span,
  .game-points span {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.25;
  }

  .feature-copy > .project-link,
  .ops-link,
  .game-link,
  .docs-link {
    margin-top: 18px;
    padding-bottom: 5px;
    font-size: 15px;
  }

  .shot-stage {
    display: grid;
    gap: 10px;
    min-height: 0;
  }

  .shot-stage::before {
    display: none;
  }

  .shot-stage figure,
  .shot-main,
  .shot-secondary {
    position: static;
    width: 100%;
  }

  .shot-stage figure {
    box-shadow:
      0 0 0 1px color-mix(in oklch, var(--ink) 14%, transparent),
      7px 7px 0 color-mix(in oklch, var(--green) 9%, transparent);
  }

  .shot-secondary {
    justify-self: end;
    width: 74%;
  }

  .shot-stage img,
  .ops-shot img {
    aspect-ratio: 16 / 9.6;
    object-position: top left;
  }

  .ops-shot {
    box-shadow:
      0 0 0 1px color-mix(in oklch, var(--ink) 12%, transparent),
      7px 7px 0 color-mix(in oklch, var(--green) 9%, transparent);
  }

  .game-media {
    gap: 10px;
  }

  .game-shot,
  .game-stills img {
    box-shadow:
      0 0 0 1px color-mix(in oklch, white 16%, transparent),
      7px 7px 0 color-mix(in oklch, var(--gold) 12%, transparent);
  }

  .game-shot video {
    aspect-ratio: 16 / 9;
  }

  .game-stills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-stills img {
    aspect-ratio: 1.45 / 1;
  }

  .xianxia-modules {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .xianxia-modules div {
    padding: 12px 0;
  }

  .xianxia-modules strong {
    font-size: 16px;
  }

  .xianxia-modules span {
    margin-top: 5px;
    font-size: 12px;
  }

  .xianxia-media {
    display: block;
  }

  .xianxia-media::before,
  .xianxia-media .xianxia-app-icon {
    display: none;
  }

  .xianxia-board {
    width: 100%;
    aspect-ratio: 16 / 9.6;
    border-radius: 8px;
    object-fit: cover;
    object-position: top left;
    box-shadow:
      0 0 0 1px color-mix(in oklch, var(--ink) 16%, transparent),
      7px 7px 0 color-mix(in oklch, var(--seal) 10%, transparent);
  }

  .docs-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .docs-panel span {
    flex: 1 1 96px;
    border: 1px solid color-mix(in oklch, white 16%, transparent);
    border-radius: 8px;
    padding: 12px 10px;
    background: color-mix(in oklch, black 14%, transparent);
    font-size: 17px;
    line-height: 1.15;
    text-align: center;
  }

  .side-controls {
    right: 12px;
    top: calc(100svh - 112px);
    bottom: auto;
    gap: 8px;
    transform: none;
  }

  .side-controls a {
    width: 40px;
    height: 40px;
    background: color-mix(in oklch, var(--bg) 84%, transparent);
  }

  .side-controls svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(32px, 9vw, 36px);
  }

  .project,
  .project-feature,
  .project-ops,
  .project-game,
  .project-xianxia,
  .project-docs {
    padding-inline: 16px;
  }

  .feature-metrics strong,
  .ops-chain strong,
  .game-points strong {
    font-size: 17px;
  }

  .feature-metrics span,
  .ops-chain span,
  .game-points span {
    font-size: 10px;
  }
}
