/* ═══════════════════════════════════════════
   i7ack.COM — FUTURE UNLOCKED
   v3 — 商业级个人品牌站
   v20260422t — FUTURE紫粉+UNLOCKED绿色+MANIFEST视频区
   视觉：思想黑+岩石灰渐变 + 斜切光晕 + 哲学质感
   ═══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  /* 色彩 — 铁墨极简：思想黑+岩石灰，宗教哲学质感 */
  --c-void:        #06070A;
  --c-abyss:       #0A0B0F;
  --c-deep:        #0E1015;
  --c-ink:         #14161C;
  --c-slate:       #1C1E26;
  --c-steel:       #262830;

  /* 岩石灰渐变 — 思想黑到石的过渡 */
  --c-stone:       #1A1C22;
  --c-granite:     #22242C;
  --c-basalt:      #2E3038;

  --c-moon:        #D0D2DC;
  --c-silver:      #9092A0;
  --c-dim:         #5C5E6C;
  --c-muted:       #383A46;

  /* 铂金渐变色 — 斜切光晕的"光" */
  --c-platinum:    #9A9CB0;
  --c-palladium:   #B4B6C8;
  --c-chrome:      #7A7C90;
  --c-lime:        #7CFC00;

  /* 渐变 — 铂金调，灰度内的微妙流动 */
  --grad-origin:   linear-gradient(135deg, var(--c-chrome) 0%, var(--c-palladium) 100%);
  --grad-main:     linear-gradient(135deg, var(--c-platinum) 0%, var(--c-palladium) 100%);
  --grad-omega:    linear-gradient(135deg, var(--c-dim) 0%, var(--c-silver) 100%);

  /* 字体 — 全局统一 Krophed */
  --f-ava:         'Krophed', sans-serif;
  --f-trobus:      'Krophed', sans-serif;
  --f-krophed:     'Krophed', sans-serif;
  --f-copperplate: 'Krophed', sans-serif;
  --f-heading:     'Krophed', sans-serif;
  --f-body:        'Krophed', sans-serif;
  --f-display:     'Krophed', sans-serif;
  --f-system:      -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 字重 */
  --w-light:       300;
  --w-regular:     400;
  --w-medium:      500;
  --w-bold:        700;

  /* 字距 */
  --tracking-tight:  -0.04em;
  --tracking-snug:   -0.025em;
  --tracking-normal: -0.01em;
  --tracking-body:    0.005em;
  --tracking-loose:   0.04em;
  --tracking-wide:    0.08em;
  --tracking-mega:    0.15em;

  /* 行高 */
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;
  --leading-loose:   1.9;

  /* 布局 */
  --side-pad: clamp(2rem, 5vw, 5rem);
  --max-width: 1400px;
}

