/*
 * 无名小卒 · 样式
 * 思路：亮一点、轻一点的纸面；标题用宋体，正文用黑体；印章、朱笔圈和右侧的“卒子”是记号。
 * 动效：所有“入场前”的隐藏状态都写在 .motion 下面。系统开了“减少动态效果”或网址带 ?motion=0 时，
 *       页面直接显示终态，内容不会因为脚本出错而看不见。
 * 改颜色：只改 :root 和 html.is-night 里的变量。
 */

:root {
  --paper: #f4f1ea;
  --night: #131210;
  --bg: var(--paper);
  --fg: #171614;
  --fg-2: #4b4740;
  --fg-3: #6b655c;
  --line: rgba(23, 22, 20, 0.12);
  --line-2: rgba(23, 22, 20, 0.28);
  --card: #ebe6dc;
  --card-2: #e2dcce;
  --zhu: #c23e28; /* 朱砂：文字用 */
  --zhu-2: #e0563c; /* 朱砂：圈点、亮灯用 */
  --seal: #c23e28;
  --seal-ink: #f6f0e4;

  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --serif: "Wuming Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --kai: "LXGW WenKai", "LXGW WenKai Screen", "KaiTi", "STKaiti", "Kaiti SC", var(--serif);
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;

  --pad: clamp(20px, 5vw, 84px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* 全站统一的“柔缓落定” */
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
}
/* 进入“系列”时整页换成夜色 */
html.is-night {
  --bg: var(--night);
  --fg: #efe9dd;
  --fg-2: #cbc3b4;
  --fg-3: #a39b8c;
  --line: rgba(239, 233, 221, 0.12);
  --line-2: rgba(239, 233, 221, 0.3);
  --card: #1d1b18;
  --card-2: #26231f;
  --zhu: #ef6a4f;
  --zhu-2: #ff7a5c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--fg);
  background-color: var(--bg);
  background-image: url("img/paper-grain.png");
  transition: background-color 0.8s var(--ease), color 0.6s var(--ease);
}
body :where(p, h1, h2, h3, h4, dt, dd, li, small, b, span, em) {
  transition: color 0.6s var(--ease), border-color 0.6s var(--ease);
}
::selection {
  background: rgba(194, 62, 40, 0.22);
}
img,
video {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-feature-settings: "palt" 1;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--zhu);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--fg);
  color: var(--bg);
}
.skip:focus {
  top: 12px;
}

/* ───────── 印章 ───────── */
.seal {
  display: inline-grid;
  place-items: center;
  flex: none;
  background: var(--seal);
  color: var(--seal-ink);
  border-radius: 3px;
  filter: url(#rough);
  line-height: 1;
  font-family: var(--serif);
  font-weight: 900;
  user-select: none;
}
.seal-chars {
  writing-mode: vertical-rl;
  letter-spacing: 0;
}
.seal--mini {
  width: 30px;
  height: 30px;
  font-size: 19px;
}
.seal--four {
  width: 54px;
  height: 54px;
  font-size: 21px;
  box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4.5px var(--seal-ink);
}
.seal--four .seal-chars {
  inline-size: 2em; /* 竖排：一列两个字，四个字排成两列 */
}

/* ───────── 顶部浮动导航 ───────── */
.nav {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  transition: transform 0.55s var(--ease);
}
.nav.is-hidden {
  transform: translateY(-140%);
}
.nav > * {
  pointer-events: auto;
}
.brand,
.nav-links {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.72);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: background-color 0.8s var(--ease), border-color 0.6s var(--ease);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.1em;
}
.nav-links {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
}
.nav-links a {
  position: relative;
  z-index: 1;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.35s var(--ease);
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-links a[aria-current] {
  color: var(--bg);
}
.nav-ink {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--fg);
  opacity: 0;
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.3s, background-color 0.6s;
}

