:root {
  color-scheme: dark;
  --bg: #05070c;
  --bg-2: #090c14;
  --surface: #0d111c;
  --surface-2: #121726;
  --line: rgba(240, 180, 111, .12);
  --line-strong: rgba(240, 180, 111, .2);
  --text: #eef2f8;
  --muted: #aab3c2;
  --muted-2: #7c8594;
  --accent: #f0b46f;
  --accent-2: #ffd9a6;
  --accent-soft: rgba(240, 180, 111, .13);
  --cool: #8cc6e6;
  --radius: 16px;
  --header-h: 70px;
  --font-display: "Orbitron", "Exo 2", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Exo 2", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --m-1: #fdf0c2; --m-2: #f6d272; --m-3: #e8b34b; --m-4: #d4a11f; --m-5: #f1c95f; --m-6: #c9952a; --m-7: #fbe6a8;
  --glow: rgba(240, 180, 111, .32);
}

/* ---------- 婵炴垶鎸搁…鐑姐€傛禒瀣厐鐎广儱鐗嗛ˉ?---------- */
[data-theme="ice"] {
  --bg: #04070f; --bg-2: #071018; --surface: #0a1622; --surface-2: #0e1e2e;
  --line: rgba(111, 211, 242, .12); --line-strong: rgba(111, 211, 242, .2);
  --text: #eaf6ff; --muted: #a9c6d8; --muted-2: #7d9aae;
  --accent: #6fd3f2; --accent-2: #b8ecff; --accent-soft: rgba(111, 211, 242, .14); --cool: #6fd3f2; --glow: rgba(111, 211, 242, .32);
  --m-1: #f2fbff; --m-2: #c9ecfb; --m-3: #8fd2ef; --m-4: #4a9fc4; --m-5: #b3e4f7; --m-6: #5fb3d6; --m-7: #e8f8ff;
}
[data-theme="emerald"] {
  --bg: #040d09; --bg-2: #07160f; --surface: #0a1f16; --surface-2: #0d2a1d;
  --line: rgba(82, 224, 164, .12); --line-strong: rgba(82, 224, 164, .2);
  --text: #eafcf2; --muted: #a9d4bd; --muted-2: #7aa690;
  --accent: #52e0a4; --accent-2: #b6ffe0; --accent-soft: rgba(82, 224, 164, .14); --cool: #52e0a4; --glow: rgba(82, 224, 164, .32);
  --m-1: #f0fff4; --m-2: #c6f3d3; --m-3: #7fd9a4; --m-4: #2a9d5f; --m-5: #a9e9bf; --m-6: #4dbb7c; --m-7: #e0ffee;
}
[data-theme="violet"] {
  --bg: #09060f; --bg-2: #110b18; --surface: #170f22; --surface-2: #1f1330;
  --line: rgba(197, 140, 255, .12); --line-strong: rgba(197, 140, 255, .2);
  --text: #f4edff; --muted: #c4b3dd; --muted-2: #9481b0;
  --accent: #c58cff; --accent-2: #e9cfff; --accent-soft: rgba(197, 140, 255, .15); --cool: #a78bfa; --glow: rgba(197, 140, 255, .32);
  --m-1: #f7f0ff; --m-2: #dfc6fa; --m-3: #b18ce8; --m-4: #7a48b0; --m-5: #c9a6f2; --m-6: #9668d4; --m-7: #f0e4ff;
}
[data-theme="lava"] {
  --bg: #0e0504; --bg-2: #180907; --surface: #22100b; --surface-2: #2f160e;
  --line: rgba(255, 138, 92, .12); --line-strong: rgba(255, 138, 92, .2);
  --text: #fff2ec; --muted: #e2b8a6; --muted-2: #b48877;
  --accent: #ff8a5c; --accent-2: #ffc3a6; --accent-soft: rgba(255, 138, 92, .15); --cool: #ff7a55; --glow: rgba(255, 138, 92, .32);
  --m-1: #fff2e8; --m-2: #ffc9a0; --m-3: #f2935a; --m-4: #c95a22; --m-5: #ffb077; --m-6: #e06f2f; --m-7: #ffe2c8;
}
[data-theme="platinum"] {
  --bg: #060708; --bg-2: #0c0d0f; --surface: #121316; --surface-2: #1a1b1f;
  --line: rgba(201, 210, 224, .12); --line-strong: rgba(201, 210, 224, .2);
  --text: #f2f4f8; --muted: #b8bec9; --muted-2: #8b919c;
  --accent: #c9d2e0; --accent-2: #eef2f8; --accent-soft: rgba(201, 210, 224, .14); --cool: #aeb8c6; --glow: rgba(201, 210, 224, .32);
  --m-1: #ffffff; --m-2: #e6eaf0; --m-3: #c0c8d4; --m-4: #8b95a3; --m-5: #d6dbe3; --m-6: #a3adba; --m-7: #f4f6fa;
}
[data-font="audiowide"] {
  --font-display: "Audiowide", "Exo 2", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Exo 2", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-font="michroma"] {
  --font-display: "Michroma", "Chakra Petch", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Chakra Petch", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-font="oxanium"] {
  --font-display: "Oxanium", "Exo 2", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Exo 2", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-font="chakra"] {
  --font-display: "Chakra Petch", "Chakra Petch", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Chakra Petch", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-font="chakra"] h1, [data-font="chakra"] .brand { font-weight: 700; }
[data-font="sharetech"] {
  --font-display: "Share Tech Mono", "Chakra Petch", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Chakra Petch", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-font="audiowide"] .brand, [data-font="audiowide"] h1, [data-font="audiowide"] h2, [data-font="audiowide"] h3, [data-font="audiowide"] .eyebrow, [data-font="audiowide"] .step-index,
[data-font="michroma"] .brand, [data-font="michroma"] h1, [data-font="michroma"] h2, [data-font="michroma"] h3, [data-font="michroma"] .eyebrow, [data-font="michroma"] .step-index,
[data-font="sharetech"] .brand, [data-font="sharetech"] h1, [data-font="sharetech"] h2, [data-font="sharetech"] h3, [data-font="sharetech"] .eyebrow, [data-font="sharetech"] .step-index {
  font-weight: 400;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-2); }

/* ---------- 缂備礁顦伴崹鍨緞閻旇　鍋撳☉娆嶄沪缂傚秴顑夊浼存偐閼碱剚顔?---------- */
.brand, h1, h2, h3, .eyebrow, .step-index {
  font-family: var(--font-display);
}

/* ---------- 濠电儑缍€娴滎剟鍩為弽顓熷殑閻忕偟鍋撻悵?---------- */
.starfield {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, .55) 100%),
    radial-gradient(52% 46% at 18% 12%, rgba(150, 160, 175, .07), transparent 62%),
    radial-gradient(44% 40% at 84% 26%, rgba(140, 145, 160, .05), transparent 60%),
    radial-gradient(60% 52% at 50% 108%, rgba(120, 130, 145, .08), transparent 65%),
    var(--bg);
}
.starfield::before,
.starfield::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: repeat;
}
.starfield::before {
  background-image:
    radial-gradient(1px 1px at 8% 22%, rgba(255,255,255,.85), transparent 55%),
    radial-gradient(1px 1px at 24% 64%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(1.2px 1.2px at 38% 18%, rgba(255,255,255,.7), transparent 55%),
    radial-gradient(1px 1px at 52% 46%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(1px 1px at 66% 12%, rgba(255,255,255,.8), transparent 55%),
    radial-gradient(1.1px 1.1px at 78% 58%, rgba(255,255,255,.6), transparent 55%),
    radial-gradient(1px 1px at 90% 32%, rgba(255,255,255,.75), transparent 55%),
    radial-gradient(1.2px 1.2px at 12% 82%, rgba(255,255,255,.6), transparent 55%),
    radial-gradient(1px 1px at 44% 88%, rgba(255,255,255,.5), transparent 55%),
    radial-gradient(1px 1px at 70% 84%, rgba(255,255,255,.7), transparent 55%);
  background-size: 820px 620px;
  animation: drift 140s linear infinite;
}
.starfield::after {
  background-image:
    radial-gradient(1.4px 1.4px at 14% 34%, rgba(220, 230, 255, .9), transparent 60%),
    radial-gradient(1px 1px at 46% 70%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.3px 1.3px at 60% 40%, rgba(220, 230, 255,.8), transparent 60%),
    radial-gradient(1px 1px at 82% 76%, rgba(255,255,255,.55), transparent 60%);
  background-size: 560px 620px;
  opacity: .7;
  animation: drift 90s linear infinite reverse;
}
@keyframes drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 620px, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
}

/* ---------- 濠电姴锕ラ懝鐐叏閳哄倹浜ゆ繛鎴灻濠囨煛?---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- 婵＄偑鍊涢崺鏍偉?---------- */
#site-header {
  position: fixed; z-index: 10; inset: 0 0 auto;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(5, 7, 12, .78);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--line);
}
nav, .wrap { width: min(1360px, calc(100% - 48px)); margin: auto; }
nav { min-height: var(--header-h); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { color: var(--accent); font: 800 22px/1 var(--font-display); letter-spacing: .08em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2.4vw, 28px); color: var(--muted); font-size: 14px; }
.nav-links a { padding: 6px 2px; letter-spacing: .03em; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.lang-toggle {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 15px; font-size: 13px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em; white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 15px; font-size: 13px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em; white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.theme-btn:hover, .theme-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.theme-panel {
  position: absolute; top: calc(100% + 10px); right: 24px; z-index: 20;
  width: 300px; max-height: min(82vh, 720px); overflow-y: auto; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.theme-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.panel-title { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.panel-title:not(:first-child) { margin-top: 16px; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.swatch {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; color: var(--muted);
  font-size: 13px; text-align: left;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.swatch:hover { border-color: var(--line-strong); color: var(--text); }
.swatch[aria-checked="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); flex: none; }
.sw-name { white-space: nowrap; }
.font-options { display: flex; flex-direction: column; gap: 8px; }
.font-option {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-size: 13.5px; text-align: left; letter-spacing: .02em;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.font-option:hover { border-color: var(--line-strong); color: var(--text); }
.font-option[aria-checked="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.font-option[data-font="orbitron"] { font-family: "Orbitron", "Exo 2", sans-serif; }
.font-option[data-font="audiowide"] { font-family: "Audiowide", "Exo 2", sans-serif; }
.font-option[data-font="michroma"] { font-family: "Michroma", "Chakra Petch", sans-serif; }
.font-option[data-font="oxanium"] { font-family: "Oxanium", "Exo 2", sans-serif; }
.font-option[data-font="chakra"] { font-family: "Chakra Petch", sans-serif; }
.font-option[data-font="sharetech"] { font-family: "Share Tech Mono", "Chakra Petch", sans-serif; }
.fx-options, .style-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fx-option, .style-option {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-size: 13.5px; text-align: left; letter-spacing: .02em;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.fx-option:hover, .style-option:hover { border-color: var(--line-strong); color: var(--text); }
.fx-option[aria-checked="true"], .style-option[aria-checked="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; display: grid; place-items: center;
  text-align: center; min-height: 100svh; padding: calc(var(--header-h) + 34px) 24px 104px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/moon.webp") center 56% / cover no-repeat;
  opacity: .5;
  animation: hero-zoom 26s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 20%, transparent 30%, rgba(5, 7, 12, .55) 78%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 12, .4) 34%, rgba(5, 7, 12, .15) 60%, transparent 100%);
}
@keyframes hero-zoom { from { transform: scale(1.12); opacity: .15; } to { transform: scale(1); opacity: .5; } }
.hero-copy { max-width: 760px; }
.hero .eyebrow { font-size: 15px; letter-spacing: .3em; }
.eyebrow { color: var(--accent); font-weight: 500; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 14px; }
.eyebrow.center { text-align: center; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font: 800 clamp(48px, 13vw, 166px)/.94 var(--font-display);
  letter-spacing: .06em; margin: 0 0 22px;
  filter: drop-shadow(0 8px 36px var(--glow));
}
h2 { text-align: center; font: 700 clamp(30px, 4.6vw, 48px)/1.14 var(--font-display); margin-bottom: 20px; letter-spacing: .02em; }
h3 { font: 600 20px/1.35 var(--font-display); letter-spacing: .01em; margin-bottom: 10px; }
p { color: var(--muted); }
.deck { color: var(--text); font-size: clamp(17px, 2.3vw, 21px); margin-bottom: 32px; }

/* ---------- 濠电偞鎸婚崝鏇°亹婢舵劖鍊绘い鎰剁畱濞?---------- */
h1, h2, h3, .brand { color: var(--accent-2); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h2, h3, .brand {
    background-image: linear-gradient(180deg, var(--m-1) 0%, var(--m-2) 24%, var(--m-3) 46%, var(--m-4) 58%, var(--m-5) 74%, var(--m-6) 90%, var(--m-7) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
  h1 {
    background-image: linear-gradient(90deg, var(--m-4) 0%, var(--m-1) 16%, var(--m-3) 30%, var(--m-4) 46%, var(--m-2) 62%, var(--m-4) 78%, var(--m-7) 92%, var(--m-4) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: gild 5s ease-in-out infinite;
  }
}
@keyframes gild {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes gild-ltr {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Hero MOSS 闂備緡鍋呴崝鏇㈡偤瑜嶉湁濞达絿顭堣 ---------- */
h1.seq { background-image: none !important; animation: none !important; }
h1.seq .ch {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--m-4) 0%, var(--m-4) 10%, var(--m-1) 18%, var(--m-4) 26%, var(--m-4) 46%, var(--m-2) 54%, var(--m-4) 62%, var(--m-4) 82%, var(--m-7) 90%, var(--m-4) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: gild-ltr 9s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.12s);
}
h1.seq .ch.o-mark {
  background-image: linear-gradient(90deg, #c1121f 0%, #ffd6d6 16%, #e5383b 30%, #c1121f 46%, #ff7b7b 62%, #c1121f 78%, #ffc9c9 92%, #c1121f 100%);
}
.o-mark {
  font: inherit;
  color: #ff3b30;
  -webkit-text-fill-color: currentColor;
  vertical-align: baseline;
}
.brand { background-image: none !important; color: var(--accent) !important; -webkit-text-fill-color: currentColor !important; }
.card, .pillar, .steps article, .links a, details, .theme-panel {
  border-left: 0;
  border-right: 0;
}

/* ---------- 濠电偞鎸婚崝鏇°亹婢舵劕鏋侀柛顐ゅ枔娴?---------- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  [data-fx="duo"] h1, [data-fx="duo"] h2, [data-fx="duo"] h3, [data-fx="duo"] .brand {
    background-image: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
    background-size: auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: none;
  }
  [data-fx="solid"] h1, [data-fx="solid"] h2, [data-fx="solid"] h3, [data-fx="solid"] .brand {
    background-image: none;
    color: var(--accent-2); -webkit-text-fill-color: var(--accent-2);
    animation: none;
  }
  [data-fx="neon"] h1, [data-fx="neon"] h2, [data-fx="neon"] h3, [data-fx="neon"] .brand {
    background-image: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 48%, var(--cool) 100%);
    background-size: auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: none;
  }
  [data-fx="neon"] h1 { filter: drop-shadow(0 0 16px var(--accent)); }
  [data-fx="flow"] h1, [data-fx="flow"] h2, [data-fx="flow"] h3, [data-fx="flow"] .brand {
    background-image: linear-gradient(90deg, var(--m-4) 0%, var(--m-4) 10%, var(--m-1) 18%, var(--m-4) 26%, var(--m-4) 46%, var(--m-2) 54%, var(--m-4) 62%, var(--m-4) 82%, var(--m-7) 90%, var(--m-4) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
  [data-fx="flow"] h1, [data-fx="flow"] h2 { animation: gild-ltr 9s linear infinite; }
  [data-fx="holo"] h1, [data-fx="holo"] h2, [data-fx="holo"] h3, [data-fx="holo"] .brand {
    background-image: linear-gradient(120deg, #ff7ab6 0%, #ffd36e 20%, #7cf5c0 40%, #7fd4ff 60%, #c58cff 80%, #ff7ab6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
  [data-fx="holo"] h1, [data-fx="holo"] h2 { animation: gild 7s linear infinite; }
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.action {
  display: inline-block; background: var(--accent); color: #1a1208;
  border-radius: 999px; padding: 12px 28px; font-weight: 700; font-size: 15px; letter-spacing: .06em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 34px rgba(240, 180, 111, .24);
}
.action:hover { background: var(--accent-2); transform: translateY(-2px); }
.action.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.action.ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-credit { position: absolute; bottom: 20px; right: 28px; margin: 0; font-size: 13px; color: var(--muted-2); }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--muted-2); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- 闂佸憡鐗曢幖顐㈩焽閿熺姴鏄ラ柧蹇氼嚃閺€?---------- */
.wrap { padding: clamp(40px, 5vw, 66px) 0; }

/* 闂佸憡甯掑Λ妤冧焊椤栨稓鈻曢悗锝庡枟閿涚喖鏌ｉ妸銉ヮ仾闁绘挸绉瑰畷顏勭暆閸愵亞鐣哄┑?*/
main > section + section {
  position: relative;
  isolation: isolate;
}

.hotspot-stage { max-width: min(100%, 400px); }
.lib-item img { max-height: 34vh; object-fit: cover; }
main > section:not(.hero) { position: relative; }

@keyframes deckIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.dot-rail {
  position: fixed;
  right: 12px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  width: max-content;
  min-height: 0;
}
.dot-rail a {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.dot-rail a:hover { background: var(--muted); }
.dot-rail a.is-active {
  background: #ff3b30;
  box-shadow: 0 0 10px #ff3b30;
  transform: scale(1.45);
}
.dot-label {
  position: absolute;
  right: 18px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
  background: rgba(0, 0, 0, .72);
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.dot-rail a:hover .dot-label { opacity: 1; }

.page-num {
  position: fixed;
  right: 20px;
  top: calc(var(--header-h) + 14px);
  z-index: 30;
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .08em;
  color: var(--text);
  opacity: .18;
  pointer-events: none;
}
@media (max-width: 900px) { .dot-rail { display: none; } }
.band { background: linear-gradient(180deg, var(--bg-2), var(--surface) 60%, var(--bg-2)); border-block: 1px solid var(--line); }
.intro { max-width: 720px; margin: 0 auto 40px; text-align: center; }

/* ---------- 濠殿喗甯掗崐浠嬶綖瀹ュ缁╂い鏍ㄧ〒閸?---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.pillar {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  display: flex; flex-direction: column; gap: 6px;
}
.pillar b { font-size: 17px; letter-spacing: .01em; }
.pillar span { color: var(--muted-2); font-size: 14px; }

/* ---------- 濠电偟绻濋懗鍫曞煝閻撳寒娼伴柕澶嗘櫓閳?---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.steps article {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; background: rgba(255, 255, 255, .02);
  transition: transform .25s ease, border-color .25s ease;
}
.steps article:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.step-index {
  display: inline-block; font: 700 13px/1 var(--font-display); letter-spacing: .14em; color: var(--accent);
  background: var(--accent-soft); padding: 6px 9px; border-radius: 6px; margin-bottom: 14px;
}

/* ---------- 闂佸搫绉峰〒鍦閵夆晛纭€闁挎稑瀚。?---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, var(--surface), rgba(13, 17, 28, .6));
  display: flex; flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.card .eyebrow { margin-bottom: 8px; }
.card h3 { margin-bottom: 16px; }

.switch {
  display: inline-flex; gap: 3px; padding: 3px; align-self: flex-start;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px;
}
.switch button {
  padding: 7px 18px; border-radius: 999px; font-size: 14px; letter-spacing: .05em; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.switch button:hover { color: var(--text); }
.switch button[aria-pressed="true"] { background: var(--accent); color: #1a1208; font-weight: 700; }

.player-controls { margin-bottom: 16px; }
.play {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  color: var(--text); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.play:hover { border-color: var(--accent); color: var(--accent); }
.play[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.play-icon {
  width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 11px solid currentColor;
}
.play[aria-pressed="true"] .play-icon {
  width: 11px; height: 13px; border: 0;
  border-left: 4px solid currentColor; border-right: 4px solid currentColor;
}

/* ---------- 闂佹悶鍎查崕鎶藉磿濮樿鲸鍠嗛柛鈩冪懅瀹?---------- */
.image-button {
  display: block; padding: 0; width: 100%; text-align: left;
  background: none; border: 0; cursor: zoom-in; margin-top: auto;
}
.viewport {
  position: relative; display: block; background: #04060b;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.image-button:hover .viewport { border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--accent-soft); }
.card.is-playing .viewport { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), 0 0 26px rgba(240, 180, 111, .18); }
.viewport img { width: 100%; height: auto; }
.optic .viewport img { aspect-ratio: 16/10; object-fit: contain; }
.viewport::before {
  content: ""; position: absolute; inset: 9px; z-index: 1; pointer-events: none; opacity: .55;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 15px 1px,
    linear-gradient(var(--accent), var(--accent)) left top / 1px 15px,
    linear-gradient(var(--accent), var(--accent)) right top / 15px 1px,
    linear-gradient(var(--accent), var(--accent)) right top / 1px 15px,
    linear-gradient(var(--accent), var(--accent)) left bottom / 15px 1px,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1px 15px,
    linear-gradient(var(--accent), var(--accent)) right bottom / 15px 1px,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1px 15px;
  background-repeat: no-repeat;
}

.channel-note { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 14px 0 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--accent)); box-shadow: 0 0 8px var(--dot, var(--accent)); flex: none; }

.meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
  display: grid; gap: 7px; font-size: 13.5px; color: var(--muted-2);
}
.meta div { display: flex; gap: 9px; }
.meta b { color: var(--muted); font-weight: 650; flex: none; letter-spacing: .03em; }

/* ---------- 闁诲骸婀遍崑鐐村垔鐠恒劉鍋撻棃娑欒础闁?---------- */
.validation { margin-top: 64px; }
.validation-head { text-align: center; margin-bottom: 30px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 34px; align-items: center; max-width: 1020px; margin: 0 auto;
}
.feature-copy h3 { font-size: 24px; }
.feature-copy .meta { max-width: 460px; }

/* ---------- 濠碘槅鍨埀顒€纾埀?---------- */
.models-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 闂佹椿鍠楀濠氬煘閹烘梹灏庨柛鏇ㄥ墯閻?---------- */
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.links a {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.links a:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--accent-soft); }
.link-title { font-weight: 700; color: var(--text); font-size: 16px; }
.link-desc { color: var(--muted-2); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 8px auto 0; }
details { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); margin-bottom: 12px; overflow: hidden; }
summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; position: relative;
  font-weight: 650; color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-60%) rotate(45deg); transition: transform .25s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { margin: 0; padding: 0 20px 18px; }

/* ---------- 婵＄偑鍊撶徊濠氬礈?---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); }
footer .wrap {
  padding: 34px 0; display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand p { margin: 8px 0 0; font-size: 14px; }
.footer-note { margin: 0; font-size: 13.5px; color: var(--muted-2); max-width: 420px; }

/* ---------- 闂佽　鍋撻柟顖嗕椒娴烽柣搴ｆ暩椤㈠﹪鎯侀挊澶樻禆?---------- */
dialog {
  width: min(1080px, 94vw); max-height: 92vh; padding: 16px 18px 20px;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
dialog::backdrop { background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog img { display: block; max-width: 100%; max-height: 72vh; margin: auto; border-radius: 8px; }
dialog form { text-align: right; margin-bottom: 10px; }
.close { font-size: 26px; line-height: 1; color: var(--muted); transition: color .2s ease; }
.close:hover { color: var(--text); }
dialog p { text-align: center; margin: 12px 0 0; }

/* ---------- 濠电姴锕ラ懝鐐叏閳哄懎鍙婇柛鎾楀啰鐤€ ---------- */
.js .reveal {
  opacity: 0; transform: translateY(26px); filter: blur(5px);
  transition:
    opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
    transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms),
    filter .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
  will-change: opacity, transform, filter;
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ---------- 濠电姴锕ラ懝鐐叏閳哄懎绀嗛柛鈩冾殔闂呮﹢鏌涢幒鎴炲鐎规洖寮堕〃鍥熼悷鎵О ---------- */
#overview, #method, #results, #iss, #models, #research, #faq {
  transition: border-color .5s ease, box-shadow .5s ease;
}
#overview.is-active, #results.is-active, #research.is-active {
  border-block-color: var(--accent);
}
#method.is-active, #models.is-active, #faq.is-active, #iss.is-active {
  box-shadow: inset 0 1px 0 var(--accent-soft), inset 0 -1px 0 var(--accent-soft);
}

/* ---------- Hero 闁哄鍋犲Λ鍕矗?---------- */
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .06s; }
.hero-copy > *:nth-child(2) { animation-delay: .16s; }
.hero-copy > *:nth-child(3) { animation-delay: .26s; }
.hero-copy > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 闂佺绉寸换鎺旂矆鐏炵虎妲归幖娣灮婢?---------- */
[data-style="pixel"] {
  --font-display: "Press Start 2P", "ZCOOL QingKe HuangYou", monospace;
  --font-body: "VT323", "ZCOOL QingKe HuangYou", monospace;
}
[data-style="pixel"] * { border-radius: 0 !important; }
[data-style="pixel"] img, [data-style="pixel"] .hero::before { image-rendering: pixelated; }
[data-style="pixel"] body { font-size: 20px; line-height: 1.6; }
[data-style="pixel"] h3, [data-style="pixel"] .eyebrow, [data-style="pixel"] .step-index {
  font-family: "VT323", "ZCOOL QingKe HuangYou", monospace;
}
[data-style="pixel"] .brand, [data-style="pixel"] h1, [data-style="pixel"] h2, [data-style="pixel"] h3,
[data-style="pixel"] .eyebrow, [data-style="pixel"] .step-index, [data-style="pixel"] .action,
[data-style="pixel"] .play, [data-style="pixel"] .lang-toggle, [data-style="pixel"] .theme-btn,
[data-style="pixel"] .link-title, [data-style="pixel"] .meta b, [data-style="pixel"] .pillar b, [data-style="pixel"] summary {
  font-weight: 400;
}
/* 闂佺绉寸换鎺旂矆瀹€鈧埀顒佺⊕椤ㄥ懓銇愰幐搴㈠妞ゆ帊绀佹惔?*/
[data-style="pixel"] h1 { font-size: clamp(40px, 10vw, 96px); letter-spacing: 0; line-height: 1; }
[data-style="pixel"] h2 { font-size: clamp(20px, 3.6vw, 32px); letter-spacing: 0; }
[data-style="pixel"] h3 { font-size: 18px; }
[data-style="pixel"] .brand { font-size: 16px; letter-spacing: 0; }
[data-style="pixel"] .eyebrow { font-size: 14px; letter-spacing: .08em; }
[data-style="pixel"] .hero .eyebrow { font-size: 15px; letter-spacing: .14em; }
[data-style="pixel"] .step-index { font-size: 14px; letter-spacing: .05em; }
[data-style="pixel"] .deck { font-size: 18px; }
[data-style="pixel"] .intro { font-size: 17px; }
[data-style="pixel"] .nav-links a { font-size: 15px; letter-spacing: 0; }
[data-style="pixel"] .action { font-size: 14px; letter-spacing: 0; }
[data-style="pixel"] .switch button { font-size: 14px; letter-spacing: 0; }
[data-style="pixel"] .play { font-size: 14px; letter-spacing: 0; }
[data-style="pixel"] .lang-toggle, [data-style="pixel"] .theme-btn { font-size: 14px; letter-spacing: 0; }
[data-style="pixel"] .meta { font-size: 15px; }
[data-style="pixel"] .scope { font-size: 14px; }
[data-style="pixel"] .channel-note { font-size: 15px; }
[data-style="pixel"] .link-title { font-size: 17px; }
[data-style="pixel"] .link-desc { font-size: 15px; }
[data-style="pixel"] .pillar b { font-size: 17px; }
[data-style="pixel"] .pillar span { font-size: 15px; }
[data-style="pixel"] summary { font-size: 17px; }
[data-style="pixel"] .panel-title { font-size: 13px; letter-spacing: .04em; }
[data-style="pixel"] .swatch, [data-style="pixel"] .sw-name, [data-style="pixel"] .font-option, [data-style="pixel"] .fx-option, [data-style="pixel"] .style-option { font-size: 14px; }
[data-style="pixel"] .footer-note, [data-style="pixel"] .footer-brand p { font-size: 14px; }
[data-style="pixel"] .card, [data-style="pixel"] .pillar, [data-style="pixel"] .steps article,
[data-style="pixel"] .links a, [data-style="pixel"] details, [data-style="pixel"] .theme-panel, [data-style="pixel"] dialog {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
}
[data-style="pixel"] body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px);
}

/* ---------- 闂佸憡绻傜粔瀵歌姳閹绘帩鍤?---------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature-copy { order: 2; }
}
@media (max-width: 760px) {
  nav { flex-wrap: wrap; }
  .brand { order: 1; margin-right: auto; }
  .nav-toggle { display: flex; order: 2; }
  .nav-actions { order: 2; margin-left: 8px; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; gap: 2px;
    padding: 6px 0 14px; order: 3;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 2px; border-bottom: 1px solid var(--line); }
  .theme-panel { right: 12px; left: 12px; width: auto; }
  .hero { min-height: 88svh; }
  .grid, .steps, .pillars, .links { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .hero-credit { right: 16px; bottom: 16px; }
}

/* ---------- 闂佸憡鍨电换鎰版儍椤栫偛绀夐柕濠忛檮濞?---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .starfield::before, .starfield::after, .scroll-cue::after, h1, h2, h1.seq .ch { animation: none; }
  .hero::before { animation: none; }
  .hero-copy > * { animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ================= MOSS 闁诲海鎳撻張顒勫汲閿濆绠ｉ柟閭﹀幘娴滎垳绱掗弮鈧悷杈╂娴兼潙妫橀柣妤€鐓笟鈧畷?================= */
/* 婵☆偓绲鹃悧鏇㈡儓閸℃稒鍎戦柣鏃堫棑閺夎棄霉閻樼儤纭舵繝鈧敓鐘茬倞?*/
.hero::before { content: none; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; opacity: .7; filter: blur(2.5px); transform: scale(1.05); }

/* 闁荤姴娲ら悺銊ノｉ幋锕€妫橀柛銉戝懏鎲?*/
.note { color: var(--muted-2); font-size: 13.5px; line-height: 1.7; max-width: 820px; margin: 22px auto 0; text-align: center; }

/* 缂傚倸鍟崹鍫曟偋?*/
.mm-grid, .nei-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.earth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }

/* 闂佸綊鏀遍悧妤€顭囧畝鈧埀顑跨祷椤鎯?*/
.drag { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 4 / 3; background: #05070c; margin-top: 14px; }
.drag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.drag .drag-b { clip-path: inset(0 50% 0 0); }
.drag::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px;
  background: var(--accent); z-index: 2; pointer-events: none; box-shadow: 0 0 10px var(--accent);
}
.drag input[type="range"] { position: absolute; left: 4%; right: 4%; bottom: 10px; width: 92%; z-index: 3; accent-color: var(--accent); }
.drag-tag { position: absolute; top: 8px; z-index: 3; font-size: 12px; padding: 3px 8px; border-radius: 4px; background: #000a; color: var(--text); letter-spacing: .05em; }
.drag-tag-a { right: 8px; }
.drag-tag-b { left: 8px; }

/* 缂備焦绋掗惄顖炲焵?*/
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.filters button {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: rgba(255, 255, 255, .03); font-size: 13.5px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.filters button:hover { color: var(--text); border-color: var(--line-strong); }
.filters button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* 闂佺儵鏅╅崰妤呮偉閿濆棙鍎?*/
.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lib-item { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.lib-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lib-item figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.lib-item figcaption b { color: var(--text); }
.lib-item figcaption span { color: var(--muted-2); font-size: 13px; }
.lib-empty { text-align: center; color: var(--muted-2); margin-top: 18px; }

/* 闂侀潻闄勬竟鍡涘箖?*/
.earth-item { margin: 0; }
.earth-item .viewport img { aspect-ratio: 16 / 10; object-fit: contain; }
.earth-item figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted-2); text-align: center; }

/* 闂佺绻堥崝鎴﹀箺閼测晜宕夋い鏍ュ€楃粣妤冣偓褰掓交缂傛岸寮查崜浣哄崥闁哄诞鍕偓濠氭⒑閻愵剙绀冮柣?+ 闂佸憡鐟ラ崢鏍疾閸撲焦瀚氶柨鏃囨閸撲即姊婚崼娑樼仾婵?*/
.chain-layout { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: stretch; margin-top: 10px; }
.chain-rail { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.chain-tab {
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px;
  flex: 1; justify-content: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, .02); cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.chain-tab .cnum { font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.chain-tab .cname { color: var(--muted); font-size: 14px; line-height: 1.35; }
.chain-tab .cdesc { color: var(--muted-2); font-size: 12px; line-height: 1.4; }
.chain-tab.is-active .cdesc { color: var(--muted); }
.chain-tab:hover { background: rgba(255, 255, 255, .03); }
.chain-tab.is-active { background: var(--accent-soft); border-color: var(--accent); }
.chain-tab.is-active .cname { color: var(--text); }
.chain-panels { display: flex; flex-direction: column; min-width: 0; }
.chain-panel {
  display: none; flex-direction: column;
  padding: 24px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .02);
}
.chain-panel.is-active { display: flex; flex: 1; min-height: 480px; }
.sa-panel { display: flex; flex-direction: column; gap: 14px; }
.sa-panel .image-button { width: 100%; }
.sa-panel .viewport img { width: 100%; height: auto; object-fit: cover; }
.sa-panel .action { align-self: flex-start; }
/* 闂佽鍏涚粈浣圭箾瀹ュ绠涢柣鏃囨閸欌偓婵犮垹鐖㈤崘鈺冾洯 */
.ssa-shot { display: block; width: 100%; margin: 18px auto 0; }
.ssa-shot .viewport { display: block; }
.ssa-shot .viewport img { width: 100%; height: auto; }
.ssa-actions { text-align: center; margin-top: 20px; }
/* 闂佽鍏涚粈浣圭箾瀹ュ绠涢柣鏃囨閸欌偓 coverflow闂?D 闂佺粯绮犻崹浼存嚋?閻?full-bleed 闂佺厧顨庢禍顏堝焵椤掆偓閸婂摜鑺遍弻銉︽櫖?*/
.sa-coverflow { position: relative; overflow: hidden; margin-top: 18px; padding: 0; perspective: 1300px; width: 100%; margin-inline: auto; }
.sa-coverflow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(55% 60% at 50% 50%, var(--accent-soft) 0%, transparent 72%);
  opacity: .6;
}
.sa-track { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; }
.sa-slide {
  position: absolute; left: 50%; top: 50%; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #05070c; cursor: pointer;
  transform: translate(-50%, -50%) translateX(var(--tx, 0px)) translateZ(var(--tz, 0px)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transform-origin: center;
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .6s, box-shadow .3s, border-color .3s;
  backface-visibility: hidden;
}
.sa-slide img { display: block; width: 100%; height: auto; }
.sa-slide.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), 0 22px 70px rgba(0, 0, 0, .65), 0 0 50px var(--accent-soft); }
.sa-slide:hover { border-color: var(--line-strong); }

/* ---------- 缂傚倷鑳堕崰宥囩博鐎涙ɑ缍囬悷娆忓閺€?& 婵炲瓨鍤庨崐鎾惰姳閻楀牊娅犻柣鎰絻缁?---------- */
.card, .lib-item, .earth-item .viewport, .feature .viewport, .closeup-card {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover, .lib-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.earth-item:hover .viewport, .feature .viewport:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 0 30px var(--accent-soft);
}
.card img, .lib-item img, .earth-item img, .feature img {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.card:hover .viewport img, .lib-item:hover img,
.earth-item:hover .viewport img, .feature .viewport:hover img {
  transform: scale(1.035);
}
.sa-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 68px; border: 1px solid var(--line);
  background: #000a; color: var(--text); font-size: 28px; line-height: 1;
  cursor: pointer; border-radius: 8px; transition: color .2s, border-color .2s;
}
.sa-prev { left: 12px; }
.sa-next { right: 12px; }
.sa-arrow:hover { border-color: var(--accent); color: var(--accent); }
.sa-caption { text-align: center; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.chain-panel .chain-io { margin: 0 0 4px; color: var(--accent); font-size: 12px; letter-spacing: .04em; }
.chain-panel h3 { margin: 0 0 8px; font-size: 22px; }
.chain-panel .chain-desc { margin: 0 0 14px; color: var(--muted-2); font-size: 14px; line-height: 1.65; }
.chain-panel img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #05070c; }
.chain-meta { margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chain-meta dt { color: var(--muted-2); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.chain-meta dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 800px) {
  .chain-layout { grid-template-columns: 1fr; gap: 16px; }
  .chain-rail { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; position: static; }
  .chain-tab { flex: 0 0 auto; }
  .chain-meta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .mm-grid, .nei-grid, .earth-grid, .lib-grid { grid-template-columns: 1fr; }
}

/* 婵炲濮惧▔鏇烇耿閿熺姴鍌ㄩ柣鏃傚劋閸?*/
.principles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.principle { padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.principle .pnum { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.principle h3 { margin: 0 0 6px; font-size: 16px; }
.principle p { margin: 0; color: var(--muted-2); font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) {
  .principles-grid { grid-template-columns: 1fr; }
}
.closeup-card { margin-top: 24px; }
.timeline { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.timeline input[type="range"] { flex: 1; accent-color: var(--accent); }
.timeline-label { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }

/* 闂備緡鍠撻崝瀣枎閵忋倖鍊绘い鎾跺Т娴?*/
.hotspots-card { margin-top: 24px; }
.hotspot-stage { position: relative; display: inline-block; max-width: 100%; margin-top: 14px; }
.hotspot-stage img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.hotspot {
  position: absolute; width: 16px; height: 16px; padding: 0; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--accent); border: 2px solid #000a;
  box-shadow: 0 0 10px var(--accent); cursor: pointer; z-index: 2;
}
.hotspot:hover, .hotspot.is-active { background: #ff3b30; box-shadow: 0 0 14px #ff3b30; }
.hotspot-info { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* 闁哄鍔樺婵嬫倻椤撶姴浠柛銉╃畺濡捐櫣鈧鏋荤槐婵嬫焼閸喖甯抽柛妤佹礋閵嗗娼婚崶顒傚蒋 */
.hotspot-stage { max-width: min(100%, 380px); }

/* deck: 缂侀箖娼ч幃婊冾煥閹存繂袟缂傚牆顭烽妴?*/
main { height: 100vh; overflow: hidden; }
.deck { height: 100%; transition: transform .7s cubic-bezier(.22,.61,.36,1); will-change: transform; }
main section { height: 100vh; overflow: hidden; }
/* 婵絽绻戦鑲╃礄婵犳哎鈧鎯冮崟顐㈡暥閻庡湱鎳撻崣鍡涘捶閸濆嫬袟闁活澀绱槐娆愮▔閵堝嫰鍤嬮柡鍌滄嚀閹粓鏌堟禒瀣闁衡偓閹惧懐绀?*/
main section.page-in > * {
  animation: pageIn .58s cubic-bezier(.22,.61,.36,1) both;
}
main section.page-in > *:nth-child(2) { animation-delay: .05s; }
main section.page-in > *:nth-child(3) { animation-delay: .1s; }
main section.page-in > *:nth-child(4) { animation-delay: .15s; }
main section.page-in > *:nth-child(5) { animation-delay: .2s; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
/* deck 閻庨潧缍婄紞鍫ユ晬濮橆厼鐦婚柣顏嗗枎閻?offsetTop 妤犵偛纾簺闁挎稒绋戦崹搴ㄥ礌閾忚娈岄柛鎴炴そ閵嗗﹪鏌堥妸銉殼闁煎壊浜為埞鏍⒒?*/
.deck { position: relative; }
main section { padding-top: calc(var(--header-h) + 18px); }
/* 閻犱讲鏅涢崹搴ㄥ礌濞差亗鈧﹪鏌堥妸褎娈岄柛鎴濇惈濞存劗鈧鑹鹃閬嶆嚋椤忓牏褰幖?*/
main section.wrap { padding-top: calc(var(--header-h) + 20px); padding-bottom: 28px; }
/* 闁告帒妫楃亸顖炲礃閸涱収鍟囬悺鎺戞噹閸ゎ參寮捄鍝勮濡炪倝娼ч崬鏉戭煥濮橆剙袟 */
main section { overflow-y: auto; scrollbar-width: thin; }
.sec-inner { display: block; }

/* chapter content vertically centred; tall chapters scroll instead of shrinking */
main section.wrap { display: flex; flex-direction: column; }
main section.wrap > .sec-inner { flex: 0 0 auto; width: 100%; margin-block: auto; }
main section.wrap > .sec-inner > :first-child { margin-top: 0; }
main section.wrap > .sec-inner > :last-child { margin-bottom: 0; }

/* page number stays pinned to the top-right and readable */
.page-num { opacity: .34; }
/* ---------- designed chapter scrollbar ---------- */
main section {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
main section::-webkit-scrollbar { width: 6px; height: 6px; }
main section::-webkit-scrollbar-track {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, .035) 14%,
    rgba(255, 255, 255, .035) 86%,
    transparent 100%);
}
main section::-webkit-scrollbar-thumb {
  border-radius: 99px;
  border: 1px solid transparent;
  background-clip: padding-box;
  min-height: 56px;
  background-image: linear-gradient(180deg, var(--line-strong) 0%, var(--accent-soft) 100%);
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 34%, transparent) 0%,
    color-mix(in srgb, var(--accent) 12%, transparent) 100%);
}
main section::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 72%, transparent) 0%,
    color-mix(in srgb, var(--accent) 30%, transparent) 100%);
}
main section::-webkit-scrollbar-corner { background: transparent; }

/* page number: designed counter, top-right */
.page-num {
  padding: 1px 0 1px 12px;
  border-left: 1px solid var(--accent);
  line-height: 1.1;
}

/* dot labels slide in from the right */
.dot-label {
  transform: translateY(-50%) translateX(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.dot-rail a:hover .dot-label,
.dot-rail a:focus-visible .dot-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
/* the deck owns the viewport: no document scrollbar, no stray footer */
html, body { height: 100%; overflow: hidden; }
body { margin: 0; }
footer { display: none; }
/* page number: display face (as before) */
.page-num { font-family: var(--font-display); letter-spacing: .06em; }
.chain-figures { display: grid; grid-template-columns: repeat(var(--figure-count, 1), minmax(0, 1fr)); align-items: start; gap: 12px; }
.chain-figures figure { min-width: 0; margin: 0; }
.chain-figures .image-button { width: 100%; }
.chain-figures img { display: block; height: auto; }
.chain-figures figcaption { margin-top: 8px; color: var(--muted-2); font-size: 13px; line-height: 1.5; }
@media (max-width: 640px) { .chain-figures { grid-template-columns: 1fr; } }

/* SOPRA full name follows the original display typeface. */
.hero .hero-copy > p.deck { font-family: var(--font-display); }

/* Keep the full name on one line where the viewport allows it. */
.hero .hero-copy > p.deck { font-size: clamp(12px, 1.55vw, 18px); white-space: nowrap; }
@media (max-width: 600px) { .hero .hero-copy > p.deck { white-space: normal; font-size: 13px; } }

/* Four research directions follow the O/P/R/A words in SOPRA. */
.hero .opra-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; width:min(960px,100%); margin-inline:auto; }
.hero .opra-actions .action { display:flex; flex-direction:column; justify-content:center; gap:7px; border-radius:14px; padding:15px 10px; min-width:0; font-size:15px; letter-spacing:0; }
.hero .opra-actions .action > span { font-family:var(--font-display); font-size:clamp(11px,1.1vw,15px); white-space:nowrap; }
.hero .opra-actions small { font-size:11px; font-weight:400; line-height:1.4; white-space:normal; }
@media(max-width:760px){ .hero .opra-actions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px} .hero .opra-actions .action>span{font-size:12px} }

/* Five entries reflect the approved S/O/P/R/A responsibilities. */
.hero .opra-actions{grid-template-columns:repeat(5,minmax(0,1fr));width:min(1080px,100%)}
.hero .opra-actions .action>span{font-size:clamp(10px,1vw,14px)}
@media(max-width:900px){.hero .opra-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.hero .opra-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.hero .opra-actions .action>span{font-size:12px}}


/* Public model and material previews */
#lib-grid .image-button, .material-effects .image-button { display: block; width: 100%; }
#lib-grid .image-button img { object-fit: contain; }
.material-effects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.material-effects .lib-item img { aspect-ratio: 1; max-height: none; object-fit: contain; }
@media (max-width: 900px) { .material-effects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .material-effects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }


.resource-browser{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0}
.resource-search{display:grid;gap:5px;font-size:.85rem}
.resource-search input{min-width:min(280px,72vw);background:var(--surface);color:var(--text);border:1px solid var(--line);padding:8px 10px;border-radius:5px}
.resource-filters{display:flex;gap:6px;flex-wrap:wrap}
.resource-filters button{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:7px 10px;cursor:pointer}
.resource-filters button[aria-pressed="true"]{border-color:currentColor}
.resource-gallery [hidden],.material-effects [hidden]{display:none!important}
.resource-gallery{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px 7px}
.resource-gallery figure{margin:0;min-width:0;display:flex;flex-direction:column;align-self:start}
.resource-gallery img{width:100%;height:auto;display:block;aspect-ratio:4/3;object-fit:contain;border-radius:4px}
.resource-gallery .image-button{width:100%;display:block;margin:0}
.resource-gallery figcaption{font-size:.78rem;text-align:center;overflow-wrap:anywhere;padding:2px 1px;line-height:1.2}
@media(max-width:1320px){.resource-gallery{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1050px){.resource-gallery{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:820px){.resource-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:540px){.resource-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}


.material-atlas{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:start;gap:18px}
.material-atlas .resource-filters{flex-direction:column}
.material-atlas .resource-filters button{text-align:left}
.material-atlas .material-effects{margin:0}
@media(max-width:760px){.material-atlas{grid-template-columns:1fr}.material-atlas .resource-filters{flex-direction:row}}

#materials .material-atlas { display: block; }
#materials .material-effects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
#materials .material-effects [hidden] { display: none; }
#materials .material-effects img { width: 100%; object-fit: cover; }
#material-detail { width: min(900px, 92vw); max-height: 86vh; border: 1px solid var(--line, #505965); border-radius: 14px; padding: 1.25rem; background: #171c25; color: #f3f5f7; }
#material-detail::backdrop { background: rgb(0 0 0 / .72); }
#material-detail form { float: right; }
#material-detail form button { cursor: pointer; font-size: 1.35rem; }
.material-detail-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .875rem; }
.material-detail-images figure { margin: 0; }
.material-detail-images img { display: block; width: 100%; border-radius: 6px; }
@media (max-width: 980px) { #materials .material-effects { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { #materials .material-effects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

#material-detail { box-sizing: border-box; width: min(1200px, 94vw); max-height: 90vh; padding: clamp(1rem, 3vw, 2rem); font-family: inherit; }
.material-detail-content { display: grid; gap: 1rem; line-height: 1.6; }
.material-detail-content h4 { margin: 0 0 .4rem; }
.material-detail-content p, .material-detail-content ul { margin-block: 0; }
.material-detail-content figcaption { margin-top: .35rem; }