/* ── FONT FACE ── */
@font-face {
  font-family: 'AVA';
  src: url('../fonts/AVA-Regular.woff2') format('woff2'),
       url('../fonts/AVA-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Trobus';
  src: url('../fonts/Trobus-Expanded.woff2') format('woff2'),
       url('../fonts/Trobus-Expanded.220702-2244.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic.woff2') format('woff2'),
       url('../fonts/CenturyGothic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic-Bold.woff2') format('woff2'),
       url('../fonts/CenturyGothic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Krophed';
  src: url('../fonts/Krophed.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ByteBounce';
  src: url('../fonts/ByteBounce.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Copperplate Gothic';
  src: url('../fonts/CopperplateGothic-29BC.woff2') format('woff2'),
       url('../fonts/CopperplateGothic-29BC.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Copperplate Gothic';
  src: url('../fonts/CopperplateGothic-32BC.woff2') format('woff2'),
       url('../fonts/CopperplateGothic-32BC.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── i7ack 中的 i 用 ByteBounce 字体 ── */
.byte-i {
  font-family: 'ByteBounce', sans-serif;
}

/* ── 中文字体声明（优先 WOFF2） ── */
@font-face {
  font-family: 'AlimamaShuHeiTi';
  src: url('../fonts/Alimama_ShuHeiTi_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'REEJIPinboGB';
  src: url('../fonts/%E9%94%90%E5%AD%97%E5%A5%A5%E8%BF%90%E7%B2%BE%E7%A5%9E%E6%8B%BC%E6%90%8F%E7%AE%80%E5%85%8D%E8%B4%B9%28REEJI-PinboGB%29.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KingsoftCloudTech';
  src: url('../fonts/%E9%87%91%E5%B1%B1%E4%BA%91%E6%8A%80%E6%9C%AF%E4%BD%93%20%E5%85%8D%E8%B4%B9%E5%95%86%E7%94%A8.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HYXiangSuRuQinJ';
  src: url('../fonts/HYXiangSuRuQinJ-2.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── 语言切换按钮 ── */
.site-nav__lang {
  font-family: 'Century Gothic', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  font-style: normal;
  color: var(--c-moon);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.5em;
  border: 1px solid var(--c-steel);
  border-radius: 3px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  cursor: pointer;
}
.site-nav__lang:hover {
  color: var(--c-lime);
  border-color: var(--c-lime);
  background: rgba(124, 252, 0, 0.06);
}

/* ── 中文版字体覆盖 ── */
.lang-zh .site-nav__link {
  font-family: 'AlimamaShuHeiTi', 'Krophedch', sans-serif !important;
  font-style: normal !important;
}
.lang-zh .mobile-menu__link {
  font-family: 'AlimamaShuHeiTi', 'Krophedch', sans-serif !important;
  font-style: normal !important;
}
.lang-zh .unlock__lockup-text {
  font-family: 'REEJIPinboGB', 'Krophedch', sans-serif !important;
  font-size: clamp(5rem, 12vw, 14rem) !important;
}
/* 中文版 lockup：Logo居中上行 / 未来已来居中下行 */
.lang-zh .unlock__lockup {
  flex-direction: column !important;
  gap: clamp(0.5rem, 1.5vw, 1.5rem) !important;
}
.lang-zh .unlock__lockup-text-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 0.8vw, 0.8rem);
}
.lang-zh .unlock__lockup-text--left {
  margin-top: 0 !important;
}
.lang-zh .unlock__lockup-text--right {
  margin-top: 0 !important;
}
.lang-zh .unlock__lockup-logo {
  height: clamp(80px, 14vw, 200px) !important;
}
.lang-zh .unlock__machine {
  width: min(1220px, calc(100vw - var(--side-pad) * 2));
}
.lang-zh .unlock__machine-label,
.lang-zh .unlock__time-value {
  font-family: 'KingsoftCloudTech', 'Century Gothic', var(--f-system) !important;
  font-style: normal !important;
}
.lang-zh .unlock__base7-token,
.lang-zh .unlock__time-base7 {
  font-family: 'ByteBounce', monospace !important;
  font-style: normal !important;
}
/* 中文版跑马灯字体 */
.lang-zh .unlock__marquee-track {
  font-family: 'HYXiangSuRuQinJ', sans-serif !important;
}
.lang-zh .mind__card-label,
.lang-zh .mind__card-desc,
.lang-zh .manifest__prose-line,
.lang-zh .manifest__verse-line,
.lang-zh .creed__line,
.lang-zh .transition__quote {
  font-family: 'KingsoftCloudTech', var(--f-system) !important;
}
/* 中文版 GENESIS 区文字：系统默认中文字体（替换思源黑体，消除大字体文件依赖） */
.lang-zh .genesis__subtitle,
.lang-zh .genesis__hint,
.lang-zh .genesis__lock-prompt {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif !important;
  font-weight: 300 !important;
  font-style: normal !important;
}
/* 中文版 GENESIS 旁白：系统默认中文字体粗体 + 加大字间距 */
.lang-zh .genesis__narration {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif !important;
  font-weight: 900 !important;
  font-style: normal !important;
  letter-spacing: 0.15em !important;
}
.lang-zh .transition__quote {
  font-size: clamp(3rem, 6vw, 5rem) !important;
  letter-spacing: 0.2em !important;
}
.lang-zh .origin__scroll-text {
  margin-right: -0.175em;
}
.lang-zh .scroll-hint__text {
  margin-right: -0.15em;
}
.lang-zh .section-title {
  font-family: 'REEJIPinboGB', 'Krophedch', sans-serif !important;
  font-style: oblique !important;
}

/* ── BASE ── */
html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--f-body);
  font-weight: 900;
  font-style: oblique;
  color: var(--c-moon);
  background-color: #020304;
  line-height: var(--leading-relaxed);
  overflow-x: clip;
}

/* ── LOADER — 加载遮罩 ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 50% 48%, rgba(124, 252, 0, 0.09), transparent 26rem),
    radial-gradient(circle at 72% 28%, rgba(0, 229, 255, 0.08), transparent 24rem),
    #010303;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  transition: opacity 0.72s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.72s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.loader::before,
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader::before {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, transparent, rgba(124, 252, 0, 0.08), transparent);
  opacity: 0.24;
  mix-blend-mode: screen;
}

.loader::after {
  background: radial-gradient(ellipse at center, transparent 0%, transparent 58%, rgba(0,0,0,0.58) 100%);
  opacity: 0.54;
  transition: opacity 0.5s ease;
}

.loader__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(124,252,0,0.075) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(0,229,255,0.045) 0 1px, transparent 1px 72px);
  opacity: 0.32;
  transform: translate3d(0, 0, 0);
}

.loader__scan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(38rem, 72vw);
  max-width: calc(100vw - 2rem);
  min-width: 14rem;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.8), #7CFC00, rgba(240,80,232,0.7), transparent);
  box-shadow: 0 0 22px rgba(124,252,0,0.48), 0 0 80px rgba(0,229,255,0.2);
  transform: translate(-50%, -50%) scaleX(0.05);
  transform-origin: center;
  opacity: 0;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader.is-boot-complete .loader__scan {
  animation: loaderGateOpen 0.86s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader.is-boot-complete::after {
  opacity: 0;
}

.loader.is-boot-complete .loader__inner {
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.72rem;
  width: min(72vw, 34rem);
  position: relative;
  z-index: 2;
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader__eyebrow,
.loader__status {
  font-family: var(--f-system);
  font-size: clamp(0.62rem, 0.78vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
  color: rgba(215, 240, 255, 0.58);
  text-transform: uppercase;
}

.loader__text {
  font-family: 'ByteBounce', sans-serif;
  font-size: clamp(4rem, 10vw, 7.2rem);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.18em;
  background: linear-gradient(90deg, var(--c-moon) 0%, var(--c-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
  text-align: center;
  filter: drop-shadow(0 0 18px rgba(124,252,0,0.12));
}

.loader__dot {
  color: #7CFC00;
  -webkit-text-fill-color: #7CFC00;
  opacity: 1;
  animation: loaderDotBlink 1s steps(1) infinite;
}

@keyframes loaderDotBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.loader__bar {
  width: min(70%, 24rem);
  align-self: center;
  height: 2px;
  background-color: rgba(120, 150, 150, 0.24);
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(124,252,0,0.08);
}

.loader__bar-fill {
  width: 0%;
  height: 100%;
  background-color: #7CFC00;
  border-radius: 1px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loaderGateOpen {
  0% { transform: translate(-50%, -50%) scaleX(0.05); height: 1px; opacity: 0; }
  16% { transform: translate(-50%, -50%) scaleX(0.72); height: 1px; opacity: 1; }
  44% { transform: translate(-50%, -50%) scaleX(1); height: 2px; opacity: 1; }
  100% { transform: translate(-50%, -50%) scaleX(1.24); height: 120vh; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .loader::before,
  .loader__scan,
  .loader__dot {
    animation: none !important;
  }
}

/* ── BODY 加载状态 ── */
/* loader z-index:9999 遮住一切，自身淡出即内容淡入，无需额外控制 */

/* ── 颗粒纹理 — 摩西石板质感，粗粝而庄严 ── */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ── 图片占位符 ── */
.placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-slate) 100%);
  border: 1px solid var(--c-steel);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder::after {
  content: attr(data-label);
  font-family: var(--f-heading);
  font-weight: var(--w-light);
  font-size: 1rem;
  letter-spacing: var(--tracking-loose);
  color: var(--c-dim);
  opacity: 0.6;
}

.placeholder--portrait {
  aspect-ratio: 3/4;
}


/* ═══════════════════════════════════════════
   NAV — 固定导航
   ═══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.5rem var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  background: transparent;
}

/* 滚动中隐藏导航 */
.site-nav.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  font-family: var(--f-heading);
  font-weight: var(--w-bold);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--c-silver);
  text-decoration: none;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #7CFC00;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: #7CFC00;
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 100%;
}

/* 导航锁定态：GENESIS 交互未完成时 */
.site-nav__link.is-locked {
  color: var(--c-muted);
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}

.site-nav__link.is-locked::after {
  display: none;
}

.site-nav__link.is-locked:hover {
  color: var(--c-muted);
}

.site-nav__link.is-locked::before {
  content: '⊕';
  font-size: 0.65em;
  margin-right: 0.35em;
  vertical-align: middle;
  opacity: 0.5;
}

/* 导航解锁动画 —— 神经元连接效果 */
.site-nav__link.is-unlocking {
  animation: navUnlock 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes navUnlock {
  0% {
    opacity: 0.35;
    color: var(--c-muted);
    text-shadow: none;
    transform: scale(0.95);
  }
  30% {
    color: #7CFC00;
    text-shadow: 0 0 12px rgba(124, 252, 0, 0.8), 0 0 24px rgba(124, 252, 0, 0.4);
    transform: scale(1.08);
  }
  60% {
    color: #7CFC00;
    text-shadow: 0 0 8px rgba(124, 252, 0, 0.6);
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    color: var(--c-moon);
    text-shadow: none;
    transform: scale(1);
  }
}

.site-nav__link.is-unlocked {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* 移动端菜单解锁动画 */
.mobile-menu__link.is-unlocking {
  animation: navUnlockMobile 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes navUnlockMobile {
  0% {
    opacity: 0.35;
    color: var(--c-muted);
    text-shadow: none;
  }
  30% {
    color: #7CFC00;
    text-shadow: 0 0 12px rgba(124, 252, 0, 0.8);
  }
  100% {
    opacity: 1;
    color: var(--c-silver);
    text-shadow: none;
  }
}

.mobile-menu__link.is-unlocked {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.site-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--c-silver);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.site-nav__icon svg {
  width: 18px;
  height: 18px;
}

.site-nav__icon:hover {
  color: #7CFC00;
  transform: translateY(-1px);
}

/* ── HAMBURGER BUTTON ── */
.site-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210;
}

.site-nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-silver);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.site-nav__burger:hover span {
  background-color: #7CFC00;
}

/* Hamburger → X 动画 */
.site-nav__burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-nav__burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-nav__burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 180;
  background-color: var(--c-void);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 2rem;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}

.mobile-menu__link {
  font-family: var(--f-heading);
  font-weight: var(--w-bold);
  font-style: normal;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--c-silver);
  text-decoration: none;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-20px);
  opacity: 0;
}

.mobile-menu.is-open .mobile-menu__link {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.30s; }

/* 移动端菜单分割线 */
.mobile-menu__divider {
  width: 40px;
  height: 1px;
  background: var(--c-steel);
  margin: 0.8rem 0 0.4rem;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open .mobile-menu__divider {
  opacity: 1;
  transform: scaleX(1);
  transition-delay: 0.34s;
}

/* 移动端语言切换胶囊 */
.mobile-menu__lang {
  font-family: 'Century Gothic', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: normal;
  color: var(--c-moon);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border: 1px solid var(--c-steel);
  border-radius: 3px;
  transition: color 0.3s, border-color 0.3s, background 0.3s, opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateX(-10px);
}
.mobile-menu.is-open .mobile-menu__lang {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.40s;
}
.mobile-menu__lang:hover {
  color: var(--c-lime);
  border-color: var(--c-lime);
  background: rgba(124, 252, 0, 0.06);
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
  color: #7CFC00;
}

/* 移动端导航锁定态 */
.mobile-menu__link.is-locked {
  color: var(--c-muted);
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}

.mobile-menu__link.is-locked:hover {
  color: var(--c-muted);
}

.mobile-menu__link.is-locked::before {
  content: '⊕';
  font-size: 0.65em;
  margin-right: 0.35em;
  vertical-align: middle;
  opacity: 0.5;
}

.site-logo {
  display: block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo img {
  height: clamp(40px, 5vw, 68px);
  width: auto;
  display: block;
  filter: brightness(0.9);
}


/* ── SECTION UTILITIES ── */
.section-label {
  font-family: var(--f-copperplate);
  font-weight: 700;
  font-size: 1.5rem;
  text-shadow: 0 0 2px currentColor, 0 0 2px currentColor, 0 0 2px currentColor, 0 0 2px currentColor;
  letter-spacing: var(--tracking-mega);
  color: var(--c-platinum);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--f-krophed);
  font-weight: 900;
  font-style: oblique;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: var(--tracking-tight);
  color: #7CFC00;
  line-height: var(--leading-tight);
}

/* 逐字打字效果 — 每个字母包裹在span中 */
.section-title .title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  filter: blur(2px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title .title-char.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


/* ── REVEAL ANIMATION ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-direction="left"][data-reveal] {
  transform: translateX(-80px);
}
[data-direction="left"][data-reveal].is-visible {
  transform: translateX(0);
}

[data-direction="right"][data-reveal] {
  transform: translateX(80px);
}
[data-direction="right"][data-reveal].is-visible {
  transform: translateX(0);
}


/* ═══════════════════════════════════════════
   ORIGIN — 英雄区（Scroll Shrink 过渡）
   初始：WebGL全屏，撑满视口
   滚动：画面等比缩小到中间~10%，两侧渐现 FUTURE / UNLOCKED
   ═══════════════════════════════════════════ */

/* 英雄区 — 占位容器，提供滚动距离
   内部inner/marquee/lockup全部fixed铺满视口
   origin本身不显示，只占文档流空间 */
.origin {
  position: relative;
  overflow: visible;
  z-index: 10;
  /* 高度由origin__scroll-spacer撑开 */
}

/* Phase3盖子已移除（跑马灯/lockup独立为UNLOCK section） */

/* 流体图像过渡 — WebGL Canvas容器，全屏覆盖 */
.origin__fluid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  cursor: default;
}

.origin__fluid canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── 4种字体变体 — 统一 ByteBounce ── */
.font-grotesk-bold {
  font-family: 'ByteBounce', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 3.8rem);
  opacity: 0.32;
  letter-spacing: -0.03em;
}

.font-grotesk-light {
  font-family: 'ByteBounce', sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(1.4rem, 3.2vw, 2.8rem);
  opacity: 0.2;
  letter-spacing: -0.01em;
}

.font-inter-light {
  font-family: 'ByteBounce', sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(1.2rem, 2.8vw, 2.4rem);
  opacity: 0.16;
  letter-spacing: 0.01em;
}

.font-inter-medium {
  font-family: 'ByteBounce', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  opacity: 0.25;
  letter-spacing: -0.02em;
}

/* ── 代码符号样式 ── */
.code-tag,
.code-fn,
.code-sym {
  font-family: 'ByteBounce', monospace;
  font-weight: 900;
  font-style: normal;
  opacity: 0.5;
  padding: 0 0.12em;
  transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.code-tag {
  color: var(--c-platinum);
  font-size: 0.65em;
}

.code-fn {
  color: var(--c-palladium);
  font-size: 0.6em;
}

.code-sym {
  color: var(--c-chrome);
  font-size: 0.55em;
}

.code-tag.is-highlight,
.code-fn.is-highlight,
.code-sym.is-highlight {
  opacity: 1;
  text-shadow: 0 0 12px currentColor, 0 0 30px currentColor;
}

.code-tag.is-highlight {
  color: var(--c-moon);
}

.code-fn.is-highlight {
  color: var(--c-moon);
}

.code-sym.is-highlight {
  color: var(--c-palladium);
}

@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes lockup-glow {
  0%, 60%, 100% {
    text-shadow: 0 0 6px rgba(124, 252, 0, 0.15);
  }
  30% {
    text-shadow: 0 0 30px rgba(124, 252, 0, 0.6),
                 0 0 60px rgba(124, 252, 0, 0.3),
                 0 0 90px rgba(124, 252, 0, 0.1);
  }
}

/* ── 像素块肌理 — 字体表面叠加深浅数码像素块 ── */
.lockup__char {
  display: inline-block;
  position: relative;
}

.lockup__char::before {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 4px,
      rgba(0,0,0,0.3) 4px, rgba(0,0,0,0.3) 8px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 4px,
      rgba(0,0,0,0.25) 4px, rgba(0,0,0,0.25) 8px
    ),
    linear-gradient(
      135deg,
      rgba(0,0,0,0.4) 0%,
      transparent 25%,
      rgba(0,0,0,0.2) 50%,
      transparent 75%,
      rgba(0,0,0,0.35) 100%
    );
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: pixel-breathe 1.5s ease-in-out infinite;
}

@keyframes pixel-breathe {
  0%, 60%, 100% {
    opacity: 0.5;
  }
  30% {
    opacity: 1;
  }
}

/* 滚动占位空间 — 提供足够的滚动距离让fixed层完成动画
   Phase1(马赛克消解) + Phase3(ORIGIN淡出)
   总高度由JS动态设置 */
.origin__spacer {
  pointer-events: none;
  background: transparent;
}

/* 画面容器 — fixed铺满视口，滚动时opacity淡出 */
.origin__inner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}
/* 马赛克消解Canvas：覆盖在inner(z:1)上方，滚动时逐格填充void色"腐蚀"inner画面 */
.origin__mosaic-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 16;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   UNLOCK SECTION — FUTURE UNLOCKED 跑马灯 + Lockup
   独立section，GENESIS通关后下滑到达
   ══════════════════════════════════════════════ */
.unlock {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  overflow: hidden;
  background: var(--c-void);
}

/* ── 第二屏背景图 — absolute铺满UNLOCK section ── */
.unlock__stone-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../img/2nd_screen_bg_v2.webp') center / cover no-repeat;
}

/* ── 跑马灯文字背景 — 14行交错循环滚动，机器码质感 ── */
.unlock__marquee {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  pointer-events: none;
  padding: 1vh 0;
}

.unlock__marquee-row {
  display: flex;
  white-space: nowrap;
  line-height: 1.05;
}

.unlock__marquee-row--left {
  animation: marqueeLeft 18s linear infinite;
}

.unlock__marquee-row--right {
  animation: marqueeRight 18s linear infinite;
}

/* 14行不同速度 — 4.5~7s */
.unlock__marquee-row:nth-child(1)  { animation-duration: 5s; }
.unlock__marquee-row:nth-child(2)  { animation-duration: 6s; }
.unlock__marquee-row:nth-child(3)  { animation-duration: 4.5s; }
.unlock__marquee-row:nth-child(4)  { animation-duration: 6.5s; }
.unlock__marquee-row:nth-child(5)  { animation-duration: 5.5s; }
.unlock__marquee-row:nth-child(6)  { animation-duration: 7s; }
.unlock__marquee-row:nth-child(7)  { animation-duration: 4.75s; }
.unlock__marquee-row:nth-child(8)  { animation-duration: 6.25s; }
.unlock__marquee-row:nth-child(9)  { animation-duration: 5.25s; }
.unlock__marquee-row:nth-child(10) { animation-duration: 6.75s; }
.unlock__marquee-row:nth-child(11) { animation-duration: 5.75s; }
.unlock__marquee-row:nth-child(12) { animation-duration: 4.5s; }
.unlock__marquee-row:nth-child(13) { animation-duration: 6.5s; }
.unlock__marquee-row:nth-child(14) { animation-duration: 5s; }