/* ───────── 右侧的卒子进度 ───────── */
.pawn {
  position: fixed;
  z-index: 30;
  right: 22px;
  top: 50%;
  width: 34px;
  height: min(54vh, 460px);
  transform: translateY(-50%);
  pointer-events: none;
}
.pawn-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.pawn-tick {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
}
/* 棋盘交叉点的小“十”字记号 */
.pawn-tick::before,
.pawn-tick::after {
  content: "";
  position: absolute;
  background: var(--fg-3);
}
.pawn-tick::before {
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
}
.pawn-tick::after {
  top: 0;
  bottom: 0;
  left: 5px;
  width: 1px;
}
.pawn-river {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 0;
  background: var(--bg);
  writing-mode: vertical-rl;
  font-family: var(--kai);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--fg-3);
  white-space: nowrap;
  transition: background-color 0.8s var(--ease);
}
.pawn-piece {
  position: absolute;
  left: 50%;
  top: 0;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efe3c8;
  border: 1.5px solid var(--zhu);
  box-shadow: inset 0 0 0 2.5px #efe3c8, inset 0 0 0 3.5px rgba(194, 62, 40, 0.6), 0 6px 14px -6px rgba(0, 0, 0, 0.45);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 15px;
  color: #b3361f;
  will-change: transform;
}
.pawn-tip {
  position: absolute;
  right: 44px;
  top: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--kai);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.pawn-tip.is-on {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ───────── 首屏 ───────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: auto minmax(0, 33rem) 1fr;
  column-gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: 120px var(--pad) 110px;
  overflow: hidden;
}
.hero-name {
  position: relative;
  z-index: 2;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(76px, 8.6vw, 136px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}
.hero-text {
  position: relative;
  z-index: 2;
}
.hero-tagline {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 900;
  line-height: 1.22;
  white-space: pre-line; /* content.js 里写 \n 可以指定换行位置 */
}
.hero-intro {
  margin: 0 0 16px;
  max-width: 30em;
  font-size: 17px;
  color: var(--fg-2);
}
.hero-now {
  margin: 0 0 36px;
  max-width: 30em;
  font-size: 15px;
  color: var(--fg-2);
}
.pi {
  font-family: var(--kai);
  color: var(--zhu);
  margin-right: 0.35em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-art {
  position: absolute;
  z-index: 0;
  right: -1vw;
  bottom: -2%;
  width: min(68vw, 1120px);
  margin: 0;
  pointer-events: none;
  mix-blend-mode: multiply; /* 画的白底吃进纸色。要放在这一层：里面的元素被 transform 隔开后叠不到纸上 */
}
.hero-art-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* 题跋：画上空白处的竖排题字 */
.tiba {
  position: absolute;
  top: -10%;
  right: clamp(24px, 6vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  writing-mode: vertical-rl;
  pointer-events: auto;
}
.tiba-text {
  --lh: 31px;
  padding: 0.35em 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: var(--lh);
  letter-spacing: 0.16em;
  border-block: 1px solid var(--line-2);
  /* 乌丝栏：每一列之间的细线 */
  background: repeating-linear-gradient(to left, transparent 0 calc(var(--lh) - 1px), var(--line) calc(var(--lh) - 1px) var(--lh));
}
.tiba-text .col {
  display: block;
}
.tiba-source {
  padding-top: 3.5em;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}
.tiba-note {
  padding-top: 1em;
  font-family: var(--kai);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--zhu);
  white-space: pre-line;
}
.tiba .seal {
  writing-mode: horizontal-tb;
  margin-top: 1em;
  transform: rotate(-3deg);
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  text-decoration: none;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--fg-3);
  transform-origin: top;
}
.motion .scroll-cue i {
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ───────── 按钮 ───────── */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover {
  color: var(--bg);
  border-color: var(--fg);
}
.btn:hover::before {
  transform: none;
}
.btn--ink {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.btn--ink::before {
  background: var(--zhu);
}
.btn--ink:hover {
  color: #fff;
  border-color: var(--zhu);
}
.magnetic {
  will-change: transform;
}

/* ───────── 通用：节标题 ───────── */
.sec {
  position: relative;
  padding: clamp(88px, 10vw, 150px) var(--pad);
}
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 96px);
}
.sec-no {
  grid-row: span 3;
  padding-top: 0.7em;
  writing-mode: vertical-rl;
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: 0.25em;
  color: var(--zhu);
}
.split-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 8.4vw, 128px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}
.sec-intro {
  grid-column: 2;
  max-width: 32em;
  margin: 22px 0 0;
  font-size: 17px;
  color: var(--fg-2);
}
.sub-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
}

/* 逐字拆分（动效用） */
.ch {
  display: inline-block;
}
.split-title .ch {
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  vertical-align: top;
}
.split-title .ch > i {
  display: inline-block;
  font-style: normal;
}

