/* ==========================================================================
   黄沛霖 · 个人网站 — 黑金 / 电影感
   ========================================================================== */

@font-face { font-family: "NSC"; src: url("../fonts/nsc.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../fonts/is-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../fonts/is-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JBM"; src: url("../fonts/jbm.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0a0908;
  --bg-1: #100e0c;
  --bg-2: #17140f;
  --panel: rgba(255, 240, 214, 0.035);
  --panel-2: rgba(255, 240, 214, 0.06);
  --line: rgba(232, 200, 140, 0.16);
  --line-2: rgba(232, 200, 140, 0.32);
  --text: #f6f1e7;
  --text-2: #d2cabb;
  --text-3: #a09887;
  --gold: #e6c07a;
  --gold-2: #f8e2ae;
  --gold-3: #b98b43;
  --ink: #16110a;
  --grad-gold: linear-gradient(100deg, #a67a36 0%, #ecc983 20%, #fff3cf 36%, #e7bb69 52%, #a87a35 74%, #ecc983 100%);
  --serif: "NSC", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --latin: "Instrument", "Iowan Old Style", "Times New Roman", serif;
  --mono: "JBM", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.19, 0.8, 0.22, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --pad: clamp(20px, 5vw, 76px);
  --maxw: 1360px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
html.reduce { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 900; line-height: 1.12; letter-spacing: 0.005em; text-wrap: balance; }
p { text-wrap: pretty; }
.serif { font-family: var(--serif); }
.latin { font-family: var(--latin); font-weight: 400; }
.mono { font-family: var(--mono); }
::selection { background: rgba(230, 192, 122, 0.85); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; transition: top 0.3s; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--maxw), 100% - var(--pad) * 2); margin-inline: auto; }

/* ---------- 画布与层 ---------- */
#gl { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.gl-on #gl { opacity: 1; }
.gl-off body { background: radial-gradient(120% 80% at 70% 0%, #2a2012 0%, var(--bg) 55%) fixed; }
main, .nav, .foot { position: relative; z-index: 2; }

/* ---------- 文字工具 ---------- */
.gold-text {
  background: var(--grad-gold);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 9s linear infinite;
}
@keyframes shine { to { background-position: -220% 0; } }
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.label--plain::before { display: none; }
.eyebrow { font: 500 13px/1.6 var(--mono); letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 238, 206, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-gold);
  background-size: 200% 100%;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover { color: var(--ink); border-color: transparent; }
.btn:hover::before { transform: none; }
.btn--gold { color: var(--ink); border-color: transparent; background: var(--grad-gold); background-size: 200% 100%; font-weight: 600; }
.btn--gold::before { background: #fff6dc; }
.btn .arr { display: inline-block; transition: transform 0.5s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:hover .arr--down { transform: translateY(4px); }
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  opacity: 0.5;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}
.link:hover::after { transform: scaleX(1); opacity: 1; }
.link--gold { color: var(--gold); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: transform 0.6s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 9, 8, 0.62); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(var(--maxw), 100% - var(--pad) * 2); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.06em; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font: 400 21px/1 var(--latin);
  color: var(--gold);
  transition: background 0.4s, color 0.4s;
}
.brand:hover .brand__mark { background: var(--gold); color: var(--ink); }
.brand__txt { font-size: 14px; color: var(--text-2); }
.brand__txt b { color: var(--text); font-weight: 600; margin-right: 8px; }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.nav__links a:not(.btn) { position: relative; color: var(--text-2); transition: color 0.3s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.5s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__links .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__toggle span:nth-child(1) { top: 19px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.menu-open .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 100px var(--pad) 48px;
  background: rgba(10, 9, 8, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-io), visibility 0s 0.7s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease-io); }
.menu a { font: 900 clamp(40px, 12vw, 64px)/1.25 var(--serif); color: var(--text); }
.menu a span { font: 400 14px var(--mono); color: var(--gold); margin-right: 16px; vertical-align: middle; }
.menu__foot { margin-top: 32px; font-size: 14px; color: var(--text-3); line-height: 2; }

/* ---------- 加载 ---------- */
.loader { display: none; }
.is-loading .loader, .is-loaded .loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: clip-path 1.1s var(--ease-io), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.is-loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__in { display: grid; justify-items: center; gap: 22px; }
.loader__name { font: 900 clamp(40px, 7vw, 72px)/1 var(--serif); letter-spacing: 0.3em; margin-right: -0.3em; }
.loader__meta { display: flex; align-items: center; gap: 18px; font: 500 12px var(--mono); letter-spacing: 0.2em; color: var(--text-3); }
.loader__bar { position: relative; width: min(260px, 60vw); height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); }
.loader__num { font: 400 13px var(--mono); color: var(--gold); min-width: 3ch; }

/* ---------- 转场幕布 ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  background: var(--bg);
  pointer-events: none;
  transform: translateY(100%);
  visibility: hidden;
}
.curtain::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--grad-gold); box-shadow: 0 0 24px rgba(230, 192, 122, 0.8); }
.curtain__mark { font: 400 64px/1 var(--latin); color: var(--gold); opacity: 0; transition: opacity 0.4s 0.2s; }
.is-leaving .curtain { visibility: visible; transform: none; transition: transform 0.62s var(--ease-io); }
.is-leaving .curtain__mark { opacity: 1; }
.is-arriving .curtain { visibility: visible; transform: none; transition: none; }
.is-arriving .curtain__mark { opacity: 1; transition: none; }
.is-arrived .curtain { visibility: visible; transform: translateY(-100%); transition: transform 0.9s var(--ease-io), visibility 0s 0.9s; }
.is-arrived .curtain::before { top: auto; bottom: 0; }

/* ---------- 光标 ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.cursor__ring, .cursor__dot { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor__ring > span, .cursor__dot > span { display: block; }
.cursor__ring::before {
  content: "";
  position: absolute;
  left: -19px;
  top: -19px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(248, 226, 174, 0.55);
  transition: transform 0.45s var(--ease), background 0.35s, border-color 0.35s;
}
.cursor__dot::before { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px rgba(248, 226, 174, 0.9); transition: transform 0.3s var(--ease), opacity 0.3s; }
.cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 600 12px/1 var(--sans); letter-spacing: 0.08em; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.cursor.is-hover .cursor__ring::before { transform: scale(1.7); background: rgba(230, 192, 122, 0.1); border-color: rgba(248, 226, 174, 0.9); }
.cursor.is-hover .cursor__dot::before { transform: scale(0.5); }
.cursor.is-label .cursor__ring::before { transform: scale(2.3); background: var(--gold-2); border-color: transparent; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot::before { opacity: 0; }
.cursor.is-down .cursor__ring::before { transform: scale(0.8); }
.cursor.is-out { opacity: 0; }

/* ---------- 分字动画 ---------- */
.split .cw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.14em; margin: -0.06em 0 -0.14em; }
.split .nw, .nw { white-space: nowrap; }
.split .c { display: inline-block; will-change: transform; }
.js [data-split] .split .c { transform: translateY(115%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i) * 34ms + var(--d, 0ms)); }
.js [data-split].is-in .split .c { transform: none; }
.split--scrub .cw { overflow: visible; }
.split--scrub .c { opacity: 0.16; transition: opacity 0.35s linear; }
.reduce .split--scrub .c { opacity: 1 !important; }

.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-stagger] > * { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-stagger].is-in > *:nth-child(2) { transition-delay: 90ms; }
.js [data-stagger].is-in > *:nth-child(3) { transition-delay: 180ms; }
.js [data-stagger].is-in > *:nth-child(4) { transition-delay: 270ms; }
.js [data-stagger].is-in > *:nth-child(5) { transition-delay: 360ms; }
.js [data-stagger].is-in > *:nth-child(6) { transition-delay: 450ms; }
.js [data-stagger].is-in > *:nth-child(7) { transition-delay: 540ms; }

