:root {
  --bg: #08080a;
  --bg2: #131316;
  --text: #f2f1ee;
  --muted: #8f8e89;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --pad: clamp(20px, 4vw, 56px);
  --max: 1400px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: 0.02em; }

/* ============ 液态玻璃 ============ */
/* 分段条（Dock、二级分类、右上导航）交给 WebGL2 渲染：真实折射页面内容，
   选中胶囊在 layer 1 上折射下方那条玻璃，按住变清澈透镜、跟手、松手回弹。
   data-lg="on"  = canvas 已经接管，下面的 CSS 只负责布局，材质全部让位；
   data-lg="css" = 没有 WebGL2，退回这套静态磨砂。
   小件（按钮、播放键、灯箱）用纯 CSS 磨砂，不再做位移贴图——
   贴图在 Chromium 之外不生效，还会在边缘留下白色月牙残影。 */

.lgc {
  position: absolute;
  display: block;
  pointer-events: none;
  z-index: 0;
}

[data-lg="on"].dock,
[data-lg="on"].subdock,
[data-lg="on"].nav nav {
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

:root {
  --glass-grad:
    radial-gradient(125% 72% at 22% -22%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 58%),
    radial-gradient(95% 58% at 84% 122%, rgba(255, 255, 255, 0.2), transparent 62%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.045) 46%,
      rgba(255, 255, 255, 0.09) 100%),
    linear-gradient(180deg, rgba(18, 18, 22, 0.34), rgba(10, 10, 13, 0.44));

  --glass-grad-solid:
    radial-gradient(125% 72% at 22% -22%, #ffffff, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #ffffff 0%, #f4f4f7 46%, #e4e4ec 100%);
}

/* ---- 1. 元素本体：描边 + 磨砂 ---- */
.btn, .play, .brand.glass, .lb-close, .lb-prev, .lb-next {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* button 元素有 UA 默认底色，必须清掉 */
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.13),
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 1px 3px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}

/* 没有折射层的容器，材质直接给元素自己 */
.nav nav, .lb-close, .lb-prev, .lb-next { background: var(--glass-grad); }
.nav nav { position: relative; }

/* ---- 2. 材质层：渐变与高光 ---- */
.btn::before, .play::before, .brand.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: var(--glass-grad);
  transition: opacity 0.3s var(--ease);
}

/* ---- 3. 文字压在最上面 ---- */
.btn > *, .brand.glass > *, .play > * {
  position: relative;
  z-index: 3;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn, .play, .brand.glass, .nav nav, .lb-close, .lb-prev, .lb-next {
    background: linear-gradient(180deg, #2a2a30, #17171b);
  }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: 0.06em;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
}
.brand.glass { border-radius: 999px; }

.mark { width: 20px; height: 20px; color: var(--text); flex: none; }
/* 上传的自定义图标：尺寸由 <img width/height> 决定，这里只管形状 */
.brand-img {
  object-fit: contain; flex: none; display: block;
  border-radius: 4px;
}

/* 右上角两个选项：一个玻璃胶囊，选中的那个是更亮的白玻璃 */
.nav nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
}
.nav nav a {
  position: relative;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav nav a:hover { color: var(--text); }
.nav nav a.on {
  color: #0a0a0b;
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f2f6 46%, #e2e2ea 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 1px rgba(0, 0, 0, 0.12),
    0 3px 10px rgba(0, 0, 0, 0.4),
    0 0 0 0.5px rgba(255, 255, 255, 0.6);
}
.nav nav a.on::after { display: none; }

/* ---------- 首页 ---------- */
/* 首屏只做三件事：让人认出你、知道你有多少量、给一条明确的路去作品集。
   作品缩略图一律不放首页——放了就会被当成「全部作品」，反而没人点进去。 */
.home-hero {
  position: relative; isolation: isolate;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(100px, 13vh, 148px) var(--pad) clamp(46px, 7vh, 86px);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(100svh, 900px);
}
.home-hero > * { min-width: 0; }

/* 背后那面图墙：作品缩略图等距抽样，缓慢上移/下移，整体压到很暗。
   只做氛围，不可点、不抢文字。 */
.home-wall {
  position: absolute; top: 0; bottom: 0;
  left: 50%; margin-left: -50vw; width: 100vw;
  display: flex; justify-content: center; gap: 18px;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.home-wall::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  /* 上下淡出 + 一层薄黑，把整面墙压成「纹理」，不抢字 */
  background:
    linear-gradient(rgba(8, 8, 10, var(--wall-dim, 0)), rgba(8, 8, 10, var(--wall-dim, 0))),
    linear-gradient(180deg, var(--bg) 0%, rgba(8, 8, 10, 0) 15%, rgba(8, 8, 10, 0) 80%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 8, 10, 0.14) 8%, rgba(8, 8, 10, 0.04) 22%, rgba(8, 8, 10, 0.08) 46%, rgba(8, 8, 10, 0.34) 76%, rgba(8, 8, 10, 0.52) 100%);
}
.wall-col {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column;
  animation: wallMove var(--d, 120s) linear infinite;
  will-change: transform;
}
.wall-img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 8px; margin-bottom: 16px;
  opacity: var(--wall-op, 0.34);
  filter: saturate(var(--wall-sat, 0.85)) brightness(1);
}
@keyframes wallMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