/* ───────── 作品：左边逐个讲，右边屏幕跟着换 ───────── */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 100px);
}
.stage-step {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.stage-step:last-child {
  min-height: 100vh;
}
.stage-step:first-child {
  min-height: 70vh;
  justify-content: flex-start;
  padding-top: 8vh;
}
.step-no {
  margin: 0 0 14px;
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--zhu);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 1.4em;
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--fg-3);
  font-variant-numeric: lining-nums;
}
.meta-ver {
  font-family: var(--mono);
  font-size: 12.5px;
}
.work-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 900;
  line-height: 1.1;
}
.one-liner {
  margin: 0 0 20px;
  font-size: 17px;
  color: var(--fg-2);
}
.hls {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  margin: 26px 0;
}
.hl-value {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.hl-label {
  display: block;
  font-size: 13.5px;
  color: var(--fg-3);
}
/* 朱笔圈 */
.zhuquan {
  position: absolute;
  left: -16px;
  top: -12px;
  width: calc(100% + 32px);
  height: calc(100% + 24px);
  overflow: visible;
  pointer-events: none;
}
.zhuquan path {
  fill: none;
  stroke: var(--zhu-2);
  stroke-width: 2.2px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.motion .zhuquan path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s var(--ease-io) 0.25s;
}
.motion .zhuquan.is-in path {
  stroke-dashoffset: 0;
}
.tags {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--fg-2);
}
.tags-label {
  font-family: var(--kai);
  color: var(--zhu);
  margin-right: 0.7em;
}
.work-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 24px;
}
.work-open {
  height: 42px;
  padding: 0 20px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  background: none;
}
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 15px;
}
.lnk {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ease), color 0.3s;
}
a.lnk:hover {
  color: var(--zhu);
  background-size: 0 1px;
  background-position: 100% 100%;
}
.badge {
  height: 20px;
  width: auto;
}
.motion .stage-step {
  opacity: 0.22;
  transition: opacity 0.6s var(--ease);
}
.motion .stage-step.is-active {
  opacity: 1;
}

/* 右侧的屏幕 */
.stage-screen-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  perspective: 1400px;
}
.stage-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -50px rgba(40, 26, 10, 0.45), 0 0 0 10px rgba(23, 22, 20, 0.035);
  transform-origin: 50% 0%;
  will-change: transform;
  transition: background-color 0.8s var(--ease);
}
/* 跟随鼠标的柔光 */
.stage-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 248, 235, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.stage-screen:hover::after {
  opacity: 1;
}
.screen-bar {
  position: absolute;
  z-index: 4;
  left: 16px;
  bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(19, 18, 16, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f3eee4;
  font-size: 12.5px;
}
.screen-bar b {
  font-family: var(--kai);
  font-weight: 400;
  color: #ff9a80;
}
.pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--card);
  /* 点阵底纹，像画布 */
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 22px 22px;
  visibility: hidden;
}
.pane.is-active,
.pane.was-active {
  visibility: visible;
}
.pane.is-active {
  z-index: 2;
}
.pane.was-active {
  z-index: 1;
}
.motion .pane.is-active {
  animation: wipe-up 0.95s var(--ease-io) both;
}
.motion .stage-screen[data-dir="up"] .pane.is-active {
  animation-name: wipe-down;
}
@keyframes wipe-up {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes wipe-down {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}
.pane-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.motion .pane.is-active .pane-media {
  animation: settle 1.3s var(--ease) both;
}
@keyframes settle {
  from {
    transform: scale(1.12);
  }
}
.pane video,
.pane .pane-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 数据图：耗时对比条 */
.viz {
  width: min(86%, 620px);
}
.viz-title {
  margin: 0 0 26px;
  font-family: var(--kai);
  font-size: 15px;
  color: var(--zhu);
}
.bar {
  margin-bottom: 26px;
}
.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--fg-2);
}
.bar-head b {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-track {
  height: 14px;
  border-radius: 999px;
  background: var(--card-2);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--fg-3);
  transform-origin: left;
}
.bar:last-child .bar-fill {
  background: var(--zhu-2);
}
.motion .bar-fill {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-io);
}
.motion .bar:last-child .bar-fill {
  transition-delay: 0.7s;
}
.motion .pane.is-active .bar-fill,
.motion .is-in .bar-fill {
  transform: none;
}