/* ---------- 通用段落 ---------- */
.sec { position: relative; padding-block: clamp(96px, 15vh, 190px); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head h2 { font-size: clamp(38px, 5.6vw, 88px); }
.sec-head p { max-width: 36em; color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); }
.h2 { font-size: clamp(34px, 4.6vw, 72px); }
.lead { font: 700 clamp(22px, 2.1vw, 32px)/1.45 var(--serif); color: var(--text); }
.body { color: var(--text-2); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.95; }
.body strong, .body b { color: var(--text); font-weight: 600; }
.note { display: flex; gap: 12px; margin-top: 22px; padding: 14px 18px; border-left: 1px solid var(--gold-3); background: linear-gradient(90deg, rgba(230, 192, 122, 0.07), transparent); color: var(--text-3); font-size: 14px; line-height: 1.8; }
.note::before { content: "✦"; color: var(--gold); flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); background: rgba(255, 238, 206, 0.03); }
.tag--gold { border-color: rgba(230, 192, 122, 0.55); color: var(--gold-2); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + 24px) 0 34px;
}
.hero__center { display: grid; align-content: center; justify-items: center; text-align: center; gap: clamp(18px, 2.4vh, 30px); }
.hero__eyebrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.hero__name {
  font-size: clamp(96px, 19vw, 300px);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-right: -0.04em;
}
.hero__name span { display: inline-block; }
.gl-on .hero__name .gold-text { -webkit-text-fill-color: transparent; background: none; color: transparent; animation: none; }
.hero__en { font: italic 400 clamp(18px, 1.8vw, 26px)/1 var(--latin); letter-spacing: 0.42em; margin-right: -0.42em; color: var(--gold-2); opacity: 0.9; }
.hero__tag { font-size: clamp(26px, 3.3vw, 52px); font-weight: 900; }
.hero__meta { color: var(--text-2); font-size: clamp(14px, 1.2vw, 17px); letter-spacing: 0.06em; }
.hero__meta span { color: var(--gold-3); margin: 0 10px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; font: 500 12px/1.6 var(--mono); letter-spacing: 0.16em; color: var(--text-3); text-transform: uppercase; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; }
.hero__scroll i { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 46px; background: var(--gold); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__hint { color: var(--gold-2); opacity: 0.8; }
.gl-off .hero__hint { display: none; }

/* 首屏入场（加载/转场后） */
.js .hero [data-hero] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1.2s var(--ease), transform 1.3s var(--ease); }
.js.is-loaded .hero [data-hero] { opacity: 1; transform: none; }
.js.is-loaded .hero [data-hero="2"] { transition-delay: 0.9s; }
.js.is-loaded .hero [data-hero="3"] { transition-delay: 1.15s; }
.js.is-loaded .hero [data-hero="4"] { transition-delay: 1.35s; }
.js.is-loaded .hero [data-hero="5"] { transition-delay: 1.6s; }
.js.gl-on .hero [data-hero="1"] { transition-delay: 0s; }

