/* =========================================================
   Zhenghao Wang — Portfolio v2
   Shared design system for index.html + project pages
   ========================================================= */

:root {
  --bg: #05060a;
  --bg-2: #0a0c12;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #8b92a3;
  --dim: #555c6c;
  --accent: #00ffc2;          /* signature neon cyan */
  --accent-soft: rgba(0, 255, 194, 0.12);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.14);
  --grad: linear-gradient(100deg, #ffffff 0%, #b9f5ff 45%, #00ffc2 75%, #a78bfa 100%);

  --f-display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
  --f-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --f-cn: 'Noto Serif SC', 'Songti SC', 'STSong', serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 18px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --nav-h: 76px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
html[lang="zh"] body { letter-spacing: 0.01em; }
img, video, iframe, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* film grain + vignette overlay */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9990; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  opacity: .045; animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) }
  60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } 100% { transform: translate(0,0) }
}

/* ---------- background canvas ---------- */
#bg-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none;
}
.bg-aura {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 15% 10%, rgba(0, 255, 194, 0.06), transparent 60%),
    radial-gradient(50vw 50vh at 90% 80%, rgba(167, 139, 250, 0.07), transparent 60%),
    var(--bg);
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10001; background: #030407;
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader-star { width: 44px; height: 44px; color: #fff; animation: spin 2.4s var(--ease-io) infinite;
  filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 22px rgba(0,255,194,.5)); }
.preloader-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--muted); }
.preloader-bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* page-transition veil */
.veil {
  position: fixed; inset: 0; z-index: 10000; background: #030407; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
}
.veil.on { opacity: 1; pointer-events: auto; }
body.is-entering .veil { opacity: 1; }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 10002; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.visible { opacity: 1; }
.cursor-star {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; color: #fff;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px var(--accent)) drop-shadow(0 0 16px rgba(0,255,194,.6));
  transition: color .35s, filter .35s;
}
.cursor-star svg { width: 100%; height: 100%; display: block; }
.cursor-label {
  position: absolute; left: 22px; top: 14px; white-space: nowrap;
  font: 500 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
  color: #000; background: var(--accent); padding: 6px 9px; border-radius: 999px;
  opacity: 0; transform: translateY(6px) scale(.9); transition: all .35s var(--ease);
}
.cursor.has-label .cursor-label { opacity: 1; transform: none; }
.cursor.is-active .cursor-star {
  color: #f3e8ff;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 10px #d8b4fe) drop-shadow(0 0 24px rgba(168,85,247,.6));
}
.cursor.is-active .cursor-label { background: #d8b4fe; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 10003; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--violet));
  box-shadow: 0 0 calc(12px + var(--lvl, 0) * 26px) rgba(0,255,194,.6); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top, 0px);
}
/* the nav never hides — it turns into a frosted bar once you scroll */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s var(--ease);
  background: rgba(5,6,10,.8); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line); }
.nav.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--f-mono); letter-spacing: .14em; }
.brand-star { width: 16px; height: 16px; color: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); transition: transform .8s var(--ease); }
.brand:hover .brand-star { transform: rotate(180deg) scale(1.15); }
.brand-cn { font-family: var(--f-cn); font-weight: 500; letter-spacing: .08em; color: var(--muted); font-size: 13px; }

