/* 若木 · 官网样式
   约定：RM Serif 只通过 .serif-300 / .serif-500 / .serif-900 三个类使用。
   tools/subset_fonts.py 依据 HTML 里这三个类按字重子集化字体 —— 新增衬线文字请放进这三个类的元素里，改完文案重跑脚本。 */

@font-face { font-family: "RM Serif"; src: url("../fonts/rm-serif-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "RM Serif"; src: url("../fonts/rm-serif-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "RM Serif"; src: url("../fonts/rm-serif-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "RM Mono"; src: url("../fonts/rm-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --xuan: #08090D;
  --dai: #121820;
  --chi: #F0502F;
  --jin: #FFC46B;
  --qing: #4CC9AE;
  --yue: #E7ECEE;
  --yan: #8C969C;
  --yue-2: rgba(231, 236, 238, .8);
  --line: rgba(140, 150, 156, .2);
  --line-soft: rgba(140, 150, 156, .11);
  --panel: #0C0F15; /* 黛与玄之间，服务画布的底 */
  --card: #0E1219;
  --serif: "RM Serif", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: "RM Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1280px;
  --edge: max(var(--gutter), (100% - var(--maxw)) / 2);
  --header-h: 64px;
  --section-pad: clamp(104px, 12vw, 176px);
}
@supports (background: color-mix(in srgb, red, blue)) {
  :root { --panel: color-mix(in srgb, var(--dai) 42%, var(--xuan)); --card: color-mix(in srgb, var(--dai) 62%, var(--xuan)); }
}
@media (max-width: 760px) { :root { --header-h: 56px; } }

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--xuan); color: var(--yue);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: var(--header-h);
}
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.8; font-weight: 400; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
p, h1, h2, h3, figure, blockquote, dl, dd, ul { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
ul { padding: 0; list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--chi); color: var(--xuan); }
:focus-visible { outline: 2px solid var(--jin); outline-offset: 3px; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 18px;
  background: var(--jin); color: var(--xuan); font-weight: 600; letter-spacing: .1em;
  transform: translateY(-180%); transition: transform .4s var(--ease);
}
.skip:focus-visible { transform: none; outline-color: var(--yue); }

.serif-300, .serif-500, .serif-900 { font-family: var(--serif); }
.serif-300 { font-weight: 300; }
.serif-500 { font-weight: 500; }
.serif-900 { font-weight: 900; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.ph { display: inline-block; } /* 中文按短语断行：短语尽量不拆开，过长时仍可在内部换行 */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px; border-radius: 2px;
  font-size: 15px; font-weight: 500; letter-spacing: .08em; white-space: nowrap;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn-primary { background: var(--chi); color: var(--xuan); }
.btn-primary:hover { background: #F4663F; }
@supports (background: color-mix(in srgb, red, blue)) { .btn-primary:hover { background: color-mix(in srgb, var(--chi) 84%, var(--jin)); } }
.btn-ghost { border: 1px solid rgba(231, 236, 238, .34); color: var(--yue); }
.btn-ghost:hover { border-color: var(--yue); }
.btn:active { transform: translateY(1px); }
.btn-tri { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ---------- 页头 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.site-header.is-scrolled { background: rgba(8, 9, 13, .96); border-bottom-color: var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(8, 9, 13, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}
.bar { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-seal { width: auto; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 17px; letter-spacing: .16em; }
.brand-latin { margin-top: 6px; font-size: 9.5px; letter-spacing: .3em; color: var(--yan); }

.site-nav ul { display: flex; gap: clamp(22px, 3vw, 44px); }
.site-nav ul a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; letter-spacing: .14em; color: var(--yue-2); transition: color .3s var(--ease);
}
.site-nav ul a:hover, .site-nav a[aria-current] { color: var(--yue); }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: .14em; bottom: 8px; height: 1px; background: var(--chi);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.site-nav ul a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current]::before {
  content: ""; position: absolute; left: 50%; top: 4px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--chi); box-shadow: 0 0 8px rgba(240, 80, 47, .8);
}
.nav-foot, .menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 2px 0 8px; font-size: 14px; letter-spacing: .16em;
  }
  .menu-ico { position: relative; width: 22px; height: 10px; }
  .menu-ico i { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
  .menu-ico i + i { top: 8.5px; }
  .menu-btn[aria-expanded="true"] .menu-ico i { top: 4.25px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ico i + i { transform: rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--xuan); opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility 0s linear .5s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { width: 100%; min-height: 68px; font-size: 24px; color: var(--yue); }
  .site-nav ul a::after { bottom: 18px; right: auto; width: 2em; }
  .site-nav a[aria-current]::before { left: auto; right: 4px; top: 50%; margin: -2px 0 0; }
  .nav-foot { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
  .nav-foot .mono { font-size: 11px; color: var(--yan); }
  .nav-foot a { min-height: 44px; display: inline-flex; align-items: center; letter-spacing: .02em; color: var(--yue); }
  html.menu-open { overflow: hidden; }
  .menu-open .site-header { background: var(--xuan); }
}

/* ---------- 首屏 ---------- */
.hero { position: relative; height: 100vh; background: var(--xuan); }
.js .hero { height: 260vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, .58) 0%, rgba(8, 9, 13, .3) 30%, rgba(8, 9, 13, 0) 50%),
    linear-gradient(0deg, var(--xuan) 0, rgba(8, 9, 13, 0) 56px);
}

.act {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 28px) var(--edge) 112px;
  visibility: hidden; pointer-events: none; transition: visibility 0s linear .6s;
}
.act.is-on { visibility: visible; transition-delay: 0s; }
.act.is-on a, .act.is-on button { pointer-events: auto; }
.act-main { position: relative; max-width: min(660px, 52%); }