.unlock__marquee-track {
  display: inline-block;
  font-family: 'ByteBounce', sans-serif;
  font-style: normal;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  letter-spacing: var(--tracking-snug);
  color: var(--c-dim);
  opacity: 0.3;
  flex-shrink: 0;
}

/* ── 跑马灯大字号行 ── */
.unlock__marquee-row--big .unlock__marquee-track {
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  opacity: 0.4;
}

/* ══ 锁定态：FUTURE ─ [Logo] ─ UNLOCKED ══
   布局：三段flex — 左段(FUTURE, flex:1, 右对齐) + 中段(Logo, 固定宽) + 右段(UNLOCKED, flex:1, 左对齐) */
.unlock__lockup {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 clamp(4rem, 8vw, 10rem);
  pointer-events: none;
}

.unlock__lockup-logo-shake {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: filter 0.2s;
}

.unlock__lockup-logo-shake:hover {
  filter: brightness(1.1);
}

.unlock__lockup-logo {
  height: clamp(150px, 24vw, 330px);
  width: auto;
  filter: brightness(0.92);
  display: block;
}

.unlock__machine {
  width: min(1280px, calc(100vw - var(--side-pad) * 2));
  display: grid;
  justify-items: center;
  gap: clamp(0.62rem, 1.2vw, 0.9rem);
  text-align: center;
  color: var(--c-lime);
  filter: drop-shadow(0 0 18px rgba(124, 252, 0, 0.18));
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  transition: filter 0.3s ease;
}

.unlock__machine:hover,
.unlock__machine:focus-visible {
  filter:
    drop-shadow(0 0 18px rgba(124, 252, 0, 0.24))
    drop-shadow(0 0 24px rgba(240, 80, 232, 0.12));
}

.unlock__machine-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'Century Gothic', var(--f-system);
  font-size: clamp(0.55rem, 0.9vw, 0.72rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.22em;
  color: rgba(208, 210, 220, 0.68);
  text-transform: uppercase;
}

.unlock__machine-label::before,
.unlock__machine-label::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, transparent, rgba(124, 252, 0, 0.48), transparent);
}

.unlock__machine-label span {
  flex: 0 0 auto;
}

.unlock__machine-frame {
  width: 100%;
  height: clamp(14.8rem, 22vw, 19rem);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(124, 252, 0, 0.32);
  border-bottom: 1px solid rgba(240, 80, 232, 0.28);
  background:
    linear-gradient(90deg, transparent, rgba(124, 252, 0, 0.06), transparent),
    repeating-linear-gradient(90deg, rgba(124, 252, 0, 0.08) 0 1px, transparent 1px 14px);
  box-shadow:
    inset 0 0 34px rgba(124, 252, 0, 0.08),
    0 0 32px rgba(0, 229, 255, 0.08);
  contain: layout paint;
}

.unlock__machine-frame::before,
.unlock__machine-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.unlock__machine-frame::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(124, 252, 0, 0.055) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.unlock__machine-frame::after {
  background:
    radial-gradient(circle at 50% 24%, rgba(191, 239, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(2, 3, 4, 0.12), rgba(2, 3, 4, 0.36));
  opacity: 0.72;
}

.unlock__machine-code {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: clamp(0.72rem, 1.45vw, 1.24rem);
  padding: clamp(1.05rem, 1.8vw, 1.5rem) clamp(1rem, 2vw, 1.6rem) clamp(5.1rem, 6.5vw, 6.35rem);
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
  transition: opacity 0.36s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), filter 0.42s ease;
}

.unlock__machine-code::before {
  content: "";
  position: absolute;
}

.unlock__base7-word {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--base7-count, 6), minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  column-gap: clamp(0.38rem, 0.92vw, 0.85rem);
}

.unlock__base7-token {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0.08em 0.08em 0;
  font-family: 'ByteBounce', monospace;
  font-size: clamp(1.52rem, 3.6vw, 3.85rem);
  font-weight: 900;
  font-style: normal;
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: #7CFC00;
  text-shadow:
    0 0 10px rgba(124, 252, 0, 0.55),
    0 0 28px rgba(124, 252, 0, 0.22);
  transition: color 0.18s ease, text-shadow 0.18s ease, opacity 0.24s ease, transform 0.24s ease;
  will-change: contents, transform, opacity;
}

.unlock__base7-token:nth-child(3n + 1) {
  color: #F050E8;
  text-shadow:
    0 0 10px rgba(240, 80, 232, 0.55),
    0 0 28px rgba(240, 80, 232, 0.22);
}

.unlock__base7-token:nth-child(4n) {
  color: #BFEFFF;
  text-shadow:
    0 0 10px rgba(0, 229, 255, 0.42),
    0 0 28px rgba(0, 229, 255, 0.18);
}

.unlock__base7-token::after {
  content: attr(data-char);
  position: absolute;
  left: 50%;
  bottom: -0.92em;
  transform: translateX(-50%);
  font-family: 'Century Gothic', var(--f-system);
  font-size: 0.18em;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(208, 210, 220, 0.48);
  text-shadow: none;
}

.unlock__machine.is-rolling .unlock__machine-code {
  animation: unlockCodeSweep 0.42s linear infinite;
}

.unlock__machine.is-rolling .unlock__base7-token {
  color: #BFEFFF;
  text-shadow:
    0 0 12px rgba(0, 229, 255, 0.5),
    0 0 32px rgba(124, 252, 0, 0.2);
}

.unlock__machine.is-decoded .unlock__machine-code {
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  filter: blur(8px);
  pointer-events: none;
}

.unlock__machine.is-encoding .unlock__machine-code {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1.3);
}

.unlock__machine.is-verified:not(.is-decoded) .unlock__base7-token {
  animation: unlockVerifiedBreath 2.8s ease-in-out infinite;
}

.unlock__machine.is-verified:not(.is-decoded) .unlock__base7-token:nth-child(2n) {
  animation-delay: -0.75s;
}

.unlock__machine.is-verified:not(.is-decoded) .unlock__base7-token:nth-child(3n) {
  animation-delay: -1.35s;
}

@keyframes unlockCodeSweep {
  0%, 100% {
    box-shadow:
      inset -34vw 0 50px rgba(124, 252, 0, 0),
      inset 0 0 34px rgba(124, 252, 0, 0.08),
      0 0 32px rgba(0, 229, 255, 0.08);
  }
  50% {
    box-shadow:
      inset 0 0 76px rgba(124, 252, 0, 0.18),
      inset 0 0 34px rgba(124, 252, 0, 0.1),
      0 0 44px rgba(0, 229, 255, 0.14);
  }
}

@keyframes unlockVerifiedBreath {
  0%, 100% {
    opacity: 0.82;
    filter: brightness(0.9);
  }
  42% {
    opacity: 1;
    filter: brightness(1.35) saturate(1.3);
  }
  52% {
    opacity: 0.68;
    filter: brightness(0.8);
  }
  60% {
    opacity: 1;
    filter: brightness(1.55) saturate(1.45);
  }
}

.unlock__decoded-title {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.04rem, 0.35vw, 0.28rem);
  padding: clamp(0.85rem, 1.8vw, 1.45rem) clamp(0.75rem, 1.8vw, 1.25rem) clamp(4.75rem, 6vw, 5.85rem);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  filter: blur(14px) saturate(1.5);
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease;
}

.unlock__machine.is-decoded .unlock__decoded-title {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
}

.unlock__decoded-word {
  position: relative;
  font-family: var(--f-krophed);
  font-weight: 900;
  font-style: oblique;
  font-size: clamp(2.7rem, 6.4vw, 6.8rem);
  line-height: 0.82;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
  filter: contrast(1.08) saturate(1.12);
}

.unlock__decoded-word::after {
  content: attr(data-lcd);
  position: absolute;
  inset: 0;
  color: transparent;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0 1px, transparent 1px 8px);
  background-clip: text;
  -webkit-background-clip: text;
  mix-blend-mode: overlay;
  opacity: 0.58;
  pointer-events: none;
}

.unlock__decoded-word--future {
  color: #F050E8;
  text-shadow:
    0 0 16px rgba(240, 80, 232, 0.52),
    0 0 44px rgba(240, 80, 232, 0.22);
}

.unlock__decoded-word--unlocked {
  color: #7CFC00;
  text-shadow:
    0 0 16px rgba(124, 252, 0, 0.58),
    0 0 48px rgba(124, 252, 0, 0.24);
}

.unlock__machine-time {
  grid-area: 1 / 1;
  align-self: end;
  width: min(860px, calc(100% - clamp(1.4rem, 4vw, 3rem)));
  min-height: clamp(3.2rem, 5vw, 4.18rem);
  display: grid;
  place-items: center;
  margin-bottom: clamp(0.62rem, 1.25vw, 1rem);
  padding: clamp(0.58rem, 1vw, 0.76rem) clamp(0.78rem, 1.6vw, 1.1rem);
  border: 1px solid rgba(124, 252, 0, 0.24);
  background:
    linear-gradient(90deg, rgba(2, 3, 4, 0.76), rgba(6, 14, 11, 0.58), rgba(2, 3, 4, 0.76)),
    repeating-linear-gradient(90deg, rgba(124, 252, 0, 0.08) 0 1px, transparent 1px 11px);
  box-shadow:
    inset 0 0 20px rgba(124, 252, 0, 0.06),
    0 0 18px rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
  z-index: 5;
}