.nav-pill {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(12, 14, 20, .55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-pill a {
  position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
html[lang="zh"] .nav-pill a { font-family: var(--f-body); letter-spacing: .12em; font-size: 13px; }
.nav-pill a:hover, .nav-pill a.active { color: var(--text); }
.nav-indicator {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; z-index: 0;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; opacity: 0;
}
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  position: relative; display: flex; align-items: center; padding: 4px; gap: 0;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(12,14,20,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font: 500 11px/1 var(--f-mono); letter-spacing: .1em;
}
.lang-switch span { position: relative; z-index: 1; width: 38px; text-align: center; padding: 8px 0; color: var(--muted); transition: color .35s; }
.lang-switch span[data-l="zh"] { font-family: var(--f-body); font-size: 12px; }
.lang-switch::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: 38px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 16px rgba(0,255,194,.45); transition: transform .5s var(--ease);
}
html[lang="zh"] .lang-switch::before { transform: translateX(38px); }
html[lang="en"] .lang-switch span[data-l="en"], html[lang="zh"] .lang-switch span[data-l="zh"] { color: #000; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(12,14,20,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: relative; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-btn i:nth-child(1) { top: 17px; } .menu-btn i:nth-child(2) { top: 25px; }
body.menu-open .menu-btn i:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-btn i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 8999; background: rgba(5,6,10,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .8s var(--ease-io); pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 38px); pointer-events: auto; }
.mobile-menu a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 500 clamp(30px, 9vw, 44px)/1.1 var(--f-display); letter-spacing: -.02em;
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.mobile-menu a small { font: 400 11px var(--f-mono); color: var(--accent); letter-spacing: .1em; }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .06s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .12s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: .18s; }
.mobile-menu .mm-foot { margin-top: 36px; font: 400 12px var(--f-mono); color: var(--muted); letter-spacing: .08em; }

/* ---------- back to top (progress ring) ---------- */
.to-top {
  position: fixed; right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 8000; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(12,14,20,.65); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: all .5s var(--ease);
}
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--accent)); }
.to-top .arrow { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.to-top:hover .arrow { transform: translateY(-3px); }
body.player-open .to-top { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
body.player-open .footer { padding-bottom: 110px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section.block { position: relative; padding: clamp(90px, 13vw, 170px) 0 0; }

.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-num { font: 400 13px/1 var(--f-mono); color: var(--accent); letter-spacing: .12em; padding-bottom: 10px; }
.sec-title {
  font: 500 clamp(40px, 7vw, 96px)/.95 var(--f-display); letter-spacing: -.045em;
}
html[lang="zh"] .sec-title { letter-spacing: -.01em; font-weight: 600; }
.sec-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
html[lang="zh"] .sec-title em { font-family: var(--f-cn); font-style: normal; }
.sec-note { max-width: 300px; font-size: 14px; color: var(--muted); text-align: right; padding-bottom: 8px; }
.sec-rule { grid-column: 1 / -1; height: 1px; background: var(--line); position: relative; overflow: hidden; margin-top: 18px; }
.sec-rule::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--violet) 40%, transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.sec-head.in .sec-rule::after { transform: scaleX(1); }

.eyebrow { font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface);
  transition: color .3s, border-color .3s;
}
.chips.accent span { color: var(--accent); border-color: rgba(0,255,194,.25); background: var(--accent-soft); }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 15px 24px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s;
}
html[lang="zh"] .btn { font-family: var(--f-body); letter-spacing: .1em; font-size: 13px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover { color: #000; border-color: var(--accent); }
.btn:hover::before { transform: none; }
.btn .ico { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(3px) rotate(-45deg); }
.btn.solid { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 0 30px rgba(0,255,194,.25); }
.btn.solid::before { background: #fff; }
.btn.ghost-violet:hover { border-color: var(--violet); }
.btn.ghost-violet::before { background: var(--violet); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.in .split-line > span, .split-line.in > span { transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
.hero-center { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { margin-bottom: 28px; opacity: 0; transform: translateY(12px); transition: all 1s var(--ease) .9s; }
.hero-name {
  position: relative; font: 600 clamp(50px, 9.2vw, 148px)/.86 var(--f-display); letter-spacing: -.055em;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .22em; user-select: none;
}
.hero-name .word { display: inline-flex; overflow: hidden; padding: .04em .02em .06em; }
.hero-name .ch { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: 0 100%;
  background: linear-gradient(180deg, #ffffff 30%, #b9c4d6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 45ms + .35s); }
.hero-name .word:last-child .ch { background: linear-gradient(180deg, #ffffff 0%, #a6fff0 60%, #00ffc2 120%); -webkit-background-clip: text; background-clip: text; }
.hero.ready .hero-name .ch { transform: none; }
.hero.revealed .hero-name .word { overflow: visible; }
.hero-name { touch-action: pan-y; }
.hero-name .ch.hit { animation: ch-hit .75s var(--ease); }
.hero-name .ch.nudge { animation: ch-nudge .5s var(--ease); }
@keyframes ch-hit { 0% { transform: none; filter: none; } 22% { transform: translateY(-16%) scale(1.07); filter: drop-shadow(0 0 16px rgba(0,255,194,.95)) brightness(1.25); } 100% { transform: none; filter: none; } }
@keyframes ch-nudge { 0%, 100% { transform: none; } 35% { transform: translateY(-7%); } }
.hero-star { position: absolute; top: -.08em; right: -.42em; width: .3em; height: .3em; color: #fff;
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 calc(14px + var(--lvl, 0) * 30px) var(--accent)) drop-shadow(0 0 calc(28px + var(--lvl, 0) * 50px) var(--accent));
  opacity: 0; transform: scale(0) rotate(-90deg); transition: opacity 1.2s var(--ease) 1.2s, transform 1.2s var(--ease) 1.2s; }
.hero.ready .hero-star { opacity: 1; transform: none; animation: twinkle 3.2s ease-in-out 2.4s infinite; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(20deg); } }

.hero-cname { margin-top: 18px; display: flex; align-items: center; gap: 18px; opacity: 0; transform: translateY(16px); transition: all 1.2s var(--ease) 1.05s; }
.hero-cname .cn { font: 500 clamp(26px, 3.4vw, 46px)/1 var(--f-cn); letter-spacing: .32em; padding-left: .32em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cname .bar { width: clamp(30px, 6vw, 80px); height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.hero-cname .bar:last-child { transform: scaleX(-1); }

.hero-roles { margin-top: 34px; min-height: 1.6em; font: 400 clamp(13px, 1.25vw, 16px)/1.6 var(--f-mono); letter-spacing: .06em; color: var(--muted);
  opacity: 0; transition: opacity 1s var(--ease) 1.3s; display: flex; align-items: center; gap: 10px; }
html[lang="zh"] .hero-roles { font-family: var(--f-body); letter-spacing: .14em; }
.hero-roles .slash { color: var(--accent); }
.hero-roles .role { color: var(--text); }
.hero-roles .caret { width: 8px; height: 1.1em; background: var(--accent); animation: blink 1s steps(1) infinite; box-shadow: 0 0 10px var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.hero.ready .hero-eyebrow, .hero.ready .hero-cname { opacity: 1; transform: none; }
.hero.ready .hero-roles { opacity: 1; }

/* orbit */
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.orbit-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; overflow: visible; opacity: 0; transition: opacity 2s ease 1.6s; }
.hero.ready .orbit-ring { opacity: 1; }
.orbit-ring ellipse { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 2 6; }
.orbit-tag {
  position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; will-change: transform, opacity;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(10,12,18,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  transition: border-color .4s, background .4s, box-shadow .4s, color .4s; opacity: 0;
}
html[lang="zh"] .orbit-tag { font-family: var(--f-body); letter-spacing: .14em; font-size: 14px; }
.orbit-tag i { font-style: normal; font-size: 10px; color: var(--accent); }
.orbit-tag:hover { border-color: var(--accent); background: rgba(0,255,194,.08); box-shadow: 0 0 30px rgba(0,255,194,.18); color: #fff; }

.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 var(--gutter) 30px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  font: 400 11px/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  opacity: 0; transition: opacity 1.4s ease 1.8s; }
.hero.ready .hero-foot { opacity: 1; }
.hero-foot b { color: var(--muted); font-weight: 400; }
.hero-foot > .hf-left:first-child { text-align: left; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.scroll-cue .line { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 110%; } }
.hero-mobile-links { display: none; }

/* marquee */
.marquee { position: relative; margin-top: 10px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; white-space: nowrap;
  font: 500 clamp(22px, 3.2vw, 40px)/1 var(--f-display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); }
.marquee-track span em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--text); -webkit-text-stroke: 0; }
.marquee-track svg { width: .55em; height: .55em; color: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); flex: none; }

/* =========================================================
   WORKS
   ========================================================= */
.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.work { grid-column: span 6; }
.work:nth-child(1) { grid-column: span 7; }
.work:nth-child(2) { grid-column: span 5; }
.work:nth-child(3) { grid-column: span 5; }
.work:nth-child(4) { grid-column: span 7; }
.work-card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); border: 1px solid var(--line); background: #0b0d13;
  overflow: hidden; isolation: isolate;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), border-color .5s, box-shadow .6s;
}
.work-card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(0,255,194,.12), transparent 45%); }
.work-card::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .5s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(0,255,194,.8), rgba(167,139,250,.4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.work-card:hover { border-color: transparent; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(0,255,194,.25); }
.work-card:hover::before, .work-card:hover::after { opacity: 1; }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work:nth-child(2) .work-media, .work:nth-child(3) .work-media { aspect-ratio: 4 / 3.2; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.85) brightness(.85); }
.work-card:hover .work-media img { transform: scale(1.1); filter: saturate(1.05) brightness(1); }
.work-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,19,0) 40%, rgba(11,13,19,.75) 78%, #0b0d13 100%); }
.work-index { position: absolute; z-index: 2; top: 18px; left: 18px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: #fff;
  padding: 8px 11px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); }
.work-go { position: absolute; z-index: 2; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #000; transform: scale(0) rotate(-45deg); transition: transform .6s var(--ease); }
.work-go svg { width: 16px; height: 16px; }
.work-card:hover .work-go { transform: scale(1) rotate(0); }
.work-body { position: relative; z-index: 2; padding: 4px 26px 26px; margin-top: -40px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work-title { font: 500 clamp(24px, 2.4vw, 34px)/1.05 var(--f-display); letter-spacing: -.03em; }
html[lang="zh"] .work-title { letter-spacing: 0; font-weight: 600; }
.work-title small { display: block; margin-top: 6px; font: 400 14px/1.4 var(--f-body); letter-spacing: 0; color: var(--muted); }
.work-desc { color: var(--muted); font-size: 15px; max-width: 46ch; }
.work-body .chips { margin-top: auto; padding-top: 6px; }

/* =========================================================
   MUSIC
   ========================================================= */
.feature { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-bottom: clamp(50px, 7vw, 90px); }
.feature h3 { font: 500 clamp(30px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -.035em; margin: 18px 0 16px; }
.feature h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.feature p { color: var(--muted); margin-bottom: 22px; max-width: 46ch; }
.frame { position: relative; border-radius: var(--radius); padding: 10px; border: 1px solid var(--line); background: var(--surface); }
.frame::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; filter: blur(30px); opacity: .35;
  background: conic-gradient(from 180deg, var(--accent), var(--violet), transparent 60%, var(--accent)); }
.ratio { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.ratio iframe, .ratio video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.frame-corner { position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; opacity: .8; }
.frame-corner.tl { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 8px; }
.frame-corner.tr { top: -1px; right: -1px; border-width: 1.5px 1.5px 0 0; border-top-right-radius: 8px; }
.frame-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 8px; }
.frame-corner.br { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 8px; }

.tracklist { border-top: 1px solid var(--line); }
.tl-head { display: grid; grid-template-columns: 56px 1fr 300px 64px; gap: 20px; padding: 14px 18px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.track { position: relative; border-bottom: 1px solid var(--line); transition: background .4s; }
.track:hover, .track.playing { background: linear-gradient(90deg, rgba(0,255,194,.045), transparent 70%); }
.track-row { display: grid; grid-template-columns: 56px 1fr 300px 64px; gap: 20px; align-items: center; padding: 22px 18px; }
.play {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text); transition: all .45s var(--ease);
}
.play:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 22px rgba(0,255,194,.25); transform: scale(1.06); }
.play svg { width: 14px; height: 14px; }
.play .i-pause { display: none; }
.is-playing > .play .i-play, .play.is-playing .i-play { display: none; }
.is-playing > .play .i-pause, .play.is-playing .i-pause { display: block; }
.play.is-playing { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 0 26px rgba(0,255,194,.45); }
.track-n { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font: 400 10px var(--f-mono); color: var(--dim); }
.track-title { font: 500 clamp(19px, 1.9vw, 24px)/1.15 var(--f-display); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.track-title .cn-title { font-family: var(--f-cn); font-weight: 500; letter-spacing: .06em; }
.track-title .ver { font: 400 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(0,255,194,.3); padding: 5px 8px; border-radius: 999px; }
.track-meta { margin-top: 6px; color: var(--muted); font-size: 14px; }
.track-meta a.link { color: var(--accent); border-bottom: 1px solid rgba(0,255,194,.3); white-space: nowrap; font: 500 11px var(--f-mono); letter-spacing: .1em; margin-left: 6px; }
.track .chips { justify-content: flex-start; }
.track-time { font: 400 12px/1 var(--f-mono); color: var(--muted); text-align: right; letter-spacing: .06em; }
.track-sub { display: grid; grid-template-columns: 56px 1fr 300px 64px; gap: 20px; align-items: center; padding: 0 18px 20px; margin-top: -8px; }
.track-sub .play { width: 34px; height: 34px; justify-self: center; }
.track-sub .play svg { width: 11px; height: 11px; }
.track-sub .sub-label { font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="zh"] .track-sub .sub-label { font-family: var(--f-body); letter-spacing: .1em; font-size: 13px; }
.track-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: transparent; }
.track-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--violet)); box-shadow: 0 0 10px var(--accent); }