.act .ch { display: inline-block; }
.act .ch, .act .a-el {
  opacity: 0; transform: translateY(12px); filter: blur(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease);
}
.act.is-past .ch, .act.is-past .a-el { transform: translateY(-12px); }
.act.is-on .ch, .act.is-on .a-el {
  opacity: 1; transform: none; filter: none;
  transition-duration: 1s; transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
@starting-style {
  .act.is-on .ch, .act.is-on .a-el { opacity: 0; transform: translateY(12px); filter: blur(6px); }
}

.hero-title { font-size: clamp(52px, 7.4vw, 128px); line-height: 1.1; letter-spacing: -.02em; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-tag { display: flex; align-items: center; gap: 14px; margin-top: clamp(22px, 2.4vw, 34px); font-size: 12px; color: var(--yan); }
.hero-tag::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--chi); }
.hero-desc { margin-top: 12px; max-width: 30em; font-size: clamp(15px, 1.12vw, 17px); color: var(--yue-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }

.edge-quote { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 9vh); writing-mode: vertical-rl; color: var(--yue-2); }
.edge-quote blockquote { font-size: 15px; line-height: 2; letter-spacing: .32em; }
.edge-quote .col { display: inline; }
.edge-quote figcaption { margin-block-start: 10px; font-size: 12px; letter-spacing: .2em; color: var(--yan); text-align: end; }

.act-2 .act-main, .act-3 .act-main { display: flex; align-items: flex-end; gap: clamp(28px, 4vw, 64px); max-width: min(760px, 56%); }
.vq { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(10px, 1.2vw, 18px); flex: none; }
.vq blockquote, .vq figcaption { writing-mode: vertical-rl; }
.vq .col { display: block; }
.vq figcaption { align-self: flex-end; font-size: 13px; letter-spacing: .24em; color: var(--yan); }
.vq-ask blockquote { font-size: clamp(40px, 5.2vw, 86px); line-height: 1.55; letter-spacing: .16em; }
.vq-answer blockquote { font-size: clamp(56px, 6.9vw, 116px); line-height: 1.2; letter-spacing: .04em; }
.act-note { max-width: 17em; padding-bottom: .3em; font-size: clamp(15px, 1.12vw, 17px); line-height: 1.95; color: var(--yue-2); }
.act-3 .act-note { max-width: 19em; }