.unlock__time-value {
  grid-area: 1 / 1;
  font-family: 'Century Gothic', var(--f-system);
  font-size: clamp(0.9rem, 1.75vw, 1.42rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: var(--c-moon);
  text-align: center;
  text-shadow: 0 0 14px rgba(208, 210, 220, 0.18);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(5px);
  transition: opacity 0.36s ease, transform 0.42s ease, filter 0.42s ease;
}

.unlock__time-base7 {
  grid-area: 1 / 1;
  font-family: 'ByteBounce', monospace;
  font-size: clamp(1.08rem, 2.1vw, 1.9rem);
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(124, 252, 0, 0.66);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 0 10px rgba(124, 252, 0, 0.42),
    0 0 24px rgba(0, 229, 255, 0.15);
  transition: opacity 0.32s ease, transform 0.38s ease, filter 0.38s ease;
}

.unlock__machine.is-decoded .unlock__time-value {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.unlock__machine.is-decoded .unlock__time-base7 {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(6px);
}

.unlock__machine.is-encoding .unlock__time-value {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
}

.unlock__machine.is-encoding .unlock__time-base7 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.unlock__machine:not(.is-decoded) .unlock__time-base7 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.unlock__machine:not(.is-decoded) .unlock__time-value {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(5px);
}

@media (max-width: 768px) {
  .unlock__lockup {
    padding: 0 clamp(1.25rem, 6vw, 2rem);
    gap: clamp(0.75rem, 2vh, 1.25rem);
  }

  .unlock__lockup-logo {
    height: clamp(92px, 28vw, 150px);
  }

  .unlock__machine {
    width: 100%;
    gap: 0.68rem;
  }

  .unlock__machine-label {
    justify-content: center;
    font-size: 0.52rem;
    letter-spacing: 0.16em;
  }

  .unlock__machine-label::before,
  .unlock__machine-label::after {
    display: none;
  }

  .unlock__machine-code {
    gap: 0.48rem;
    padding: 0.82rem 0.58rem clamp(4.85rem, 21vw, 5.75rem);
  }

  .unlock__machine-frame {
    height: clamp(15rem, 74vw, 18rem);
  }

  .unlock__base7-word {
    column-gap: 0.22rem;
  }

  .unlock__base7-word--unlocked {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0.72rem;
  }

  .unlock__base7-token {
    font-size: clamp(1rem, 5.4vw, 1.52rem);
  }

  .unlock__decoded-title {
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 0.06rem;
    padding-bottom: clamp(4.6rem, 21vw, 5.65rem);
    overflow: hidden;
  }

  .unlock__decoded-word {
    max-width: 100%;
    font-size: clamp(2.05rem, 11.2vw, 3.08rem);
    line-height: 0.9;
  }

  .unlock__machine-time {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    min-height: clamp(3.6rem, 16vw, 4.5rem);
    gap: 0.24rem;
    margin-bottom: 0.62rem;
  }

  .unlock__time-value,
  .unlock__time-base7 {
    text-align: center;
  }

  .unlock__time-value {
    font-size: clamp(0.78rem, 3.8vw, 1rem);
    line-height: 1.18;
    white-space: normal;
  }

  .unlock__time-base7 {
    grid-column: auto;
    grid-row: auto;
    max-width: 100%;
    font-size: clamp(0.96rem, 5vw, 1.34rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.unlock__lockup-text {
  font-family: var(--f-krophed);
  font-weight: 900;
  font-style: oblique;
  font-size: clamp(2.5rem, 6vw, 7rem);
  letter-spacing: -0.02em;
  color: #7CFC00;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  flex: 0 0 auto;
  text-shadow:
    0 0 20px rgba(124, 252, 0, 0.3),
    0.5px 0 0 #7CFC00,
    -0.5px 0 0 #7CFC00,
    0 0.5px 0 #7CFC00,
    0 -0.5px 0 #7CFC00;
  animation: lockup-glow 1.5s ease-in-out infinite;
}

/* 像素块肌理偏移 — UNLOCK版 */
.unlock__lockup-text--left .lockup__char:nth-child(1)::before { background-position: 0px 0px, 0px 0px, 0px 0px; animation-delay: 0s; }
.unlock__lockup-text--left .lockup__char:nth-child(2)::before { background-position: 1px 2px, 1px 2px, 3px 1px; animation-delay: -0.12s; }
.unlock__lockup-text--left .lockup__char:nth-child(3)::before { background-position: 2px 1px, 2px 1px, 1px 3px; animation-delay: -0.24s; }
.unlock__lockup-text--left .lockup__char:nth-child(4)::before { background-position: 3px 0px, 3px 0px, 2px 2px; animation-delay: -0.08s; }
.unlock__lockup-text--left .lockup__char:nth-child(5)::before { background-position: 1px 3px, 1px 3px, 0px 1px; animation-delay: -0.2s; }
.unlock__lockup-text--left .lockup__char:nth-child(6)::before { background-position: 0px 2px, 0px 2px, 3px 0px; animation-delay: -0.16s; }

.unlock__lockup-text--right .lockup__char:nth-child(1)::before { background-position: 2px 0px, 2px 0px, 1px 2px; animation-delay: -0.04s; }
.unlock__lockup-text--right .lockup__char:nth-child(2)::before { background-position: 0px 3px, 0px 3px, 2px 1px; animation-delay: -0.18s; }
.unlock__lockup-text--right .lockup__char:nth-child(3)::before { background-position: 3px 1px, 3px 1px, 0px 3px; animation-delay: -0.1s; }
.unlock__lockup-text--right .lockup__char:nth-child(4)::before { background-position: 1px 0px, 1px 0px, 3px 2px; animation-delay: -0.22s; }
.unlock__lockup-text--right .lockup__char:nth-child(5)::before { background-position: 2px 2px, 2px 2px, 1px 0px; animation-delay: -0.06s; }
.unlock__lockup-text--right .lockup__char:nth-child(6)::before { background-position: 0px 1px, 0px 1px, 2px 3px; animation-delay: -0.14s; }
.unlock__lockup-text--right .lockup__char:nth-child(7)::before { background-position: 3px 3px, 3px 3px, 0px 0px; animation-delay: -0.02s; }
.unlock__lockup-text--right .lockup__char:nth-child(8)::before { background-position: 1px 1px, 1px 1px, 3px 3px, 3px 3px; animation-delay: -0.2s; }

/* ══════════════════════════════════════════════
   GATE UNLOCK — GENESIS → UNLOCK 中央开门转场
   由 GSAP timeline 写入变量，滚动进度驱动
   ══════════════════════════════════════════════ */
.gate-transition {
  position: fixed;
  inset: 0;
  z-index: 17;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  --gate-core: 0;
  --gate-slit: 0;
  --gate-world: 0;
  --gate-fracture: 0;
  --gate-dim: 0;
  --gate-blackout: 0;
  --gate-door-alpha: 0;
  --gate-afterglow: 0;
  --gate-open: 0%;
  --gate-glow-width: 0vw;
  --gate-line-y: 0;
  --gate-beam-alpha: 0;
  --gate-edge-glow: 0;
  --gate-flash: 0;
  --gate-cyan: 0;
  --gate-core-x: 50vw;
  --gate-core-y: 48vh;
}

.gate-transition__dim,
.gate-transition__door,
.gate-transition__beam,
.gate-transition__flash,
.gate-transition__scan {
  position: absolute;
  pointer-events: none;
}

.gate-transition__dim {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(0, 0, 0, calc(var(--gate-blackout) * 0.96)), rgba(0, 0, 0, calc(var(--gate-blackout) * 0.96))),
    radial-gradient(circle at var(--gate-core-x) var(--gate-core-y), rgba(124, 252, 0, calc(var(--gate-core) * 0.08)), transparent 18%),
    radial-gradient(circle at var(--gate-core-x) var(--gate-core-y), transparent 0 22%, rgba(0, 0, 0, calc(var(--gate-dim) * 0.78)) 72%);
  opacity: 1;
}

.gate-transition__door {
  top: 0;
  bottom: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 1), rgba(3, 5, 5, 0.99)),
    repeating-linear-gradient(135deg, rgba(124, 252, 0, 0.045) 0 1px, transparent 1px 12px);
  opacity: var(--gate-door-alpha);
  will-change: width, opacity;
}

.gate-transition__door--left {
  left: 0;
  width: max(0px, calc(var(--gate-core-x) - var(--gate-open)));
  box-shadow:
    inset -1px 0 0 rgba(192, 255, 166, calc(var(--gate-edge-glow) * 0.48)),
    16px 0 44px rgba(124, 252, 0, calc(var(--gate-edge-glow) * 0.34)),
    34px 0 84px rgba(0, 229, 255, calc(var(--gate-edge-glow) * 0.14));
}

.gate-transition__door--right {
  right: 0;
  width: max(0px, calc(100vw - var(--gate-core-x) - var(--gate-open)));
  box-shadow:
    inset 1px 0 0 rgba(190, 255, 252, calc(var(--gate-edge-glow) * 0.42)),
    -16px 0 44px rgba(0, 229, 255, calc(var(--gate-edge-glow) * 0.26)),
    -34px 0 84px rgba(124, 252, 0, calc(var(--gate-edge-glow) * 0.14));
}

.gate-transition__beam {
  z-index: 5;
  top: var(--gate-core-y);
  height: 116vh;
  left: var(--gate-core-x);
  width: max(2px, calc(2px + var(--gate-glow-width) * 0.04));
  transform: translate(-50%, -50%) scaleY(var(--gate-line-y));
  transform-origin: center center;
  background:
    linear-gradient(90deg,
      rgba(124, 252, 0, 0),
      rgba(210, 255, 185, calc(var(--gate-slit) * 0.95)),
      rgba(124, 252, 0, calc(var(--gate-slit) * 0.9)),
      rgba(0, 229, 255, calc(var(--gate-cyan) * 0.5)),
      rgba(124, 252, 0, 0));
  box-shadow:
    0 0 calc(12px + var(--gate-glow-width) * 0.24) rgba(124, 252, 0, calc(var(--gate-slit) * 0.82)),
    0 0 calc(28px + var(--gate-glow-width) * 0.52) rgba(0, 229, 255, calc(var(--gate-cyan) * 0.3));
  opacity: calc(var(--gate-slit) * var(--gate-beam-alpha));
  will-change: transform, width, opacity;
}

.gate-transition__flash {
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at var(--gate-core-x) var(--gate-core-y), rgba(255, 255, 246, 0.98) 0 18%, rgba(235, 255, 224, 0.88) 24%, rgba(255, 255, 255, 0.66) 48%, rgba(255, 255, 255, 0.32) 72%, transparent 100%);
  opacity: var(--gate-flash);
  mix-blend-mode: screen;
  backdrop-filter: blur(calc(var(--gate-flash) * 10px));
}

.gate-transition__beam::before,
.gate-transition__beam::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(10px + var(--gate-glow-width));
  opacity: calc(var(--gate-beam-alpha) * ((var(--gate-slit) * 0.22) + (var(--gate-fracture) * 0.62)));
  filter: blur(14px);
}

.gate-transition__beam::before {
  right: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 252, 0, 0.58));
}

.gate-transition__beam::after {
  left: 100%;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.42), transparent);
}

.gate-transition__scan {
  inset: 0;
  z-index: 8;
  background:
    repeating-linear-gradient(0deg, rgba(124,252,0,0.08) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(0,229,255,0.055) 0 1px, transparent 1px 13px);
  mix-blend-mode: screen;
  opacity: calc(var(--gate-fracture) * 0.25);
}

.unlock-scroll-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(28px, 5vh, 64px);
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.8s ease;
}

.unlock-scroll-hint.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: originHintFloat 3s ease-in-out infinite 1s;
}

/* FUTURE — 居中，亮紫粉色 */
.unlock__lockup-text--left {
  text-align: center;
  color: #F050E8;
  text-shadow:
    0 0 20px rgba(240, 80, 232, 0.3),
    0.5px 0 0 #F050E8,
    -0.5px 0 0 #F050E8,
    0 0.5px 0 #F050E8,
    0 -0.5px 0 #F050E8;
  animation: lockup-glow-pink 1.5s ease-in-out infinite;
}

/* UNLOCKED — 居中，紧贴FUTURE */
.unlock__lockup-text--right {
  text-align: center;
  margin-top: -0.8em;
}

/* FUTURE — 居中，亮紫粉色 (legacy origin selector) */
.origin__lockup-text--left {
  text-align: center;
  color: #F050E8;
  text-shadow:
    0 0 20px rgba(240, 80, 232, 0.3),
    0.5px 0 0 #F050E8,
    -0.5px 0 0 #F050E8,
    0 0.5px 0 #F050E8,
    0 -0.5px 0 #F050E8;
  animation: lockup-glow-pink 1.5s ease-in-out infinite;
}

@keyframes lockup-glow-pink {
  0%, 60%, 100% {
    text-shadow: 0 0 6px rgba(240, 80, 232, 0.15);
  }
  30% {
    text-shadow: 0 0 30px rgba(240, 80, 232, 0.6),
                 0 0 60px rgba(240, 80, 232, 0.3),
                 0 0 90px rgba(240, 80, 232, 0.1);
  }
}

/* UNLOCKED — 居中，紧贴FUTURE */
.origin__lockup-text--right {
  text-align: center;
  margin-top: -0.8em;
}

.origin__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--side-pad);
}

.origin__title {
  margin-bottom: 2rem;
}

.origin__title-ava {
  font-family: var(--f-ava);
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 9rem);
  letter-spacing: var(--tracking-mega);
  background: linear-gradient(135deg, #5ADE00 0%, #7CFC00 40%, #A0FF40 60%, #7CFC00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 0 40px rgba(124, 252, 0, 0.15));
}

.origin__subtitle {
  font-family: var(--f-heading);
  font-weight: var(--w-medium);
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  letter-spacing: var(--tracking-snug);
  color: var(--c-silver);
  max-width: 680px;
  margin: 0 auto;
  line-height: var(--leading-normal);
  opacity: 0;
  animation: fadeUp 1s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ORIGIN 声纳ping鼠标滚动提示 — 双色描边 + 光晕扩散 ── */
.origin__scroll-hint {
  position: fixed;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12; /* 高于origin__inner(z:1)和mosaic(z:2) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.origin__scroll-hint.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: originHintFloat 3s ease-in-out infinite 1s;
}
.origin__scroll-hint.is-faded {
  opacity: 0;
  pointer-events: none;
}

/* 鼠标SVG+ping光环的包裹容器 */
.origin__mouse-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 声纳ping光环 — 从鼠标中心向外扩散 */
.origin__ping-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
  border-radius: 50%;
  border: 1.5px solid #7CFC00;
  opacity: 0;
  pointer-events: none;
  animation: sonarPing 3s ease-out infinite;
}
.origin__ping-ring--delay {
  animation-delay: 1.5s;
}
@keyframes sonarPing {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(5); opacity: 0; }
}