/* 数据图：节点 */
.viz-nodes {
  width: min(80%, 600px);
}
.viz-nodes svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.viz-nodes line {
  stroke: var(--line-2);
  stroke-width: 1.4;
}
.viz-nodes line.hot {
  stroke: var(--zhu-2);
}
.viz-nodes circle {
  fill: var(--bg);
  stroke: var(--fg-2);
  stroke-width: 1.4;
}
.viz-nodes .core circle {
  fill: var(--fg);
  stroke: none;
}
.viz-nodes text {
  font-family: var(--sans);
  font-size: 13px;
  fill: var(--fg-2);
  text-anchor: middle;
  dominant-baseline: central;
}
.viz-nodes .core text {
  fill: var(--bg);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 17px;
}
.motion .viz-nodes line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s var(--ease);
  transition-delay: calc(0.35s + var(--i) * 90ms);
}
.motion .viz-nodes .node {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.5s var(--ease), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(0.5s + var(--i) * 90ms);
}
.motion .pane.is-active .viz-nodes line,
.motion .is-in .viz-nodes line {
  stroke-dashoffset: 0;
}
.motion .pane.is-active .viz-nodes .node,
.motion .is-in .viz-nodes .node {
  opacity: 1;
  transform: none;
}

/* 数据图：289 盏灯 */
.viz-dots {
  display: grid;
  grid-template-columns: auto auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.dots {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: clamp(4px, 0.55vw, 7px);
  width: min(42vw, 300px);
}
.dots i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--zhu-2);
  box-shadow: 0 0 6px rgba(224, 86, 60, 0.55);
}
.motion .dots i {
  background: var(--card-2);
  box-shadow: none;
  transition: background-color 0.25s, box-shadow 0.25s;
  transition-delay: calc(0.3s + var(--i) * 5ms);
}
.motion .pane.is-active .dots i,
.motion .is-in .dots i {
  background: var(--zhu-2);
  box-shadow: 0 0 6px rgba(224, 86, 60, 0.55);
}
.dots-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dots-num small {
  font-size: 0.32em;
  margin-left: 0.2em;
}
.dots-label {
  margin: 10px 0 0;
  max-width: 9em;
  font-size: 14px;
  color: var(--fg-2);
}

/* 手机上每件作品自带的画面 */
.step-media {
  display: none;
}