/* bottom player */
.player {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 8500; width: min(760px, calc(100% - 28px));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 10px 18px 10px 10px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,12,18,.78);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.8), 0 0 40px -10px rgba(0,255,194,.25);
  transform: translate(-50%, 140%); transition: transform .7s var(--ease);
}
body.player-open .player { transform: translate(-50%, 0); }
.player .play { width: 48px; height: 48px; }
.player-mid { min-width: 0; display: grid; gap: 7px; }
.player-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.player-title { font: 500 15px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title small { color: var(--muted); font: 400 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-left: 8px; }
.player-time { font: 400 11px var(--f-mono); color: var(--muted); white-space: nowrap; }
.scrub { position: relative; height: 14px; cursor: pointer; display: flex; align-items: center; touch-action: none; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); }
.scrub i { position: absolute; left: 0; height: 2px; border-radius: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--violet)); box-shadow: 0 0 8px var(--accent); }
.scrub i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--accent); transform: scale(0); transition: transform .3s; }
.scrub:hover i::after { transform: scale(1); }
.player-viz { width: 96px; height: 34px; }
.player-close { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); margin-left: 4px; }
.player-close:hover { color: var(--text); background: var(--surface-2); }
.player-right { display: flex; align-items: center; gap: 4px; }

/* =========================================================
   PERFORMANCES
   ========================================================= */