.hero-meter { position: absolute; left: var(--edge); bottom: 30px; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--yan); transition: opacity .6s var(--ease); }
.hero.is-leaving .hero-meter { opacity: 0; }
.meter-num { font-size: 11px; }
.meter-num b { color: var(--yue); font-weight: 500; }
.meter-track { position: relative; width: 96px; height: 1px; background: rgba(140, 150, 156, .3); }
.meter-track i { position: absolute; inset: 0; background: var(--chi); transform-origin: left; transform: scaleX(var(--p, 0)); }
.meter-name { letter-spacing: .24em; }

.scroll-hint {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .26em; color: var(--yan); white-space: nowrap;
  transition: opacity .6s var(--ease);
}
.scroll-hint i { position: relative; width: 1px; height: 40px; overflow: hidden; background: rgba(140, 150, 156, .22); }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--yue); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { top: -40%; } 70%, 100% { top: 100%; } }
.hero.is-moved .scroll-hint { opacity: 0; }
html:not(.js) .scroll-hint, html:not(.js) .hero-meter { display: none; }

@media (min-aspect-ratio: 23/20) and (max-aspect-ratio: 3/2) {
  .act-main { max-width: min(660px, 46%); }
}
/* 竖屏 / 窄屏：文字在上，树在下 */
@media (max-width: 760px), (max-aspect-ratio: 23/20) {
  .js .hero { height: 220vh; }
  .act { justify-content: flex-start; padding-top: calc(var(--header-h) + 22px); padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .act-main { max-width: calc(100% - 76px); }
  .act-1 .act-main { max-width: none; }
  .act-1 .hero-title, .act-1 .hero-tag, .act-1 .hero-desc { max-width: calc(100% - 76px); }
  .hero-tag { gap: 10px; font-size: 10.5px; letter-spacing: .08em; }
  .hero-tag::before { width: 20px; }
  .act-1 .act-main { flex: 1; display: flex; flex-direction: column; }
  .hero-cta { margin-top: auto; }
  .edge-quote { top: calc(var(--header-h) + 26px); }
  .edge-quote blockquote { font-size: 13px; line-height: 1.9; letter-spacing: .24em; }
  .edge-quote .col { display: block; }
  .edge-quote figcaption { font-size: 11px; }
  .act-2 .act-main, .act-3 .act-main { max-width: none; gap: 20px; }
  .vq-ask blockquote { font-size: clamp(34px, 9.6vw, 60px); }
  .vq-answer blockquote { font-size: clamp(44px, 12vw, 76px); }
  .act-note, .act-3 .act-note { max-width: 15em; font-size: 15px; line-height: 1.85; }
  .hero-meter { display: none; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 9, 13, .6) 0%, rgba(8, 9, 13, .25) 36%, rgba(8, 9, 13, 0) 50%),
      linear-gradient(0deg, rgba(8, 9, 13, .7) 0%, rgba(8, 9, 13, 0) 26%);
  }
}
@media (max-width: 760px) {
  .hero-cta .btn { flex: 1 1 0; padding: 0 16px; }
}
@media (max-height: 560px) and (min-aspect-ratio: 23/20) {
  .hero-title { font-size: clamp(40px, 11vh, 96px); }
  .hero-desc { display: none; }
  .act { padding-bottom: 72px; }
  .scroll-hint { display: none; }
}

/* ---------- 通用分区 ---------- */
.section { position: relative; padding-block: var(--pad-t, var(--section-pad)) var(--pad-b, var(--section-pad)); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--yan); }
.eb-rule { width: 40px; height: 1px; background: var(--line); }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: clamp(20px, 2.4vw, 32px); }
.display { font-size: clamp(64px, 9vw, 150px); line-height: 1; letter-spacing: -.01em; }
.sec-sub { font-size: clamp(17px, 1.5vw, 22px); letter-spacing: .16em; color: var(--yan); }
.sec-intro { margin-top: clamp(20px, 2vw, 28px); max-width: 34em; font-size: clamp(15px, 1.12vw, 17px); color: var(--yue-2); }