/* ───────── 系列：横向放映带 ───────── */
.sec--night {
  padding-left: 0;
  padding-right: 0;
}
.reel-head {
  padding: 0 var(--pad);
  margin-bottom: 36px;
}
.reel-head .split-title {
  font-size: clamp(56px, 7vw, 112px);
}
.accounts {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--fg-2);
}
.accounts-label {
  font-family: var(--kai);
  color: var(--zhu);
}
.account-platform {
  margin-right: 0.5em;
  color: var(--fg-3);
}
.reel-count {
  display: none;
}
.reel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel-viewport::-webkit-scrollbar {
  display: none;
}
.reel-track {
  --mh: min(41vh, 390px);
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 2.6vw, 44px);
  width: max-content;
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
}
.reel-card {
  flex: none;
  scroll-snap-align: start;
  scroll-margin-left: var(--pad);
  max-width: 100vw;
}
.reel-media {
  display: flex;
  gap: 10px;
  height: var(--mh);
}
.reel-frame {
  position: relative;
  flex: none;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0c0b0a;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.reel-frame.is-tall {
  aspect-ratio: 9 / 16;
}
.reel-frame.is-still {
  opacity: 0.9;
}
.reel-frame video,
.reel-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(var(--shift, 0px)) scale(1.1);
}
.reel-frame figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--kai);
  font-size: 13px;
  color: #f6efe2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.trial {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--seal);
  color: var(--seal-ink);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  filter: url(#rough);
  transform: rotate(-6deg);
}
.reel-cap {
  width: 0;
  min-width: 100%;
  padding-top: 18px;
}
.reel-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
}
.reel-cap .meta {
  margin-bottom: 8px;
}
.reel-cap .one-liner {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.7;
}
.reel-eps {
  margin: 0 0 10px;
  font-family: var(--kai);
  font-size: 14px;
  color: var(--fg-3);
}
.reel-note {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--zhu);
  font-size: 14px;
  color: var(--fg-2);
}
/* 电脑上：竖着滚，放映带横着走 */
.reel--pinned .reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  overflow: clip; /* clip 不能被滚动：键盘聚焦到屏幕外的链接时，浏览器不会偷偷横向滚它 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 76px;
}
.reel--pinned .reel-viewport {
  overflow: visible;
  scroll-snap-type: none;
}
.reel--pinned .reel-track {
  will-change: transform;
}
.reel--pinned .reel-count {
  display: block;
  position: absolute;
  right: var(--pad);
  bottom: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.reel--pinned .reel-count b {
  font-size: 34px;
  color: var(--fg);
}
.reel--pinned .reel-head {
  position: relative;
}
.reel--pinned .reel-card {
  transition: opacity 0.5s var(--ease);
}

/* ───────── 手艺 ───────── */
.marquee {
  margin: 0 calc(-1 * var(--pad)) clamp(56px, 7vw, 100px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-row {
  display: flex;
  gap: 12px;
  width: max-content;
}
.mq-row + .mq-row {
  margin-top: 12px;
}
.motion .mq-row {
  animation: mq 60s linear infinite;
}
.motion .mq-row--rev {
  animation-direction: reverse;
  animation-duration: 70s;
}
.marquee:hover .mq-row {
  animation-play-state: paused;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
.mq-chip {
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  color: var(--fg-2);
}
.mq-group {
  align-self: center;
  padding: 0 6px 0 18px;
  font-family: var(--kai);
  font-size: 15px;
  white-space: nowrap;
  color: var(--zhu);
}
.craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 128px);
}
.skill-list {
  margin: 0;
}
.skill-row {
  display: grid;
  grid-template-columns: 6.2em minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.skill-row dt {
  font-family: var(--kai);
  color: var(--zhu);
}
.skill-row dd {
  margin: 0;
}
.process-intro {
  margin: 0 0 22px;
  color: var(--fg-2);
}
.steps-wrap {
  position: relative;
  padding-left: 40px;
}
.beam {
  position: absolute;
  left: 8px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: var(--line);
}
.beam i {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--zhu-2), var(--zhu));
  transform-origin: top;
  transform: scaleY(var(--beam, 1));
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding: 16px 0 18px;
}
.step::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 25px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--zhu);
  background: var(--zhu);
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.step h4 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 900;
}
.step h4 span:first-child {
  font-family: var(--kai);
  font-weight: 400;
  font-size: 15px;
  color: var(--zhu);
}
.step p {
  margin: 4px 0 0;
  font-size: 15.5px;
  color: var(--fg-2);
}
.motion .step {
  opacity: 0.3;
  transition: opacity 0.5s var(--ease);
}
.motion .step::before {
  background: var(--bg);
  border-color: var(--line-2);
  transform: scale(0.8);
}
.motion .step.is-lit {
  opacity: 1;
}
.motion .step.is-lit::before {
  background: var(--zhu);
  border-color: var(--zhu);
  transform: none;
}