.perf { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.perf-info h3 { font: 500 clamp(32px, 3.8vw, 54px)/1 var(--f-display); letter-spacing: -.035em; margin: 18px 0 18px; }
.perf-info h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.perf-info p { color: var(--muted); margin-bottom: 30px; }
.personnel { border-top: 1px solid var(--line); margin-bottom: 28px; }
.personnel div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.personnel dt { font: 500 11px/1.6 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
html[lang="zh"] .personnel dt { font-family: var(--f-body); letter-spacing: .14em; font-size: 13px; }
.personnel dd { font: 500 15px/1.6 var(--f-display); }
.perf-player { position: sticky; top: 100px; }
.vtabs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.vtab { flex: 1; min-width: 140px; position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: all .4s var(--ease); }
.vtab img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; filter: grayscale(1) brightness(.7); transition: filter .5s; }
.vtab b { display: block; font: 500 13px/1.25 var(--f-display); }
.vtab small { font: 400 10px var(--f-mono); color: var(--dim); letter-spacing: .1em; }
.vtab:hover { border-color: var(--line-2); }
.vtab.active { border-color: rgba(0,255,194,.5); background: var(--accent-soft); }
.vtab.active img { filter: none; }

.repertoire { margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 5vw, 70px); }
.repertoire h3 { font: 500 clamp(30px, 3.4vw, 46px)/1 var(--f-display); letter-spacing: -.035em; margin: 18px 0 14px; }
.repertoire h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--violet); }
.repertoire > div > p { color: var(--muted); margin-bottom: 20px; }
.rep-list { list-style: none; border-top: 1px solid var(--line); counter-reset: rep; }
.rep-list li { counter-increment: rep; position: relative; display: grid; grid-template-columns: 44px 170px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.rep-list li::before { content: counter(rep, decimal-leading-zero); font: 400 11px var(--f-mono); color: var(--dim); }
.rep-list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--violet), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.rep-list li:hover { padding-left: 10px; }
.rep-list li:hover::after { transform: scaleX(1); }
.rep-list .composer { font: italic 400 22px/1.1 var(--f-serif); color: #fff; }
.rep-list .piece { color: var(--muted); font-size: 15px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.portrait-col { position: relative; }
@media (min-width: 1081px) { .portrait-col { position: sticky; top: calc(var(--nav-h) + 36px); } }
.portrait { position: relative; width: 100%; max-width: 400px; aspect-ratio: 3 / 4; margin: 0; }
.portrait .photo { position: absolute; inset: 0; z-index: 1; border-radius: 18px; overflow: hidden; background: #fdfdfd; box-shadow: 0 40px 90px -35px rgba(0,0,0,.9); }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.portrait:hover .photo img { transform: scale(1.035); }
.portrait .scan { position: absolute; left: 0; right: 0; top: 0; height: 24%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(0,255,194,0), rgba(0,255,194,.16) 82%, rgba(0,255,194,.85) 100%); }
.in .portrait .scan { animation: scan 1.9s var(--ease-io) .5s 1 both; }
@keyframes scan { 0% { transform: translateY(-100%); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(430%); opacity: 0; } }
.portrait .ring { position: absolute; inset: -1px; z-index: 2; border-radius: 19px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), var(--accent), transparent 22%, var(--violet) 50%, transparent 78%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: rotate-ring 6s linear infinite; filter: drop-shadow(0 0 6px rgba(0,255,194,.7)); }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotate-ring { to { --ang: 360deg; } }
.portrait .glow { position: absolute; inset: 12% 2% -3%; z-index: 0; border-radius: 40px; filter: blur(48px);
  background: linear-gradient(140deg, var(--accent), var(--violet)); animation: breathe 5s ease-in-out infinite; scale: calc(1 + var(--lvl, 0) * .12); }
@keyframes breathe { 0%, 100% { opacity: .26; transform: scale(.97); } 50% { opacity: .48; transform: scale(1.02); } }
.portrait .frame-corner { z-index: 2; width: 18px; height: 18px; }
.portrait .frame-corner.tl { top: -12px; left: -12px; }
.portrait .frame-corner.tr { top: -12px; right: -12px; }
.portrait .frame-corner.bl { bottom: -12px; left: -12px; }
.portrait .frame-corner.br { bottom: -12px; right: -12px; }
.portrait-tag { position: absolute; right: 0; bottom: 8%; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px;
  background: rgba(10,12,18,.8); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; gap: 8px; align-items: center; }
.portrait .portrait-tag { z-index: 3; right: -18px; bottom: 30px; }
.portrait-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2s ease-in-out infinite; }

