/* Self-hosted fonts: avoid render-blocking Google Fonts/jsDelivr requests on slow networks. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/anton-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/space-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-mono-latin-700.woff2") format("woff2");
}

/* ==========================================================================
   ZHIBIN 首页样式架构（保持规则顺序，后段覆盖前段是当前视觉的一部分）
   01 Foundation: 变量、重置、可访问性、固定控件
   02 Shell: 导航、页面容器、通用作品/页脚基础
   03 Legacy compatibility: 原 Flovah / 履历区域兼容规则
   04 Active homepage: 首屏影片、精选作品、服务、客户区
   05 Overlay: 详情预览弹窗
   06 Responsive: 1180px / 820px / 720px 分层覆盖
   07 Final visual overrides: 文件末尾的已批准视觉修正，必须保持最后执行
   维护规则：先确认最终计算样式，再合并完全相同的规则；不要为了“少行数”重排。
   ========================================================================== */

:root {
  --flame: #ff6b35;
  --ink: #1d1d1f;
  --paper: #fff;
  --white: #fff;
  --dark: #1a1a1a;
  --muted: rgba(0, 0, 0, .55);
  --display: "Space Grotesk", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --sans: Inter, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --mono: "Space Mono", "Pretendard Variable", Pretendard, ui-monospace, "SF Mono", Menlo, monospace;
  --content-max: 1440px;
  --gutter: clamp(24px, 4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --color-bg: var(--paper);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-text-subtle: rgba(29, 29, 31, .45);
  --color-rule: rgba(29, 29, 31, .14);
  --color-surface: #faf7f2;
  --color-accent: var(--flame);
  --color-accent-hover: var(--flame);
  --fs-caption: 11px;
  --ls-caption: .12em;
}

[data-theme="dark"] {
  --paper: #1a1a1a;
  --ink: #f0f0f0;
  --muted: rgba(255, 255, 255, .4);
  --color-text-subtle: rgba(255, 255, 255, .45);
  --color-rule: rgba(255, 255, 255, .14);
  --color-surface: #232323;
  --color-accent-hover: #e55a2b;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body { min-width: 980px; overflow-x: hidden; background: var(--color-bg); color: var(--color-text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background-color .24s var(--ease), color .24s var(--ease); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
p { line-height: 1.55; }
[data-lang="en"] .lang-zh, [data-lang="zh"] .lang-en { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 18px; background: var(--color-text); color: var(--color-bg); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: top .16s var(--ease); }
.skip-link:focus { top: 16px; outline: 2px solid var(--color-accent); outline-offset: 2px; }


/* 固定回到顶部按钮：桌面与移动端共用，滚动后才显示。 */
.back-to-top {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--color-text);
  border: 1px solid var(--color-rule);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-bg) 92%, var(--color-text) 8%);
  box-shadow: 0 4px 16px rgb(0 0 0 / .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s var(--ease), visibility .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--color-bg);
  border-color: var(--color-text);
  background: var(--color-text);
  outline: none;
}
.back-to-top:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 55%, transparent), 0 4px 16px rgb(0 0 0 / .12);
}
.back-to-top svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 820px) {
  .back-to-top {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }
  .back-to-top svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}