/* 双色描边鼠标SVG */
.origin__mouse-svg {
  filter: drop-shadow(0 0 6px rgba(124, 252, 0, 0.35))
          drop-shadow(0 0 12px rgba(240, 80, 232, 0.15));
  position: relative;
  z-index: 1;
}

/* 滚轮竖线上下动画 */
.origin__wheel-line {
  animation: wheelScroll 2s ease-in-out infinite;
}
@keyframes wheelScroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(4px); opacity: 0.4; }
}

/* SCROLL文字 */
.origin__scroll-text {
  font-family: var(--f-system);
  font-weight: 400;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #7CFC00;
  -webkit-text-fill-color: #7CFC00;
  text-shadow: 0 0 8px rgba(124, 252, 0, 0.4);
  position: relative;
  z-index: 1;
}

/* 整体轻微上下浮动 */
@keyframes originHintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}


/* ═══════════════════════════════════════════
   MIND — 认知三维度
   ═══════════════════════════════════════════ */
.mind {
  position: relative;
  z-index: 5;
  min-height: 430vh;
  background:
    linear-gradient(
      160deg,
      var(--c-deep) 0%,
      var(--c-stone) 25%,
      var(--c-granite) 50%,
      var(--c-stone) 75%,
      var(--c-deep) 100%
  );
  overflow: clip;
}

.mind::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(4rem, 12vh, 8rem);
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0), rgba(2, 4, 3, 0.78) 46%, #020403 100%),
    repeating-linear-gradient(90deg, rgba(124,252,0,0.035) 0 1px, transparent 1px 76px);
}

.mind__stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: clamp(3.4rem, 5.8vh, 5rem) 0 clamp(2rem, 4vh, 3.2rem);
  background: url('../img/mind_bg_9x16.webp') center / cover no-repeat;
  isolation: isolate;
}

.mind__stage::before,
.mind__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mind__stage::before {
  background:
    linear-gradient(90deg, rgba(124,252,0,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(124,252,0,0.025) 1px, transparent 1px);
  background-size: 9.5rem 9.5rem, 9.5rem 9.5rem;
  mask-image: radial-gradient(circle at 40% 55%, black 0%, transparent 72%);
  opacity: 0.42;
  transform: translate3d(var(--mind-grid-x, 0), 0, 0);
}

.mind__stage::after {
  background:
    radial-gradient(circle at 24% 26%, rgba(124,252,0,0.12), transparent 24%),
    radial-gradient(circle at 78% 62%, rgba(12,170,255,0.10), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,0.22), transparent 34%, rgba(0,0,0,0.34));
  opacity: 0.78;
}

.mind__parallax {
  position: absolute;
  inset: -12% -8%;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.mind__parallax--far {
  background:
    repeating-linear-gradient(118deg, transparent 0 34px, rgba(69,142,185,0.12) 35px 37px, transparent 38px 74px);
  opacity: 0.48;
  transform: translate3d(var(--mind-far-x, 0), var(--mind-far-y, 0), 0);
}

.mind__parallax--mid {
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(124,252,0,0.2) 47.2%, transparent 47.8%),
    linear-gradient(0deg, transparent 0 58%, rgba(124,252,0,0.12) 58.3%, transparent 58.8%);
  opacity: 0.22;
  filter: blur(0.4px);
  transform: translate3d(var(--mind-mid-x, 0), var(--mind-mid-y, 0), 0);
}

.mind__header {
  position: relative;
  z-index: 4;
  padding: 0 var(--side-pad);
  margin-bottom: clamp(0.65rem, 1.5vh, 1.35rem);
}

.mind__viewport {
  position: relative;
  z-index: 3;
  height: calc(100svh - clamp(8.8rem, 14.5vh, 12rem));
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: visible;
  perspective: 1400px;
  perspective-origin: 50% 48%;
}

.mind__track {
  position: relative;
  width: min(88vw, 1280px);
  height: min(66vh, 640px);
  min-height: 510px;
  transform-style: preserve-3d;
  transform: translate3d(var(--mind-deck-x, 0), var(--mind-deck-y, 0), 0);
  will-change: transform;
  animation: mindDeckFloat 7s ease-in-out infinite;
}

.mind__card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: clamp(2.8rem, 4.6vw, 5.5rem);
  min-height: 0;
  opacity: 0;
  transform: translate3d(0, 0, -320px) scale(0.66) rotateY(-28deg);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: opacity 0.38s ease, filter 0.38s ease;
  perspective: 1200px;
  filter: saturate(0.62) brightness(0.56) blur(0.4px);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.mind__card.is-active {
  opacity: 1;
  filter: saturate(1) brightness(1) blur(0);
  pointer-events: auto;
}

.mind__card::before,
.mind__card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mind__card::before {
  inset: -0.8rem;
  border: 1px solid rgba(124,252,0,0.22);
  background: linear-gradient(135deg, rgba(124,252,0,0.05), transparent 34%, rgba(0,0,0,0.12));
  box-shadow: inset 0 0 0 1px rgba(124,252,0,0.04), 0 0 42px rgba(124,252,0,0.07);
  transform: translateZ(-1px);
}

.mind__card::after {
  width: 4.5rem;
  height: 1px;
  top: 50%;
  left: calc(55% - 2.25rem);
  background: linear-gradient(90deg, transparent, rgba(124,252,0,0.95), transparent);
  box-shadow: 0 0 18px rgba(124,252,0,0.55);
}

.mind__card.is-active::before,
.mind__card.is-active::after {
  opacity: 1;
}

.mind__card-visual {
  flex: 0 0 min(60%, 820px);
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(223,228,225,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
  transform: translate3d(var(--mind-visual-x, 0), var(--mind-visual-y, 0), 34px);
  will-change: transform;
}

.mind__card-visual::before,
.mind__card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.mind__card-visual::before {
  background: linear-gradient(90deg, transparent 0%, rgba(124,252,0,0.14) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-130%);
}

.mind__card.is-active .mind__card-visual::before {
  animation: mindScan 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mind__card-visual::after {
  background:
    linear-gradient(180deg, transparent 0 86%, rgba(0,0,0,0.28)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
  opacity: 0.12;
}

.mind__card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) saturate(0.8);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.mind__card:hover .mind__card-visual img,
.mind__card.is-active .mind__card-visual img {
  filter: brightness(0.75) saturate(0.9);
  transform: scale(1.03);
}

.mind__card-text {
  flex: 0 1 36rem;
  max-width: min(36rem, 32vw);
  min-width: 0;
  padding: clamp(2rem, 3vw, 3rem) 0;
  transform: translate3d(var(--mind-text-x, 0), var(--mind-text-y, 0), 72px);
  will-change: transform;
  overflow-wrap: normal;
}

.mind__card-index {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--f-system);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: rgba(124,252,0,0.7);
  text-transform: uppercase;
}

.mind__card-label {
  font-family: var(--f-trobus);
  font-weight: var(--w-bold);
  font-size: clamp(1.7rem, 2.8vw, 2.85rem);
  letter-spacing: var(--tracking-snug);
  margin-bottom: 1.5rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mind__card-desc {
  font-family: var(--f-body);
  font-weight: var(--w-bold);
  font-size: clamp(1.02rem, 1.22vw, 1.24rem);
  line-height: var(--leading-loose);
  color: var(--c-silver);
  max-width: 32rem;
  text-wrap: balance;
}

.mind__progress {
  position: absolute;
  right: var(--side-pad);
  bottom: clamp(2rem, 5vh, 3.2rem);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.mind__progress span {
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(223,228,225,0.22);
  background: rgba(223,228,225,0.08);
  transform: rotate(45deg) scale(0.86);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.mind__progress span.is-active {
  border-color: rgba(124,252,0,0.9);
  background: #7CFC00;
  box-shadow: 0 0 18px rgba(124,252,0,0.65);
  transform: rotate(45deg) scale(1.45);
}

.mind__progress::before {
  content: "MIND VECTOR";
  margin-right: 0.65rem;
  font-family: var(--f-system);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(223,228,225,0.38);
  transform: translateY(1px);
}

@keyframes mindScan {
  0% { opacity: 0; transform: translateX(-130%); }
  22% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(130%); }
}

@keyframes mindDeckFloat {
  0%, 100% { transform: translate3d(var(--mind-deck-x, 0), var(--mind-deck-y, 0), 0); }
  50% { transform: translate3d(var(--mind-deck-x, 0), calc(var(--mind-deck-y, 0) - 10px), 0); }
}

/* Mobile */
@media (max-width: 768px) {
  .mind {
    min-height: auto;
    padding: 0;
  }
  .mind__stage {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 6rem var(--side-pad);
  }
  .mind__header {
    padding: 0;
    margin-bottom: 4rem;
  }
  .mind__viewport {
    height: auto;
    min-height: 0;
  }
  .mind__track {
    display: block;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    animation: none;
    transform: none !important;
  }
  .mind__card {
    position: relative;
    inset: auto;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
    width: 100%;
    min-height: 0;
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
  }
  .mind__card-visual,
  .mind__card-text {
    order: unset !important;
    flex: none;
    width: 100%;
    max-width: 100%;
    transform: none !important;
  }
  .mind__card-desc {
    max-width: 100%;
    text-wrap: auto;
  }
  .mind__progress {
    display: none;
  }
}


/* ═══════════════════════════════════════════
   TRANSITIONS
   ═══════════════════════════════════════════ */

/* MIND → WORKS 引言条 */
.transition--mind-works {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    170deg,
    #020403 0%,
    var(--c-granite) 34%,
    var(--c-stone) 52%,
    var(--c-abyss) 100%
  );
  position: relative;
  padding: 0 var(--side-pad);
  overflow: hidden;
  isolation: isolate;
  margin-top: -2px;
  margin-bottom: -2px;
  box-shadow:
    0 -10vh 0 #020403,
    0 10vh 0 #020302;
  transform: translateZ(0);
}

.transition--mind-works::before,
.transition--mind-works::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.transition--mind-works::before {
  inset: -12vh 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.72) 0%, transparent 24%, transparent 72%, rgba(0,0,0,0.82) 100%),
    repeating-linear-gradient(90deg, rgba(124,252,0,0.055) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.026) 0 1px, transparent 1px 7px),
    radial-gradient(ellipse at 50% 50%, rgba(124,252,0,0.1), transparent 48%);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.transition--mind-works::after {
  top: 50%;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.5), #7CFC00, rgba(240,80,232,0.42), transparent);
  box-shadow: 0 0 18px rgba(124,252,0,0.55), 0 0 72px rgba(0,229,255,0.18);
  transform: translate3d(-100%, -50%, 0);
  animation: transitionSignalSweep 3.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.transition__quote {
  font-family: var(--f-heading);
  font-weight: var(--w-light);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: var(--tracking-snug);
  color: rgba(224, 235, 232, 0.56);
  text-align: center;
  position: relative;
  z-index: 3;
  font-style: italic;
  text-shadow: 0 0 18px rgba(0,0,0,0.78);
  animation: transitionQuoteCalibrate 3.8s ease-in-out infinite;
}

.transition__quote::before,
.transition__quote::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(78vw, 42rem);
  height: 1px;
  transform: translateX(-50%) scaleX(0.4);
  background: linear-gradient(90deg, transparent, rgba(124,252,0,0.34), transparent);
  opacity: 0.52;
}

.transition__quote::before {
  top: -1.15rem;
}

.transition__quote::after {
  bottom: -1.2rem;
}

@keyframes transitionSignalSweep {
  0% { opacity: 0; transform: translate3d(-100%, -50%, 0) scaleX(0.2); }
  18% { opacity: 0.92; }
  46% { opacity: 0.72; transform: translate3d(0, -50%, 0) scaleX(1); }
  72%, 100% { opacity: 0; transform: translate3d(100%, -50%, 0) scaleX(0.34); }
}