.bio-lead { font: 400 clamp(22px, 2.3vw, 31px)/1.35 var(--f-display); letter-spacing: -.02em; margin-bottom: 26px; }
html[lang="zh"] .bio-lead { letter-spacing: .02em; line-height: 1.6; }
.bio-lead strong { font-weight: 500; color: #fff; }
.bio-lead em { font-family: var(--f-serif); font-style: italic; color: var(--accent); }
html[lang="zh"] .bio-lead em { font-family: inherit; font-style: normal; }
.bio-sub { color: var(--muted); margin-bottom: 14px; }
.bio-advisors { font-size: 14px; color: var(--dim); margin-bottom: 36px; }
.bio-advisors b { color: var(--muted); font-weight: 500; }

.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item dt { font: 500 10.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.contact-item dd { font: 500 16px/1.3 var(--f-display); text-align: right; }
.contact-item button, .contact-item a { display: inline-flex; align-items: center; gap: 10px; transition: color .3s; }
.contact-item button:hover, .contact-item a:hover { color: var(--accent); }
.contact-item svg { width: 14px; height: 14px; opacity: .6; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.skills h4 { font: 500 10.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
html[lang="zh"] .skills h4 { font-family: var(--f-body); letter-spacing: .14em; font-size: 12px; }

/* toast */
.toast { position: fixed; left: 50%; top: 90px; z-index: 10004; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--accent); color: #000; font: 500 12px var(--f-mono); letter-spacing: .08em;
  box-shadow: 0 0 30px rgba(0,255,194,.4); transition: all .5s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   FOOTER CTA
   ========================================================= */
.cta { padding: clamp(120px, 16vw, 220px) 0 60px; text-align: center; position: relative; }
.cta .eyebrow { margin-bottom: 30px; }
.cta-title { font: 500 clamp(44px, 8.5vw, 132px)/.95 var(--f-display); letter-spacing: -.05em; }
html[lang="zh"] .cta-title { letter-spacing: 0; font-weight: 600; font-size: clamp(40px, 7vw, 110px); line-height: 1.15; }
.cta-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
html[lang="zh"] .cta-title em { font-family: var(--f-cn); font-style: normal; font-weight: 600; }
.cta-mail { display: inline-flex; align-items: center; gap: 16px; margin-top: 46px; font: 400 clamp(18px, 2.2vw, 28px)/1 var(--f-display); letter-spacing: -.01em; padding-bottom: 10px; position: relative; }
.cta-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); }
.cta-mail::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); z-index: 1; }
.cta-mail:hover::before { transform: scaleX(1); transform-origin: left; }
.cta-mail svg { width: 22px; height: 22px; transition: transform .6s var(--ease); }
.cta-mail:hover svg { transform: rotate(45deg); color: var(--accent); }