.home-hero > .home-figure,
.home-hero > .home-lead { position: relative; z-index: 1; }

/* 文字区自己带一团暗雾，这样墙可以亮，字也不糊 */
.home-lead::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -10% -17% -10% -8%;
  opacity: var(--wall-halo, 0.86);
  background: radial-gradient(92% 104% at 30% 50%,
    rgba(6, 6, 8, 1) 0%, rgba(6, 6, 8, 0.77) 50%, rgba(6, 6, 8, 0.3) 78%, rgba(6, 6, 8, 0) 97%);
}
.home-figure {
  margin: 0; position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; max-height: 62vh;
  border-radius: 12px; overflow: hidden;
  background: #101014;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.home-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.home-figure figcaption {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.home-lead { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 24px); }
.home-lead .eyebrow { margin-bottom: 0; }
.home-lead h1 {
  font-size: clamp(3.4rem, 7.4vw, 6.2rem);
  line-height: 0.92; font-weight: 300; letter-spacing: -0.045em;
}
.home-role { color: #cfcec9; letter-spacing: 0.08em; font-size: clamp(0.95rem, 1.5vw, 1.15rem); }
.home-desc { color: #b9b8b3; line-height: 1.95; max-width: 30em; font-size: 14.5px; }
.home-lead { max-width: 680px; }
.cta .cnt { opacity: 0.5; font-size: 11.5px; margin-left: 7px; letter-spacing: 0.04em; }
.btn.lg { padding: 15px 32px; font-size: 13.5px; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.3s;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { filter: brightness(1.14); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.solid {
  color: #0a0a0b;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 24px rgba(255, 255, 255, 0.14),
    0 3px 12px rgba(0, 0, 0, 0.4);
}
.btn.solid::before { background: var(--glass-grad-solid); }

.home-stats {
  list-style: none; margin: clamp(4px, 1vh, 12px) 0 0; padding: 22px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; border-top: 1px solid var(--line-soft);
}
.home-stats b {
  display: block; font-weight: 300; font-size: 30px;
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.home-stats span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }

/* 三条方向入口：只有文字，没有缩略图 —— 是「门」，不是画廊 */
.home-index { max-width: 1200px; margin: 0 auto; padding: clamp(46px, 7vh, 90px) var(--pad) 0; }
.home-index > .eyebrow { display: block; margin-bottom: 12px; }
.hrow {
  display: grid;
  grid-template-columns: 44px minmax(0, 0.6fr) minmax(0, 1.25fr) 28px;
  align-items: baseline; gap: 18px;
  padding: 25px 0; border-top: 1px solid var(--line-soft);
  transition: color 0.3s var(--ease), padding 0.4s var(--ease);
}
.home-index .hrow:last-of-type { border-bottom: 1px solid var(--line-soft); }
.hrow-n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.hrow-t { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 300; letter-spacing: -0.02em; }
.hrow-t em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 10px; letter-spacing: 0.06em; }
.hrow-d { font-size: 12.5px; color: #85847f; letter-spacing: 0.03em; }
.hrow-a { font-size: 16px; color: var(--muted); text-align: right; transition: transform 0.4s var(--ease), color 0.3s; }
.hrow:hover { color: #fff; padding-left: 10px; }
.hrow:hover .hrow-a { transform: translateX(6px); color: #fff; }
.hrow:hover .hrow-t em { color: #b9b8b3; }
.home-note { font-size: 11.5px; color: #5f5e5a; letter-spacing: 0.03em; margin-top: 16px; }

.home-clients { max-width: 1200px; margin: 0 auto; padding: clamp(44px, 6vh, 76px) var(--pad) 0; }
.home-clients .eyebrow { display: block; margin-bottom: 16px; }
.home-clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-clients li {
  font-size: 12px; padding: 6px 14px; border-radius: 999px; color: #c2c1bc;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.home-end {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--pad) 0;
}
.home-end > div {
  margin-top: clamp(40px, 6vh, 76px);
  padding: clamp(28px, 4.6vw, 52px);
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.home-end h2 { font-size: clamp(1.35rem, 2.9vw, 2.05rem); font-weight: 300; letter-spacing: -0.03em; }
.home-end p { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- 作品网格（作品页） ---------- */
.tile { cursor: pointer; outline: none; }
.tile-media {
  overflow: hidden; border-radius: 10px; background: var(--bg2); position: relative;
}

/* 多图：缩略图右下叠两层「纸边」，右上角一枚数字角标 */
.tile-media.multi {
  box-shadow:
    6px 6px 0 -1px var(--bg),
    6px 6px 0 0 rgba(255, 255, 255, 0.09),
    12px 12px 0 -2px var(--bg),
    12px 12px 0 -1px rgba(255, 255, 255, 0.05);
}
.pcount {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  font-size: 11px; line-height: 1.2;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #f2f1ee;
  background: rgba(8, 8, 10, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.pcount svg { width: 11px; height: 11px; opacity: 0.72; }
.tile:hover .pcount {
  background: rgba(8, 8, 10, 0.72);
  transform: translateY(-1px);
}
.tile-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s;
}
.tile:hover .tile-media img { transform: scale(1.035); }
.tile:focus-visible { box-shadow: 0 0 0 1px var(--text); }
.tile-body h3 { font-size: 15px; margin-bottom: 4px; }

/* ---------- page shell ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 15vh, 170px) var(--pad) 60px; }
.page-head { max-width: 720px; margin-bottom: 54px; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.page-desc { color: var(--muted); margin-top: 22px; line-height: 1.9; max-width: 34em; }

/* ---------- chip 基础（Dock 里复用） ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: #dcdbd6;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.28s var(--ease), color 0.25s, background 0.25s, box-shadow 0.3s var(--ease);
}
.chip.on {
  color: #0a0a0b;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 24px rgba(255, 255, 255, 0.16),
    0 2px 10px rgba(0, 0, 0, 0.35);
}
.chip.on::before { background: var(--glass-grad-solid); }
.chip em, .subchip em { font-style: normal; opacity: 0.55; font-size: 11px; }

/* ---------- 悬浮 Dock：一级分类 ---------- */
.dockwrap {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 20px);
  pointer-events: none;
}
.dockwrap > * { pointer-events: auto; }

.dock {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 7px;
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(180deg, rgba(14, 14, 18, 0.66), rgba(9, 9, 12, 0.76));
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 22px 50px rgba(0, 0, 0, 0.58),
    0 3px 10px rgba(0, 0, 0, 0.42);
}
.dock::-webkit-scrollbar { display: none; }

/* Dock 里的按钮去掉自己的玻璃，交给 Dock 整体 */
.dock .chip {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 10px 19px;
  color: #c2c1bb;
}
.dock .chip::before, .dock .chip::after { display: none; }
.dock .chip:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.dock .chip.on {
  background: var(--glass-grad-solid);
  color: #0a0a0b;
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, 0.35);
}
.dock .chip.on:hover { background: var(--glass-grad-solid); }

/* 桌面端：鼠标划过时轻微的 Dock 放大 */
@media (hover: hover) and (pointer: fine) {
  .dock .chip:hover { transform: translateY(-3px) scale(1.05); }
  .dock .chip:active { transform: translateY(-1px) scale(0.98); }
}

/* ---------- 二级分类：贴在 Dock 上方的胶囊带 ---------- */
.subdock {
  display: none;
  max-width: 100%;
  padding: 6px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%),
    linear-gradient(180deg, rgba(14, 14, 18, 0.6), rgba(9, 9, 12, 0.7));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 34px rgba(0, 0, 0, 0.5);
}
.subdock::-webkit-scrollbar { display: none; }
.subdock.on { display: block; animation: subIn 0.32s var(--ease) both; }

.subfilters { display: flex; gap: 4px; }
.subfilters[hidden] { display: none; }

@keyframes subIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.subchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #b9b8b2;
  white-space: nowrap;
  border: 0;
  background: transparent;
  transition: color 0.25s, background 0.25s, box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.subchip::before, .subchip::after { display: none; }
.subchip:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.subchip.on {
  color: #0a0a0b;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Dock 占掉的高度，给页面留出空间 */
.has-dock .page { padding-bottom: 170px; }
.has-dock .foot { padding-bottom: 130px; }

/* ---------- masonry ---------- */
.masonry { columns: 3; column-gap: clamp(14px, 2vw, 26px); }
.masonry.manual { display: flex; align-items: flex-start; column-gap: 0; gap: 0 clamp(14px, 2vw, 26px); }
.mcol { flex: 1 1 0; min-width: 0; }
.tile { break-inside: avoid; margin-bottom: clamp(26px, 4vw, 46px); }
.tile.hide { display: none; }
.tile-body { padding: 15px 2px 0; }
.tile-sum { font-size: 12.5px; color: #a9a8a3; line-height: 1.75; margin-top: 10px; }
.tile-role { font-size: 11.5px; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; }

/* ---------- video tile ---------- */
.tile-video .tile-media { cursor: pointer; }
.tile-video .play { pointer-events: none; }
.vstills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 13px; }
.vstill {
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 6px; overflow: hidden; line-height: 0;
}
.vstill img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  opacity: 0.45; transition: opacity 0.3s;
}
.vstill:hover img, .vstill.on img { opacity: 1; }

/* 播放键：玻璃圆片 */
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.35s var(--ease), background 0.35s;
  overflow: hidden;
}
.play span {
  position: relative; z-index: 1;
  width: 0; height: 0; margin-left: 3px;
  border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.tile-video:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.tile-video:hover .play span { border-left-color: #0a0a0b; }
.tile-video:hover .play {
  background: linear-gradient(180deg, #fff, #e8e8ee);
  border-color: rgba(255, 255, 255, 0.9);
}
.film-time {
  position: absolute; right: 12px; bottom: 12px; font-size: 11px;
  letter-spacing: 0.06em; color: #f0f0ee;
  padding: 3px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 6, 8, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  display: grid; grid-template-rows: auto 1fr auto;
  /* 列宽必须锁死，否则缩略图条的 max-content 会把整列撑到屏幕外 */
  grid-template-columns: minmax(0, 1fr);
  padding: 20px clamp(16px, 4vw, 60px) 12px;
}
.lb[hidden] { display: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 14px; }
.lb-meta strong { display: block; font-weight: 400; font-size: 15px; }
.lb-meta span { font-size: 12px; color: var(--muted); }

.lb-close, .lb-prev, .lb-next {
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text); cursor: pointer; font-size: 15px;
  display: grid; place-items: center;
  line-height: 1; flex: none; overflow: hidden;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { transform: scale(1.06); }
.lb-prev, .lb-next { position: fixed; top: 50%; margin-top: -20px; z-index: 2; }
.lb-prev { left: clamp(10px, 2vw, 26px); }
.lb-next { right: clamp(10px, 2vw, 26px); }

.lb-stage { display: grid; place-items: center; overflow: auto; min-width: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 200px); object-fit: contain; border-radius: 8px; }
.lb-stage img[hidden] { display: none; }
.lb-stage video {
  max-width: 100%; max-height: calc(100svh - 200px);
  background: #000; display: block; border-radius: 8px;
}
.lb.video-mode .lb-prev, .lb.video-mode .lb-next,
.lb.video-mode .lb-thumbs { display: none; }

/* 底部：缩略图条 + 页码 */
.lb-foot {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-top: 10px; min-height: 0; min-width: 0; max-width: 100%;
}
.lb-thumbs {
  display: flex; gap: 7px;
  max-width: 100%;
  overflow-x: auto; overflow-y: hidden;
  padding: 4px 2px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs img {
  width: 76px; height: 52px; flex: none;
  object-fit: cover; border-radius: 6px;
  cursor: pointer; opacity: 0.4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.lb-thumbs img:hover { opacity: 0.8; transform: translateY(-2px); }
.lb-thumbs img.on {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lb-idx {
  font-size: 12px; color: #d6d5d0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---------- about ---------- */
.about { max-width: 1080px; margin-inline: auto; }
.cv-head {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.cv-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.cv-title { color: var(--muted); margin-top: 16px; letter-spacing: 0.06em; }
.cv-meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(120px, auto)); gap: 10px 30px; align-content: start; }
.cv-meta li { display: flex; gap: 12px; font-size: 13px; align-items: baseline; }
.cv-meta .muted { font-size: 12px; min-width: 3.6em; }

.cv-sec { margin-bottom: 60px; }
.cv-sec h2 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px; font-weight: 400;
}
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding-left: 20px; margin-bottom: 12px; color: #cfcec9; line-height: 1.85; }
.dots li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 5px; height: 1px; background: var(--muted);
}
.job { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.job:last-child { border-bottom: 0; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 16px; }
.job-head h3 { font-size: 17px; }
.job-head p { font-size: 12.5px; margin-top: 3px; }
.result {
  margin-top: 18px; padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.result .lbl { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 10px; }
.result ol { margin: 0; padding-left: 18px; color: #cfcec9; font-size: 13.5px; }
.result li { margin-bottom: 5px; }

.proj-list { display: grid; gap: 0; }
.proj { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.proj:last-child { border-bottom: 0; }
.proj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.proj-head h3 { font-size: 16px; }
.proj-role { font-size: 12px; color: var(--muted); margin-top: 5px; letter-spacing: 0.04em; }
.proj-desc { font-size: 13.5px; color: #b6b5b0; margin-top: 10px; line-height: 1.85; max-width: 52em; }

.cv-sec.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; }
.clients span {
  font-size: 12px; padding: 6px 14px;
  border-radius: 999px; color: #c2c1bc;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cv-note { font-size: 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 60px var(--pad) 40px; }
.foot-in {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line-soft);
}
.foot-name { font-size: 20px; letter-spacing: 0.02em; }
.foot-in .muted { font-size: 12.5px; margin-top: 6px; }
.foot-links { display: flex; gap: 10px; font-size: 12.5px; }
.foot-links a {
  padding: 7px 16px; border-radius: 999px;
  color: #b9b8b2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: color 0.3s, transform 0.3s var(--ease);
}
.foot-links a:hover { color: #fff; transform: translateY(-1px); }
.foot-meta { font-size: 11px; color: #5f5e5a; margin-top: 22px; letter-spacing: 0.03em; }

/* 页面切换：主体淡入，导航条原地不动，读起来像一次转场而不是硬刷新 */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body > main { animation: pageIn 0.34s var(--ease) both; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .masonry { columns: 2; }
}
@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; gap: 30px; }
  .home-wall { gap: 12px; }
  .wall-col:nth-child(n + 4) { display: none; }
  .wall-img { opacity: calc(var(--wall-op, 0.34) * 0.76); margin-bottom: 12px; }
  /* 手机上文字直接压在人像下方的墙上，多盖一层暗 */
  .home-wall::after {
    background-image:
      linear-gradient(180deg, var(--bg) 0%, rgba(8, 8, 10, 0.1) 14%, rgba(8, 8, 10, 0.1) 84%, var(--bg) 100%),
      linear-gradient(rgba(8, 8, 10, 0.26), rgba(8, 8, 10, 0.26));
  }
  .home-figure { aspect-ratio: 4 / 3; max-height: 46vh; order: -1; }
  .home-figure img { object-position: 50% 34%; }
  .hrow { grid-template-columns: 30px minmax(0, 1fr) 24px; }
  .hrow-d { display: none; }
  .brief, .cv-sec.two { grid-template-columns: 1fr; }
  .cv-meta { grid-template-columns: repeat(2, 1fr); }
  .tile-body h3 { font-size: 13.5px; }
  .tile-sum, .tile-role { display: none; }
}
@media (max-width: 620px) {
  .masonry { columns: 1; }
  .nav { padding: 12px 14px; }
  .brand { font-size: 13px; padding: 7px 14px 7px 10px; }
  .nav nav a { padding: 7px 15px; font-size: 12px; }
  .lb-prev, .lb-next { width: 36px; height: 36px; }

  .dockwrap { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 16px); }
  .dock { padding: 6px; gap: 0; }
  .dock .chip { padding: 9px 13px; font-size: 12px; }
  .dock .chip em { display: none; }
  .subdock { padding: 5px; }
  .subchip { padding: 6px 12px; font-size: 11.5px; }
  .subchip em { opacity: 0.45; }
  .has-dock .page { padding-bottom: 150px; }
  .has-dock .foot { padding-bottom: 120px; }

  .lb-thumbs img { width: 60px; height: 42px; }
  .home-hero { padding-top: 92px; }
  .wall-col:nth-child(n + 3) { display: none; }
  .home-hero .cta { gap: 10px; }
  .home-hero .btn.lg { padding: 13px 18px; font-size: 13px; }
  .home-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .home-stats b { font-size: 24px; }
  .home-end > div { padding: 22px; }
}
@media (max-width: 400px) {
  .dock { padding: 5px; }
  .dock .chip { padding: 8px 10px; font-size: 11.5px; letter-spacing: 0; }
  .subchip { padding: 6px 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
/* 玻璃由 canvas 画，选中态不能再盖一层实心白 */
[data-lg="on"] .chip.on,
[data-lg="on"] .subchip.on,
nav[data-lg="on"] a.on {
  background: none;
  box-shadow: none;
  border-color: transparent;
}
[data-lg="on"] .chip.on:hover { background: none; transform: none; }
[data-lg="on"] .chip,
[data-lg="on"] .subchip,
nav[data-lg="on"] a { position: relative; z-index: 2; }

/* 导航条上手指可以滚页面，只拦双击缩放 */
nav[data-lg="on"] { touch-action: pan-y; }

@media print {
  body { background: #fff; color: #111; }
  .nav, .foot, .cta, .more, .filters, .subwrap { display: none !important; }
  .page { padding-top: 0; }
  .result { background: #f5f5f5; border-color: #ddd; }
  .muted { color: #666; }
}