/* ---------- 我是谁 ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.intro__text { display: grid; gap: 34px; }
.manifesto { font-size: clamp(30px, 3.6vw, 58px); font-weight: 900; line-height: 1.38; letter-spacing: 0.01em; }
.manifesto em { font-style: normal; color: var(--gold-2); }
.viz { position: relative; width: 100%; }
.viz--sq { aspect-ratio: 1 / 1; }
.viz--wide { aspect-ratio: 3 / 2; }
.viz--sticky { position: sticky; top: calc(var(--nav-h) + 6vh); }
.gl-off .viz:not(.viz--keep) { display: none; }
.viz__cap { position: absolute; left: 0; right: 0; bottom: -8px; transform: translateY(100%); font-size: 13px; line-height: 1.7; color: var(--text-3); text-align: center; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.stat { position: relative; padding: 30px 24px 6px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { display: flex; align-items: baseline; gap: 6px; font: 400 clamp(56px, 6.4vw, 104px)/1 var(--latin); color: var(--text); letter-spacing: -0.01em; }
.stat__num small { font: 500 clamp(15px, 1.3vw, 19px)/1 var(--sans); color: var(--gold-2); }
.stat__pre { font: 400 0.5em/1 var(--latin); color: var(--gold); }
.stat__txt { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.stat__src { margin-top: 4px; font: 500 11px/1.5 var(--mono); letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase; }

/* ---------- 跑马灯 ---------- */
.marquee { position: relative; overflow: hidden; padding-block: clamp(22px, 3vw, 40px); border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(10, 9, 8, 0.9), rgba(10, 9, 8, 0.4) 50%, rgba(10, 9, 8, 0.9)); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); font: 900 clamp(40px, 6.6vw, 104px)/1.1 var(--serif); white-space: nowrap; }
.marquee__item .o { color: transparent; -webkit-text-stroke: 1px rgba(230, 192, 122, 0.75); }
.marquee__item .s { font: 400 0.42em/1 var(--latin); color: var(--gold); }

/* ---------- 作品 ---------- */
.work-intro { padding-bottom: clamp(40px, 6vw, 80px); }
.proj { position: relative; padding-block: clamp(60px, 10vh, 130px); }
.proj__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.proj--flip .proj__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.proj--flip .proj__text { order: 2; }
.proj--flip .proj__vis { order: 1; }
.proj__text { display: grid; gap: 28px; }
.proj__idx { display: flex; align-items: center; gap: 18px; }
.proj__no { font: italic 400 clamp(64px, 7vw, 112px)/0.8 var(--latin); color: var(--gold); }
.proj__meta { font: 500 12px/1.7 var(--mono); letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; }
.proj__title { font-size: clamp(46px, 6vw, 100px); }
.proj__lead { font: 700 clamp(21px, 1.9vw, 28px)/1.5 var(--serif); color: var(--gold-2); }
.proj__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 18px; border-block: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.proj__facts b { font: 400 30px/1 var(--latin); color: var(--text); margin-right: 6px; }
.proj__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.proj__vis { display: grid; gap: clamp(48px, 7vw, 96px); }
/* 可视化列拉满整行高度，里面的星图 / 画框才能在读文字时一直停在视野里 */
.proj__vis, .intro__vis { align-self: stretch; }
.viz-sticky { position: sticky; top: calc(var(--nav-h) + 3vh); align-self: start; }
.proj__vis .viz--sq { width: min(100%, max(360px, calc(100vh - 290px))); margin-inline: auto; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.legend li { display: flex; gap: 10px; align-items: baseline; }
.legend b { font: 500 11px var(--mono); color: var(--gold); letter-spacing: 0.1em; }
.legend i { font-style: normal; margin-left: auto; font-family: var(--mono); color: var(--text-2); }
.legend, .reqs, .roles, .flow, .termmap__list { list-style: none; padding: 0; margin: 0; }
.viz-cap { margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.viz-cap::before { content: "✦"; color: var(--gold); }
.gl-off .viz-cap { display: none; }

/* 星团标签 */
.cl-label { position: absolute; transform: translate(-50%, 0); white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; color: var(--text-3); pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease); }
.cl-label b { color: var(--gold); margin-right: 8px; font-weight: 500; }
.cl-label i { font-style: normal; margin-left: 8px; color: var(--text-2); }
.gl-settled .cl-label { opacity: 1; }
.is-hovering .cl-label { opacity: 0.35; }

/* 悬停提示 */
.gl-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  display: grid;
  gap: 4px;
  min-width: 200px;
  max-width: 280px;
  padding: 14px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(16, 14, 12, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  pointer-events: none;
}
.gl-tip[hidden] { display: none; }
.gl-tip__no { font: 500 11px var(--mono); letter-spacing: 0.14em; color: var(--gold); }
.gl-tip__name { font: 900 22px/1.3 var(--serif); color: var(--text); }
.gl-tip__en { font: italic 400 16px/1.3 var(--latin); color: var(--gold-2); }
.gl-tip__g { font-size: 12px; color: var(--text-3); }

/* 截图卡片 */
.shot { margin: 0; }
.shot .tilt { position: relative; border-radius: 16px; transition: transform 0.7s var(--ease); transform-style: preserve-3d; will-change: transform; }
.is-tilting .tilt { transition: transform 0.12s linear; }
.shot__frame { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.shot__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #13110e; }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3329; }
.shot__bar span { margin-left: 12px; font: 400 12px var(--mono); color: var(--text-3); letter-spacing: 0.04em; }
.shot__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 240, 210, 0.16), transparent 45%); mix-blend-mode: screen; opacity: 0; transition: opacity 0.5s; }
.is-tilting .shot__glare { opacity: 1; }
.shot figcaption { margin-top: 14px; font-size: 13px; color: var(--text-3); display: flex; gap: 10px; }
.shot figcaption::before { content: ""; width: 18px; height: 1px; margin-top: 11px; background: var(--gold-3); }
.shot--slide .shot__frame { border-radius: 10px; }