/* ===== 02 / Site shell: navigation and page container ================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: 65px; background: var(--color-bg); border-bottom: 1px solid var(--color-rule); transform: translateZ(0); }
.nav-inner { display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 40px; height: 64px; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.nav-logo { display: flex; align-items: center; }
.nav-logo-svg { width: auto; height: 25px; color: var(--color-text); }
.tab-group { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: center; gap: 2px; }
.folder-tab { display: inline-flex; height: 44px; align-items: center; padding: 0 20px; color: var(--color-text-subtle); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: color .16s var(--ease); user-select: none; }
.folder-tab:hover, .folder-tab.is-active { color: var(--color-text); }
.folder-tab.is-active { font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-controls { display: inline-flex; align-items: center; gap: 12px; }
.nav-divider { width: 1px; height: 12px; background: var(--color-rule); }
.lang-toggle { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lang-opt { padding: 4px 2px; color: var(--color-text-subtle); transition: color .16s var(--ease); }
.lang-opt:hover, [data-lang="en"] .lang-opt[data-lang-opt="en"], [data-lang="zh"] .lang-opt[data-lang-opt="zh"] { color: var(--color-text); }
[data-lang="en"] .lang-opt[data-lang-opt="en"], [data-lang="zh"] .lang-opt[data-lang-opt="zh"] { font-weight: 700; }
.lang-sep { color: var(--color-text-subtle); }
.theme-toggle { position: relative; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; color: var(--color-text-subtle); transition: color .16s var(--ease); }
.theme-toggle:hover { color: var(--color-text); }
.theme-icon { position: absolute; transition: opacity .16s var(--ease), transform .16s var(--ease); }
[data-theme="light"] .theme-icon--sun, [data-theme="dark"] .theme-icon--moon { opacity: 1; transform: scale(1); }
[data-theme="light"] .theme-icon--moon, [data-theme="dark"] .theme-icon--sun { opacity: 0; transform: scale(.7); }

.home { max-width: var(--content-max); margin: 0 auto; padding: 64px var(--gutter) 0; }
.hero { position: relative; padding: clamp(24px, 4vh, 48px) 0 clamp(72px, 12vh, 140px); text-align: center; }
.hero-label { display: flex; align-items: baseline; justify-content: center; gap: clamp(24px, 6vw, 80px); color: var(--color-accent); font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; }
.hero-label-right { margin-left: auto; color: var(--color-text-subtle); }
.hero-logo-row { display: grid; grid-template-columns: 1fr max-content 1fr; align-items: flex-end; margin-top: clamp(56px, 8vh, 96px); }
.hero-mark { grid-column: 2; }
.hero-logo-svg { width: clamp(352px, 71.5vw, 990px); height: auto; color: var(--color-text); cursor: default; transition: color .5s var(--ease); }
.zh-wordmark-text { fill: currentColor; stroke: var(--color-bg); stroke-width: 9px; stroke-linejoin: round; paint-order: fill stroke; font-family: Anton, Impact, "Arial Narrow", sans-serif; font-size: 270px; font-weight: 400; letter-spacing: 0; transform: scaleY(1.55); transform-origin: 500px 169px; }
.hero-logo-svg .zh-letter { transform-box: fill-box; transform-origin: center; animation: logo-letter-up .5s ease both; }
.hero-logo-svg .zh-letter:nth-child(1) { animation-delay: .46s; }
.hero-logo-svg .zh-letter:nth-child(2) { animation-delay: .14s; }
.hero-logo-svg .zh-letter:nth-child(3) { animation-delay: .22s; }
.hero-logo-svg .zh-letter:nth-child(4) { animation-delay: .38s; }
.hero-logo-svg .zh-letter:nth-child(5) { animation-delay: .06s; }
.hero-logo-svg .zh-letter:nth-child(6) { animation-delay: .30s; }
.hero-mark:hover .hero-logo-svg { color: #5b21e8; }
.hero-tagline { margin-top: clamp(50px, 7.5vh, 80px); font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; }
.hero-tagline .lang-zh { font-weight: 400; }
.fx-intro { opacity: 0; transform: translateY(12px); animation: intro-in .32s var(--ease) forwards; }
@keyframes intro-in { to { opacity: 1; transform: translateY(0); } }
@keyframes logo-letter-up {
  from { opacity: 0; transform: translateY(38px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-svg .zh-letter { animation: none; }
}


.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--color-rule); font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; }
.work-label { margin: 0; color: var(--color-accent); font-family: var(--mono); font-size: var(--fs-caption); font-weight: 400; line-height: 1.3; letter-spacing: var(--ls-caption); text-transform: uppercase; }
.work-count { color: var(--color-text-subtle); }

.work { padding: clamp(80px, 14vh, 160px) 0 clamp(40px, 6vh, 80px); }
.work-head { margin-bottom: 36px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; column-gap: 44px; row-gap: 64px; }
.work-item { min-width: 0; align-self: start; }
.work-link { display: block; }
.work-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin: 0; background: color-mix(in srgb, var(--color-text) 10%, var(--color-bg)); }
.work-media.has-cover { background: transparent; }
.work-media.has-video { background: #071021; }
.work-media.has-video .work-video-poster { position: absolute; inset: 0; z-index: 0; }
.work-card-video { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .28s ease, transform .45s var(--ease); pointer-events: none; }
.work-media.has-video.is-video-loaded .work-card-video { opacity: 1; }
.work-link:hover .work-card-video { transform: scale(1.025); }

.work-cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.work-link:hover .work-cover { transform: scale(1.025); }
.scrub-media { aspect-ratio: 16 / 9; background: #071021; cursor: ew-resize; }
.scrub-frame { width: 100%; height: 100%; background-size: 500% 500%; background-position: 0 0; will-change: background-position, transform; transition: transform .45s var(--ease); }
.scrub-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 1; transition: opacity .12s linear, transform .45s var(--ease); }
.scrub-link:hover .scrub-frame, .scrub-link:hover .scrub-cover { transform: scale(1.025); }
.scrub-media.is-scrubbing .scrub-cover { opacity: 0; }
.scrub-progress { position: absolute; top: 0; left: 0; width: 0; height: 2px; background: #fff; pointer-events: none; transition: width .05s linear, opacity .18s var(--ease); opacity: 0; }
.scrub-hint { position: absolute; right: 10px; bottom: 10px; padding: 5px 7px; color: #fff; background: rgb(0 0 0 / .38); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .18s var(--ease); }
.scrub-link:hover .scrub-progress, .scrub-link:focus-visible .scrub-progress, .scrub-link:hover .scrub-hint, .scrub-link:focus-visible .scrub-hint { opacity: 1; }
.scrub-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
.work-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 16px; }
.work-kicker { margin-bottom: 9px; color: var(--color-text-subtle); font-family: var(--mono); font-size: 10px; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; }
.work-title { min-height: 50px; margin: 0; font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: 0; transition: color .16s var(--ease); }
.work-link:hover .work-title { color: var(--color-accent); }
.work-cta { margin-top: 96px; text-align: center; color: var(--color-text); font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; }


/* ===== 02 / Site shell: footer =========================================== */
.foot { margin-top: clamp(80px, 14vh, 140px); padding-bottom: 40px; }
.foot-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.foot-grid { display: grid; grid-template-columns: 1.5fr .85fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: start; padding-top: clamp(44px, 7vh, 72px); border-top: 1px solid var(--color-rule); }
.foot-brand { color: var(--color-text); font-family: var(--display); font-size: clamp(40px, 7vw, 72px); font-weight: 600; line-height: .85; letter-spacing: -.045em; }
.foot-brand--art { display: flex; min-height: 112px; align-items: flex-start; }
.foot-brand-art { display: block; width: min(240px, 100%); height: auto; margin-top: -24px; object-fit: contain; object-position: left top; }
[data-theme="dark"] .foot-brand-art { filter: invert(1); mix-blend-mode: screen; }
.foot-label { display: block; margin-bottom: 14px; color: var(--color-accent); font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; }
.foot-email { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; transition: color .16s var(--ease); }
.foot-email:hover, .foot-ic:hover { color: var(--color-accent); }
.foot-social { display: flex; align-items: center; gap: 18px; }
.foot-ic { display: inline-flex; transition: color .16s var(--ease); }
.foot-ic svg { width: 20px; height: 20px; }
.foot-bottom { margin-top: clamp(32px, 5vh, 56px); padding-top: 18px; color: var(--color-text-subtle); border-top: 1px solid var(--color-rule); font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; }
.site-record { display: inline-block; margin-left: 18px; text-transform: none; }
.site-record a { color: inherit; text-decoration: none; }
.site-record a:hover, .site-record a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.fx-link { position: relative; display: inline-block; padding-bottom: 2px; }
.fx-link::after { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .16s var(--ease); }
.fx-link:hover::after { transform: scaleX(1); }
.fx-reveal { opacity: 0; transform: translateY(8px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fx-reveal.is-visible { opacity: 1; transform: translateY(0); }
.fx-reveal-x { opacity: 0; transform: translateX(-48px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fx-reveal-x.is-visible { opacity: 1; transform: translateX(0); }
.fx-stagger > * { opacity: 0; transform: translateY(8px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fx-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.fx-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.fx-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.fx-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.fx-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.fx-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== 03 / Legacy compatibility layer ================================= */
/* 原版 Work 页的作品分类栏：保持中性留白，只让激活分类使用橙色。 */
.work-count b { font: inherit; color: inherit; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 18px; color: color-mix(in srgb, var(--color-text) 72%, transparent); background: transparent; border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent); border-radius: 999px; font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); line-height: 1; text-transform: uppercase; transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.filter-pill::after { content: "+"; font-style: normal; }
.filter-pill:hover { color: var(--color-text); border-color: color-mix(in srgb, var(--color-text) 35%, transparent); }
.filter-pill:active { transform: translateY(1px); }
.filter-pill.is-active { color: var(--color-bg); background: var(--color-accent); border-color: var(--color-accent); font-style: italic; }
.filter-pill.is-active::after { content: "×"; font-style: normal; }
.work-item[hidden] { display: none !important; }
/* 首屏能力人物：沿用参考插画，但表达 ZHIBIN 的个人能力，不再伪装成团队成员。 */
.hero-abilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 52px); max-width: 1080px; margin: clamp(34px, 5.5vh, 68px) auto 0; }
.hero-ability { min-width: 0; text-align: center; }
.hero-ability-figure { display: grid; height: clamp(142px, 15vw, 208px); place-items: end center; }
.hero-ability-figure img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero-ability-index { display: block; margin-top: 14px; color: var(--color-accent); font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: .08em; }
.hero-ability-title { margin-top: 8px; color: var(--color-text); font-family: var(--display); font-size: clamp(16px, 1.35vw, 20px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.hero-ability-role { margin-top: 5px; color: var(--color-accent); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.hero-tagline { margin-top: clamp(42px, 6vh, 68px); }
[data-theme="dark"] .hero-ability-figure img { filter: invert(1) contrast(.92); }
@media (prefers-reduced-motion: reduce) { .hero-abilities { animation: none; opacity: 1; transform: none; } }

/* 人物动作由原站 GIF 自己播放；只保留轻微悬停反馈。 */
.hero-ability-figure img { transition: transform .2s var(--ease); }
.hero-ability:hover .hero-ability-figure img { transform: translateY(-6px) scale(1.02); }
.hero-ability:hover .hero-ability-title { color: var(--color-accent); }

/* 对齐原站成员区的文字层级：标题黑色且更有份量，职责用小号橙色字。 */
.hero-ability-title { margin-top: clamp(18px, 2.1vh, 26px); color: var(--color-text); font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.hero-ability-role { margin-top: 8px; color: var(--color-accent); font-size: clamp(10px, .78vw, 12px); font-weight: 400; letter-spacing: .14em; line-height: 1.35; }
/* 首屏人物只作为动态能力符号；不再显示人物下方的文字，避免压住插画。 */
.hero-ability-figure { height: clamp(162px, 17vw, 236px); }

/* 人物下方保留原站式的标题/职责层级；主口号已从首屏移除。 */
.hero-ability-figure { height: clamp(142px, 15vw, 208px); }

/* 原站 About 页成员区尺寸复刻：1344px 内容区 = 4 × 300px + 3 × 48px。 */
.hero-abilities { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; max-width: none; margin: 80px 0 0; }
.hero-ability { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.hero-ability-figure { display: block; width: 100%; height: 316px; }
.hero-ability-figure img { display: block; width: 100%; height: 300px; margin: 0 0 16px; object-fit: contain; object-position: center center; transition: none; }
.hero-ability-title { margin: 0 0 6px; color: var(--color-text); font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.hero-ability-role { margin: 0 0 8px; color: var(--color-accent); font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.hero-ability:hover .hero-ability-figure img { transform: none; }
.hero-ability:hover .hero-ability-title { color: var(--color-text); }

/* 2026-07-31：在原 Flovah 纯色视觉中兼容 Studio KAI / Studio Kick 模块结构。 */
.career { padding: clamp(90px, 12vh, 140px) 0 clamp(90px, 12vh, 140px); border-top: 1px solid var(--color-rule); }
.career-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 5vw, 76px); }
.career-panel { min-width: 0; }
.career-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--color-rule); }
.career-heading h2 { font-family: var(--display); font-size: clamp(38px, 3.5vw, 54px); font-weight: 500; letter-spacing: -.045em; }
.section-index { color: var(--color-accent); font-family: var(--mono); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); }
.career-list { border-bottom: 1px solid var(--color-rule); }
.career-row { position: relative; display: grid; grid-template-columns: auto 1fr 28px; grid-template-rows: auto auto; align-items: center; column-gap: 13px; width: 100%; min-height: 92px; padding: 18px 14px; border-bottom: 1px solid var(--color-rule); text-align: left; transition: background-color .18s var(--ease), padding-left .18s var(--ease); }
.career-row:last-child { border-bottom: 0; }
.career-row:hover, .career-row.is-active { padding-left: 22px; background: var(--color-surface); }
.career-date { color: var(--color-text-subtle); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.career-tag { color: var(--color-accent); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.career-row strong { grid-column: 1 / 3; margin-top: 7px; overflow: hidden; color: var(--color-text); font-family: var(--display); font-size: 16px; font-weight: 500; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.career-arrow { grid-column: 3; grid-row: 1 / 3; justify-self: end; color: var(--color-text-subtle); font-family: var(--mono); transition: color .18s var(--ease), transform .18s var(--ease); }
.career-row:hover .career-arrow, .career-row.is-active .career-arrow { color: var(--color-accent); transform: translateX(4px); }
.career-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; padding-top: 26px; }
.career-project-card { min-width: 0; }
.career-project-card figure { overflow: hidden; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg)); }
.career-project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.career-project-card:hover img { transform: scale(1.025); }
.career-project-card h3 { margin-top: 12px; font-family: var(--display); font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.career-project-card p { margin-top: 5px; color: var(--color-text-subtle); font-family: var(--mono); font-size: 9px; letter-spacing: .07em; line-height: 1.4; text-transform: uppercase; }
.module-pill { display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; min-width: 132px; min-height: 43px; margin: 38px auto 0; padding: 10px 19px; color: var(--color-text); border: 1px solid var(--color-rule); border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease); }
.module-pill i { color: var(--color-accent); font-style: normal; letter-spacing: .12em; }
.module-pill:hover { color: var(--color-bg); border-color: var(--color-text); background: var(--color-text); }
.module-pill:hover i { color: var(--color-accent); }

.work { border-top: 1px solid var(--color-rule); }
.featured-carousel { position: relative; }
.featured-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}
.featured-viewport::-webkit-scrollbar { display: none; }
.featured-track { display: flex; gap: 24px; transition: none; will-change: auto; }
.featured-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; }
.featured-card .work-media { aspect-ratio: 16 / 9; }
.featured-card-index { position: absolute; top: 12px; left: 12px; z-index: 4; display: grid; place-items: center; width: 31px; height: 31px; color: #fff; border-radius: 50%; background: rgb(0 0 0 / .46); font-family: var(--mono); font-size: 9px; }
.featured-arrow { position: absolute; top: calc(50% - 42px); z-index: 5; display: grid; place-items: center; width: 42px; height: 42px; color: var(--color-text); border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-bg); transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease); }
.featured-arrow:hover { color: var(--color-bg); border-color: var(--color-text); background: var(--color-text); }
.featured-arrow:disabled { opacity: .28; pointer-events: none; }
.featured-arrow--prev { left: -20px; }
.featured-arrow--next { right: -20px; }
.featured-dots { display: flex; justify-content: center; gap: 7px; margin-top: 25px; }
.featured-dot { width: 5px; height: 5px; padding: 0; border-radius: 50%; background: var(--color-rule); }
.featured-dot.is-active { background: var(--color-accent); }
.work-expand { margin-top: 32px; }
.work-library { padding-top: 0; }
.work-library .work-item .work-media { border-radius: 16px; }
.work-library.is-open { animation: module-open .55s var(--ease) both; }
@keyframes module-open { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.work-library-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 54px 0 25px; padding: 32px 0 22px; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
.work-library-head h3 { font-family: var(--display); font-size: clamp(31px, 3vw, 44px); font-weight: 500; letter-spacing: -.04em; }

@media (max-width: 1180px) {
  .career-columns { gap: 38px; }
  .featured-arrow--prev { left: -12px; }
  .featured-arrow--next { right: -12px; }
}

.career, .work, .work-library { scroll-margin-top: 88px; }
.career { padding-bottom: clamp(70px, 8vh, 100px); }
.career + .work { padding-top: clamp(82px, 9vh, 110px); }

/* ===== 04 / Active homepage composition ================================= */
/* Homepage layout v2: Collins-like breathing room with a scroll-expanding feature film. */
.hero-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  top: -42px;
}
.hero-topline-label {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}
.hero-v2 {
  min-height: 150vh;
  padding: clamp(34px, 5vh, 68px) 0 clamp(84px, 11vh, 142px);
  text-align: center;
}
.hero-v2 .hero-label { justify-content: flex-start; }
.hero-v2 .hero-label-right { margin-left: auto; }
.hero-intro {
  display: flex;
  min-height: clamp(610px, 76vh, 790px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 12vh, 150px) 0 clamp(86px, 12vh, 150px);
}
.hero-eyebrow {
  margin-bottom: 30px;
  color: var(--color-accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-slogan {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.hero-slogan--typing { min-height: 1.05em; }
.hero-slogan-text { white-space: nowrap; }
.hero-slogan-caret {
  display: inline-block;
  width: 0;
  height: .96em;
  margin-left: .13em;
  border-left: 1px solid currentColor;
  vertical-align: -.1em;
  animation: hero-caret-blink .9s steps(1, end) infinite;
}
@keyframes hero-caret-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
.hero-support {
  max-width: 590px;
  margin-top: 34px;
  color: var(--color-text-subtle);
  font-size: clamp(14px, 1.15vw, 18px);
}
.hero-video-sequence {
  --hero-progress: 0;
  position: relative;
  display: grid;
  justify-items: center;
  padding: 8vh 0 5vh;
}
.hero-video-stage {
  position: relative;
  overflow: hidden;
  width: min(78vw, 1180px);
  aspect-ratio: 16 / 9;
  border-radius: calc(24px - (var(--hero-progress) * 12px));
  background: #111;
  box-shadow: 0 24px 80px rgb(0 0 0 / calc(.04 + var(--hero-progress) * .08));
  transform: scale(calc(.72 + (var(--hero-progress) * .28)));
  transform-origin: center center;
  will-change: transform, border-radius;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-index {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 50%;
  background: rgb(0 0 0 / .46);
  font-family: var(--mono);
  font-size: 9px;
}
.hero-video-meta {
  display: flex;
  width: min(78vw, 1180px);
  justify-content: space-between;
  gap: 32px;
  margin-top: 26px;
  color: var(--color-text-subtle);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Selected work follows the feature film; no client-logo strip is rendered. */
.hero-v2 + .work {
  padding-top: clamp(92px, 12vh, 150px);
  border-top: 1px solid var(--color-rule);
}
.work-head {
  position: relative;
  display: grid;
  justify-items: center;
  margin-bottom: clamp(48px, 7vh, 82px);
  padding: 0 0 32px;
  border-bottom: 0;
  text-align: center;
}
.work-label {
  color: var(--color-text);
  font-family: var(--display);
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: none;
}
.work-count {
  position: absolute;
  top: 12px;
  right: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.featured-track { gap: 26px; }
.featured-card { flex-basis: calc((100% - 52px) / 3); }
.featured-card .work-media {
  overflow: hidden;
  border-radius: 18px;
  background: var(--color-bg);
  box-shadow: inset 0 0 0 1px var(--color-bg);
}
.featured-card .work-cover,
.featured-card .scrub-cover,
.featured-card .scrub-frame { transition: transform .45s var(--ease), opacity .2s var(--ease); }
.featured-card:hover .work-cover,
.featured-card:hover .scrub-cover { transform: scale(1.025); }
.featured-card-index { display: none; }
.featured-arrow {
  top: calc(50% - 56px);
  width: 46px;
  height: 46px;
  color: #fff;
  border-color: rgb(255 255 255 / .16);
  background: #171717;
}
.featured-arrow:hover { color: #fff; border-color: #171717; background: var(--color-accent); }
.featured-arrow--prev { left: -23px; }
.featured-arrow--next { right: -23px; }
.featured-dots { margin-top: 30px; }
.work-expand { margin-top: 36px; }
.work + .career { padding-top: clamp(96px, 12vh, 150px); }

@media (max-width: 1180px) {
  .hero-v2 { min-height: 132vh; }
  .hero-intro { min-height: 64vh; }
  .hero-video-stage,
  .hero-video-meta { width: min(82vw, 980px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-stage { transform: none; border-radius: 12px; }
  .hero-slogan-caret { animation: none; }
}

/* Selected works sizing pass: match the approved centered reference layout. */
.hero-v2 + .work {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding-top: clamp(82px, 10vh, 122px);
  padding-bottom: clamp(54px, 7vh, 84px);
}
.hero-v2 + .work .work-head {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  margin-bottom: clamp(38px, 5vh, 58px);
  padding-bottom: 0;
  border-bottom: 0;
}
.hero-v2 + .work .work-section-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--color-accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-v2 + .work .work-label {
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
  text-align: center;
  text-transform: none;
}
.hero-v2 + .work .work-count {
  top: 34px;
  right: 0;
  font-size: 10px;
}
.hero-v2 + .work .featured-track {
  gap: 20px;
}
.hero-v2 + .work .featured-card {
  flex-basis: calc((100% - 40px) / 3);
}
.hero-v2 + .work .featured-card .work-media {
  border-radius: 16px;
}
.hero-v2 + .work .featured-card .work-media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 38%;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--color-bg) 38%, transparent) 48%, var(--color-bg) 100%);
  pointer-events: none;
}
.hero-v2 + .work .featured-card .work-meta {
  margin-top: 12px;
}
.hero-v2 + .work .featured-card .work-kicker {
  margin-bottom: 7px;
  font-size: 9px;
}
.hero-v2 + .work .featured-card .work-title {
  min-height: 42px;
  font-size: 16px;
  line-height: 1.25;
}
.hero-v2 + .work .featured-arrow {
  top: calc(50% - 38px);
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.hero-v2 + .work .featured-arrow--prev { left: -19px; }
.hero-v2 + .work .featured-arrow--next { right: -19px; }
.hero-v2 + .work .featured-dots {
  gap: 6px;
  margin-top: 24px;
}
.hero-v2 + .work .work-expand {
  min-width: 142px;
  margin-top: 30px;
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: transparent;
}
.hero-v2 + .work .work-expand i { color: var(--color-accent); }
.hero-v2 + .work .work-expand:hover {
  color: var(--color-bg);
  border-color: var(--color-accent);
  background: var(--color-accent);
}
.hero-v2 + .work .work-expand:hover i { color: var(--color-bg); }

@media (max-width: 1180px) {
  .hero-v2 + .work { width: min(100%, 920px); }
}

/* Compact resume section: smaller, centered, and aligned to the project grid. */
.career {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding-top: clamp(64px, 8vh, 92px);
  padding-bottom: clamp(64px, 8vh, 92px);
}
.career-columns {
  grid-template-columns: repeat(2, minmax(0, 429px));
  justify-content: space-between;
  gap: 42px;
  align-items: stretch;
}
.career-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.career-heading {
  position: relative;
  min-height: 58px;
  justify-content: center;
  padding-bottom: 16px;
  text-align: center;
}
.career-heading .section-index {
  position: absolute;
  left: 0;
  bottom: 18px;
}
.career-heading h2 { font-size: clamp(28px, 2.5vw, 36px); }
.career-heading--empty { min-height: 58px; }
.career-list,
.career-project-grid { min-height: 340px; }
.career-row {
  min-height: 76px;
  padding: 12px 10px;
  column-gap: 9px;
  grid-template-columns: auto 1fr 20px;
}
.career-row:hover,
.career-row.is-active { padding-left: 14px; }
.career-date,
.career-tag { font-size: 7px; }
.career-row strong {
  margin-top: 5px;
  font-size: 11px;
}
.career-arrow { font-size: 11px; }
.career-project-grid {
  gap: 18px 14px;
  padding-top: 18px;
}
.career-project-card h3 {
  margin-top: 8px;
  font-size: 11px;
}
.career-project-card p {
  margin-top: 3px;
  font-size: 7px;
}
.career-panel > .module-pill {
  min-width: 104px;
  min-height: 34px;
  margin-top: 24px;
  padding: 7px 14px;
  font-size: 8px;
}

/* Services replacement for the resume section: reference-like sticky intro and scroll reveals. */
.services {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: clamp(96px, 12vh, 150px) 0 clamp(46px, 6vh, 76px);
  border-top: 1px solid var(--color-rule);
}
.services-content {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}
.services-intro.fx-reveal,
.services-intro.fx-reveal-x {
  position: sticky;
  top: 150px;
  align-self: start;
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.services-intro.fx-reveal { transform: translateY(42px); }
.services-intro.fx-reveal-x { transform: translateX(-48px); }
.services-intro.fx-reveal.is-visible,
.services-intro.fx-reveal-x.is-visible { opacity: 1; transform: none; }
.services-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}
.services-kicker i {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.services-title {
  margin-top: 28px;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.services-list { min-width: 0; }
.services-list.fx-stagger > .service-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 32px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--color-rule);
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.services-list.fx-stagger > .service-row:last-child { margin-bottom: 0; }
.services-list.fx-stagger.is-visible > .service-row { opacity: 1; transform: none; }
.service-number {
  color: color-mix(in srgb, var(--color-text) 42%, transparent);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.4;
}
.service-copy { min-width: 0; }
.service-title {
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  font-family: var(--display);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.25;
}
.service-desc {
  margin-top: 14px;
  color: color-mix(in srgb, var(--color-text) 54%, transparent);
  font-family: var(--sans);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.55;
}
@media (max-width: 1180px) {
.services { width: min(100%, 920px); }
.services-content { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 48px; }
.services-intro.fx-reveal,
.services-intro.fx-reveal-x { top: 120px; }
.services-title { font-size: clamp(30px, 3.5vw, 40px); }
}
@media (max-width: 720px) {
.services { width: min(100%, 100%); padding-inline: 0; }
.services-content { grid-template-columns: 1fr; gap: 56px; }
.services-intro.fx-reveal,
.services-intro.fx-reveal-x { position: static; }
.services-title { max-width: 15em; }
.services-list.fx-stagger > .service-row { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
}

/* Selected clients: a restrained, seamless logo ribbon inspired by the reference's client strip. */
.clients {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 0 0 clamp(30px, 4vh, 54px);
}
.clients-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  color: var(--color-text-subtle);
  border-bottom: 1px solid var(--color-rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.clients-head > :first-child { color: var(--color-accent); }
.clients-marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 6vh, 70px);
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: clients-marquee 32s linear infinite;
}
.clients-logo-group {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.clients-logo {
  display: grid;
  width: 180px;
  height: 64px;
  flex: 0 0 180px;
  place-items: center;
}
.clients-logo img {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 32px;
  filter: none;
  opacity: .35;
  transition: opacity .2s var(--ease), filter .2s var(--ease), transform .2s var(--ease);
}
.clients-logo--little-swan img { max-height: 34px; }
.clients-logo--midea img { max-height: 34px; }
.clients-logo--tencent img { max-width: 180px; max-height: 26px; }
.clients-logo--xiaomi img { max-width: 44px; max-height: 44px; }
.clients-logo--samsung img { max-width: 130px; max-height: 29px; }
.clients-logo--cctv img { max-width: 126px; max-height: 32px; }
.clients-logo--laocunchang img { max-height: 29px; }
.clients-marquee:hover .clients-track,
.clients-marquee:focus-within .clients-track { animation-play-state: paused; }
.clients-logo:hover img { opacity: .82; transform: scale(1.03); }
[data-theme="dark"] .clients-logo img { filter: invert(1); opacity: .58; }
[data-theme="dark"] .clients-logo:hover img { opacity: .88; }
@keyframes clients-marquee { to { transform: translateX(-50%); } }

@media (max-width: 1180px) {
  .clients { width: min(100%, 920px); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
}

/* Reference-like scroll reveal: content rises from below and cards enter in sequence. */
.featured-track.fx-stagger > .featured-card,
.work-grid.fx-stagger > .work-item {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.featured-track.fx-stagger.is-visible > .featured-card,
.work-grid.fx-stagger > .work-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.featured-track.fx-stagger.is-visible > .featured-card:nth-child(2) { transition-delay: 80ms; }
.featured-track.fx-stagger.is-visible > .featured-card:nth-child(3) { transition-delay: 160ms; }
.featured-track.fx-stagger.is-visible > .featured-card:nth-child(4) { transition-delay: 240ms; }
.featured-track.fx-stagger.is-visible > .featured-card:nth-child(5) { transition-delay: 320ms; }
.featured-track.fx-stagger.is-visible > .featured-card:nth-child(6) { transition-delay: 400ms; }
.work-grid.fx-stagger > .work-item.is-visible:nth-child(3n + 2) { transition-delay: 80ms; }
.work-grid.fx-stagger > .work-item.is-visible:nth-child(3n) { transition-delay: 160ms; }
.hero-v2 + .work .work-head.fx-reveal {
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero-v2 + .work .work-head.fx-reveal.is-visible { transform: translateY(0); }

/* ===== 05 / Overlay: in-page detail modal ============================== */
/* Experimental in-page project detail overlay. */
body.detail-modal-open { overflow: hidden; }
.detail-modal[hidden] { display: none; }
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 0 32px;
  isolation: isolate;
}
.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(8 8 8 / .86);
  cursor: zoom-out;
}
.detail-modal-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1360px, calc(100vw - 64px));
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: 0 24px 80px rgb(0 0 0 / .42);
  opacity: 0;
  transform: translateY(14px) scale(.99);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.detail-modal.is-open .detail-modal-shell { opacity: 1; transform: translateY(0) scale(1); }
.detail-modal-head {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 22px 14px 24px;
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-bg);
}
.detail-modal-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--color-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
}
.detail-modal-head h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}
.detail-modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: var(--color-text);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.detail-modal-frame {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #fff;
}
.service-arrow { display: none; }
/* ===== 06 / Responsive baseline: mobile layout ========================= */
@media (max-width: 820px) {
  :root {
    --gutter: 20px;
    --fs-caption: 9px;
    --ls-caption: .08em;
  }
  body {
    width: 100%;
    min-width: 0;
    font-size: 14px;
  }
  html { scroll-behavior: auto; }

  .nav {
    height: 65px;
    border-bottom-color: rgba(29, 29, 31, .22);
  }
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    height: 64px;
    padding: 0 12px;
  }
  .nav-logo-svg { width: 56px; height: auto; }
  .tab-group { justify-content: center; gap: 0; }
  .folder-tab {
    height: 64px;
    padding: 0 7.5px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .03em;
    opacity: .68;
    transition: color .16s var(--ease), opacity .16s var(--ease);
  }
  .folder-tab:hover,
  .folder-tab.is-active { opacity: 1; }
  .folder-tab.is-active {
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
  }
  .nav-controls { gap: 3px; }
  .lang-toggle { gap: 1px; font-size: 9px; letter-spacing: .02em; }
  .lang-opt { padding: 5px 1px; color: var(--color-text); opacity: .55; }
  [data-lang="en"] .lang-opt[data-lang-opt="en"],
  [data-lang="zh"] .lang-opt[data-lang-opt="zh"] { opacity: 1; }
  .lang-sep,
  .nav-divider { display: none; }
  .theme-toggle { width: 22px; height: 28px; color: var(--color-text); opacity: .62; }
  .theme-icon { width: 14px; height: 14px; }

  .home {
    width: 100%;
    max-width: none;
    padding: 64px 0 0;
  }
  .hero-v2 {
    min-height: 0;
    padding: 38px 20px 44px;
  }
  .hero-topline { top: -22px; }
  .hero-topline-label { font-size: 8px; letter-spacing: .07em; }
  .hero-intro {
    min-height: 142px;
    padding: 36px 0 32px;
  }
  .hero-slogan {
    width: 100%;
    font-size: clamp(31px, 9vw, 52px);
    line-height: 1.02;
    letter-spacing: -.05em;
    white-space: nowrap;
  }
  .hero-slogan-caret {
    height: .92em;
    margin-left: .1em;
    border-left-width: 1px;
  }
  .hero-video-sequence {
    display: block;
    padding: 0;
  }
  .hero-video-stage {
    width: min(100%, 600px);
    margin-inline: auto;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
  }
  .hero-video-index {
    top: 13px;
    left: 13px;
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: 9px;
  }
  .hero-video-meta {
    width: min(100%, 600px);
    gap: 16px;
    margin: 10px auto 0;
    font-size: 8px;
    letter-spacing: .07em;
  }

  .hero-v2 + .work {
    width: 100%;
    margin: 0;
    padding: 58px 0 64px;
    border-top: 1px solid var(--color-rule);
  }
  .hero-v2 + .work .work-head {
    margin-bottom: 31px;
    padding: 0 20px;
  }
  .hero-v2 + .work .work-section-kicker {
    margin-bottom: 14px;
    font-size: 9px;
  }
  .hero-v2 + .work .work-label {
    font-size: clamp(31px, 9vw, 38px);
    line-height: 1.05;
  }
  .hero-v2 + .work .work-count { display: none; }
  .featured-carousel {
    --featured-card-size: min(calc(100vw - 88px), 520px);
    --featured-carousel-pad: max(44px, calc((100vw - var(--featured-card-size)) / 2));
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .featured-viewport {
    padding: 0 var(--featured-carousel-pad);
    scroll-padding-inline: var(--featured-carousel-pad);
  }
  .hero-v2 + .work .featured-track {
    gap: 24px;
  }
  .hero-v2 + .work .featured-card {
    flex: 0 0 var(--featured-card-size);
  }
  .hero-v2 + .work .featured-card .work-link {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
  }
  .hero-v2 + .work .featured-card .work-media {
    border-radius: 5px;
  }
  .hero-v2 + .work .featured-card .work-media::after {
    height: 54%;
    background: linear-gradient(to bottom, transparent 0%, rgb(0 0 0 / .05) 40%, rgb(0 0 0 / .58) 100%);
  }
  .featured-card-index {
    top: 14px;
    left: 15px;
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: 9px;
  }
  .hero-v2 + .work .featured-card .work-meta {
    position: absolute;
    right: 15px;
    bottom: 13px;
    left: 15px;
    z-index: 4;
    display: block;
    margin: 0;
    color: #fff;
  }
  .hero-v2 + .work .featured-card .work-kicker { display: none; }
  .hero-v2 + .work .featured-card .work-title {
    min-height: 0;
    padding-right: 58px;
    overflow: hidden;
    color: #fff;
    font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 12px rgb(0 0 0 / .28);
  }
  .hero-v2 + .work .featured-card .work-meta::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    color: rgb(255 255 255 / .82);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .08em;
  }
  .hero-v2 + .work .featured-card:nth-child(1) .work-meta::after { content: "01 / 06"; }
  .hero-v2 + .work .featured-card:nth-child(2) .work-meta::after { content: "02 / 06"; }
  .hero-v2 + .work .featured-card:nth-child(3) .work-meta::after { content: "03 / 06"; }
  .hero-v2 + .work .featured-card:nth-child(4) .work-meta::after { content: "04 / 06"; }
  .hero-v2 + .work .featured-card:nth-child(5) .work-meta::after { content: "05 / 06"; }
  .hero-v2 + .work .featured-card:nth-child(6) .work-meta::after { content: "06 / 06"; }
  .featured-arrow,
  .hero-v2 + .work .featured-arrow {
    top: 50%;
    width: 44px;
    height: 44px;
    color: #fff;
    border-color: transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
  }
  .featured-arrow:hover,
  .hero-v2 + .work .featured-arrow:hover {
    color: #fff;
    border-color: transparent;
    background: transparent;
  }
  .hero-v2 + .work .featured-arrow--prev { left: 22px; }
  .hero-v2 + .work .featured-arrow--next { right: 22px; }
  .featured-arrow:disabled { opacity: 1; pointer-events: auto; }
  .hero-v2 + .work .featured-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: max-content;
    height: 10px;
    margin: 25px auto 0;
    background: none;
  }
  .hero-v2 + .work .featured-dot {
    position: static;
    display: block;
    width: 5px;
    height: 5px;
    min-width: 5px;
    min-height: 5px;
    flex: 0 0 5px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(29, 29, 31, .24);
    opacity: 1;
    transform: none;
  }
  .hero-v2 + .work .featured-dot.is-active {
    position: static;
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    flex-basis: 7px;
    background: var(--color-accent);
    transform: none;
  }
  .hero-v2 + .work .work-expand {
    min-width: 164px;
    min-height: 40px;
    margin-top: 24px;
    padding: 8px 16px;
    gap: 8px;
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: transparent;
    font-size: 9px;
  }
  .hero-v2 + .work .work-expand i { color: var(--color-accent); font-size: 15px; line-height: 1; }
  .hero-v2 + .work .work-expand {
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .hero-v2 + .work .work-expand > span,
  .hero-v2 + .work .work-expand > i {
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
  [data-theme="dark"] .hero-v2 + .work .featured-dot { background: rgba(255, 255, 255, .32); }
  [data-theme="dark"] .hero-v2 + .work .featured-dot.is-active { background: var(--color-accent); }

  .work-library { padding: 0 20px; }
  .work-library-head {
    margin: 48px 0 20px;
    padding: 26px 0 18px;
  }
  .work-library-head h3 { font-size: 30px; }
  .work-library-head .work-count {
    position: static;
    display: block;
    font-size: 9px;
  }
  .filter-bar {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -20px 30px;
    padding: 0 20px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-pill { flex: 0 0 auto; min-height: 36px; padding: 8px 15px; border-width: 1px; border-color: color-mix(in srgb, var(--color-text) 38%, transparent); font-size: 9px; }
  .work-grid { grid-template-columns: 1fr; row-gap: 38px; }
  .work-library .work-item .work-media { border-radius: 8px; }
  .work-library .work-meta { margin-top: 12px; }
  .work-library .work-title { min-height: 0; font-size: 17px; }

  .services {
    width: 100%;
    margin: 0;
    padding: 64px 20px 54px;
    border-top: 1px solid var(--color-rule);
  }
  .services-content { grid-template-columns: 1fr; gap: 34px; }
  .services-intro.fx-reveal,
  .services-intro.fx-reveal-x {
    position: static;
    text-align: left;
  }
  .services-kicker {
    justify-content: flex-start;
    color: var(--color-text-subtle);
    font-size: 9px;
    letter-spacing: .08em;
  }
  .services-kicker i {
    display: block;
    width: 6px;
    height: 6px;
    flex-basis: 6px;
  }
  .services-title {
    max-width: 12em;
    margin: 22px 0 0;
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1.14;
    text-align: left;
  }
  .services-list.fx-stagger > .service-row {
    position: relative;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 0;
    margin: 0;
    padding: 22px 0 24px;
    border: 0;
    border-bottom: 1px solid var(--color-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .services-list.fx-stagger > .service-row:first-child {
    border-top: 1px solid var(--color-rule);
  }
  .service-number { padding-top: 2px; font-size: 10px; line-height: 1.4; }
  .service-title { font-size: 17px; font-weight: 600; }
  .service-desc { display: block; margin-top: 9px; font-size: 11px; line-height: 1.6; }

  .clients {
    width: 100%;
    margin: 32px 0 0;
    padding: 0 20px 36px;
  }
  .clients-head { padding-bottom: 16px; font-size: 9px; }
  .clients-marquee {
    width: 100%;
    margin: 24px 0 0;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
  }
  .clients-logo-group { gap: 26px; padding-right: 26px; }
  .clients-logo { width: 92px; height: 42px; flex-basis: 92px; }
  .clients-logo img { max-width: 84px; max-height: 21px; }
  .clients-logo--little-swan img,
  .clients-logo--midea img { max-height: 20px; }
  .clients-logo--tencent img { max-width: 90px; max-height: 16px; }
  .clients-logo--xiaomi img { max-width: 27px; max-height: 27px; }
  .clients-logo--samsung img { max-width: 78px; max-height: 18px; }
  .clients-logo--cctv img { max-width: 75px; max-height: 20px; }
  .clients-logo--laocunchang img { max-width: 80px; max-height: 19px; }

  .foot {
    margin-top: 0;
    padding: 0 0 28px;
  }
  .foot-inner { padding: 0 20px; }
  .foot-grid {
    grid-template-columns: clamp(104px, 31vw, 124px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(14px, 4vw, 20px);
    row-gap: 18px;
    align-items: center;
    padding-top: 22px;
  }
  .foot-brand { font-size: clamp(54px, 18vw, 72px); }
  .foot-brand--art {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 0;
    align-self: center;
  }
  .foot-brand-art { width: 100%; margin-top: 0; }
  .foot-grid > .foot-col:nth-child(2) { grid-column: 2; grid-row: 1; align-self: end; }
  .foot-grid > .foot-col:nth-child(3) { grid-column: 2; grid-row: 2; align-self: start; }
  .foot-label { margin-bottom: 9px; font-size: 9px; }
  .foot-email { font-size: clamp(9px, 2.7vw, 11px); letter-spacing: 0; white-space: nowrap; }
  .foot-bottom { margin-top: 18px; padding-top: 12px; font-size: 8px; }

  .detail-modal { padding: 0; }
  .detail-modal-shell { width: 100vw; height: 100dvh; }
  .detail-modal-head { min-height: 62px; padding: 10px 14px 10px 18px; }
  .detail-modal-head h2 { font-size: 15px; }
}

@media (min-width: 500px) and (max-width: 820px) {
  .nav-inner {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    padding-inline: 20px;
  }
  .nav-logo-svg { width: 60px; }
  .folder-tab { padding-inline: 7.5px; font-size: 15px; letter-spacing: .05em; }
  .lang-toggle { font-size: 9px; letter-spacing: .04em; }
  .nav-controls { gap: 6px; }
  .theme-toggle { width: 24px; }
}

/* Mobile uses a tighter radius than desktop while keeping all four corners consistent. */
@media (max-width: 820px) {
  .hero-v2 + .work .featured-card .work-link,
  .hero-v2 + .work .featured-card .work-media,
  .work-library .work-item .work-media,
}

/* ===== 07 / Final approved visual overrides (keep last) =============== */
/* Keep the carousel control visually light: a white shafted arrow only. */
.featured-arrow,
.hero-v2 + .work .featured-arrow,
.featured-arrow:hover,
.hero-v2 + .work .featured-arrow:hover {
  color: #fff;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.featured-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / .38));
}
.featured-arrow:focus,
.featured-arrow:focus-visible {
  outline: 0;
}
.hero-v2 + .work .featured-arrow--prev { left: 18px; }
.hero-v2 + .work .featured-arrow--next { right: 18px; }

/* 返回详情前的作品位置恢复提示：仅短暂强调刚查看的卡片。 */
.work-item.is-return-target .work-media,
.featured-card.is-return-target .work-media {
  outline: 2px solid var(--color-accent);
  outline-offset: 5px;
  animation: work-return-highlight 1.8s var(--ease) both;
}
@keyframes work-return-highlight {
  0%, 100% { outline-color: transparent; }
  18%, 70% { outline-color: var(--color-accent); }
}
@media (prefers-reduced-motion: reduce) {
  .work-item.is-return-target .work-media,
  .featured-card.is-return-target .work-media { animation: none; outline-color: var(--color-accent); }
}

/* 移动端返回详情时保留滚动定位，但不显示橙色卡片高亮框。 */
@media (max-width: 820px) {
  .work-item.is-return-target .work-media,
  .featured-card.is-return-target .work-media { outline: none; animation: none; }
}



/* HERO WORKS ENTRY — 2026-08-24 */
.hero-slogan--works {
  width: min(480px, 72vw);
  min-height: 40px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
.hero-works-link {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--color-text-subtle);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .24s var(--ease);
}
.hero-works-link:hover {
  opacity: .3;
  transform: translateY(-2px);
}
.hero-works-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 12px;
}
@media (max-width: 820px) {
  .hero-slogan--works {
    width: min(320px, 76vw);
    min-height: 36px;
    font-size: 15px;
    letter-spacing: 0;
  }
  .hero-works-link {
    min-height: 36px;
    padding: 9px 0;
  }
}

/* MOBILE NAV VIEWPORT CENTER — 2026-08-24 */
@media (max-width: 820px) {
  .nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }
  .tab-group {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 64px;
    transform: translateX(-50%);
  }
  .nav-controls {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  }
}

/* HOMEPAGE NAV VIEWPORT CENTER — 2026-09-02 */
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
.nav-inner .tab-group {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  height: 64px;
  transform: translateX(-50%);
}
.nav-inner .nav-controls { margin-left: auto; }