@keyframes transitionQuoteCalibrate {
  0%, 100% {
    color: rgba(224, 235, 232, 0.48);
    text-shadow: 0 0 18px rgba(0,0,0,0.78);
  }
  46% {
    color: rgba(236, 255, 246, 0.82);
    text-shadow: 0 0 18px rgba(124,252,0,0.24), 0 0 42px rgba(0,229,255,0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .transition--mind-works::after,
  .transition__quote {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════
   MANIFEST — 视频宣言：上方旧文案→视频放大铺满全屏→下方短刀文案→自然进入CREED
   ═══════════════════════════════════════════ */

/* 容器 */
.manifest {
  position: relative;
  z-index: 2;
  background: linear-gradient(
    170deg,
    #000 0%,
    var(--c-abyss) 40%,
    #000 100%
  );
  padding: clamp(4rem, 8vh, 8rem) var(--side-pad) 0;
}

.manifest__prose,
.manifest__video-anchor {
  position: relative;
  z-index: 2;
}

/* anchor — 包裹sticky视频和spacer
   spacer在内部，高度由JS设定
   sticky视频的粘性范围 = anchor总高度 - 视频高度 = spacer高度 */
.manifest__video-anchor {
  position: relative;
  z-index: 5; /* 高于CREED，放大时覆盖下方 */
  width: 100%;
}

/* 视频包裹 — sticky定位
   初始：960px宽居中，8px圆角
   滚动放大：JS设transform:scale() + transform-origin:center top
   顶边始终贴视口顶部，从顶边中心向下向两侧扩展 */
.manifest__video-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 960px;
  max-width: 90vw;
  aspect-ratio: 16 / 9;
  margin: clamp(2rem, 4vh, 4rem) auto 0;
  border-radius: 8px;
  overflow: hidden;
  transform-origin: center top;
  /* will-change由JS在放大阶段临时添加 */
}

.manifest__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* spacer — 撑开滚动距离，高度由JS设定 */
.manifest__spacer {
  pointer-events: none;
}

/* 上方旧文案 — fixed叠加在视频上方空出区域
   默认隐藏，IntersectionObserver触发逐行淡入 */
.manifest__prose {
  text-align: center;
  padding: 0 var(--side-pad);
  padding-bottom: clamp(2rem, 4vh, 4rem);
}

.manifest__prose-line {
  font-family: var(--f-heading);
  font-weight: var(--w-medium);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  letter-spacing: 0.08em;
  color: var(--c-moon);
  line-height: var(--leading-snug);
  margin-bottom: clamp(1rem, 2vh, 1.8rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.manifest__prose-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.manifest__prose-line:last-child {
  margin-bottom: 0;
}

.manifest__prose-line--final {
  font-weight: var(--w-bold);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* 下方短刀式文案 — fixed叠加在视频下方空出区域
   默认隐藏，进入视口时由JS加.is-active
   滚动逐行淡入，视频放大时整体淡出(.is-fading) */
.manifest__verse {
  text-align: center;
  padding: 0 var(--side-pad);
  padding-top: clamp(2rem, 4vh, 4rem);
  padding-bottom: clamp(2rem, 4vh, 4rem);
}

.manifest__verse-line {
  font-family: var(--f-heading);
  font-weight: var(--w-medium);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  letter-spacing: 0.08em;
  color: var(--c-moon);
  line-height: var(--leading-snug);
  margin-bottom: clamp(1rem, 2vh, 1.8rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.manifest__verse-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.manifest__verse-line:last-child {
  margin-bottom: 0;
}

.manifest__verse-line--final {
  font-weight: var(--w-bold);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}


/* ═══════════════════════════════════════════
   WORKS — Signal Wall / Visual Archive
   ═══════════════════════════════════════════ */
.works {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(4rem, 7vh, 6rem) var(--side-pad) clamp(3rem, 6vh, 5rem);
  background:
    radial-gradient(circle at 72% 18%, rgba(0, 229, 255, 0.13), transparent 30%),
    radial-gradient(circle at 18% 85%, rgba(124, 252, 0, 0.12), transparent 28%),
    linear-gradient(135deg, #030506 0%, var(--c-abyss) 45%, #020302 100%);
  overflow: hidden;
  isolation: isolate;
}

.works::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.032) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, rgba(124,252,0,0.08), transparent 22%, rgba(0,216,255,0.08) 72%, transparent);
  mix-blend-mode: screen;
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}

.works::after {
  content: "SIGNAL WALL // MACHINE MADE THROUGH ME // SIGNAL WALL //";
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: clamp(3rem, 8vh, 6rem);
  font-family: var(--f-heading);
  font-size: clamp(4rem, 8vw, 8rem);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  white-space: nowrap;
  color: rgba(180, 210, 230, 0.045);
  pointer-events: none;
  z-index: 0;
}

.works__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.works__intro {
  max-width: 42rem;
  margin-top: clamp(0.8rem, 1.5vh, 1.2rem);
  font-family: var(--f-system);
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  line-height: var(--leading-relaxed);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(222, 242, 246, 0.64);
}

.lang-zh .works__intro {
  letter-spacing: 0.12em;
}

.works__meta {
  display: grid;
  gap: 0.75rem;
  min-width: min(22rem, 34vw);
  padding-top: 0.6rem;
  border-top: 1px solid rgba(124, 252, 0, 0.34);
  font-family: var(--f-system);
  font-size: clamp(0.68rem, 0.82vw, 0.8rem);
  line-height: var(--leading-snug);
  letter-spacing: 0.22em;
  text-align: right;
  text-transform: uppercase;
  color: rgba(215, 240, 255, 0.54);
}

.lang-zh .works__meta {
  letter-spacing: 0.1em;
}

.works__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.78fr 0.72fr 0.98fr;
  grid-template-rows: minmax(11rem, 0.78fr) minmax(8.5rem, 0.58fr) minmax(11rem, 0.76fr);
  gap: clamp(0.75rem, 1vw, 1rem);
  max-width: 1400px;
  height: clamp(36rem, 62vh, 44rem);
  margin: 0 auto;
  transform: perspective(1400px) rotateX(1.1deg);
}

.works__item {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #050707;
  border: 1px solid rgba(180, 255, 245, 0.12);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(124,252,0,0.04), 0 24px 80px rgba(0,0,0,0.58);
  cursor: default;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  filter: blur(12px) saturate(1.45);
  clip-path: inset(28% 20% 26% 20%);
  transition: opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.68s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.68s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 0.68s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease;
}

.works__item--hero {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.works__item--avatar {
  grid-column: 3;
  grid-row: 1;
}

.works__item--pulse {
  grid-column: 3;
  grid-row: 2;
}

.works__item--signal {
  grid-column: 4;
  grid-row: 1 / span 2;
}

.works__item--merge {
  grid-column: 1 / span 2;
  grid-row: 3;
}

.works__item--core {
  grid-column: 3 / span 2;
  grid-row: 3;
}

.works__item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
  clip-path: inset(0);
}

.works__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.13) contrast(1.08) brightness(0.82);
  transform: scale(1.035);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.works__item--core img {
  object-fit: cover;
  padding: 0;
  filter: saturate(1.25) brightness(0.95);
  transform: scale(1.08);
}

.works__item--core:hover img {
  transform: scale(1.16);
}

.works__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent, rgba(124,252,0,0.24), rgba(0,229,255,0.12), transparent),
    repeating-linear-gradient(0deg, rgba(124,252,0,0.12) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(0,229,255,0.08) 0 1px, transparent 1px 12px);
  opacity: 0;
  transform: translateX(-130%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.works__item::after {
  content: attr(data-code) " / " attr(data-type);
  position: absolute;
  left: clamp(0.8rem, 1vw, 1rem);
  right: clamp(0.8rem, 1vw, 1rem);
  bottom: clamp(0.8rem, 1vw, 1rem);
  z-index: 3;
  font-family: var(--f-system);
  font-weight: var(--w-bold);
  font-size: clamp(0.62rem, 0.7vw, 0.74rem);
  letter-spacing: 0.22em;
  color: rgba(235,255,255,0.84);
  text-shadow: 0 0 18px #000;
  text-transform: uppercase;
  transform: translateY(4px);
  transition: color 0.35s ease, transform 0.35s ease;
}

.works__item:hover {
  border-color: rgba(124,252,0,0.46);
  box-shadow: 0 0 0 1px rgba(124,252,0,0.16), 0 30px 90px rgba(0,0,0,0.7), 0 0 34px rgba(124,252,0,0.1);
}

.works__item:hover img {
  filter: saturate(1.34) contrast(1.18) brightness(1);
  transform: scale(1.07);
}

.works__item:hover::before {
  animation: worksScan 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.works__item.is-refreshing::before {
  animation: worksRefreshScan 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.works__item:hover::after {
  color: #7CFC00;
  transform: translateY(0);
}

@keyframes worksScan {
  0% { opacity: 0.85; }
  to { transform: translateX(130%); }
}

@keyframes worksRefreshScan {
  0% {
    opacity: 0;
    transform: translateX(-130%);
  }
  22% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateX(130%);
  }
}

@keyframes archiveShellCompose {
  0% {
    opacity: 0;
    filter: blur(18px) saturate(1.8);
    transform: translateY(22px) scale(0.965);
    clip-path: inset(44% 44% 44% 44%);
  }
  28% {
    opacity: 0.45;
    filter: blur(12px) saturate(1.55);
    transform: translateY(8px) scale(0.982);
    clip-path: inset(26% 18% 28% 24%);
  }
  58% {
    opacity: 0.82;
    filter: blur(5px) saturate(1.28);
    clip-path: inset(6% 10% 8% 5%);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateY(0) scale(1);
    clip-path: inset(0);
  }
}

@keyframes archiveShellDecompose {
  0% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateY(0) scale(1);
    clip-path: inset(0);
  }
  44% {
    opacity: 0.62;
    filter: blur(8px) saturate(1.6);
    transform: translateY(-5px) scale(0.995);
    clip-path: inset(8% 5% 8% 10%);
  }
  100% {
    opacity: 0;
    filter: blur(18px) saturate(1.8);
    transform: translateY(-12px) scale(0.975);
    clip-path: inset(42% 38% 40% 42%);
  }
}

@keyframes archiveShellGrid {
  0% { opacity: 0.9; transform: scaleX(0.12); transform-origin: center; }
  42% { opacity: 0.46; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes archiveShellGridOut {
  0% { opacity: 0; transform: scaleX(1); }
  28% { opacity: 0.56; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0.18); transform-origin: center; }
}

@keyframes archiveShellSweep {
  0% { opacity: 0; transform: translateX(-120%); }
  22% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(120%); }
}

@keyframes archiveShellSweepOut {
  0% { opacity: 0; transform: translateX(120%); }
  30% { opacity: 0.82; }
  100% { opacity: 0; transform: translateX(-120%); }
}

@media (max-width: 1100px) {
  .works__header {
    display: block;
  }
  .works__meta {
    max-width: 34rem;
    min-width: 0;
    margin-top: 1.75rem;
    text-align: left;
  }
  .works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
    transform: none;
  }
  .works__item,
  .works__item--hero,
  .works__item--avatar,
  .works__item--pulse,
  .works__item--signal,
  .works__item--merge,
  .works__item--core {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .works__item--hero,
  .works__item--merge {
    grid-column: span 2;
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 640px) {
  .works {
    padding-top: 5rem;
  }
  .works__grid {
    grid-template-columns: 1fr;
  }
  .works__item,
  .works__item--hero,
  .works__item--merge {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }
  .works__item--merge {
    aspect-ratio: 4 / 3;
  }
  .works__item--core {
    aspect-ratio: 4 / 3;
  }
  .works__meta {
    letter-spacing: 0.14em;
  }
}

/* ═══════════════════════════════════════════
   ARCHIVE OVERLAY — Fullscreen visual archive
   ═══════════════════════════════════════════ */
body.archive-open {
  overflow: hidden;
}

body.archive-open .site-nav {
  pointer-events: none;
}

.archive {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.archive.is-closing {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.archive__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 20%, rgba(0,229,255,0.16), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(124,252,0,0.13), transparent 26%),
    rgba(0,0,0,0.88);
  backdrop-filter: blur(18px);
}

.archive__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 7px);
  opacity: 0.32;
}

.archive__shell {
  position: relative;
  z-index: 3;
  width: min(1480px, 100%);
  height: min(920px, 100%);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(0.9rem, 1.8vh, 1.3rem);
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid rgba(124,252,0,0.22);
  background:
    linear-gradient(135deg, rgba(4,7,9,0.9), rgba(1,3,4,0.84)),
    linear-gradient(90deg, rgba(124,252,0,0.06), transparent 35%, rgba(0,216,255,0.08));
  box-shadow: 0 34px 120px rgba(0,0,0,0.72), inset 0 0 0 1px rgba(255,255,255,0.035);
  overflow: hidden;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  filter: blur(10px);
  clip-path: inset(18% 22% 18% 22%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.36s ease,
              filter 0.42s ease,
              clip-path 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive__shell::before,
.archive__shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

.archive__shell::before {
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(124,252,0,0.22) 23%, transparent 24% 49%, rgba(0,229,255,0.18) 50%, transparent 51% 74%, rgba(124,252,0,0.16) 75%, transparent 76%),
    repeating-linear-gradient(0deg, rgba(124,252,0,0.18) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(0,229,255,0.12) 0 1px, transparent 1px 12px);
  mix-blend-mode: screen;
}

.archive__shell::after {
  background:
    linear-gradient(110deg, transparent, rgba(124,252,0,0.26), rgba(0,229,255,0.14), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 8px, transparent 8px 18px);
  transform: translateX(-120%);
  mix-blend-mode: screen;
}

.archive.is-open .archive__shell {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0);
}

.archive.is-composing .archive__shell {
  animation: archiveShellCompose 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.archive.is-composing .archive__shell::before {
  animation: archiveShellGrid 720ms steps(7, end) both;
}

.archive.is-composing .archive__shell::after {
  animation: archiveShellSweep 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.archive.is-closing .archive__shell {
  transform: translateY(-10px) scale(0.99);
  opacity: 0;
  filter: blur(12px);
  clip-path: inset(12% 18% 14% 18%);
  transition: transform 0.34s cubic-bezier(0.5, 0, 0.75, 0),
              opacity 0.3s ease,
              filter 0.34s ease,
              clip-path 0.34s cubic-bezier(0.5, 0, 0.75, 0);
}

.archive.is-decomposing .archive__shell {
  animation: archiveShellDecompose 420ms cubic-bezier(0.5, 0, 0.75, 0) both;
}

.archive.is-decomposing .archive__shell::before {
  animation: archiveShellGridOut 420ms steps(5, end) both;
}

.archive.is-decomposing .archive__shell::after {
  animation: archiveShellSweepOut 380ms cubic-bezier(0.5, 0, 0.75, 0) both;
}

.archive__topline,
.archive__info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
}

.archive__eyebrow,
.archive__count {
  font-family: var(--f-system);
  font-size: clamp(0.68rem, 0.75vw, 0.82rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7CFC00;
}

.archive__close,
.archive__nav,
.archive__thumb {
  font-family: var(--f-system);
  border: 1px solid rgba(210,240,245,0.2);
  background: rgba(0,0,0,0.34);
  color: rgba(232,250,255,0.74);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.archive__close {
  padding: 0.55rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.archive__close:hover,
.archive__nav:hover,
.archive__thumb:hover,
.archive__thumb.is-active {
  border-color: rgba(124,252,0,0.7);
  color: #7CFC00;
  background: rgba(124,252,0,0.08);
}

.archive__stage {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.archive__figure {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 22rem;
  overflow: hidden;
  background: #030505;
  border: 1px solid rgba(180,255,245,0.12);
  box-shadow: inset 0 0 0 1px rgba(124,252,0,0.045);
}

.archive__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, transparent, rgba(124,252,0,0.18), transparent);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}

.archive__figure.is-switching::before {
  opacity: 1;
  animation: worksScan 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.archive__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(1.08) contrast(1.05);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), filter 0.42s ease;
}

.archive__image.is-changing {
  opacity: 0;
  transform: scale(1.025);
  filter: saturate(1.35) contrast(1.18);
}

.archive__nav {
  width: clamp(3rem, 5vw, 4.6rem);
  height: clamp(3rem, 5vw, 4.6rem);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive__nav:hover {
  transform: translateY(-2px);
}

.archive__title {
  margin-top: 0.45rem;
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--c-moon);
  text-transform: uppercase;
}

.archive__desc {
  max-width: 32rem;
  margin-top: 0.2rem;
  font-family: var(--f-system);
  font-size: clamp(0.72rem, 0.88vw, 0.9rem);
  line-height: var(--leading-relaxed);
  letter-spacing: 0.12em;
  color: rgba(215,240,245,0.58);
  text-align: right;
  text-transform: uppercase;
}

.lang-zh .archive__desc {
  letter-spacing: 0.08em;
}

.archive__thumbs {
  display: grid;
  grid-template-columns: repeat(16, minmax(3.2rem, 1fr));
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,252,0,0.55) rgba(255,255,255,0.08);
}

.archive__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  min-width: 3.2rem;
  overflow: hidden;
  padding: 0;
}

.archive__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) brightness(0.62);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.archive__thumb:hover img,
.archive__thumb.is-active img {
  filter: saturate(1.15) brightness(1);
  transform: scale(1.06);
}

@media (max-width: 760px) {
  .archive {
    padding: 0;
  }
  .archive__shell {
    width: 100%;
    height: 100%;
    border-left: 0;
    border-right: 0;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }
  .archive__topline,
  .archive__info {
    display: block;
  }
  .archive__close {
    margin-top: 0.8rem;
  }
  .archive__stage {
    grid-template-columns: 1fr;
    align-content: center;
  }
  .archive__figure {
    min-height: 16rem;
    height: min(48vh, 30rem);
  }
  .archive__image {
    object-fit: cover;
  }
  .archive__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
  }
  .archive__nav--prev {
    left: 1rem;
  }
  .archive__nav--next {
    right: 1rem;
  }
  .archive__desc {
    margin-top: 0.8rem;
    text-align: left;
  }
  .archive__thumbs {
    grid-template-columns: repeat(16, 4.5rem);
  }
}


/* ═══════════════════════════════════════════
   CREED — 宣言
   ═══════════════════════════════════════════ */
.creed {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../img/mind_bg_9x16.webp') top / cover no-repeat,
    linear-gradient(
      170deg,
      var(--c-void) 0%,
      var(--c-abyss) 30%,
      var(--c-stone) 55%,
      var(--c-abyss) 80%,
      var(--c-void) 100%
    );
}

.creed__glow {
  position: absolute;
  width: 100vw;
  height: 80vh;
  top: 10%;
  left: -10%;
  background: linear-gradient(
    145deg,
    transparent 20%,
    rgba(200, 175, 110, 0.04) 42%,
    rgba(190, 168, 105, 0.03) 55%,
    transparent 75%
  );
  transform: rotate(-15deg);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.creed__content {
  position: relative;
  z-index: 3;
  text-align: left;
  padding: 0 var(--side-pad);
  max-width: 960px;
}

/* 杂志引文容器 — 左竖线 + 大引号 */
.creed__quote {
  position: relative;
  padding-left: clamp(3rem, 5vw, 5rem);
  border-left: 2px solid #7CFC00;
  margin-top: clamp(3rem, 6vh, 5rem);
  margin-left: clamp(1.5rem, 3vw, 3rem);
}

/* 装饰性大引号 */
.creed__quote::before {
  content: '\201C';
  position: absolute;
  top: -0.3em;
  left: -0.6em;
  font-family: var(--f-heading);
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: #7CFC00;
  line-height: 1;
  pointer-events: none;
  opacity: 0.4;
}

.creed__line {
  font-family: var(--f-heading);
  font-weight: var(--w-medium);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: var(--tracking-snug);
  color: var(--c-moon);
  line-height: var(--leading-snug);
  margin-bottom: clamp(1.8rem, 3vh, 2.8rem);
  opacity: 0;
  min-height: 1.4em; /* 防止空行塌缩 */
}

.creed__line:last-child {
  margin-bottom: 0;
}

/* 打字区域 */
.creed__typed {
  /* 文字由JS逐字填入 */
}

/* 打字光标 */
.creed__cursor {
  display: inline-block;
  color: #7CFC00;
  -webkit-text-fill-color: #7CFC00;
  font-style: oblique;
  font-weight: 900;
  opacity: 0;
  animation: none;
  margin-left: 2px;
}

/* 光标闪烁 — 打字中 */
.creed__cursor.is-active {
  opacity: 1;
  animation: creedBlink 0.8s steps(1) infinite;
}

/* 打字完成但光标持续闪烁 — 仅最后一行 */
.creed__cursor.is-persistent {
  opacity: 1;
  animation: creedBlink 0.8s steps(1) infinite;
}

/* 非最后一行打完后光标消失 */
.creed__cursor.is-done {
  opacity: 0;
  animation: none;
}

@keyframes creedBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.creed__line--final {
  color: transparent;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--w-bold);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}


/* ═══════════════════════════════════════════
   PORTAL — 连接
   ═══════════════════════════════════════════ */
.portal {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    165deg,
    var(--c-ink) 0%,
    var(--c-granite) 30%,
    var(--c-basalt) 55%,
    var(--c-granite) 80%,
    var(--c-deep) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 8rem var(--side-pad);
}

.portal__glow {
  position: absolute;
  width: 80vw;
  height: 60vh;
  bottom: -15%;
  left: -5%;
  background: linear-gradient(
    140deg,
    transparent 30%,
    rgba(200, 175, 110, 0.04) 50%,
    transparent 70%
  );
  transform: rotate(12deg);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.portal__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.section-title--portal {
  margin-bottom: 4rem;
  text-align: center;
}

.portal__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.portal__row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  transition: padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.portal__row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal__row::before,
.portal__row::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.portal__row::before {
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: #7CFC00;
  opacity: 0;
  transform: scaleY(0.25);
  box-shadow: 0 0 18px rgba(124, 252, 0, 0.55);
  transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal__row::after {
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124, 252, 0, 0.08) 16%,
    rgba(124, 252, 0, 0.02) 42%,
    transparent 70%);
  opacity: 0;
  transform: translateX(-24%);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal__row:hover {
  padding-left: 0.8rem;
  background: rgba(124, 252, 0, 0.035);
  border-color: rgba(124, 252, 0, 0.22);
}

.portal__row:hover::before,
.portal__row.is-copied::before {
  opacity: 1;
  transform: scaleY(1);
}

.portal__row:hover::after,
.portal__row.is-copied::after {
  opacity: 1;
  transform: translateX(0);
}

.portal__row:hover .portal__icon {
  color: #7CFC00;
  filter: drop-shadow(0 0 10px rgba(124, 252, 0, 0.55));
}

.portal__row:hover .portal__value,
.portal__row.is-copied .portal__value {
  color: var(--c-moon);
  text-shadow: 0 0 18px rgba(124, 252, 0, 0.18);
}

.portal__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(223, 228, 225, 0.54);
  transition: color 0.3s ease, filter 0.3s ease;
  position: relative;
  z-index: 1;
}

.portal__icon svg {
  width: 20px;
  height: 20px;
}

.portal__value {
  font-family: var(--f-heading);
  font-weight: 900;
  font-style: oblique;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: rgba(223, 228, 225, 0.68);
  letter-spacing: var(--tracking-normal);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════
   OMEGA — 页尾
   ═══════════════════════════════════════════ */
.omega {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem var(--side-pad);
  background: var(--c-void);
  position: relative;
}

.omega__logo {
  height: clamp(50px, 6vw, 72px);
  width: auto;
  opacity: 0.4;
  margin-bottom: 0.5rem;
  transition: opacity 0.4s ease;
  filter: grayscale(0.3);
}

.omega:hover .omega__logo {
  opacity: 0.65;
}

.omega__mark {
  font-family: var(--f-body);
  font-weight: var(--w-regular);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  background: var(--grad-omega);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.omega__domain {
  font-family: var(--f-body);
  font-weight: var(--w-regular);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-loose);
  color: var(--c-dim);
}


/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--c-ink);
  color: var(--c-moon);
  font-family: var(--f-heading);
  font-size: 0.9rem;
  font-weight: var(--w-medium);
  padding: 0.875rem 2rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid var(--c-steel);
  backdrop-filter: blur(10px);
}