/* ---------- 关于 / 工作方式 ---------- */
.about { overflow-x: clip; }
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.about__edu { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 26px; padding: 18px 0; border-block: 1px solid var(--line); }
.about__edu b { font: 700 19px/1.5 var(--serif); }
.about__edu span { font: 500 13px var(--mono); color: var(--text-3); letter-spacing: 0.08em; }
.ways { display: grid; gap: 16px; margin-top: 44px; }
.way {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 26px;
  padding: 28px 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.5s, transform 0.6s var(--ease);
}
.way::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(230, 192, 122, 0.14), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.way:hover { border-color: var(--line-2); transform: translateX(6px); }
.way:hover::before { opacity: 1; }
.way__no { grid-row: span 2; font: italic 400 44px/1 var(--latin); color: var(--gold); }
.way h3 { font-size: clamp(21px, 1.8vw, 26px); }
.way p { color: var(--text-2); font-size: 15.5px; line-height: 1.85; }

/* 挂绳名牌 */
.badge { position: relative; height: clamp(560px, 78vh, 700px); margin-top: calc(-1 * clamp(96px, 15vh, 190px)); touch-action: pan-y; }
.badge__strap { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px); mask-image: linear-gradient(to bottom, transparent 0, #000 90px); }
.strap-band { fill: none; stroke: url(#strapGrad); stroke-width: 18; stroke-linecap: butt; }
.strap-line { fill: none; stroke: none; }
.strap-text { font: 600 9.5px var(--mono); letter-spacing: 3px; fill: #2a1e0c; }
.badge__halo { position: absolute; left: 50%; top: 58%; width: 150%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); pointer-events: none; }
.badge__card {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(236px, 20vw, 290px);
  aspect-ratio: 5 / 7.6;
  transform-origin: 50% 0;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  border-radius: 20px;
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, #211b12 0%, #120f0b 55%, #1c160e 100%);
  border: 1px solid rgba(232, 200, 140, 0.45);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 60px rgba(230, 192, 122, 0.08);
  transform: translate3d(-400px, 0, 0);
}
.is-dragging .badge__card { cursor: grabbing; }
.badge__clip { position: absolute; top: -18px; left: 50%; width: 44px; height: 30px; transform: translateX(-50%); border-radius: 8px 8px 12px 12px; background: linear-gradient(180deg, #f3dcaa, #9f7536 60%, #d8b06a); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
.badge__clip::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 18px; height: 6px; transform: translateX(-50%); border-radius: 4px; background: #1a130a; }
.badge__top { width: 100%; display: flex; justify-content: space-between; align-items: center; font: 500 9.5px var(--mono); letter-spacing: 0.18em; color: var(--text-3); }
.badge__top b { font: 400 22px/1 var(--latin); color: var(--gold); letter-spacing: 0; }
.badge__photo { width: 64%; margin-top: 16px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1px solid rgba(232, 200, 140, 0.5); background: #fff; }
.badge__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; pointer-events: none; }
.badge__name { margin-top: 14px; font: 900 30px/1.1 var(--serif); letter-spacing: 0.18em; margin-right: -0.18em; }
.badge__en { margin-top: 6px; font: italic 400 15px/1 var(--latin); letter-spacing: 0.3em; color: var(--gold-2); }
.badge__role { margin-top: 12px; font-size: 11.5px; color: var(--text-2); letter-spacing: 0.04em; text-align: center; line-height: 1.6; }
.badge__foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; font: 500 9.5px var(--mono); letter-spacing: 0.12em; color: var(--text-3); }
.badge__code { width: 76px; height: 20px; background: repeating-linear-gradient(90deg, var(--gold-3) 0 1px, transparent 1px 3px, var(--gold-3) 3px 5px, transparent 5px 6px, var(--gold-3) 6px 7px, transparent 7px 10px); opacity: 0.8; }
.badge__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 236, 190, 0.22) 38%, rgba(160, 220, 255, 0.12) 46%, rgba(255, 170, 220, 0.1) 52%, transparent 66%);
  background-size: 260% 260%;
  background-position: calc(50% + var(--sx, 0) * 40%) calc(50% + var(--sy, 0) * 30%);
  mix-blend-mode: screen;
}
.badge__hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font: 500 11px var(--mono); letter-spacing: 0.18em; color: var(--text-3); white-space: nowrap; transition: opacity 0.6s; }
.was-dragged .badge__hint { opacity: 0; }
.reduce .badge__hint { display: none; }