.footer { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font: 400 11px/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.footer a:hover { color: var(--accent); }

/* =========================================================
   PROJECT PAGES
   ========================================================= */
.p-hero { position: relative; padding: calc(var(--nav-h) + clamp(50px, 8vw, 110px)) 0 0; }
.p-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 40px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s, gap .4s var(--ease); }
.p-back:hover { color: var(--accent); gap: 14px; }
.p-back svg { width: 14px; height: 14px; transform: rotate(180deg); }
.p-kicker { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.p-title { font: 600 clamp(48px, 9.5vw, 150px)/.88 var(--f-display); letter-spacing: -.055em; }
.p-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.p-sub { margin-top: 18px; font: 400 clamp(18px, 2vw, 26px)/1.3 var(--f-display); color: var(--muted); letter-spacing: -.01em; }
.p-intro-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 90px); margin-top: clamp(40px, 6vw, 80px); align-items: end; }
.p-intro { font: 400 clamp(18px, 1.7vw, 22px)/1.6 var(--f-body); color: #cfd4de; }
.p-facts { border-top: 1px solid var(--line); }
.p-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.p-facts dt { font: 500 10.5px/1.7 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.p-facts dd { font: 500 14px/1.5 var(--f-display); text-align: right; }
.p-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.p-media { margin-top: clamp(50px, 7vw, 90px); }
.p-media-grid { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: 1fr 1fr; }
.p-media-cap { margin-top: 14px; font: 400 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.p-cover { margin-top: clamp(50px, 7vw, 90px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/9; }
.p-cover img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.p-content .p-cover { margin-top: 0; }

.p-content { margin-top: clamp(80px, 10vw, 140px); display: grid; gap: clamp(60px, 8vw, 110px); }
.p-sec { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); padding-top: 30px; border-top: 1px solid var(--line); }
.p-sec-label { font: 500 11px/1.6 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.p-sec-label b { display: block; margin-top: 10px; font: 500 clamp(26px, 2.8vw, 38px)/1.05 var(--f-display); letter-spacing: -.03em; text-transform: none; color: var(--text); }
html[lang="zh"] .p-sec-label b { letter-spacing: 0; font-weight: 600; }
.p-sec-body p { color: #c3c9d4; font-size: 17px; margin-bottom: 18px; max-width: 64ch; }
.p-sec-body strong { color: #fff; font-weight: 500; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; }
.spec { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, background .4s; }
.spec:hover { border-color: rgba(0,255,194,.35); background: var(--accent-soft); }
.spec span { font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.spec h5 { font: 500 19px/1.2 var(--f-display); margin: 12px 0 8px; letter-spacing: -.01em; }
.spec p { font-size: 14.5px !important; color: var(--muted) !important; margin: 0 !important; }
.stat-row { display: flex; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap; margin-top: 26px; }
.stat b { display: block; font: 500 clamp(36px, 4vw, 56px)/1 var(--f-display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { font: 500 10.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

.next-project { display: block; margin-top: clamp(100px, 13vw, 180px); padding: clamp(50px, 7vw, 90px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.next-project .eyebrow { margin-bottom: 20px; }
.next-project h4 { font: 600 clamp(44px, 9vw, 140px)/.9 var(--f-display); letter-spacing: -.055em; transition: transform .8s var(--ease), color .5s; display: flex; align-items: center; gap: .2em; }
.next-project h4 svg { width: .5em; height: .5em; transition: transform .8s var(--ease); }
.next-project:hover h4 { transform: translateX(2vw); color: var(--accent); }
.next-project:hover h4 svg { transform: rotate(45deg); }
.next-project .np-img { position: absolute; right: var(--gutter); top: 50%; width: clamp(160px, 22vw, 320px); aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  transform: translateY(-50%) rotate(6deg) scale(.6); opacity: 0; transition: all .8s var(--ease); pointer-events: none; }
.next-project:hover .np-img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
.next-project .np-img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav-pill { display: none; }
  .menu-btn { display: block; }
  .work, .work:nth-child(n) { grid-column: span 12; }
  .work:nth-child(n) .work-media { aspect-ratio: 16 / 10; }
  .feature, .perf, .repertoire, .about, .p-intro-row, .p-sec { grid-template-columns: 1fr; }
  .perf-player { position: relative; top: 0; }
  .portrait { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-note { text-align: left; }
  .orbit, .orbit-ring { display: none; }
  .hero-mobile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 38px; width: min(420px, calc(100vw - 40px)); opacity: 0; transition: opacity 1s ease 1.6s; }
  .hero.ready .hero-mobile-links { opacity: 1; }
  .hero-mobile-links a { padding: 13px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,12,18,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
  html[lang="zh"] .hero-mobile-links a { font-family: var(--f-body); font-size: 13px; letter-spacing: .1em; }
  .hero-mobile-links a i { font-style: normal; color: var(--accent); font-size: 10px; }
  .hero-roles { font-size: 12px; padding: 0 16px; }
  .hero-foot .hf-left { display: none; }
  .hero-foot { justify-content: center; }
  .hero-star { right: 7%; top: -.3em; }
  .track-sub > span:empty, .track-time:empty { display: none; }
  .tl-head { display: none; }
  .track-row, .track-sub { grid-template-columns: 48px 1fr auto; gap: 14px; padding-left: 4px; padding-right: 4px; }
  .track-row .chips, .track-sub .chips { display: none; }
  .track-n { display: none; }
  .rep-list li { grid-template-columns: 34px 1fr; }
  .rep-list .piece { grid-column: 2; margin-top: -10px; }
  .skills { grid-template-columns: 1fr; }
  .player { grid-template-columns: auto 1fr auto; padding-right: 10px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 24px); }
  .to-top { width: 42px; height: 42px; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: rgba(12,14,20,.5); }
  .to-top .arrow { width: 14px; height: 14px; }
  body.player-open .to-top { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .player-viz { display: none; }
  .p-media-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .p-cover { aspect-ratio: 4/3; }
  .next-project .np-img { display: none; }
  .vtab { min-width: 0; flex-basis: 100%; }
  .footer .wrap { justify-content: center; text-align: center; }
  .lang-switch span { width: 34px; }
  .lang-switch::before { width: 34px; }
  html[lang="zh"] .lang-switch::before { transform: translateX(34px); }
  .brand-cn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  body::after { display: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   v2.1 — sound engine UI · playable name · instruments
   ========================================================= */

/* brand: shorten on very small phones */
@media (max-width: 380px) { .brand .bn-2 { display: none; } }

/* ---------- sound toggle ---------- */
.sound-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(12,14,20,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .4s, box-shadow .4s; }
.sound-btn .eq { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.sound-btn .eq i { display: block; width: 2px; height: 100%; border-radius: 2px; background: var(--muted); transform: scaleY(.3); transition: background .4s; }
.sound-btn::after { content: ""; position: absolute; width: 20px; height: 1.5px; border-radius: 2px; background: var(--muted);
  transform: rotate(-45deg); transition: opacity .3s, transform .4s var(--ease); }
.sound-btn:hover { border-color: var(--accent); }
.sound-btn.on { border-color: rgba(0,255,194,.45); box-shadow: 0 0 20px rgba(0,255,194,.22); }
.sound-btn.on::after { opacity: 0; transform: rotate(-45deg) scaleX(0); }
.sound-btn.on .eq i { background: var(--accent); animation: eq 1.1s ease-in-out infinite; }
.sound-btn.on .eq i:nth-child(2) { animation-delay: -.35s; }
.sound-btn.on .eq i:nth-child(3) { animation-delay: -.7s; }
.sound-btn.on .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ---------- play my name ---------- */
.play-zone { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease) 1.7s, transform 1s var(--ease) 1.7s; }
.hero.ready .play-zone { opacity: 1; transform: none; }
.play-name { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10,12,18,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text); transition: border-color .4s, box-shadow .4s; }
html[lang="zh"] .play-name { font-family: var(--f-body); font-size: 13px; letter-spacing: .14em; }
.play-name:hover { border-color: var(--accent); box-shadow: 0 0 26px rgba(0,255,194,.25); }
.play-name .pn-ico { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #000; }
.play-name .pn-ico::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: pn-ring 2.4s ease-out infinite; }
@keyframes pn-ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.play-name svg { width: 13px; height: 13px; }
.play-hint { font: 400 10.5px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
html[lang="zh"] .play-hint { font-family: var(--f-body); letter-spacing: .12em; font-size: 12px; }
.play-hint .ph-touch { display: none; }
@media (hover: none) { .play-hint .ph-desk { display: none; } .play-hint .ph-touch { display: inline; } }

/* ---------- instruments (project pages) ---------- */
.toy { margin-top: clamp(70px, 9vw, 120px); }
.toy-head { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px 60px; align-items: end; margin-bottom: 26px; }
.toy-head .eyebrow { grid-column: 1 / -1; }
.toy-title { font: 500 clamp(30px, 3.6vw, 50px)/1.02 var(--f-display); letter-spacing: -.035em; }
html[lang="zh"] .toy-title { letter-spacing: 0; font-weight: 600; }
.toy-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
html[lang="zh"] .toy-title em { font-family: var(--f-cn); font-style: normal; }
.toy-desc { color: var(--muted); max-width: 56ch; }
.toy-frame { position: relative; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(12px, 1.8vw, 22px);
  background: radial-gradient(100% 80% at 50% 0%, rgba(0,255,194,.06), transparent 60%), rgba(10,12,18,.72); }
.toy-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 30%, #000, transparent); mask-image: radial-gradient(90% 90% at 50% 30%, #000, transparent); }
.toy-frame > * { position: relative; }
.panel { position: relative; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(5,6,10,.55); }
.mono-label { font: 500 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
html[lang="zh"] .mono-label { font-family: var(--f-body); letter-spacing: .12em; font-size: 11.5px; }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.readout { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 9px; }
.readout b { font: 500 17px/1 var(--f-mono); color: var(--text); white-space: nowrap; }
.readout b.accent { color: var(--accent); }
.chip-btn { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: color .3s, border-color .3s, background .3s, box-shadow .3s; }
.chip-btn:hover { color: var(--text); border-color: var(--accent); }
.chip-btn.on { color: #000; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(0,255,194,.35); }

/* vowel pad (RFDT) */
.vowel { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.vowel-pad { aspect-ratio: 4 / 3; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair;
  background: radial-gradient(70% 70% at 50% 50%, rgba(0,255,194,.05), transparent 70%), rgba(5,6,10,.6); }
.vowel-pad canvas, .spec-panel canvas, .gyro-panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v-label { position: absolute; transform: translate(-50%, -50%); font: italic 400 clamp(22px, 2.6vw, 34px)/1 var(--f-serif); color: rgba(255,255,255,.3);
  pointer-events: none; transition: color .3s, transform .5s var(--ease), text-shadow .3s; }
.v-label.on { color: var(--accent); transform: translate(-50%, -50%) scale(1.35); text-shadow: 0 0 22px rgba(0,255,194,.85); }
.v-legend { position: absolute; left: 16px; bottom: 14px; pointer-events: none; }
.v-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,12,18,.75); pointer-events: none; transition: opacity .5s; color: var(--text); white-space: nowrap; }
.v-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.4s ease-in-out infinite; }
.vowel-pad.used .v-hint { opacity: 0; }
.vowel-side { display: flex; flex-direction: column; gap: 12px; }
.spec-panel { flex: 1; min-height: 190px; overflow: hidden; }
.spec-panel .mono-label, .gyro-panel .mono-label { position: absolute; left: 14px; top: 12px; z-index: 1; }
.pitch-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pitch-row .mono-label { margin-right: 6px; }

/* call & response (piano) */
.cr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cr-status { display: flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="zh"] .cr-status { font-family: var(--f-body); letter-spacing: .1em; font-size: 13px; }
.cr-status .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: background .3s, box-shadow .3s; }
.cr-status[data-state="listen"] .dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink .9s ease-in-out infinite; }
.cr-status[data-state="respond"] .dot { background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: blink .45s ease-in-out infinite; }
.cr-mode { color: var(--violet); }
.cr-legend { display: flex; gap: 16px; }
.cr-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cr-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cr-legend span + span i { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.keys { position: relative; display: flex; height: clamp(170px, 20vw, 240px); padding: 0 2px; user-select: none; -webkit-user-select: none; touch-action: none; }
.pk { position: relative; transition: background .25s, box-shadow .3s, transform .12s; }
.pk.white { flex: 1; margin: 0 2px; border-radius: 0 0 12px 12px; border: 1px solid var(--line-2); border-top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.09)); }
.pk.white:hover { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.15)); }
.pk.black { position: absolute; top: 0; height: 60%; z-index: 2; border-radius: 0 0 9px 9px; border: 1px solid var(--line-2); border-top: 0;
  background: linear-gradient(180deg, #030406, #0f121a); box-shadow: 0 10px 20px -6px rgba(0,0,0,.8); }
.pk.black:hover { background: linear-gradient(180deg, #05070a, #1a1e28); }
.pk.u { background: linear-gradient(180deg, rgba(0,255,194,.15), rgba(0,255,194,.65)) !important; box-shadow: 0 0 34px rgba(0,255,194,.55); transform: translateY(2px); }
.pk.p { background: linear-gradient(180deg, rgba(167,139,250,.15), rgba(167,139,250,.72)) !important; box-shadow: 0 0 34px rgba(167,139,250,.6); transform: translateY(2px); }
.pk-k { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font: 500 10px/1 var(--f-mono); color: var(--dim); pointer-events: none; }
.pk.black .pk-k { bottom: 10px; color: #4b5262; }
.pk-n { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); font: 500 10px/1 var(--f-mono); color: var(--accent); opacity: .75; pointer-events: none; }
.cr-foot { margin-top: 14px; }
@media (hover: none) { .pk-k { display: none; } .pk-n { bottom: 14px; } }

/* virtual kalimba (Gyrolimba) */
.kal-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.kal-stage { aspect-ratio: 4 / 3.3; display: grid; place-items: center; perspective: 900px; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 45%, rgba(167,139,250,.12), transparent 70%), rgba(5,6,10,.6); }
.kal { position: relative; width: min(64%, 340px); aspect-ratio: 3 / 3.5; will-change: transform; }
.kal-body { position: absolute; inset: 0; border-radius: 26px 26px 46% 46% / 26px 26px 22% 22%;
  background: radial-gradient(120% 80% at 30% 10%, rgba(255,255,255,.14), transparent 45%), linear-gradient(165deg, #8a5630, #5a321a 55%, #2f190c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -24px 50px rgba(0,0,0,.45), 0 50px 90px -30px rgba(0,0,0,.95), 0 0 60px -20px rgba(167,139,250,.35); }
.kal-hole { position: absolute; left: 50%; top: 78%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #070302 55%, #1b0e06); box-shadow: inset 0 6px 12px rgba(0,0,0,.85), 0 0 0 5px rgba(255,255,255,.04); }
.kal-motors { position: absolute; left: 12%; right: 12%; top: 9%; display: flex; justify-content: space-between; z-index: 2; }
.kal-motors i { width: 8%; aspect-ratio: 1; border-radius: 50%; background: #1d2129; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: background .2s, box-shadow .2s; }
.kal-motors i.buzz { background: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(0,255,194,.5); animation: buzz var(--rate, .08s) linear infinite; }
@keyframes buzz { 50% { transform: translate(.8px, -.6px) scale(.9); } }
.kal-bridge { position: absolute; left: 9%; right: 9%; top: 22%; height: 9px; border-radius: 5px; z-index: 2;
  background: linear-gradient(180deg, #e6e9ee, #8b929c); box-shadow: 0 3px 6px rgba(0,0,0,.6); }
.kal-tines { position: absolute; left: 12%; right: 12%; top: calc(22% + 4px); height: 46%; display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; touch-action: none; }
.tine { position: relative; width: 8%; height: calc(var(--len) * 1%); border-radius: 0 0 7px 7px; transform-origin: 50% 0;
  background: linear-gradient(90deg, #7d838c, #f4f6f9 45%, #a3a9b2); box-shadow: 0 4px 8px rgba(0,0,0,.55); touch-action: none; }
.tine::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(0,255,194,0); transition: box-shadow .6s; pointer-events: none; }
.tine:hover { filter: brightness(1.12); }
.tine.pluck { animation: twang .55s cubic-bezier(.2,.8,.3,1); }
.tine.pluck::after { box-shadow: 0 0 18px 2px rgba(0,255,194,.75); transition: none; }
@keyframes twang { 0% { transform: none; } 12% { transform: rotate(2.2deg); } 26% { transform: rotate(-1.8deg); } 40% { transform: rotate(1.2deg); } 55% { transform: rotate(-.7deg); } 70% { transform: rotate(.3deg); } 100% { transform: none; } }
.tine-n { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); font: 700 8.5px/1 var(--f-mono); color: #2a2e35; pointer-events: none; }
.kal-side { display: flex; flex-direction: column; gap: 12px; }
.gyro-panel { flex: 1; min-height: 150px; overflow: hidden; }
.knob { display: grid; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.knob-top { display: flex; justify-content: space-between; align-items: center; }
.knob-top b { font: 500 13px/1 var(--f-mono); color: var(--accent); }
.toy input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; }
.toy input[type="range"]:focus-visible { outline: none; }
.toy input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255,255,255,.12) var(--p, 50%)); }
.toy input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); }
.toy input[type="range"]::-moz-range-progress { height: 2px; background: var(--accent); }
.toy input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(0,255,194,.35), 0 0 14px rgba(0,255,194,.6); }
.toy input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(0,255,194,.35), 0 0 14px rgba(0,255,194,.6); }
.kal-tilt[hidden] { display: none; }

@media (max-width: 1080px) {
  .toy-head { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-right { gap: 8px; }
  .sound-btn, .menu-btn { width: 40px; height: 40px; }
  .menu-btn i { left: 12px; right: 12px; }
  .menu-btn i:nth-child(1) { top: 15px; } .menu-btn i:nth-child(2) { top: 23px; }
  body.menu-open .menu-btn i:nth-child(1), body.menu-open .menu-btn i:nth-child(2) { top: 19px; }
  .lang-switch span { width: 32px; } .lang-switch::before { width: 32px; }
  html[lang="zh"] .lang-switch::before { transform: translateX(32px); }
  .brand { font-size: 13px; letter-spacing: .1em; }
  .play-zone { margin-top: 26px; }
  .portrait .portrait-tag { right: -10px; }
  .vowel, .kal-wrap { grid-template-columns: 1fr; }
  .spec-panel { flex: none; height: 150px; min-height: 0; }
  .gyro-panel { flex: none; height: 120px; min-height: 0; }
  .readout b { font-size: 14px; }
  .keys { height: 180px; }
  .kal-stage { aspect-ratio: 1 / 1; }
  .kal { width: 72%; }
}
.cr-legend b { font-weight: 500; }
@media (hover: none) { .cr-foot { display: none; } }