/* ───────── 联系 ───────── */
.split-title.end-line {
  grid-column: 2;
  margin: 0;
  max-width: 15em;
  font-family: var(--serif);
  font-size: clamp(38px, 5.8vw, 92px);
  font-weight: 900;
  line-height: 1.14;
  white-space: pre-line;
}
.split-title.end-line .ch {
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.end-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.about p {
  margin: 0 0 1em;
  max-width: 32em;
  font-size: 17px;
  color: var(--fg-2);
}
.awards {
  margin: 0;
  padding-left: 1.2em;
}
.contact-intro {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--fg-3);
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  border-top: 1px solid var(--line);
}
.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.contact-row {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
}
.contact-row dt,
.contact-label {
  font-family: var(--kai);
  font-size: 15px;
  color: var(--fg-3);
}
.contact-value {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 26px);
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.contact-arrow {
  font-size: 20px;
  color: var(--fg-3);
  transition: transform 0.45s var(--ease), color 0.3s;
}
a.contact-row:hover .contact-value {
  color: var(--zhu);
}
a.contact-row:hover .contact-arrow {
  color: var(--zhu);
  transform: translate(4px, -4px);
}
.colophon {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(80px, 10vw, 150px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.colophon p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 1.8em;
  margin: 0;
  font-size: 13px;
  color: var(--fg-3);
}

/* ───────── 详情弹窗 ───────── */
.jiaye {
  width: min(800px, 100% - 28px);
  max-height: min(90vh, 980px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--fg);
  background-color: var(--bg);
  background-image: url("img/paper-grain.png");
  box-shadow: 0 50px 120px -40px rgba(10, 8, 5, 0.6);
}
.jiaye::backdrop {
  background: rgba(19, 18, 16, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.motion .jiaye[open] {
  animation: pop 0.5s var(--ease);
}
.motion .jiaye[open] .jiaye-body > * {
  animation: rise 0.7s var(--ease) both;
  animation-delay: calc(80ms + var(--i, 0) * 45ms);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.jiaye-body {
  padding: clamp(32px, 5vw, 60px);
}
.jiaye-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.4s var(--ease), color 0.3s;
}
.jiaye-close:hover {
  color: var(--zhu);
  transform: rotate(90deg);
}
.jiaye-kicker {
  margin: 0;
  font-family: var(--kai);
  color: var(--zhu);
  letter-spacing: 0.2em;
}
.jiaye-title {
  margin: 2px 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
}
.jiaye-media {
  margin: 10px 0 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.jiaye-media video,
.jiaye-media img {
  display: block;
  width: 100%;
}
.detail h4 {
  margin: 30px 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
}
.detail p {
  margin: 0;
  color: var(--fg-2);
}
.detail ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.detail li {
  position: relative;
  margin: 5px 0;
  padding-left: 1.3em;
  color: var(--fg-2);
}
/* 圈点 */
.detail li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.7em;
  width: 0.45em;
  height: 0.45em;
  border: 1.5px solid var(--zhu);
  border-radius: 50%;
}
.jiaye .tags {
  margin-top: 28px;
}
.jiaye .links {
  margin-top: 14px;
}

/* ───────── 自定义光标（电脑） ───────── */
.cursor {
  display: none;
}
.has-cursor .cursor {
  display: block;
  position: fixed;
  z-index: 90;
  left: 0;
  top: 0;
  pointer-events: none;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--zhu-2);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fg-3);
  opacity: 0.7;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-ring em {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-link .cursor-ring {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: var(--zhu-2);
}
.cursor.is-label .cursor-ring {
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  background: var(--fg);
  border-color: var(--fg);
  opacity: 0.92;
}
.cursor.is-label .cursor-ring em {
  opacity: 1;
}
.cursor.is-hidden {
  opacity: 0;
}

/* ───────── 入场动效的初始状态（只在 .motion 下生效） ───────── */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.motion .split-title .ch > i {
  transform: translateY(108%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.motion .split-title.is-in .ch > i {
  transform: none;
}
.motion .hero-name .ch {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(-0.4em) scale(1.06);
}
.motion .hero-tagline .ch {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.35em);
}
.motion.is-loaded .hero-name .ch,
.motion.is-loaded .hero-tagline .ch {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.motion .hero-art-img {
  opacity: 0;
  transform: scale(1.05) translateY(20px);
}
.motion.is-loaded .hero-art-img {
  opacity: 1;
  transform: none;
  transition: opacity 1.6s var(--ease) 0.2s, transform 2s var(--ease) 0.2s;
}
.motion .tiba-text .col {
  clip-path: inset(0 0 100% 0);
}
.motion.is-loaded .tiba-text .col {
  clip-path: inset(0);
  transition: clip-path 1.1s var(--ease-io);
  transition-delay: calc(1.3s + var(--i, 0) * 230ms);
}
.motion .tiba-source,
.motion .tiba-note {
  opacity: 0;
}
.motion.is-loaded .tiba-source,
.motion.is-loaded .tiba-note {
  opacity: 1;
  transition: opacity 1s var(--ease) 2.3s;
}
.motion .tiba .seal {
  opacity: 0;
}
.motion.is-loaded .tiba .seal {
  animation: stamp 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) 2.7s both;
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: scale(1.7) rotate(-12deg);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-3deg);
  }
}
.motion .stage-screen {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
}

/* ───────── 待填标记（本机预览用） ───────── */
.todo {
  color: var(--zhu) !important;
  font-family: var(--kai);
  outline: 1.5px dashed var(--zhu);
  outline-offset: 3px;
}
.todo-counter {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--kai);
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

/* 右侧卒子只在宽屏出现，并给它让出位置 */
@media (max-width: 1199px) {
  .pawn {
    display: none;
  }
}
@media (min-width: 1200px) {
  .hero,
  .sec:not(.sec--night),
  .reel-head {
    padding-right: max(var(--pad), 92px);
  }
  .reel--pinned .reel-count {
    right: max(var(--pad), 92px);
  }
}

/* ───────── 平板与手机 ───────── */
@media (max-width: 1023px) {
  .pawn {
    display: none;
  }
  .hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding-bottom: 0;
    align-items: start;
  }
  .hero-art {
    position: relative;
    grid-column: 1 / -1;
    right: 0;
    width: calc(100% + 2 * var(--pad));
    margin: 24px calc(-1 * var(--pad)) 0;
    display: flex;
    flex-direction: column;
  }
  .tiba {
    position: relative;
    top: 0;
    right: 0;
    order: -1;
    align-self: flex-end;
    margin: 0 var(--pad) -18%;
  }
  .scroll-cue {
    display: none;
  }
  .stage {
    display: block;
  }
  .stage-screen-wrap {
    display: none;
  }
  .stage-step,
  .stage-step:first-child {
    min-height: 0;
    padding: 0 0 72px;
  }
  .motion .stage-step {
    opacity: 1;
  }
  .step-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10.4;
    margin-bottom: 26px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -40px rgba(40, 26, 10, 0.4);
  }
  .step-media {
    aspect-ratio: auto;
  }
  .step-media .pane {
    position: relative;
    inset: auto;
    visibility: visible;
  }
  .step-media .pane-media {
    position: relative;
    inset: auto;
    padding: 28px 22px;
  }
  .step-media .pane-media:has(video, .pane-img) {
    padding: 0;
  }
  .step-media video,
  .step-media .pane-img {
    height: auto;
  }
  .bar-head b {
    font-size: 20px;
  }
  .viz-nodes {
    width: 100%;
  }
  .craft,
  .end-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 719px) {
  body {
    font-size: 16px;
  }
  .nav {
    top: 10px;
    left: 12px;
    right: 12px;
  }
  .brand {
    padding: 4px;
  }
  .brand-name {
    display: none;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 13.5px;
  }
  .hero {
    padding-top: 92px;
    column-gap: 18px;
  }
  .hero-name {
    font-size: clamp(58px, 17vw, 78px);
  }
  .hero-tagline {
    font-size: clamp(25px, 6.8vw, 32px);
    margin-bottom: 16px;
  }
  .hero-intro {
    font-size: 15.5px;
  }
  .hero-now {
    font-size: 14.5px;
    margin-bottom: 26px;
  }
  .btn {
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }
  .tiba {
    margin-bottom: -22%;
  }
  .tiba-text {
    --lh: 27px;
    font-size: 14px;
  }
  .tiba-note {
    font-size: 12.5px;
  }
  .seal--four {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }
  .hls {
    gap: 20px 28px;
  }
  .hl-value {
    font-size: 26px;
  }
  .viz-dots {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .dots {
    width: min(60vw, 220px);
  }
  .dots-num {
    font-size: 48px;
  }
  .reel-track {
    --mh: auto;
  }
  .reel-media {
    height: auto;
  }
  .reel-frame {
    height: auto;
    width: 78vw;
  }
  .reel-frame.is-tall {
    width: 46vw;
  }
  .reel-frame.is-still {
    display: none;
  }
  .reel-cap {
    width: auto;
    min-width: 0;
    max-width: 78vw;
  }
  .skill-row {
    grid-template-columns: 5.4em minmax(0, 1fr);
  }
  .contact-row {
    grid-template-columns: 4em minmax(0, 1fr) auto;
  }
}

/* LINGGAN · 以墨色排版、朱色记录画布变化 */
.viz-linggan {
  width: min(92%, 580px);
  padding: clamp(14px, 2.1vw, 24px);
  box-sizing: border-box;
  color: #24221f;
  border: 1px solid #b9ad9759;
  border-radius: 15px;
  background: linear-gradient(120deg,#f8f3e8 0%,#f0eadd 75%,#ece4d5 100%);
  box-shadow: 0 16px 40px -25px #3d2c1c85, inset 0 1px #fff8;
  cursor: default;
}
.lg-head,.lg-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.lg-kicker,.lg-status {
  font: 500 clamp(10px, 1.25vw, 13px)/1.4 var(--mono,monospace);
  letter-spacing: .09em;
  color: #923923;
}
.lg-kicker::before {
  content:""; display:inline-block; width:7px; height:7px; margin-right:7px;
  background:#bb4d34; border-radius:1px; transform:rotate(-8deg); vertical-align:1px;
}
.lg-status { white-space:nowrap; color:#6f6658; font-variant-numeric:tabular-nums; }
.lg-question { font: 650 clamp(17px, 2.2vw, 26px)/1.32 var(--serif,serif); margin: 9px 0 10px; }
.lg-map {
  display:block; width:100%; height:auto; overflow:hidden; border-radius:9px;
  background-color:#e8dfcf80; background-image:radial-gradient(#85745951 .8px,transparent .9px);
  background-size:12px 12px; box-shadow:inset 0 0 0 1px #8e7b5f25;
}
.lg-ruler { fill:none; stroke:#a09177; opacity:.65; stroke-width:1; }
.lg-link,.lg-trace { fill:none; stroke:#aa432f; stroke-width:2; }
.lg-link { stroke-dasharray:1; stroke-dashoffset:1; opacity:0; }
.lg-link.lg-connected { stroke-dashoffset:0; opacity:.88; }
.lg-trace { opacity:0; stroke:#e2734f; stroke-width:4; stroke-linecap:round; stroke-dasharray:.06 .94; stroke-dashoffset:1; }
.lg-card-bg { fill:#f8f1e4; stroke:#93836e; stroke-width:1; }
.lg-card-name { fill:#22201b; font: 650 17px var(--sans,sans-serif); }
.lg-card-code { fill:#705d48; font: 600 11px var(--sans,sans-serif); letter-spacing:.06em; }
.lg-core .lg-card-bg { fill:#26231f; stroke:#26231f; }
.lg-core .lg-card-name { fill:#fff5e7; }
.lg-core .lg-card-code { fill:#e1c0a8; }
.lg-pin { fill:#b84b32; stroke:#f9f0dd; stroke-width:1; }
.lg-selected .lg-card-bg { fill:#ffefe4; stroke:#ad422d; stroke-width:1.6; }
.lg-card.lg-removed { opacity:0; }
.lg-stamp { opacity:0; fill:none; stroke:#9d3625; }
.lg-stamp.lg-approved { opacity:1; }
.lg-stamp text { fill:#9d3625; stroke:none; font: 650 12px var(--sans,sans-serif); }
.lg-foot { margin: 8px 0 6px; min-height: 34px; }
.lg-caption { margin:0; font-size:clamp(11px,1.15vw,14px); line-height:1.45; color:#554837; }
.lg-controls { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
.lg-step,.lg-replay {
  font: 600 clamp(11px,1.15vw,14px)/1.2 var(--sans,sans-serif);
  cursor:pointer; color:#40362b; background:#faf6ed; border:1px solid #7c6a4f55;
  border-radius:6px; min-height:36px; padding:5px 2px; white-space:nowrap;
}
.lg-step span { font: 500 10px var(--mono,monospace); opacity:.68; margin-right:.4em; }
.lg-replay { flex:none; min-width:47px; background:transparent; border-color:transparent; color:#893821; text-decoration:underline; }
.lg-step[aria-pressed="true"] { background:#9c3a28; color:#fff5eb; border-color:#9c3a28; }
.lg-step:hover:not([aria-pressed="true"]),.lg-replay:hover { background:#ede1cf; }
.lg-step:focus-visible,.lg-replay:focus-visible { outline:2px solid #923923; outline-offset:2px; }
.lg-moving .lg-link { transition:stroke-dashoffset .68s cubic-bezier(.2,.7,.3,1), opacity .35s; }
.lg-moving .lg-card,.lg-moving .lg-card-bg,.lg-moving .lg-stamp { transition:opacity .38s, fill .38s, stroke .38s; }
.lg-moving .lg-tracing { animation: lg-ink-pass .92s ease-out .14s both; }
@keyframes lg-ink-pass { 0% {opacity:0;stroke-dashoffset:0;} 18% {opacity:1;} 80% {opacity:1;} 100% {opacity:0;stroke-dashoffset:-1;} }
@media (max-width: 719px) {
  .step-media .pane-media:has(.viz-linggan) { padding:12px; }
  .viz-linggan { width:100%; border-radius:10px; padding:11px; }
  .lg-step,.lg-replay { min-height:44px; }
  .lg-step span { margin-right:.28em; }
}
@media (prefers-reduced-motion: reduce) {
  .viz-linggan *, .viz-linggan *::before { transition:none !important; animation:none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .lg-moving[data-frame="0"] .lg-a { animation:lg-appear .45s ease-out both; }
  .lg-moving[data-frame="0"] .lg-b { animation:lg-appear .45s ease-out .16s both; }
}
@keyframes lg-appear { from { opacity:0; } to { opacity:1; } }