/* 显现：淡入 + 上移 12px + 模糊 6px→0 */
.reveal { transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), filter 1s var(--ease) var(--d, 0ms); }
.reveal-ready .reveal:not(.is-in) { opacity: 0; transform: translateY(12px); filter: blur(6px); }
[data-split] .ch { display: inline-block; transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.reveal-ready [data-split]:not(.is-in) .ch { opacity: 0; transform: translateY(12px); filter: blur(6px); }
[data-split] .line { display: block; }

/* ---------- 关于 ---------- */
.about { --pad-t: clamp(120px, 14vw, 200px); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lead epi" "body epi";
  column-gap: clamp(40px, 7vw, 120px); margin-top: clamp(28px, 3.4vw, 48px);
}
.about-lead { grid-area: lead; max-width: 17em; font-size: clamp(30px, 3.9vw, 60px); line-height: 1.42; letter-spacing: .01em; color: rgba(231, 236, 238, .6); }
.about-lead em { color: var(--yue); }
.epigraph { grid-area: epi; align-self: start; writing-mode: vertical-rl; margin-top: .3em; color: var(--yue-2); }
.epigraph .col { display: block; }
.epigraph blockquote { font-size: 17px; line-height: 2.1; letter-spacing: .34em; }
.epigraph figcaption { margin-block-start: 12px; font-size: 12px; letter-spacing: .2em; color: var(--yan); text-align: end; }
.about-body { grid-area: body; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); max-width: 1040px; margin-top: clamp(48px, 6vw, 88px); }
.about-body p { font-size: clamp(15px, 1.12vw, 17px); color: var(--yue-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(72px, 9vw, 136px); }
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 16px; padding: 28px 20px 0 0; border-top: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: var(--chi); }
.stat dd { font-size: clamp(44px, 5.4vw, 88px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.stat-num { display: inline-flex; align-items: flex-start; }
.stat .num { font-variant-numeric: tabular-nums; }
.stat .unit { margin-left: .06em; font-size: .46em; line-height: 1.2; letter-spacing: 0; color: var(--chi); }
.stat dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; color: var(--yue-2); }
.stat dt > span:first-child { white-space: nowrap; }
.stat dt .mono { font-size: 10.5px; color: var(--yan); }

/* ---------- 服务 · 六枝 ---------- */
.svc-list { position: relative; margin-top: clamp(80px, 9vw, 136px); --gap: clamp(56px, 8vw, 128px); }
.branch { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.branch path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.branch-glow path { stroke: rgba(240, 80, 47, .13); stroke-width: 6; }
.branch-core path { stroke: rgba(242, 104, 62, .9); stroke-width: 1.4; }
.branch .lead { stroke: url(#branch-lead); }
.branch-glow .lead { stroke-opacity: .16; }
.branch-glow path, .branch-core path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.branch-twigs path { stroke: rgba(240, 120, 70, .55); stroke-width: 1; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) .9s; }
.branch-twigs circle { fill: var(--qing); opacity: 0; transition: opacity .8s var(--ease) 1.5s; }
.branch .is-drawn path, .branch path.is-drawn { stroke-dashoffset: 0; }
.branch .is-drawn circle { opacity: .85; }

.svc { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--gap); align-items: center; }
.svc + .svc { margin-top: clamp(96px, 11vw, 168px); }
.svc--flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.svc--flip .svc-fig { order: 2; }
.frame { position: relative; aspect-ratio: 16 / 10; background: var(--panel); border: 1px solid var(--line-soft); }
.frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-fig figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 11px; color: var(--yan); }
.fig-live { display: inline-flex; align-items: center; gap: 8px; }
.fig-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--qing); box-shadow: 0 0 6px rgba(76, 201, 174, .7); }
.svc-text { position: relative; justify-self: start; max-width: 30em; }
.svc--flip .svc-text { justify-self: end; }
.svc-node {
  position: absolute; top: 6px; left: calc(var(--gap) / -2 - 5.5px); width: 11px; height: 11px; border-radius: 50%;
  background: var(--chi); box-shadow: 0 0 0 4px rgba(240, 80, 47, .12), 0 0 18px rgba(240, 80, 47, .6);
  transform: scale(0); transition: transform .7s var(--ease);
}
.svc-node::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--jin); }
.svc--flip .svc-node { left: auto; right: calc(var(--gap) / -2 - 5.5px); }
.svc-node.is-lit { transform: scale(1); }
html:not(.js) .svc-node { transform: none; }
.svc-idx { font-size: 12px; color: var(--yan); }
.svc-idx b { color: var(--chi); font-weight: 500; }
.svc-name { margin-top: 14px; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.3; letter-spacing: .02em; }
.svc-desc { margin-top: 16px; font-size: clamp(15px, 1.1vw, 17px); color: var(--yue-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; line-height: 1.4; color: var(--yan); }

/* ---------- 影片 ---------- */
.film-head { max-width: 900px; }
.player { position: relative; margin-top: clamp(48px, 6vw, 88px); aspect-ratio: 16 / 9; overflow: hidden; background: #050608; border: 1px solid var(--line-soft); }
.player-ph { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.player.no-poster .player-ph.is-drawn { opacity: 1; }
.player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.player.no-poster:not(.is-started) .player-video { opacity: 0; }
.player-cover { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: clamp(16px, 2.4vw, 32px); pointer-events: none; transition: opacity .6s var(--ease); }
.pc-title { font-size: clamp(22px, 2.6vw, 40px); line-height: 1; letter-spacing: .06em; }
.pc-meta { font-size: 11px; color: var(--yan); }
.player.is-started .player-cover { opacity: 0; }
.player-big {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center;
  font-size: clamp(54px, 7vw, 96px); width: 1em; height: 1em; border-radius: 50%; background: var(--chi);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .4s var(--ease), visibility 0s;
}
.player-big::before { content: ""; position: absolute; inset: -.125em; border-radius: 50%; border: 1px solid rgba(240, 80, 47, .38); transition: inset .6s var(--ease), border-color .6s var(--ease); }
.player-big:hover, .player-big:focus-visible { transform: scale(1.04); box-shadow: 0 0 0 1px rgba(255, 196, 107, .25), 0 0 56px rgba(240, 80, 47, .55); }
.player-big:hover::before { inset: -.19em; border-color: rgba(255, 196, 107, .3); }
.big-tri { width: 0; height: 0; margin-left: .08em; border-left: .25em solid var(--xuan); border-top: .145em solid transparent; border-bottom: .145em solid transparent; }
.player.is-started .player-big { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.player.is-unavailable .player-big { display: none; }
.player-msg {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 10px 18px; background: rgba(8, 9, 13, .82);
  border: 1px solid var(--line); font-size: 14px; letter-spacing: .12em; white-space: nowrap; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.player-msg:not(:empty) { opacity: 1; }
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: clamp(6px, 1.2vw, 16px);
  padding: 36px clamp(10px, 2vw, 24px) clamp(8px, 1.2vw, 16px);
  background: linear-gradient(0deg, rgba(8, 9, 13, .88), rgba(8, 9, 13, 0));
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.player:not(.is-started) .player-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.player.is-idle .player-bar { opacity: 0; transform: translateY(8px); }
.player.is-idle { cursor: none; }
.pb-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 2px; color: var(--yue); transition: color .3s var(--ease); }
.pb-btn:hover { color: var(--jin); }
.pb-btn svg { width: 22px; height: 22px; fill: currentColor; }
.pb-play .i-pause, .player.is-playing .pb-play .i-play { display: none; }
.player.is-playing .pb-play .i-pause { display: inline; }
.pb-mute .i-x, .player.is-muted .pb-mute .i-wave { display: none; }
.player.is-muted .pb-mute .i-x { display: inline; }
.pb-track { position: relative; flex: 1; min-width: 60px; height: 36px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.pb-rail { position: relative; width: 100%; height: 2px; overflow: hidden; background: rgba(231, 236, 238, .18); transition: height .3s var(--ease); }
.pb-track:hover .pb-rail, .pb-track:focus-visible .pb-rail, .pb-track.is-drag .pb-rail { height: 4px; }
.pb-buf, .pb-fill { position: absolute; inset: 0; transform-origin: left; }
.pb-buf { background: rgba(231, 236, 238, .2); transform: scaleX(var(--buf, 0)); }
.pb-fill { background: var(--jin); transform: scaleX(var(--p, 0)); }
.pb-knob { position: absolute; left: calc(var(--p, 0) * 100%); top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--jin); box-shadow: 0 0 10px rgba(255, 196, 107, .7); transform: scale(0); transition: transform .3s var(--ease); }
.pb-track:hover .pb-knob, .pb-track:focus-visible .pb-knob, .pb-track.is-drag .pb-knob { transform: scale(1); }
.pb-track:focus-visible { outline-offset: -8px; }
.pb-time { flex: none; font-size: 12px; font-weight: 400; color: var(--yue-2); }
.player:fullscreen { border: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.player:fullscreen .player-video { object-fit: contain; background: #000; }

.credits { margin-top: clamp(40px, 5vw, 64px); }
.credits-title { font-size: 12px; font-weight: 500; color: var(--yan); }
.credits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin-top: 18px; }
.credits-grid > div { padding-top: 18px; border-top: 1px solid var(--line); }
.credits-grid dt { display: flex; align-items: baseline; gap: 12px; font-size: 15px; color: var(--yue); }
.credits-grid dt .mono { font-size: 10.5px; color: var(--yan); }
.credits-grid dd { margin-top: 8px; font-size: 14px; line-height: 1.75; color: var(--yan); }

/* ---------- 作品 ---------- */
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 14px; letter-spacing: .06em; color: var(--yue-2);
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.filter .cnt { font-size: 10px; letter-spacing: .04em; color: var(--yan); transition: color .35s var(--ease); }
.filter:hover { color: var(--yue); border-color: rgba(231, 236, 238, .42); }
.filter[aria-pressed="true"] { color: var(--xuan); background: var(--yue); border-color: var(--yue); }
.filter[aria-pressed="true"] .cnt { color: rgba(8, 9, 13, .6); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.work { position: relative; transition: opacity .42s var(--ease), transform .42s var(--ease), filter .42s var(--ease); }
.work.is-out { opacity: 0; transform: scale(.97); filter: blur(4px); }
.work.is-enter { opacity: 0; transform: translateY(12px); filter: blur(6px); }
.work-card { height: 100%; background: var(--card); border: 1px solid var(--line-soft); }
.work-card { transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), filter 1s var(--ease) var(--d, 0ms), border-color .5s var(--ease); }
.work:hover .work-card { border-color: rgba(240, 80, 47, .5); }
.work-vis { position: relative; aspect-ratio: 16 / 10; background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.work-vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-body { padding: 20px 22px 26px; }
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--yan); }
.work-cat { display: inline-flex; align-items: center; gap: 8px; }
.work-cat::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--chi); }
.work-title { margin-top: 12px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; letter-spacing: .02em; }
.work-desc { margin-top: 10px; font-size: 14px; line-height: 1.78; color: var(--yan); }

/* ---------- 联系 ---------- */
.contact { --pad-b: clamp(96px, 11vw, 160px); }
.contact-title { font-size: clamp(52px, 7.4vw, 124px); line-height: 1.08; letter-spacing: -.02em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(48px, 7vw, 120px); align-items: end; margin-top: clamp(24px, 3vw, 40px); }
.mailbox { margin-top: clamp(48px, 6vw, 88px); }
.mail-label { display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--yue-2); }
.mail-label .mono { font-size: 10.5px; color: var(--yan); }
.mail { margin-top: 10px; font-size: clamp(30px, 4.5vw, 66px); line-height: 1.2; letter-spacing: .01em; overflow-wrap: anywhere; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mail-actions .btn-primary { min-width: 9.5em; }
.btn.is-done { background: var(--yue); color: var(--xuan); }
.info { display: grid; gap: 26px; }
.info-item { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.info-item dt { display: flex; flex-direction: column; font-size: 14px; line-height: 1.6; color: var(--yue); }
.info-item dt .mono { font-size: 10.5px; color: var(--yan); }
.info-item dd { font-size: 15px; line-height: 1.85; color: var(--yue-2); }
.coord { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 11px; color: var(--yan); }
.coord i { position: relative; flex: none; width: 15px; height: 15px; border: 1px solid rgba(140, 150, 156, .6); border-radius: 50%; }
.coord i::before, .coord i::after { content: ""; position: absolute; background: var(--chi); }
.coord i::before { left: 50%; top: -4px; bottom: -4px; width: 1px; margin-left: -.5px; }
.coord i::after { top: 50%; left: -4px; right: -4px; height: 1px; margin-top: -.5px; }
.platforms { display: flex; flex-wrap: wrap; }
.platforms li + li::before { content: "·"; margin: 0 .6em; color: var(--yan); }

/* ---------- 页脚 ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ft-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.ft-brand { display: flex; align-items: flex-start; gap: 20px; max-width: 36em; }
.ft-seal { flex: none; width: auto; height: 76px; }
.ft-name { font-size: 18px; line-height: 1.5; letter-spacing: .08em; }
.ft-intro { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--yan); }
.ft-nav ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.ft-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: .12em; color: var(--yue-2); transition: color .3s var(--ease); }
.ft-nav a:hover, .ft-up:hover, .ft-icp a:hover { color: var(--chi); }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--yan); }
.ft-icp a { display: inline-flex; align-items: center; min-height: 32px; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ft-legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--yan); transition: color .3s var(--ease); }
.ft-legal a:hover, .ft-legal a[aria-current] { color: var(--yue); }
.ft-render { margin-left: auto; font-size: 10.5px; }
.ft-up { display: inline-flex; align-items: center; min-height: 44px; color: var(--yue-2); transition: color .3s var(--ease); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 860px) {
  .about-grid { grid-template-areas: "lead epi" "body body"; column-gap: 24px; }
  .about-lead { font-size: clamp(26px, 6.6vw, 40px); }
  .epigraph blockquote { font-size: 15px; letter-spacing: .28em; }
  .about-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .svc-list { --gap: 28px; }
  .svc, .svc--flip { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 30px; }
  .svc--flip .svc-fig { order: 0; }
  .svc-text, .svc--flip .svc-text { justify-self: stretch; max-width: none; }
  .svc .svc-node, .svc--flip .svc-node { left: -27.5px; right: auto; }
  .svc + .svc { margin-top: 88px; }
  .frame { aspect-ratio: 4 / 3; }
  .credits-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ft-render { margin-left: 0; }
}
@media (max-width: 380px) {
  .hero-title { letter-spacing: -.04em; }
  .hero-tag { letter-spacing: .05em; }
  .hero-tag::before { display: none; }
  .edge-quote { right: 10px; }
  .edge-quote blockquote { font-size: 12px; line-height: 1.7; letter-spacing: .2em; }
  .edge-quote figcaption { margin-block-start: 6px; font-size: 10.5px; }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: minmax(0, 1fr); }
  .stat { padding-right: 8px; }
  .info-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .info-item dt { flex-direction: row; align-items: baseline; gap: 10px; }
  .player-bar { gap: 2px; }
  .pb-time .pb-sep, .pb-time .pb-dur { display: none; }
  .filter { padding: 0 12px; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .hero { height: 100vh; }
  .hero-stage { position: relative; }
  .scroll-hint, .hero-meter, .act-2 { display: none; }
  .act-3 { visibility: visible; align-items: flex-end; }
  .act-3 .ch, .act-3 .a-el { opacity: 1; transform: none; filter: none; }
  .act-3 .act-note { display: none; }
  .act-3 .act-main { max-width: none; margin-right: 76px; }
  .vq-answer blockquote { font-size: clamp(44px, 4.6vw, 76px); }
  .reveal-ready .reveal:not(.is-in), .reveal-ready [data-split]:not(.is-in) .ch { opacity: 1; transform: none; filter: none; }
  .svc-node { transform: none; }
}
@media (prefers-reduced-motion: reduce) and ((max-width: 760px) or (max-aspect-ratio: 23/20)) {
  .act-1 .edge-quote { display: none; }
  .act-3 { justify-content: flex-start; }
  .act-3 .act-main { margin-right: 0; }
  .vq-answer blockquote { font-size: 34px; }
}