.toast.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-nav__burger {
    display: flex;
  }
  .site-nav__links {
    display: none;
  }
  .site-nav {
    padding: 1rem var(--side-pad);
  }
  .site-nav__links {
    gap: 1rem;
  }
  .site-nav__link {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
  .site-nav__icon {
    width: 24px;
    height: 24px;
  }
  .site-nav__icon svg {
    width: 14px;
    height: 14px;
  }
  .origin__title-ava {
    letter-spacing: 0.08em;
  }
  /* Lockup: logo上方 + 文字下方两行 */
  .origin__lockup {
    padding: 0 2rem;
  }
  .origin__lockup-text {
    flex: 0 0 auto;
  }
  .mind {
    padding: 6rem var(--side-pad);
  }
  .mind__header {
    margin-bottom: 3rem;
  }
  .mind__card {
    margin-bottom: 4rem;
    gap: 2rem;
  }
  .transition--mind-works {
    height: 25vh;
  }
  .creed__line {
    margin-bottom: clamp(1.2rem, 2.5vh, 2rem);
  }
  .manifest__prose-line,
  .manifest__verse-line {
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  }
  .manifest__prose-line {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  }
  .portal {
    min-height: 60vh;
    padding: 5rem var(--side-pad);
  }
}

@media (max-width: 480px) {
  .site-nav {
    padding: 0.75rem var(--side-pad);
  }
  .site-nav__links {
    gap: 0.6rem;
  }
  .site-nav__link {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }
  .section-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
  .origin__title-ava {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}


/* ═══════════════════════════════════════════
   GENESIS — 涌现互动：粒子模拟 + 哲学旁白
   ═══════════════════════════════════════════ */

.genesis {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  min-height: 100vh;
  overflow: hidden;
  background: var(--c-void);
  cursor: pointer;
  /* 初始透明+fixed铺满视口，由JS在马赛克消解过程中渐现覆盖ORIGIN */
  /* Phase3完成后JS切回position:relative归入文档流 */
  opacity: 0;
  /* 初始时pointer-events:none，避免遮挡ORIGIN的WebGL交互 */
  /* JS在GENESIS完全显现后(opacity>=1)恢复pointer-events:auto */
  pointer-events: none;
  --genesis-reveal: 0;
  --genesis-blur: 10px;
  --genesis-clip-y: 0%;
  --genesis-scan-opacity: 0;
  --genesis-scan-x: -120%;
  --genesis-exit-y: 0px;
  filter: blur(var(--genesis-blur)) saturate(calc(1 + (1 - var(--genesis-reveal)) * 0.55));
  clip-path: inset(0);
  transform: translate3d(0, var(--genesis-exit-y), 0) scale(calc(0.982 + var(--genesis-reveal) * 0.018));
  will-change: opacity, filter, clip-path, transform;
}

.genesis::before,
.genesis::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--genesis-scan-opacity);
  mix-blend-mode: screen;
}