/* ---------- 能力与工具 ---------- */
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kit__col { position: relative; padding: 30px 28px 34px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; isolation: isolate; }
.kit__col::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx, -200px) var(--my, -200px), rgba(230, 192, 122, 0.12), transparent 60%); }
.kit__col h3 { display: flex; align-items: baseline; gap: 14px; font-size: 24px; margin-bottom: 20px; }
.kit__col h3 span { font: 400 13px var(--mono); color: var(--gold); letter-spacing: 0.12em; }
.kit__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kit__col li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.kit__col li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--gold); }

/* ---------- 联系 ---------- */
.contact { position: relative; padding-top: clamp(110px, 18vh, 220px); padding-bottom: 0; overflow: hidden; }
.contact__big { font-size: clamp(44px, 7.4vw, 132px); line-height: 1.1; max-width: 12em; }
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
  font: 400 clamp(26px, 3.6vw, 58px)/1.2 var(--latin);
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 10px;
  transition: color 0.4s, border-color 0.4s;
  word-break: break-all;
}
.contact__mail:hover { color: var(--gold-2); border-color: var(--gold); }
.contact__mail .arr { font-family: var(--sans); font-size: 0.6em; transition: transform 0.5s var(--ease); }
.contact__mail:hover .arr { transform: translate(4px, -4px); }
.contact__row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.contact__info { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 12px 56px; margin-top: 48px; }
.contact__info dt { font: 500 11px var(--mono); letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; }
.contact__info dd { margin: 6px 0 0; font-size: 17px; color: var(--text); }
.contact__wave { position: relative; height: clamp(260px, 42vh, 460px); margin-top: clamp(20px, 4vw, 60px); }
.gl-off .contact__wave { height: 80px; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 34px; font-size: 13px; color: var(--text-3); background: linear-gradient(0deg, rgba(10, 9, 8, 0.92), rgba(10, 9, 8, 0.5)); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: center; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--gold); }

/* ==========================================================================
   案例页
   ========================================================================== */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 65; height: 2px; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(230, 192, 122, 0.7); }
.case-hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vh, 90px)) 0 clamp(40px, 6vw, 80px); }
.case-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.case-hero__text { display: grid; gap: 26px; }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); width: max-content; }
.back:hover { color: var(--gold); }
.case-hero h1 { font-size: clamp(44px, 6.6vw, 112px); }
.case-hero .lead { max-width: 20em; }
.facts { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-block: 1px solid var(--line); margin-top: clamp(40px, 5vw, 70px); }
.facts > div { padding: 22px 22px 22px 0; }
.facts > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts dt { font: 500 11px var(--mono); letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; }
.facts dd { margin: 8px 0 0; font: 700 clamp(17px, 1.5vw, 21px)/1.5 var(--serif); color: var(--text); }
.facts dd small { display: block; font: 400 12px/1.6 var(--sans); color: var(--text-3); margin-top: 4px; }
.case-shot { margin-top: clamp(50px, 7vw, 100px); }

