/* 自托管字体（开源可商用） */
@font-face {
  font-family: "SmileySans";
  src: url("../fonts/SmileySans-subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/ChakraPetch-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --white: #f4f3ef;
  --muted: #8e939e;
  --line: rgba(255, 255, 255, 0.16);
  --orange: #ff7a1a;
  --cyan: #8eeaff;
  --violet: #8068ff;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Sans SC", "Source Han Sans CN", "Microsoft YaHei", sans-serif;
  --font-tech: "Chakra Petch", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  font-family: var(--font-body);
  background: #030304;
  color: var(--white);
  scroll-behavior: smooth;
}
.section-spacer-long { height: 80vh; }
.section-spacer-short { height: 60vh; }

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; background: #030304; }
body { overflow-x: hidden; }
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }

#webgl, .fallback, .grain, .pointer-halo {
  position: fixed;
  inset: 0;
}
#webgl { z-index: 0; }
#webgl canvas { width: 100%; height: 100%; display: block; }
.fallback {
  z-index: -1;
  opacity: 0;
  background: #050507 url("../fallback/01-hero-v2.jpg") center/cover no-repeat;
  transition: opacity .5s;
}
.webgl-failed .fallback { z-index: 0; opacity: .58; }
.grain {
  z-index: 2;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.pointer-halo {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58px circle at var(--x, 50%) var(--y, 50%), rgba(255, 190, 110, .16), rgba(255, 150, 70, .07) 45%, transparent 70%),
    radial-gradient(10px circle at var(--x, 50%) var(--y, 50%), rgba(255, 236, 210, .9), rgba(255, 180, 100, .32) 40%, transparent 70%);
  animation: halo-breathe 2.6s ease-in-out infinite;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: #020203;
  transition: opacity .9s cubic-bezier(.7,0,.2,1), visibility .9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-seed { position: absolute; width: 180px; height: 180px; }
.loader-seed i { position: absolute; inset: 0; border: 1px solid rgba(255, 133, 47, .2); border-radius: 50%; animation: loader-orbit 2.2s linear infinite; }
.loader-seed i:nth-child(2) { inset: 32px; border-color: rgba(108, 133, 255, .3); animation-direction: reverse; }
.loader-seed i:nth-child(3) { inset: 72px; background: #fff5df; border: 0; box-shadow: 0 0 16px #fff, 0 0 45px #ff7a1a; }
.loader-copy { transform: translateY(145px); text-align: center; letter-spacing: .2em; }
.loader-copy strong { display: block; font-size: 26px; }
.loader-copy span, .loader-copy b { color: var(--muted); font-size: 12px; font-weight: 400; }
.loader-track { width: 190px; height: 1px; margin: 16px auto 8px; background: #25252a; overflow: hidden; }
.loader-track i { display: block; height: 100%; width: var(--progress, 0%); background: linear-gradient(90deg, var(--violet), #fff, var(--orange)); box-shadow: 0 0 12px var(--orange); transition: width .2s; }
@keyframes loader-orbit { to { transform: rotate(360deg); } }

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  padding: 18px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: saturate(.25) brightness(1.55); }
.brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 400; letter-spacing: .1em; }
nav { position: absolute; left: 50%; display: flex; gap: 38px; opacity: 0; visibility: hidden; transform: translate(-50%, -7px); transition: opacity .45s, transform .55s, visibility .45s; }
.navigation-visible nav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
nav a { color: #91949b; font-size: 13px; letter-spacing: .16em; transition: color .2s; }
nav a:hover { color: #fff; }
.sound { display: flex; align-items: center; gap: 10px; min-width: 112px; padding: 8px 10px; background: rgba(3,3,4,.35); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.sound > span, .sound em { font-size: 10px; font-style: normal; letter-spacing: .13em; }
.sound-bars { display: flex; align-items: center; gap: 2px; width: 29px; height: 13px; }
.sound-bars b { width: 3px; height: 1px; background: #eee; transition: height .25s; }
.sound[aria-pressed="true"] .sound-bars b { animation: equalize .55s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound-bars b:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound-bars b:nth-child(3) { animation-delay: -.1s; }
.sound[aria-pressed="true"] .sound-bars b:nth-child(4) { animation-delay: -.42s; }
@keyframes equalize { from { height: 2px; } to { height: 13px; } }

.panel { position: relative; z-index: 3; min-height: 100svh; overflow: hidden; user-select: none; -webkit-user-select: none; }
.panel.hero { min-height: 125svh; }
.panel { scroll-snap-align: start; }
html { scroll-snap-type: y proximity; }
.kicker { color: #a1a4ae; font-family: var(--font-mono); font-size: 13px; letter-spacing: .22em; }
.chapter h2, .hero h1, .game h2, .contact h2 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: .95; letter-spacing: -.01em; }
.reveal { transition: opacity .5s, transform .65s cubic-bezier(.2,.8,.2,1), filter .8s ease; }

.hero-copy { position: absolute; left: 7vw; top: 32%; }
.hero-copy h1 { font-size: clamp(90px, 13vw, 240px); text-shadow: 0 0 40px rgba(255,255,255,.1); }
.hero-copy h1 span { color: transparent; font-family: var(--font-tech); -webkit-text-stroke: 1px rgba(255,255,255,.6); }
.hero-brand { width: min(760px, 54vw); margin-top: clamp(14px, 1.5vw, 26px); }
.hero-brand p { margin: 0; }
.brand-motto { color: #f0f2f7; font-size: clamp(18px, 1.35vw, 26px); font-weight: 500; line-height: 1.45; letter-spacing: .16em; text-shadow: 0 0 24px rgba(142,234,255,.12); }
.brand-signal { position: relative; display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); width: fit-content; max-width: 100%; margin-top: 11px; padding: 9px 14px 9px 17px; overflow: hidden; border-left: 1px solid rgba(255,122,26,.7); background: linear-gradient(90deg, rgba(12,13,17,.58), rgba(12,13,17,.16) 78%, transparent); }
.brand-signal::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: linear-gradient(90deg, rgba(255,122,26,.8), rgba(142,234,255,.32) 58%, transparent); transform-origin: left; }
.brand-signal::after { content: ""; position: absolute; inset: 0 auto 0 -20%; width: 18%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.brand-signal-copy { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); color: #9299a7; font-size: clamp(11px, .76vw, 13px); letter-spacing: .09em; white-space: nowrap; }
.brand-signal-copy span + span { position: relative; }
.brand-signal-copy span + span::before { content: ""; position: absolute; left: clamp(-15px, -1vw, -9px); top: 50%; width: 1px; height: 12px; background: rgba(255,255,255,.16); transform: translateY(-50%); }
.brand-signal-copy b { color: #f1f3f8; font-weight: 500; }
.brand-signal-copy i { color: rgba(142,234,255,.62); font-style: normal; }
.hero-copy .brand-signal-status { display: flex; align-items: center; gap: 8px; color: #b8bbc3; font-family: var(--font-mono); font-size: clamp(10px, .68vw, 12px); letter-spacing: .12em; white-space: nowrap; }
.brand-signal-status > i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); box-shadow: 0 0 9px rgba(255,122,26,.9); }
.fire-zone { position: fixed; z-index: 4; left: 51%; top: 47%; width: min(39vw, 520px); aspect-ratio: 1; transform: translate(-50%, -50%); background: transparent; border-radius: 50%; cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
body:not(.navigation-visible) .fire-zone { pointer-events: auto; }
.navigation-visible .fire-zone { pointer-events: none; }
.fire-zone:focus-visible { outline: 1px solid rgba(136,216,255,.8); outline-offset: 8px; }
.fire-meta { position: absolute; left: 67%; top: 56%; padding-left: 52px; }
.fire-meta::before { content: ""; position: absolute; left: 0; top: 10px; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #fff); }
.fire-meta span, .fire-meta b { display: block; font-size: 10px; letter-spacing: .2em; }
.fire-meta b { margin-top: 7px; color: var(--orange); }
.instruction { position: absolute; right: 4vw; bottom: 10%; display: flex; align-items: center; gap: 14px; color: #777b84; font-size: 11px; letter-spacing: .08em; line-height: 1.9; }
.instruction b { color: #ddd; font-weight: 400; }
.mouse { width: 20px; height: 30px; border: 1px solid #777; border-radius: 12px; }
.mouse::after { content: ""; display: block; width: 2px; height: 6px; margin: 5px auto; background: var(--orange); }
.scroll-cue { position: absolute; left: 7vw; bottom: 5%; display: flex; gap: 16px; align-items: center; color: #777; font-size: 11px; letter-spacing: .2em; }
.scroll-cue i { width: 70px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; display: block; width: 30%; height: 100%; background: #fff; animation: scan 2s infinite; }
@keyframes scan { from { transform: translateX(-120%); } to { transform: translateX(350%); } }

.centered { position: absolute; inset: auto 0 11%; text-align: center; }
.kindling-instruction { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); color: #777b84; font-size: 11px; letter-spacing: .11em; line-height: 2; text-align: center; }
.kindling-instruction b { color: #eee; font-weight: 400; }
.chapter h2 { font-size: clamp(64px, 10vw, 170px); }
.chapter span { display: block; margin-top: 18px; color: #aeb0b7; font-size: 16px; letter-spacing: .2em; }
.edge-note { position: absolute; top: 52%; color: #656a74; font: 10px/2 var(--font-mono); letter-spacing: .15em; }
.edge-note.left { left: 4vw; }.edge-note.right { right: 4vw; text-align: right; }.edge-note b { color: var(--orange); }

.matrix-title { position: absolute; top: 12%; left: 6vw; }
.matrix-title h2 { font-size: clamp(56px, 7vw, 120px); }
.capabilities { position: absolute; left: 6vw; right: 6vw; bottom: 6%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.capabilities > * { min-height: 115px; padding: 20px; text-align: left; background: rgba(3,4,8,.66); backdrop-filter: blur(12px); cursor: pointer; transition: background .25s, transform .25s; }
.capabilities > *:not(.is-active) { opacity: .58; }
.capabilities > .is-active { background: linear-gradient(115deg, rgba(34,18,14,.9), rgba(6,7,11,.78)); box-shadow: inset 2px 0 #ff6428, inset 0 0 42px rgba(255,80,22,.08); }
.capabilities > *:hover { opacity: 1; }
.capabilities > *:hover { position: relative; z-index: 2; background: rgba(20,26,50,.82); transform: translateY(-4px); }
.capabilities b { float: right; color: #596273; font: 11px var(--font-mono); }
.capabilities strong, .capabilities span { display: block; }
.capabilities strong { margin-top: 18px; font-size: 18px; font-weight: 400; letter-spacing: .1em; }
.capabilities span { margin-top: 7px; color: #747984; font-size: 12px; letter-spacing: .06em; }

.game-art-link { position: absolute; left: 31%; right: 0; top: 18%; bottom: 6%; z-index: 1; cursor: pointer; }
.game-art-link:focus-visible { outline: 2px solid var(--violet); outline-offset: -4px; }
.game-copy { position: absolute; left: 8vw; top: 22%; width: 34vw; z-index: 2; pointer-events: none; }
.game-copy h2 { font-size: clamp(72px, 9.5vw, 150px); }
.game-copy > p:not(.kicker) { max-width: 480px; color: #8a8f9b; font-size: 15px; line-height: 2; }
.game-copy a { display: inline-flex; align-items: center; gap: 45px; margin-top: 16px; padding: 16px 26px; border: 1px solid rgba(151,165,255,.38); border-radius: 99px; font-size: 13px; letter-spacing: .18em; background: rgba(15,16,30,.45); pointer-events: auto; }
.game-copy a span { color: var(--cyan); font-size: 18px; }
.portal-label { position: absolute; right: 9vw; bottom: 13%; font: 10px var(--font-mono); letter-spacing: .15em; text-align: right; color: #777e8d; pointer-events: none; }
.portal-label b { display: block; margin-top: 6px; color: var(--cyan); }

.ecosystem-title { position: absolute; left: 7vw; top: 18%; }
.ecosystem-title h2 { font-size: clamp(60px, 8vw, 140px); }
.orbit-list { position: absolute; right: 6vw; top: 22%; width: 37vw; }
.orbit-list button { width: 100%; padding: 28px 12px; display: grid; grid-template-columns: 55px 1fr; background: transparent; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.orbit-list span { grid-row: span 2; color: #586172; font: 13px var(--font-mono); }
.orbit-list strong { font-weight: 400; font-size: 22px; letter-spacing: .1em; }
.orbit-list i { margin-top: 8px; color: #707681; font-size: 15px; font-style: normal; }

.contact-copy { position: absolute; left: 8vw; top: 20%; width: 44vw; }
.contact-copy h2 {
  font-family: var(--font-tech);
  font-size: clamp(76px, 7.6vw, 142px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.contact-copy h2 span { color: var(--orange); text-shadow: 0 0 35px rgba(255,91,14,.5); }
.contact-copy h2.media-masked-heading {
  --masked-x: 0px;
  --masked-y: 0px;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.06;
  text-align: left;
  background-image: linear-gradient(115deg, rgba(214,231,255,.48), rgba(255,147,76,.34)), url("../assets/img/galaxy-user-reference.webp");
  background-blend-mode: screen, normal;
  background-position: calc(50% + var(--masked-x)) calc(50% + var(--masked-y));
  background-repeat: no-repeat;
  background-size: 125% 125%, 150% 150%;
  -webkit-background-clip: text;
  background-clip: text;
  clip-path: inset(0 100% 0 0);
  filter: brightness(1.08) saturate(1.15);
  opacity: 0;
  transform: translate3d(0, 1.15em, 0);
  transform-origin: 0 100%;
  transition: clip-path 1.1s cubic-bezier(.22,1,.36,1), opacity .55s ease, transform 1.1s cubic-bezier(.22,1,.36,1);
  will-change: background-position, transform, clip-path;
}
.contact-copy h2.media-masked-heading.is-media-visible { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
.contact-copy h2.media-masked-heading span {
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  background-image: inherit;
  background-blend-mode: inherit;
  background-position: inherit;
  background-repeat: inherit;
  background-size: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .contact-copy h2.media-masked-heading { color: #f7f8fc; -webkit-text-fill-color: currentColor; background: none; }
  .contact-copy h2.media-masked-heading span { color: var(--orange); -webkit-text-fill-color: currentColor; text-shadow: 0 0 35px rgba(255,91,14,.5); }
}
@media (forced-colors: active) {
  .contact-copy h2.media-masked-heading { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; clip-path: none; }
  .contact-copy h2.media-masked-heading span { color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
.contact-manifesto-cn {
  margin: 28px 0 0;
  color: #a5a9b3;
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 400;
  letter-spacing: .32em;
  line-height: 1.5;
}
.contact-origin-line {
  margin: 14px 0 0;
  color: #777d89;
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1.7;
}
.contact-channel { margin: 24px 0 0; color: #a5a7ae; font-size: 16px; letter-spacing: .14em; }
.contact-copy strong { color: #fff; font-weight: 500; }
.qr-card { position: absolute; right: 9vw; top: 25%; width: 236px; padding: 18px; border: 1px solid rgba(118,146,255,.38); background: radial-gradient(circle at 100% 0, rgba(89,80,255,.16), transparent 42%), rgba(5,7,15,.78); box-shadow: 0 0 0 1px rgba(255,92,28,.06), 0 24px 70px rgba(0,0,0,.52), 0 0 45px rgba(75,96,255,.12); backdrop-filter: blur(16px); }
.qr-card::before, .qr-card::after { content: ""; position: absolute; width: 24px; height: 24px; pointer-events: none; }
.qr-card::before { left: -2px; top: -2px; border-left: 2px solid var(--orange); border-top: 2px solid var(--orange); box-shadow: -5px -5px 18px rgba(255,91,14,.24); }
.qr-card::after { right: -2px; bottom: -2px; border-right: 2px solid #758cff; border-bottom: 2px solid #758cff; box-shadow: 5px 5px 18px rgba(94,116,255,.28); }
.qr-frame { position: relative; padding: 7px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 28px rgba(104,125,255,.16); }
.qr-frame::before { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(114,139,255,.18); pointer-events: none; }
.qr-frame img { display: block; width: 100%; height: auto; opacity: 1; filter: none; mix-blend-mode: normal; }
.qr-card span { display: block; margin-top: 16px; color: #999da6; font-size: 12px; text-align: center; letter-spacing: .14em; }
footer { position: absolute; left: 5vw; right: 5vw; bottom: 3%; display: flex; justify-content: space-between; padding-bottom: 20px; color: #575b64; font: 10px var(--font-mono); letter-spacing: .11em; }
.icp-record { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); color: #a0a4ad; font-size: 12px; white-space: nowrap; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: 32px; transform: translate(-50%, 20px); padding: 12px 20px; background: rgba(8,8,12,.82); border: 1px solid var(--line); border-radius: 99px; color: #bbb; font-size: 12px; opacity: 0; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.dialog-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 3, .72); backdrop-filter: blur(7px); opacity: 0; transition: opacity .28s; }
.dialog-backdrop[hidden] { display: none; }
.dialog-backdrop.is-open { opacity: 1; }
.capability-dialog { position: relative; width: min(960px, calc(100vw - 32px)); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; padding: 42px 48px; color: #f2f0eb; background: rgba(6, 7, 12, .97); border: 1px solid rgba(153, 176, 255, .25); box-shadow: 0 30px 120px rgba(0,0,0,.8), inset 0 0 80px rgba(71,88,170,.08); backdrop-filter: blur(24px); transform: translateY(18px) scale(.98); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.dialog-backdrop.is-open .capability-dialog { transform: translateY(0) scale(1); }
.capability-dialog .dialog-close { position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; color: #9ca2af; background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.dialog-index { display: block; margin: 34px 0 8px; color: var(--orange); font: 12px var(--font-mono); letter-spacing: .18em; }
.capability-dialog h2 { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 5.5vw, 64px); font-weight: 400; letter-spacing: .04em; }
.dialog-copy { max-width: 520px; margin: 28px 0; color: #9ca0aa; font-size: 16px; line-height: 2; }
.dialog-meta { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .15em; }
.dialog-meta span { color: #777d89; }.dialog-meta b { color: var(--orange); font-weight: 400; }
.dialog-next { margin-top: 30px; padding: 0; color: #d8d9de; background: transparent; font-size: 12px; letter-spacing: .13em; cursor: pointer; }
.dialog-next span { margin-left: 20px; color: var(--cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 12px 16px; }
  nav { display: none; }.sound > span { display: none; }
  .hero-copy { left: 7vw; top: 19%; }.hero-copy h1 { font-size: 22vw; }
  .hero-brand { width: 86vw; margin-top: 12px; }
  .brand-motto { font-size: clamp(16px, 4.7vw, 21px); letter-spacing: .08em; }
  .brand-signal { flex-wrap: wrap; gap: 7px 18px; width: min(86vw, 510px); margin-top: 9px; padding: 8px 12px 9px 14px; }
  .brand-signal-copy { gap: 18px; font-size: 11px; letter-spacing: .04em; }
  .hero-copy .brand-signal-status { flex-basis: 100%; font-size: 10px; letter-spacing: .08em; }
  .fire-zone { left: 50%; top: 51%; width: 88vw; }
  .fire-meta { left: 52%; top: 62%; }.instruction { right: 6vw; bottom: 9%; }
  .centered { bottom: 15%; }.edge-note { display: none; }
  .matrix { min-height: max(100svh, 870px); }.matrix-title { top: 10%; }.matrix-title h2 { font-size: 12vw; }
  .capabilities { grid-template-columns: 1fr; bottom: 4%; }.capabilities > * { min-height: 78px; padding: 12px 15px; }.capabilities strong { margin-top: 5px; }
  .game-art-link { left: 0; top: 34%; bottom: 0; }
  .game-copy { left: 7vw; top: 15%; width: 86vw; }.game-copy h2 { font-size: 18vw; }.portal-label { right: 7vw; }
  .ecosystem-title { top: 11%; }.ecosystem-title h2 { font-size: 14vw; }.orbit-list { left: 7vw; right: 7vw; top: auto; bottom: 8%; width: auto; }
  .contact-copy { left: 7vw; top: 14%; width: 86vw; }
  .contact-copy h2 { font-size: clamp(56px, 18vw, 76px); line-height: .84; }
  .contact-manifesto-cn { margin-top: 22px; font-size: 15px; letter-spacing: .26em; }
  .contact-origin-line { width: 92%; margin-top: 11px; font-size: 11px; line-height: 1.65; }
  .contact-channel { margin-top: 17px; font-size: 12px; }
  .qr-card { right: 7vw; top: auto; bottom: 13%; width: 180px; padding: 14px; }
  footer { gap: 12px; font-size: 6px; }.pointer-halo { display: none; }
  .capability-dialog { padding: 44px 24px 30px; }
}


/* ================= 动效升级（批次2）：UI 动画 ================= */

/* 动态胶片颗粒：背景错位跳动 */
.grain { animation: grain-shift 1.1s steps(1) infinite; }
@keyframes grain-shift {
  0%, 100% { background-position: 0 0; }
  20% { background-position: -38px 24px; }
  40% { background-position: 26px -32px; }
  60% { background-position: -52px -14px; }
  80% { background-position: 34px 38px; }
}

/* 首页标题入场：逐元素上浮 + 字距展开（加载完成后） */
.hero-copy { opacity: 0; animation: hero-in .9s cubic-bezier(.16,.84,.3,1) 1.05s forwards; }
.hero-copy .kicker { opacity: 0; animation: kicker-in 1.1s ease 1.3s forwards; }
.hero-copy h1 { opacity: 0; animation: h1-in .95s cubic-bezier(.16,.84,.3,1) 1.15s forwards; }
.brand-motto,
.brand-signal { opacity: 0; }
.brand-motto { transform: translateY(8px); filter: blur(3px); }
.brand-signal { clip-path: inset(0 100% 0 0); transform: translateY(5px); }
.hero-brand.is-brand-active .brand-motto { opacity: 1; transform: none; filter: none; transition: opacity .2s, transform .55s cubic-bezier(.16,.84,.3,1), filter .55s ease; }
.hero-brand.is-brand-active .brand-signal { opacity: 1; clip-path: inset(0 0 0 0); transform: none; transition: opacity .2s .58s, clip-path .72s cubic-bezier(.2,.8,.2,1) .58s, transform .6s ease .58s; }
.hero-brand.is-brand-active .brand-signal::after { animation: brand-signal-scan .78s ease 1.16s 1; }
.hero-brand.is-brand-active .brand-signal-status > i { animation: brand-signal-pulse 2.8s ease-in-out 1.4s infinite; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes h1-in { from { opacity: 0; transform: translateY(34px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes kicker-in { from { opacity: 0; letter-spacing: .1em; } to { opacity: 1; letter-spacing: .34em; } }
@keyframes brand-signal-scan { 0% { left: -20%; opacity: 0; } 20% { opacity: 1; } 100% { left: 108%; opacity: 0; } }
@keyframes brand-signal-pulse { 0%, 100% { opacity: .58; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.18); } }

@media (prefers-reduced-motion: reduce) {
  .hero-brand *, .brand-signal { opacity: 1; transform: none; filter: none; clip-path: none; transition: none; animation: none !important; }
}

/* 描边字"AI"呼吸流光 */
.hero-copy h1 span { -webkit-text-stroke: 1px rgba(255,255,255,.5); animation: stroke-glow 3.4s ease-in-out 2s infinite; }
@keyframes stroke-glow {
  0%, 100% { -webkit-text-stroke-color: rgba(255,255,255,.5); text-shadow: 0 0 20px rgba(110,150,255,.18); }
  50% { -webkit-text-stroke-color: rgba(255,166,90,.95); text-shadow: 0 0 34px rgba(255,122,26,.42); }
}

@keyframes halo-breathe { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }

/* 能力卡片：悬停扫光 + 内发光描边 */
.capabilities > * { position: relative; overflow: hidden; }
.capabilities > *::after { content: ""; position: absolute; inset: -1px; background: linear-gradient(105deg, transparent 42%, rgba(150,175,255,.16) 50%, transparent 58%); transform: translateX(-130%); transition: transform .75s ease; pointer-events: none; }
.capabilities > *:hover::after { transform: translateX(130%); }
.capabilities > *:hover { box-shadow: inset 0 0 0 1px rgba(150,170,255,.32), inset 0 0 34px rgba(80,110,255,.12); }

/* 导航：悬停下划线生长 */
nav a { position: relative; padding: 6px 2px; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--violet), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
nav a:hover::after { transform: scaleX(1); }

/* 鼠标示意：滚动点下坠 */
.mouse::after { animation: mouse-dot 1.9s ease-in-out infinite; }
@keyframes mouse-dot { 0%, 100% { transform: translateY(0); opacity: .9; } 55% { transform: translateY(9px); opacity: .3; } }

/* 二维码卡片悬浮 */
.qr-card { animation: qr-float 5.5s ease-in-out infinite; }
@keyframes qr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 游戏入口状态灯呼吸 */
.portal-label b { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.portal-label b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 1.7s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* 顶栏 Logo 微光呼吸 */
.brand img { animation: brand-pulse 4.6s ease-in-out infinite; }
@keyframes brand-pulse { 0%, 100% { filter: saturate(.25) brightness(1.55); } 50% { filter: saturate(.6) brightness(1.9); } }
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================= R14 浏览器标注整合 ================= */
.splash-cursor {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.04);
}

.depth-text {
  --depth-rotate-x: -2.4deg;
  --depth-rotate-y: 3.15deg;
  display: inline-block;
  color: #f8fafc;
  transform: perspective(900px) rotateX(var(--depth-rotate-x)) rotateY(var(--depth-rotate-y));
  transform-origin: 50% 48%;
  transform-style: preserve-3d;
  will-change: transform;
  text-shadow:
    1px 1px 0 color-mix(in srgb, #f8fafc 68%, #5030a5),
    2px 2px 0 color-mix(in srgb, #f8fafc 56%, #5030a5),
    3px 3px 0 color-mix(in srgb, #f8fafc 44%, #5030a5),
    4px 4px 0 color-mix(in srgb, #f8fafc 34%, #5030a5),
    5px 5px 0 color-mix(in srgb, #f8fafc 24%, #5030a5),
    6px 6px 0 color-mix(in srgb, #f8fafc 16%, #5030a5),
    7px 7px 0 #3c247c,
    8px 8px 0 #2f1b69,
    9px 9px 0 #23134f,
    0 22px 34px rgba(80,48,165,.36),
    0 4px 8px rgba(0,0,0,.28);
}

.chapter h2,
.hero h1,
.game h2,
.contact h2,
.ecosystem-title h2,
.capability-dialog h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.055em;
}

.masked-heading {
  clip-path: inset(0 100% 0 0);
  filter: blur(8px);
  opacity: 0;
  transform: perspective(900px) translateY(38px) rotateX(-18deg) skewX(-5deg) scale(.94);
  transform-origin: 0 100%;
}
.hero-copy h1.masked-heading { animation: none; }
.hero-copy h1.masked-heading.is-visible { animation: heading-cinematic-in 1.35s cubic-bezier(.16,1,.3,1) 1.05s both; }
.masked-heading.is-visible { animation: heading-cinematic-in 1.25s cubic-bezier(.16,1,.3,1) both; }
.breathing-heading {
  color: #fff;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0 transparent;
}
.breathing-heading.is-visible {
  animation: heading-curtain-in 1.2s cubic-bezier(.16,1,.3,1) both, heading-whole-breathe 4.4s ease-in-out 1.35s infinite;
}
@keyframes heading-cinematic-in {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(12px) brightness(2); transform: perspective(900px) translateY(38px) rotateX(-18deg) skewX(-5deg) scale(.94); }
  58% { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0) brightness(1.35); transform: perspective(900px) translateY(-4px) rotateX(2deg) skewX(0) scale(1.015); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); filter: none; transform: none; }
}
@keyframes heading-curtain-in {
  0% { opacity: 0; clip-path: inset(0 50% 0 50%); filter: blur(14px) brightness(1.8); transform: scaleX(.82) translateY(18px); }
  62% { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0) brightness(1.18); transform: scaleX(1.015) translateY(0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); filter: none; transform: none; }
}
@keyframes heading-whole-breathe {
  0%, 100% { opacity: 1; filter: brightness(1); text-shadow: 0 0 18px rgba(255,255,255,.08), 0 0 42px rgba(112,145,255,.08); }
  50% { opacity: .72; filter: brightness(.9); text-shadow: 0 0 28px rgba(255,255,255,.18), 0 0 64px rgba(112,145,255,.15); }
}
.awakening .centered { inset: 64% 0 auto; }
.awakening .centered h2 { font-size: clamp(76px, 11vw, 188px); }
.awakening-title {
  opacity: 0;
  transform: translateY(72px);
  will-change: transform, opacity;
}
.awakening-title.is-visible {
  animation: awakening-title-slide-in .95s cubic-bezier(.16, 1, .3, 1) both;
}
.awakening-title.awakening-title-exit {
  animation: awakening-title-slide-out .72s cubic-bezier(.55, 0, 1, .45) both;
}
@keyframes awakening-title-slide-in {
  from { opacity: 0; transform: translateY(72px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes awakening-title-slide-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-72px); }
}
@media (min-width: 761px) and (max-height: 800px) {
  .awakening .centered { inset: 60% 0 auto; }
  .awakening .centered h2 { font-size: clamp(72px, 9vw, 132px); }
  .awakening .kindling-instruction { bottom: 2%; }
}
.fire-meta span, .fire-meta b { font-size: clamp(13px, .9vw, 16px); line-height: 1.35; }
.fire-meta { padding: 13px 16px 13px 64px; background: rgba(3,5,10,.36); border-radius: 0 12px 12px 0; backdrop-filter: blur(8px); }

.artifact-carousel {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 1;
  width: min(58vw, 860px);
  height: 330px;
  transform: translate(-50%, -50%);
  perspective: 1350px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.artifact-card {
  position: absolute;
  left: calc(50% - 150px);
  top: 70px;
  width: 300px;
  height: 188px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,116,38,.36), transparent 25%),
    linear-gradient(145deg, rgba(16,24,43,.92), rgba(3,5,11,.74));
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 30px 80px rgba(0,0,0,.42);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.artifact-card::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(142,234,255,.16); border-radius: 12px; }
.artifact-card span { color: rgba(255,255,255,.45); font: 10px var(--font-mono); letter-spacing: .18em; }
.artifact-card b { position: absolute; left: 24px; bottom: 24px; font-size: 25px; letter-spacing: .08em; }
.artifact-card-two, .artifact-card-four { background: radial-gradient(circle at 76% 28%, rgba(106,103,255,.42), transparent 28%), linear-gradient(145deg, rgba(13,20,43,.94), rgba(2,4,10,.78)); }
.awakening .chapter, .awakening .kindling-instruction, .awakening .edge-note { z-index: 3; }

.matrix-title, .capabilities { z-index: 3; }

.border-glow { --glow-x: 50%; --glow-y: 50%; isolation: isolate; }
.border-glow::before { content: ""; position: absolute; inset: -1px; z-index: -1; opacity: 0; border-radius: inherit; background: radial-gradient(140px circle at var(--glow-x) var(--glow-y), rgba(126,157,255,.8), rgba(255,110,42,.18) 38%, transparent 72%); transition: opacity .35s; }
.border-glow:hover::before, .border-glow:focus-visible::before { opacity: .7; }

.game-copy h2 span, .game-copy > p:not(.kicker) span { display: inline-block; transition: transform .12s, text-shadow .15s; }

.ecosystem-title { z-index: 3; top: 7%; width: 48vw; }
.ecosystem-title h2 { font-size: clamp(78px, 9.5vw, 168px); line-height: .86; }
.ecosystem-title .ecosystem-accent {
  display: inline;
  margin: 0;
  color: #eaa56f;
  -webkit-text-fill-color: currentColor;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-shadow: 0 0 30px rgba(235,143,75,.15);
}
.product-stage {
  position: absolute;
  z-index: 2;
  left: 30vw;
  top: 24%;
  width: 43vw;
  height: 64%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: #050609;
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
}
.product-stage video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.product-stage.video-ready video { opacity: .78; animation: product-media-float 8s ease-in-out infinite alternate; }
.product-stage-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,.92), transparent 66%), linear-gradient(90deg, rgba(0,0,0,.25), transparent); }
.product-stage.video-failed video { display: none; }
.product-stage-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 30%, rgba(64,88,255,.22), transparent 58%), linear-gradient(180deg, rgba(10,12,24,.85), rgba(4,6,10,.98)); animation: product-fallback-drift 7s ease-in-out infinite alternate; }
.product-stage.video-ready .product-stage-fallback { display: none; }
.product-stage.video-failed .product-stage-fallback { display: flex; }
.product-stage-fallback span { font: 10px var(--font-mono); letter-spacing: .18em; color: #8b90a0; }
.product-stage-fallback b { max-width: 22ch; text-align: center; font-size: clamp(18px, 1.5vw, 26px); color: #fff; font-weight: 500; line-height: 1.5; }
@keyframes product-fallback-drift { to { background-position: 24px -18px, 0 0; } }
@keyframes product-media-float {
  from { transform: scale(1.015) translate3d(-.5%, .7%, 0); }
  to { transform: scale(1.075) translate3d(.8%, -1.2%, 0); }
}
.product-card { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 22px; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(4,6,10,.66); backdrop-filter: blur(20px); }
.product-index { color: #a3a8b4; font: 10px var(--font-mono); letter-spacing: .16em; }
.product-card h3 { margin: 9px 0 6px; font-size: clamp(22px, 2vw, 34px); }
.product-card p { margin: 0; color: #a3a6ad; font-size: 13px; }
.product-card ul { display: flex; gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; color: #d7d8dc; font-size: 11px; }
.product-card li::before { content: "✓"; margin-right: 6px; color: var(--orange); }
.product-card button { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 9px; background: var(--orange); color: #160800; cursor: pointer; }
.product-card button span { margin-left: 12px; }
.orbit-list.option-wheel { z-index: 3; right: 2.5vw; top: 28%; width: 22vw; height: 58%; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.option-wheel button { transform-origin: right center; opacity: .28; transition: opacity .35s, transform .45s, filter .35s; }
.option-wheel button:nth-child(1) { transform: translateX(24px) rotate(-5deg); }
.option-wheel button:nth-child(3) { transform: translateX(24px) rotate(5deg); }
.option-wheel button.is-selected { opacity: 1; transform: translateX(0) scale(1.04); filter: none; }
.option-wheel strong { font-size: clamp(15px, 1.2vw, 21px); }
.option-wheel i { font-size: 12px; }

.side-rays { position: absolute; z-index: 1; right: -5%; top: -8%; width: 52%; height: 78%; overflow: hidden; filter: blur(.2px); opacity: .46; transform: rotate(8deg); }
.side-rays i { position: absolute; right: 0; top: 0; width: 2px; height: 140%; transform-origin: top; background: linear-gradient(to bottom, rgba(139,153,255,.86), rgba(85,110,255,.16) 48%, transparent); box-shadow: 0 0 16px rgba(95,120,255,.4); animation: ray-pulse 4.6s ease-in-out infinite; }
.side-rays i:nth-child(1) { right: 8%; transform: rotate(15deg); }.side-rays i:nth-child(2) { right: 20%; transform: rotate(25deg); animation-delay: -.8s; }.side-rays i:nth-child(3) { right: 32%; transform: rotate(34deg); animation-delay: -1.7s; }.side-rays i:nth-child(4) { right: 44%; transform: rotate(42deg); animation-delay: -2.5s; }.side-rays i:nth-child(5) { right: 58%; transform: rotate(50deg); animation-delay: -3.2s; }.side-rays i:nth-child(6) { right: 73%; transform: rotate(58deg); animation-delay: -4s; }
@keyframes ray-pulse { 0%,100% { opacity: .14; filter: blur(1px); } 50% { opacity: .82; filter: blur(0); } }

.qr-card { border-color: rgba(92,111,255,.7); isolation: isolate; }
.qr-card::before { inset: -5px; width: auto; height: auto; border: 1px solid transparent; border-radius: 8px; background: conic-gradient(from var(--electric-angle,0deg), transparent, #5227ff 12%, #8eeaff 18%, transparent 25%, transparent 70%, #ff7a1a 82%, transparent 92%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: electric-angle 2.8s linear infinite; filter: drop-shadow(0 0 7px rgba(82,39,255,.75)); }
.qr-card::after { inset: -12px; width: auto; height: auto; border: 1px solid rgba(82,39,255,.32); border-radius: 12px; box-shadow: 0 0 25px rgba(82,39,255,.26), inset 0 0 18px rgba(142,234,255,.08); }
@property --electric-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes electric-angle { to { --electric-angle: 360deg; } }
.contact-copy, .qr-card, footer { z-index: 4; }

.prism-effect {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 46%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 0 46%, #000 72%);
}

@media (max-width: 900px) {
  .artifact-carousel { width: 96vw; opacity: .54; }
  .ecosystem { min-height: 1180px; }
  .ecosystem-title { width: 86vw; }
  .product-stage { left: 6vw; top: 34%; width: 88vw; height: 46%; }
  .orbit-list.option-wheel { left: 6vw; right: 6vw; top: auto; bottom: 5%; width: auto; height: 190px; }
  .option-wheel button { padding: 14px 8px; transform: none !important; }
  .side-rays { width: 80%; }
}

@media (max-width: 760px) {
  .splash-cursor { display: none; }
  .fire-meta { left: 48%; }
  .matrix { min-height: 1500px; }
  .matrix-title h2 { font-size: 11vw; }
  .ecosystem-title h2 { font-size: clamp(46px, 14vw, 76px); line-height: .9; }
  .contact { min-height: 1080px; }
  .qr-card { z-index: 5; }
}

@media (prefers-reduced-motion: reduce) {
  .depth-text { will-change: auto; }
  .splash-cursor { display: none; }
}

/* R14 approved scene films */
.scene-video {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.05s ease, transform 1.25s cubic-bezier(.16, 1, .3, 1);
}
.scene-video.is-video-ready { opacity: 1; }
.scene-video.video-failed { display: none; }
.scene-video video, .transition-video-sticky video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(3,5,10,.38) 70%, #03050a 100%);
}
.hero-fire-video {
  top: 12%;
  right: 3vw;
  width: min(48vw, 880px);
  aspect-ratio: 16 / 9;
  mix-blend-mode: screen;
  transform: translate3d(36px, 20px, 0) scale(1.035);
  -webkit-mask-image: radial-gradient(ellipse 70% 76% at 67% 38%, #000 0 46%, rgba(0,0,0,.9) 60%, transparent 88%);
  mask-image: radial-gradient(ellipse 70% 76% at 67% 38%, #000 0 46%, rgba(0,0,0,.9) 60%, transparent 88%);
}
.hero-fire-video video {
  background: transparent;
  filter: contrast(1.18) saturate(1.12) brightness(.94);
  transform: scale(1.035);
}
.hero-fire-video.is-video-ready { transform: translate3d(0, 0, 0) scale(1); opacity: .82; }
.hero-copy { z-index: 3; }

.s01-s02-video-transition { position: relative; height: 118vh; }
.transition-video-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  opacity: calc(var(--video-envelope, 0) * .88);
  transform: scale(calc(1.08 - var(--video-progress, 0) * .08));
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 17%, #000 70%, transparent 97%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 17%, #000 70%, transparent 97%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.transition-video-sticky video { transform: scale(1.035); }
.transition-video-sticky .scene-video-vignette {
  background: radial-gradient(ellipse at 50% 48%, transparent 25%, rgba(3,5,10,.28) 62%, #03050a 100%);
}

.contact-copy, .qr-lanyard, footer { z-index: 4; }

.contact-structure-flow,
.contact-structure-flow > #structure-flow-root,
.contact-structure-flow .shader-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.contact-structure-flow {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #030304;
}

/* Native lightweight lanyard, constrained to the right safe area */
.qr-lanyard {
  position: absolute;
  right: 2.5vw;
  top: 0;
  z-index: 5;
  width: 280px;
  height: 57vh;
  min-height: 470px;
  pointer-events: none;
}
.qr-lanyard-anchor {
  position: absolute;
  left: 50%;
  top: 0;
  width: 30px;
  height: 9px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #5367ff, #b7eeff 48%, #ff7a26);
  box-shadow: 0 0 22px rgba(98,121,255,.52);
  transform: translateX(-50%);
}
.qr-lanyard-band {
  position: absolute;
  left: calc(50% - 5px);
  top: 4px;
  width: 10px;
  height: var(--lanyard-band-length, 168px);
  border-radius: 0 0 6px 6px;
  background: repeating-linear-gradient(135deg, #182554 0 7px, #7795ff 7px 10px, #ff6b21 10px 12px, #10172e 12px 19px);
  box-shadow: 0 0 12px rgba(93,119,255,.28);
  transform: rotate(var(--lanyard-band-angle, 0deg));
  transform-origin: 50% 0;
}
.qr-lanyard-clip {
  position: absolute;
  left: calc(50% - 18px + var(--lanyard-x, 0px));
  top: calc(158px + var(--lanyard-y, 0px));
  z-index: 2;
  width: 36px;
  height: 26px;
  border: 2px solid rgba(180,211,255,.72);
  border-radius: 7px;
  background: rgba(8,12,28,.92);
  box-shadow: 0 0 14px rgba(102,132,255,.38);
  transform: rotate(var(--lanyard-rotate, 0deg));
}
.qr-lanyard .qr-card {
  left: 50%;
  right: auto;
  top: 178px;
  width: 220px;
  animation: none;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transform: translate3d(calc(-50% + var(--lanyard-x, 0px)), var(--lanyard-y, 0px), 0) rotate(var(--lanyard-rotate, 0deg));
  transform-origin: 50% -20px;
  will-change: transform;
}
.qr-lanyard .qr-card.is-dragging { cursor: grabbing; }

.fire-orbit-title .awakening-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.webgl-failed .awakening-title {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.fire-orbit-title .awakening .centered { inset: 65% 0 auto; }
.fire-reference-frame .awakening .artifact-carousel { position: fixed; top: 16vh; }
.fire-reference-frame.fire-orbit-title .awakening .centered { position: fixed; inset: 31vh 0 auto; }
.fire-reference-frame .awakening .edge-note { position: fixed; top: 24vh; }
.fire-reference-frame .awakening .kindling-instruction { position: fixed; bottom: 3vh; opacity: .55; }
@media (max-width: 760px) {
  .fire-reference-frame .awakening .artifact-carousel { top: 18vh; transform: translate(-50%, -50%) scale(.68); }
  .fire-reference-frame.fire-orbit-title .awakening .centered { inset: 32vh 0 auto; }
  .fire-reference-frame .awakening .chapter span { font-size: 12px; }
}

@media (max-width: 900px) {
  .hero-fire-video { right: -16vw; width: 82vw; opacity: .58; }
  .qr-lanyard { right: 1vw; transform: scale(.82); transform-origin: top right; }
}

@media (max-width: 760px) {
  .s01-s02-video-transition { height: 118vh; }
  .hero-fire-video { top: 28%; right: -28vw; width: 118vw; }
  .qr-lanyard { top: auto; right: 5vw; bottom: 8%; width: 205px; height: 340px; min-height: 0; transform: none; }
  .qr-lanyard-anchor, .qr-lanyard-band, .qr-lanyard-clip { display: none; }
  .qr-lanyard .qr-card { top: 0; width: 178px; transform: translateX(-50%); }
  .qr-lanyard .qr-card { touch-action: none; cursor: grab; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-video, .scene-video.is-video-ready { transition: none; transform: none; }
  .qr-lanyard-band { height: 168px; }
  .qr-lanyard .qr-card { transform: translate3d(calc(-50% + var(--lanyard-x, 0px)), var(--lanyard-y, 0px), 0); touch-action: none; cursor: grab; }
}

@media (pointer: coarse) {
  .qr-lanyard .qr-card { touch-action: none; cursor: grab; }
}

@media (pointer: coarse), (hover: none) and (any-pointer: coarse) {
  html, body { scroll-snap-type: none; scroll-behavior: auto; }
  .panel { scroll-snap-align: none; }
  .section-spacer-long { height: 80svh; }
  .section-spacer-short { height: 60svh; }
  .s01-s02-video-transition { height: 118svh; }
  .transition-video-sticky { height: 100svh; pointer-events: none; }
}