.genesis::before {
  background:
    repeating-linear-gradient(0deg, rgba(124,252,0,0.12) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(0,229,255,0.08) 0 1px, transparent 1px 10px);
}

.genesis::after {
  background: linear-gradient(110deg, transparent, rgba(124,252,0,0.28), rgba(0,229,255,0.12), transparent);
  transform: translateX(var(--genesis-scan-x));
}

.genesis__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.genesis__header {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 8vh, 8rem) var(--side-pad) 0;
  pointer-events: none;
}

.genesis__subtitle {
  font-family: var(--f-system);
  font-weight: 400;
  font-style: normal;
  color: var(--c-dim);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  margin-top: 0.8rem;
  letter-spacing: var(--tracking-loose);
  text-transform: uppercase;
  -webkit-text-fill-color: unset;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1s ease, transform 1s ease;
}

.genesis__subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.genesis__narration {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: 80%;
  max-width: 680px;
  min-height: 3em;
  font-family: var(--f-krophed);
  font-weight: 900;
  font-style: oblique;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--c-moon);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  pointer-events: none;
  -webkit-text-fill-color: unset;
}

.genesis__narration .narration-char {
  display: inline;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.genesis__narration .narration-char.is-visible {
  opacity: 1;
}

.genesis__narration .narration-char.is-dissolving {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.genesis__phases {
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 14px;
  pointer-events: none;
}

.genesis__phase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-muted);
  transition: background 0.8s ease, box-shadow 0.8s ease, transform 0.4s ease;
}

.genesis__phase-dot.is-active {
  background: #7CFC00;
  box-shadow: 0 0 8px rgba(124, 252, 0, 0.6);
  transform: scale(1.3);
}

.genesis__hint {
  position: absolute;
  bottom: calc(clamp(1.5rem, 3vh, 3rem) + 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--f-system);
  font-weight: 400;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--c-silver);
  letter-spacing: var(--tracking-loose);
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease;
  -webkit-text-fill-color: unset;
  padding: 8px 16px;
  border: 1px solid var(--c-muted);
  border-radius: 2px;
  animation: hintPulse 2.5s ease-in-out infinite;
}

.genesis__hint.is-visible {
  opacity: 1;
}

@keyframes hintPulse {
  0%, 100% { border-color: var(--c-muted); color: var(--c-silver); }
  50% { border-color: #7CFC00; color: #7CFC00; }
}

/* ── GENESIS 锁定提示词 ── */
.genesis__lock-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-family: var(--f-system);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  color: #7CFC00;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  -webkit-text-fill-color: unset;
  white-space: nowrap;
}

.genesis__lock-prompt.is-visible {
  animation: lockPromptFlash 2.4s ease-in-out forwards;
}

@keyframes lockPromptFlash {
  0%    { opacity: 0; }
  8%    { opacity: 1; }
  16%   { opacity: 0.15; }
  24%   { opacity: 1; }
  32%   { opacity: 0.2; }
  40%   { opacity: 0.9; }
  50%   { opacity: 1; }
  70%   { opacity: 1; }
  85%   { opacity: 0.5; }
  100%  { opacity: 0.3; }
}

/* 锁定提示词保持微弱常驻呼吸 */
.genesis__lock-prompt.is-idle {
  opacity: 0.3;
  animation: lockPromptIdle 3s ease-in-out infinite;
}

@keyframes lockPromptIdle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.45; }
}

/* 通关后：打字机 + 粉色 + 闪动光标 + 呼吸感 */
.genesis__lock-prompt.is-revealed {
  opacity: 1;
  color: #F050E8;
  -webkit-text-fill-color: #F050E8;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.45em;
  text-shadow:
    0 0 20px rgba(240, 80, 232, 0.7),
    0 0 50px rgba(240, 80, 232, 0.3);
  animation: lockPromptFadeIn 0.8s ease forwards;
}

@keyframes lockPromptFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* 打字机闪动光标 */
.genesis__lock-prompt .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #F050E8;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
  box-shadow: 0 0 6px rgba(240, 80, 232, 0.8);
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* 打字完成后的呼吸感（忽明忽暗） */
.genesis__lock-prompt.is-breathing {
  animation: lockPromptBreathe 4s ease-in-out infinite;
  text-shadow:
    0 0 20px rgba(240, 80, 232, 0.7),
    0 0 50px rgba(240, 80, 232, 0.3);
}

@keyframes lockPromptBreathe {
  0%, 100% {
    opacity: 0.5;
    text-shadow:
      0 0 10px rgba(240, 80, 232, 0.4),
      0 0 25px rgba(240, 80, 232, 0.15);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 24px rgba(240, 80, 232, 0.9),
      0 0 60px rgba(240, 80, 232, 0.4);
  }
}

/* ── GENESIS Skip 按钮 ── */
.genesis__skip {
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 3rem);
  right: var(--side-pad);
  z-index: 4;
  font-family: var(--f-system);
  font-weight: 400;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--c-dim);
  background: none;
  border: 1px solid var(--c-muted);
  border-radius: 2px;
  padding: 4px 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, color 0.3s ease, border-color 0.3s ease;
  letter-spacing: var(--tracking-loose);
  text-transform: uppercase;
}

.genesis__skip.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.genesis__skip:hover {
  color: var(--c-moon);
  border-color: var(--c-dim);
}




/* ── GENESIS 鼠标滚轮滚动提示 ── */
.genesis__scroll-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 3.2em));
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #F050E8;
  -webkit-text-fill-color: #F050E8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.genesis__scroll-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-50% + 3.2em));
  animation: scrollHintBounce 2.4s ease-in-out infinite 0.8s;
}

.genesis.is-gate-collapsing .genesis__header,
.genesis.is-gate-collapsing .genesis__narration,
.genesis.is-gate-collapsing .genesis__phases,
.genesis.is-gate-collapsing .genesis__hint,
.genesis.is-gate-collapsing .genesis__lock-prompt,
.genesis.is-gate-collapsing .genesis__scroll-hint,
.genesis.is-gate-collapsing .genesis__skip {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.28s ease !important;
}

.scroll-hint__mouse {
  color: #F050E8;
  animation: scrollMouseIdle 3s ease-in-out infinite;
}

/* 鼠标内部滚动指示线上下动画 */
.scroll-hint__line {
  animation: scrollLineMove 2s ease-in-out infinite;
}

.scroll-hint__text {
  font-family: var(--f-system);
  font-weight: 400;
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translate(-50%, calc(-50% + 3.2em)); }
  50%      { transform: translate(-50%, calc(-50% + 3.2em + 5px)); }
}

@keyframes scrollMouseIdle {
  0%, 100% { color: #F050E8; opacity: 0.5; }
  50%      { color: #F050E8; opacity: 1; }
}

@keyframes scrollLineMove {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* Mobile GENESIS */
@media (max-width: 768px) {
  .genesis {
    min-height: 100svh;
  }
  .genesis__canvas {
    min-height: 100svh;
  }
  .genesis__narration {
    width: 88%;
    bottom: 14%;
    font-size: clamp(0.9rem, 3.2vw, 1.15rem);
    min-height: 4em;
  }
  .genesis__phase-dot {
    width: 4px;
    height: 4px;
  }
  .genesis__hint {
    font-size: 0.65rem;
    bottom: calc(clamp(1.5rem, 3vh, 3rem) + 20px);
  }
  .genesis__lock-prompt {
    font-size: clamp(0.55rem, 2.8vw, 0.7rem);
    letter-spacing: 0.18em;
    white-space: normal;
    max-width: 85%;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 768px) {
    .genesis,
    .genesis__canvas {
      min-height: 100dvh;
    }
  }
}

/* Mobile ORIGIN scroll hint */
@media (max-width: 768px) {
  .origin__scroll-hint {
    bottom: 2.5rem;
  }
  .origin__mouse-svg {
    width: 20px;
    height: 30px;
  }
  .origin__ping-ring {
    width: 22px;
    height: 22px;
    margin-top: -11px;
    margin-left: -11px;
  }
  .origin__scroll-text {
    font-size: 0.5rem;
  }
}


/* ═══════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════ */
::selection {
  background: rgba(154, 156, 176, 0.25);
  color: var(--c-moon);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--c-abyss);
}

::-webkit-scrollbar-thumb {
  background: var(--c-steel);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-dim);
}