.case { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 4px; font-size: 14px; }
.toc a { display: flex; gap: 12px; padding: 8px 0; color: var(--text-3); transition: color 0.3s; }
.toc a span { font: 500 11px/2.1 var(--mono); letter-spacing: 0.1em; }
.toc a::before { content: ""; width: 14px; height: 1px; margin-top: 13px; background: currentColor; transition: width 0.5s var(--ease), background 0.3s; }
.toc a.is-active { color: var(--text); }
.toc a.is-active::before { width: 30px; background: var(--gold); }
.chap { padding-block: clamp(64px, 10vh, 120px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 12px); }
.chap:first-child { border-top: 0; padding-top: 0; }
.chap__label { font: 500 12px var(--mono); letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.chap h2 { margin-top: 18px; font-size: clamp(32px, 3.9vw, 60px); max-width: 16em; }
.chap .body { margin-top: 28px; max-width: 40em; display: grid; gap: 1.1em; }
.chap h3 { font-size: clamp(22px, 2vw, 28px); }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.role { position: relative; padding: 26px 24px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.role--me { border-color: rgba(230, 192, 122, 0.5); background: linear-gradient(160deg, rgba(230, 192, 122, 0.12), rgba(230, 192, 122, 0.02)); }
.role__who { display: flex; align-items: center; gap: 12px; font: 700 20px var(--serif); }
.role__who svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.role p { margin-top: 14px; color: var(--text-2); font-size: 15px; line-height: 1.85; }

.choices { display: grid; gap: 16px; margin-top: 36px; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 28px; padding: clamp(24px, 3vw, 38px); border-radius: 24px; border: 1px solid var(--line); background: var(--panel); }
.choice__k { grid-row: span 3; font: italic 400 clamp(64px, 6vw, 96px)/0.85 var(--latin); color: var(--gold); }
.choice h3 { font-size: clamp(22px, 2.1vw, 30px); }
.choice p { color: var(--text-2); font-size: 15.5px; line-height: 1.9; }
.shift { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.shift__a, .shift__b { padding: 10px 16px; border-radius: 12px; font-size: 14px; }
.shift__a { border: 1px dashed rgba(210, 202, 187, 0.35); color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(210, 202, 187, 0.35); }
.shift__b { border: 1px solid rgba(230, 192, 122, 0.6); color: var(--gold-2); background: rgba(230, 192, 122, 0.08); }
.shift__arrow { position: relative; width: 56px; height: 1px; background: var(--line-2); overflow: visible; }
.shift__arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); }
.shift__arrow i { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold); animation: travel 2.4s var(--ease-io) infinite; }
@keyframes travel { from { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateX(52px); opacity: 0; } }

.verify { margin-top: 36px; padding: clamp(26px, 3vw, 40px); border-radius: 24px; border: 1px solid rgba(230, 192, 122, 0.4); background: radial-gradient(120% 140% at 0% 0%, rgba(230, 192, 122, 0.12), transparent 60%), var(--panel); }
.verify h3 { font-size: clamp(22px, 2vw, 28px); }
.verify p { margin-top: 14px; color: var(--text-2); line-height: 1.9; }

/* 术语地图 */
.termmap { margin-top: 40px; display: grid; gap: 14px; }
.tgroup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.tgroup__h { display: grid; gap: 6px; align-content: start; }
.tgroup__h span { font: 500 11px var(--mono); letter-spacing: 0.16em; color: var(--gold); }
.tgroup__h b { font: 700 17px/1.5 var(--serif); }
.tgroup__h i { font-style: normal; font-size: 12px; color: var(--text-3); }
.termmap__list { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.term {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 238, 206, 0.03);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.term small { font: 400 11px var(--mono); color: var(--text-3); }
.term:hover { border-color: rgba(230, 192, 122, 0.7); background: rgba(230, 192, 122, 0.1); transform: translateY(-2px); }

/* 图集 */
.strip-wrap { position: relative; margin-top: 40px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 420px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--gold-3) transparent; cursor: grab; }
.strip.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-thumb { background: var(--gold-3); border-radius: 4px; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip button { display: block; width: 100%; text-align: left; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #f3efe4; transition: transform 0.6s var(--ease), border-color 0.4s; pointer-events: none; }
.strip button:hover img { transform: translateY(-4px); border-color: rgba(230, 192, 122, 0.6); }
.strip figcaption { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--text-2); }
.strip figcaption span { font: 500 11px var(--mono); color: var(--gold); }
.strip__nav { display: flex; gap: 10px; margin-top: 10px; }
.strip__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.strip__nav button:hover { background: var(--gold); color: var(--ink); }

/* 灯箱 */
.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: #0f0d0b; color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 4, 3, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__img { width: 100%; max-height: 70vh; object-fit: contain; background: #f3efe4; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px; }
.lightbox__no { font: 500 12px var(--mono); color: var(--gold); letter-spacing: 0.14em; }
.lightbox__name { font: 900 24px/1.2 var(--serif); }
.lightbox__en { font: italic 400 17px var(--latin); color: var(--gold-2); }
.lightbox__g { font-size: 13px; color: var(--text-3); }
.lightbox__btns { margin-left: auto; display: flex; gap: 8px; }
.lightbox__btns button { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); transition: background 0.3s, color 0.3s; }
.lightbox__btns button:hover { background: var(--gold); color: var(--ink); }
.box-open { overflow: hidden; }

/* PPT：流程与时间线 */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; position: relative; }
.flow::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 1px; background: var(--line-2); }
.flow::after { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 1px; background: var(--grad-gold); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease-io) 0.2s; box-shadow: 0 0 10px rgba(230, 192, 122, 0.7); }
.flow.is-in::after { transform: scaleX(1); }
.flow li { position: relative; padding-top: 42px; padding-right: 16px; }
.flow li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); transition: background 0.4s; }
.flow.is-in li::before { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.flow.is-in li:nth-child(2)::before { transition-delay: 0.6s; }
.flow.is-in li:nth-child(3)::before { transition-delay: 1.1s; }
.flow.is-in li:nth-child(4)::before { transition-delay: 1.6s; }
.flow b { display: block; font: 700 19px/1.4 var(--serif); }
.flow span { font: 500 11px var(--mono); color: var(--text-3); letter-spacing: 0.14em; }

.timeline { position: relative; display: grid; gap: 0; margin-top: 40px; padding-left: 44px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; padding-bottom: 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -40px; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); }
.timeline li.is-in::before { background: var(--gold); box-shadow: 0 0 16px var(--gold); transition: background 0.5s 0.3s, box-shadow 0.5s 0.3s; }
.timeline__no { font: italic 400 30px/1 var(--latin); color: var(--gold); }
.timeline h3 { margin-top: 10px; font-size: clamp(21px, 1.9vw, 27px); }
.timeline p { margin-top: 12px; color: var(--text-2); line-height: 1.9; max-width: 38em; }

.quote { margin-top: 26px; font: 900 clamp(32px, 4.4vw, 72px)/1.2 var(--serif); }
.reqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.req { position: relative; padding: 28px 24px 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; isolation: isolate; }
.req::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx, -200px) var(--my, -200px), rgba(230, 192, 122, 0.14), transparent 60%); }
.req__no { font: italic 400 40px/1 var(--latin); color: var(--gold); }
.req b { display: block; margin-top: 14px; font: 700 19px/1.5 var(--serif); }
.req p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.85; }

.next { display: block; padding-block: clamp(80px, 12vh, 150px); border-top: 1px solid var(--line); }
.next__label { font: 500 12px var(--mono); letter-spacing: 0.2em; color: var(--text-3); text-transform: uppercase; }
.next__title { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; font: 900 clamp(34px, 8vw, 140px)/1.05 var(--serif); }
.next__title span:first-child { white-space: nowrap; }
.next__title .arr { font: 400 0.7em/1 var(--sans); color: var(--gold); transition: transform 0.7s var(--ease); }
.next:hover .next__title .arr { transform: translateX(16px); }
.next:hover .next__title span:first-child { color: var(--gold-2); }
.next__title span:first-child { transition: color 0.5s; }
.live-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--pad) 40px; }
.nf__num { font-size: clamp(120px, 28vw, 360px); line-height: 1; }
.gl-on .nf__num { color: transparent; }
.nf p { margin-top: 18px; color: var(--text-2); }
.nf .btn { margin-top: 30px; }

/* ==========================================================================
   响应式
   ========================================================================== */
/* ---------- 补充：粒子替身、分字渐变、兜底 ---------- */
.gl-on .gl-ghost { background: none !important; color: transparent !important; -webkit-text-fill-color: transparent !important; animation: none !important; text-shadow: none; }
.split .gold-text { background: none; animation: none; -webkit-text-fill-color: currentColor; color: inherit; }
.split .gold-text .c {
  background: var(--grad-gold);
  background-size: 900% 100%;
  background-position: calc(var(--i) * -9%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.js:not(.site-ready) .hero [data-hero],
.js:not(.site-ready) [data-reveal],
.js:not(.site-ready) [data-stagger] > * { animation: showLate 0.01s 3.2s forwards; }
@keyframes showLate { to { opacity: 1; transform: none; clip-path: none; } }
.viz-sticky { position: sticky; top: calc(var(--nav-h) + 5vh); }
.work-intro { padding-top: 0; }
.work-head { margin-top: clamp(80px, 12vh, 150px); margin-bottom: 0; }
.facts--3 { --cols: 3; }
.facts--4 { --cols: 4; }
.reqs__h { margin-top: 44px; font-size: clamp(21px, 1.9vw, 26px); }
.case-body { padding-top: clamp(60px, 9vh, 110px); }
.chap .note { max-width: 40em; }
.proj__text .shot { margin-top: 8px; }
.about__h { margin-top: 22px; }
.kit-sec .sec-head { margin-bottom: clamp(36px, 5vw, 60px); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .kit { grid-template-columns: minmax(0, 1fr); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .brand__txt span { display: none; }
  .hero { padding-bottom: 24px; }
  .hero__name { font-size: clamp(88px, 27vw, 160px); }
  .hero__foot { font-size: 10.5px; }
  .hero__hint { display: none; }
  .intro__grid, .proj__grid, .proj--flip .proj__grid, .about__grid, .case-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .proj--flip .proj__text, .proj__text { order: 2; }
  .proj--flip .proj__vis, .proj__vis { order: 1; }
  .intro__vis { order: -1; width: 78%; margin: 0 auto -8%; }
  .viz--sticky, .viz-sticky { position: relative; top: 0; }
  .proj__vis .viz--sq { width: 100%; }
  .legend { grid-template-columns: 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .badge { height: 500px; margin-top: 0; order: -1; }
  .badge__card { width: 220px; }
  .roles, .reqs { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .flow::before, .flow::after { display: none; }
  .tgroup { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact__info { grid-template-columns: minmax(0, 1fr); }
  .case-hero .viz { width: 88%; margin: 0 auto; order: -1; }
  .choice { grid-template-columns: minmax(0, 1fr); }
  .choice__k { grid-row: auto; }
  .lightbox__btns { margin-left: 0; }
}
@media (max-width: 480px) {
  .hero__cta .btn { min-height: 50px; padding: 0 22px; }
  .stat__num { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-stagger] > *, .js [data-split] .split .c { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ==========================================================================
   手机竖屏：阅读顺序、留白、字号、触控
   ========================================================================== */
@media (max-width: 820px) {
  /* 留白：桌面版按屏高算的大间距，到手机上会变成半屏黑块 */
  .sec { padding-block: 72px; }
  .sec-head { margin-bottom: 36px; }
  .work-head { margin-top: 56px; }
  .work-intro { padding-bottom: 12px; }
  .proj { padding-block: 44px; }
  .stats { margin-top: 48px; }
  .contact { padding-top: 72px; }
  .contact__wave { margin-top: 8px; }
  .case-hero { padding-bottom: 32px; }
  .case-body { padding-top: 24px; padding-bottom: 0; }
  .chap { padding-block: 56px; }
  .next { padding-block: 56px 64px; }

  /* 作品区：先看到是哪个项目，再看星图 / 画框，最后是说明和截图 */
  .proj__grid { row-gap: 26px; }
  .proj__text { display: contents; }
  .proj__text > * { order: 2; }
  .proj__text > .proj__idx, .proj__text > .proj__title, .proj__text > .proj__lead { order: 0; }
  .proj__vis, .proj--flip .proj__vis { order: 1; }
  .viz--sticky, .viz-sticky { position: relative; top: 0; }

  /* 工作方式：先标题，再名牌，再学校和三张卡片 */
  .about__grid { row-gap: 0; }
  .about__text { display: contents; }
  .about__text > * { order: 2; }
  .about__text > .label, .about__text > .about__h { order: 0; }
  .badge { order: 1; height: 470px; margin-top: 8px; }

  /* PPT 案例的四步流程：两列散点改成竖向时间线 */
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 40px; }
  .flow::before, .flow::after { display: block; left: 11px; right: auto; top: 12px; bottom: 36px; width: 1px; height: auto; }
  .flow::after { transform: scaleY(0); transform-origin: top; }
  .flow.is-in::after { transform: scaleY(1); }
  .flow li { padding: 0 0 24px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before { left: -36px; top: 4px; }

  /* 说明性小字不低于 12px */
  .stat__src, .facts dt, .contact__info dt, .flow span, .hero__foot { font-size: 12px; }

  /* 手指点得到：看起来不变，可点区域撑到 40px 以上 */
  .back, .foot a, .proj__cta .link, .shot figcaption .link { padding-block: 10px; margin-block: -10px; }
  .foot a { display: inline-block; }
  .proj__cta .link::after, .shot figcaption .link::after { bottom: 6px; }

  /* 联系按钮：主按钮一整行，另外两个并排 */
  .contact__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .contact__row .btn { justify-content: center; padding: 0 12px; }
  .contact__row .btn--gold { grid-column: 1 / -1; }

  .foot { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  .lightbox__img { touch-action: pan-y; }
}
@media (max-width: 600px) {
  /* 星图上已有 7 个分类标签，完整分类表在案例页 */
  .legend { display: none; }
}
@media (max-width: 480px) {
  /* 「真实的产品任务。」保持一行：字号按屏宽算，窄屏也放得下 */
  .contact__big { font-size: min(46px, calc((100vw - var(--pad) * 2) / 8.4)); }
  .contact__big .gold-text { white-space: nowrap; }
}
@media (max-width: 380px) {
  /* 360px 宽的安卓机：章节标题稍小一号，免得折成三行 */
  .chap h2 { font-size: 30px; }
}

/* 触屏没有真正的「悬停」：iOS 点一下会一直停在悬停样式上，改成按下时才有反馈 */
@media (hover: none) {
  a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
  .btn:hover { color: var(--text); border-color: var(--line-2); }
  .btn--gold:hover { color: var(--ink); border-color: transparent; }
  .btn:hover::before { transform: translateY(101%); }
  .btn:hover .arr, .btn:hover .arr--down { transform: none; }
  .btn:active { color: var(--ink); border-color: transparent; transform: scale(0.97); transition-duration: 0.15s; }
  .btn:active::before { transform: none; transition-duration: 0.2s; }
  .link:hover::after { transform: scaleX(0.3); opacity: 0.5; }
  .brand:hover .brand__mark { background: none; color: var(--gold); }
  .way:hover { border-color: var(--line); transform: none; }
  .way:hover::before { opacity: 0; }
  .contact__mail:hover { color: var(--text); border-color: var(--line-2); }
  .contact__mail:hover .arr { transform: none; }
  .foot a:hover, .back:hover { color: var(--text-2); }
  .term:hover { border-color: var(--line); background: rgba(255, 238, 206, 0.03); transform: none; }
  .term:active { border-color: rgba(230, 192, 122, 0.7); background: rgba(230, 192, 122, 0.1); }
  .strip button:hover img { transform: none; border-color: var(--line); }
  .strip__nav button:hover, .lightbox__btns button:hover { background: none; color: inherit; }
  .strip__nav button:active, .lightbox__btns button:active { background: var(--gold); color: var(--ink); }
  .next:hover .next__title .arr { transform: none; }
  .next:hover .next__title span:first-child { color: inherit; }
}
