/* ============================================================
   二弦 · Two Strings — Kinetic Grotesk × Digital Atelier
   Gallery off-white · ink black · electric lime
   ============================================================ */

:root {
  --paper: #f2efe8;
  --paper-2: #ebe7dd;
  --paper-3: #e2ddd1;
  --ink: #0e0e0c;
  --ink-2: #1a1a17;
  --ink-mute: #5c5a52;
  --ink-soft: #8a877d;
  --line: rgba(14, 14, 12, 0.14);
  --line-strong: rgba(14, 14, 12, 0.32);

  --lime: #c8f542;
  --lime-deep: #9fd420;
  --lime-ink: #0e0e0c;
  --accent: #f26b3a;          /* Lime Signature · signature orange */
  --accent-deep: #c64a1e;     /* tension gradient shoulder */

  --font-display: "Archivo Black", "Noto Sans SC", system-ui, sans-serif;
  --font-sans: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-cn: "Noto Sans SC", "Space Grotesk", sans-serif;
  --font-jp: "Noto Sans JP", "Space Grotesk", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius: 0px;
  --radius-sm: 4px;

  --nav-h: 76px;
  --maxw: 1360px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: normal; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--ink); color: var(--lime); padding: 10px 16px;
  font-family: var(--font-mono); font-size: 13px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- grain & canvas ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.string-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--lime-deep), var(--lime));
  transform-origin: left;
}

/* ---------- language toggle ---------- */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; align-items: center;
  padding: 4px; gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--paper-2);
}
.lang-option {
  cursor: pointer; padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--ink-mute); background: transparent; border: none;
  transition: color .25s, background .25s, transform .2s var(--ease-spring);
  letter-spacing: .02em;
}
.lang-option:hover { color: var(--ink); }
.lang-option.is-active {
  color: var(--ink); background: var(--lime);
  box-shadow: 0 2px 8px -2px rgba(159,212,32,.5);
}
.lang-option:active { transform: scale(.94); }

/* ---------- CJK typography ---------- */
html[lang="zh"] { font-family: var(--font-cn); }
html[lang="ja"] { font-family: var(--font-jp); }

html[lang="zh"] body,
html[lang="ja"] body {
  font-feature-settings: "palt" 1;
  text-spacing: trim-start allow-end;
}

html[lang="zh"] .hero-title,
html[lang="zh"] .section-title,
html[lang="zh"] .work-title,
html[lang="zh"] .contact-title,
html[lang="zh"] .tl-item h3,
html[lang="zh"] .craft-card h3 {
  font-family: var(--font-cn);
  font-weight: 900;
  letter-spacing: 0;
}
html[lang="zh"] .hero-title { line-height: 1.1; font-size: clamp(3rem, 8vw, 6.5rem); }
html[lang="zh"] .section-title { line-height: 1.2; }
html[lang="zh"] .section-title--big { line-height: 1.15; }
html[lang="zh"] .contact-title {
  line-height: 1.28;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
html[lang="zh"] .contact-title > span,
html[lang="zh"] .contact-title > em {
  font-family: var(--font-cn);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}
html[lang="zh"] .contact-title > em {
  font-weight: 400;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
}
html[lang="zh"] .contact-title .title-lime {
  padding: 0.06em 0.2em 0.1em;
  line-height: 1.2;
  margin-top: 0.06em;
  font-weight: 700;
}
html[lang="zh"] .hero-sub,
html[lang="zh"] .section-desc,
html[lang="zh"] .work-desc,
html[lang="zh"] .tl-item p,
html[lang="zh"] .craft-card p,
html[lang="zh"] .contact-desc {
  font-family: var(--font-cn);
  line-height: 1.8;
  letter-spacing: 0.01em;
}
html[lang="zh"] .story-lead-text { line-height: 2; letter-spacing: 0.02em; }
html[lang="zh"] .btn,
html[lang="zh"] .nav-links a,
html[lang="zh"] .nav-cta { font-family: var(--font-cn); }
html[lang="zh"] .eyebrow-tag { letter-spacing: 0.1em; }

html[lang="ja"] .hero-title,
html[lang="ja"] .section-title,
html[lang="ja"] .work-title,
html[lang="ja"] .contact-title,
html[lang="ja"] .tl-item h3,
html[lang="ja"] .craft-card h3 {
  font-family: var(--font-jp);
  font-weight: 900;
  letter-spacing: 0.02em;
}
html[lang="ja"] .hero-title { line-height: 1.12; font-size: clamp(2.8rem, 7.5vw, 6rem); }
html[lang="ja"] .section-title { line-height: 1.22; }
html[lang="ja"] .section-title--big { line-height: 1.18; }
html[lang="ja"] .contact-title {
  line-height: 1.3;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}
html[lang="ja"] .contact-title > span,
html[lang="ja"] .contact-title > em {
  font-family: var(--font-jp);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
  text-transform: none;
}
html[lang="ja"] .contact-title > em {
  font-weight: 400;
  letter-spacing: 0.06em;
  padding-left: 0.06em;
}
html[lang="ja"] .contact-title .title-lime {
  padding: 0.06em 0.2em 0.1em;
  line-height: 1.2;
  margin-top: 0.06em;
  font-weight: 700;
}
html[lang="ja"] .hero-sub,
html[lang="ja"] .section-desc,
html[lang="ja"] .work-desc,
html[lang="ja"] .tl-item p,
html[lang="ja"] .craft-card p,
html[lang="ja"] .contact-desc {
  font-family: var(--font-jp);
  line-height: 1.85;
  letter-spacing: 0.04em;
}
html[lang="ja"] .story-lead-text { line-height: 2.05; letter-spacing: 0.05em; }
html[lang="ja"] .btn,
html[lang="ja"] .nav-links a,
html[lang="ja"] .nav-cta { font-family: var(--font-jp); }
html[lang="ja"] .eyebrow-tag { letter-spacing: 0.08em; }

/* ---------- background decor ---------- */
.bg-decor {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  color: var(--ink);
}
.bg-shape { position: absolute; opacity: .06; }
.bg-shape--1 { top: -80px; right: -60px; width: 420px; height: 420px; animation: spin 80s linear infinite; }
.bg-shape--2 { bottom: 20%; left: -40px; width: 180px; height: 180px; animation: float 12s ease-in-out infinite; }
.bg-shape--3 { top: 55%; right: 8%; width: 140px; height: 140px; animation: float 16s ease-in-out infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(242, 239, 232, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em;
}
.logo-mark {
  color: var(--ink); display: flex;
  transition: transform .5s var(--ease-spring);
}
/* =============================================================
   TWO STRINGS STUDIO — FINAL NAV LOGO MOTION
   (Exact user-desktop reference shape: 2 straight rounded columns +
   continuous M-bow with central nodule + perfectly independent dot)
   ============================================================= */
.final-logo-svg{display:block;overflow:visible}

/* ---------- Background square (lime frame) ---------- */
.final-logo-svg .m-bg{
  transition:fill .35s var(--ease-spring), filter .45s var(--ease-spring);
  filter:drop-shadow(0 2px 0 rgba(14,14,12,.06));
}
.nav-logo:hover .m-bg{ filter:drop-shadow(0 5px 10px rgba(200,245,66,.42)); }

/* ---------- Columns · pluck micro-vibrations (top anchored, columns shake like strings) ---------- */
.final-logo-svg .m-colL{
  transform-box:fill-box; transform-origin:top center;
  animation: colPluck 5.2s cubic-bezier(.2,.8,.2,1) infinite;
}
.final-logo-svg .m-colR{
  transform-box:fill-box; transform-origin:top center;
  animation: colPluck 5.2s cubic-bezier(.2,.8,.2,1) infinite;
  animation-delay: .65s;          /* right string responds a hair later (realistic physics) */
}
@keyframes colPluck{
  0%,77%,100%{ transform:translateX(0) skewX(0); }
  79%{       transform:translateX(0.5px)  skewX(0.6deg); }
  82%{       transform:translateX(-0.7px) skewX(-0.85deg); }
  85%{       transform:translateX(0.35px) skewX(0.45deg); }
  88%{       transform:translateX(-0.22px) skewX(-0.3deg); }
  91%{       transform:translateX(0.1px)  skewX(0.15deg); }
}

/* ---------- BOW · shape morph on hover = the player pulls it ---------- */
.final-logo-svg .m-bow{
  transform-box:fill-box; transform-origin:center;
  transition:
    transform .55s var(--ease-spring),
    d .45s var(--ease-spring);
}
.nav-logo:hover .m-bow{
  /* On hover the bow goes DOWN a little = player pulls it */
  transform: translateY(2.2px) scale(1.02);
}
/* Also do a subtle bow "release" shake on the timed cycle, using path SVG
   transform so we don't need d-attribute morph. */
.final-logo-svg .m-bow{
  animation: bowWobble 5.2s ease-in-out infinite;
}
@keyframes bowWobble{
  0%,76%,100%{ transform:translateY(0) scale(1); }
  79.5%{     transform:translateY(1.3px) scale(1.008); }
  83%{       transform:translateY(-0.6px) scale(0.996); }
  87%{       transform:translateY(0.3px) scale(1.003); }
}

/* ---------- DOT · Resonance pulse (breathing on staccato cycle) ---------- */
.final-logo-svg .m-dot{
  transform-box:fill-box; transform-origin:center;
  animation: dotResonance 5.2s cubic-bezier(.22,1,.36,1) infinite;
}
@keyframes dotResonance{
  0%,74%,100%{ transform:scale(1);    opacity:1; }
  80%{       transform:scale(1.55); opacity:.62; }
  86%{       transform:scale(1.18); opacity:.95; }
  92%{       transform:scale(1.06); opacity:1; }
}

/* ---------- Hover · whole mark has a gentle spring "pick me up" ---------- */
.nav-logo:hover .logo-mark{
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
}
.nav-logo .logo-mark{
  transition: transform .5s var(--ease-spring);
}

/* ---------- Reduced motion fallback ---------- */
@media (prefers-reduced-motion: reduce){
  .final-logo-svg .m-colL,
  .final-logo-svg .m-colR,
  .final-logo-svg .m-bow,
  .final-logo-svg .m-dot{ animation:none !important; }
  .nav-logo:hover .logo-mark,
  .nav-logo:hover .m-bow{ transform:none !important; }
}
.logo-text{
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1;
}
.logo-text b{
  font-family:var(--font-display);font-weight:900;font-size:17.5px;
  letter-spacing:-.025em;color:var(--ink);
}
.logo-text .logo-strand{
  display:block;width:62%;height:3.5px;border-radius:3px;
  /* EXACT 5-stop gradient matching SVG lm-tension: ink→shoulder→peak→shoulder→ink */
  background:linear-gradient(90deg,
    var(--ink) 0%,
    var(--accent-deep) 42%,
    var(--accent) 50%,
    var(--accent-deep) 58%,
    var(--ink) 100%);
  position:relative;
}
.logo-text .logo-strand::after{
  content:"";position:absolute;left:0;top:-0.5px;width:24%;height:1px;border-radius:1px;
  background:rgba(255,255,255,.7);
}
.logo-text samp{
  font-family:var(--font-mono);font-weight:600;font-style:normal;text-decoration:none;
  font-size:9.5px;letter-spacing:.42em;color:var(--ink);opacity:.7;
  padding-top:1px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 6px; transition: color .25s;
  padding: 6px 0; position: relative;
}
.nav-links a span { color: var(--lime-deep); font-size: 11px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 50%, var(--ink) 100%);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  padding: 12px 22px; background: var(--ink); color: var(--paper);
  border-radius: 999px; transition: all .3s var(--ease); white-space: nowrap;
  position: relative; overflow: hidden;
}
.nav-cta::before {
  content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.nav-cta:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(200,245,66,.5); }
.nav-cta:hover::before { opacity: 1; }
.nav-cta:active { transform: translateY(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease-spring), background .3s, color .3s, box-shadow .3s, border-color .3s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 50%, var(--ink) 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.btn-primary:hover { background: var(--lime); color: var(--ink); box-shadow: 0 16px 40px -12px rgba(200,245,66,.5); transform: translateY(-3px); }
.btn-primary:hover::after { transform: scaleX(1); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); box-shadow: 0 12px 32px -12px rgba(14,14,12,.4); }
.btn-arrow { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(6px); }
.btn-large { padding: 22px 44px; font-size: 17px; }
.btn-small { padding: 12px 22px; font-size: 13px; font-weight: 500; }
.btn-dark { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.btn-dark:hover { background: var(--lime); color: var(--ink); }
.btn-dark::after {
  content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.btn-dark:hover::after { opacity: 1; }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 60px) 40px 60px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 30%, transparent 80%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 40px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em;
  color: var(--ink-mute);
  padding: 10px 18px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 999px;
}
.eyebrow-tag {
  background: var(--lime); color: var(--ink);
  padding: 3px 10px 3px 8px; border-radius: 999px; font-weight: 700; font-size: 10px; letter-spacing: .12em;
  display: inline-flex; align-items: center; gap: 6px;
}
.eyebrow-tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.eyebrow-sep { width: 3px; height: 3px; background: var(--ink-soft); border-radius: 50%; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
  display: inline-block;
  opacity: 0; transform: translateY(110%) rotate(3deg);
  animation: wordUp .9s var(--ease) forwards;
}
.hero-title .line-1 .word { animation-delay: .1s; }
.hero-title .line-2 .word:nth-child(1) { animation-delay: .2s; }
.hero-title .line-2 .word:nth-child(2) { animation-delay: .28s; }
.hero-title .line-3 .word { animation-delay: .42s; }
@keyframes wordUp {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.word--outline {
  -webkit-text-fill-color: var(--paper);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}
html[lang="en"] .word--outline { font-family: var(--font-display); -webkit-text-stroke: 2px var(--ink); -webkit-text-fill-color: var(--paper); paint-order: stroke fill; }
html[lang="zh"] .word--outline {
  font-family: var(--font-cn);
  font-weight: 500;
  -webkit-text-stroke: 2.5px var(--ink);
  -webkit-text-fill-color: var(--paper);
  paint-order: stroke fill;
}
html[lang="ja"] .word--outline {
  font-family: var(--font-jp);
  font-weight: 500;
  -webkit-text-stroke: 2.5px var(--ink);
  -webkit-text-fill-color: var(--paper);
  paint-order: stroke fill;
}
.word--lime {
  background: var(--lime);
  color: var(--ink);
  padding: 0 .15em;
  margin-left: .05em;
}

.hero-bottom {
  display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end;
  margin-bottom: 72px; max-width: 1100px;
}
.hero-sub {
  font-family: var(--font-cn); font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.85; color: var(--ink-2); max-width: 560px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); padding-top: 28px; gap: 20px;
}
.meta-item { display: flex; flex-direction: column; gap: 8px; position: relative; }
.meta-item:not(:last-child)::after {
  content: ""; position: absolute; right: -10px; top: 4px; bottom: 4px; width: 1px; background: var(--line);
}
.meta-num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1; color: var(--ink);
}
.meta-k { color: var(--lime-deep); }
.meta-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mute);
}
.meta-item--wide .meta-num { letter-spacing: -.03em; }

.hero-side {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  z-index: 1; pointer-events: none;
  width: 300px; height: 520px; color: var(--ink); opacity: .85;
}
.hero-glyph { width: 100%; height: 100%; }
.hero-glyph path, .hero-glyph line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.5s var(--ease) .6s forwards; }
.hero-glyph circle { transform-origin: 150px 250px; animation: pulse 3s ease-in-out 1.2s infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .7; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-scroll { display: none; }
.scroll-line {
  width: 1px; height: 50px; position: relative; overflow: hidden;
  background: var(--line-strong);
}
.scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--ink); animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* work frame shine on hover */
.work-frame { overflow: hidden; }
.work-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .9s var(--ease);
}
.work:hover .work-frame::after { transform: translateX(100%); }
.work-frame--paper::after,
.work-frame--ink::after {
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
}

/* ---------- marquee ---------- */
.marquee-section {
  position: relative; z-index: 2;
  padding: 22px 0; background: var(--ink); color: var(--paper);
  overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 32px; padding-right: 32px; }
.marquee-group span {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 2rem);
  text-transform: uppercase; white-space: nowrap;
}
.marquee-x { color: var(--lime-deep); font-family: var(--font-mono) !important; font-size: 1rem !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; margin-bottom: 80px; }
.section-head--center { text-align: center; }
.section-head-top {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .02em;
  flex-wrap: wrap;
}
.section-head-top .section-index { white-space: nowrap; }
.section-head-top .section-note { color: var(--ink-soft); line-height: 1.5; }
.section-head--center .section-head-top { justify-content: center; }
.section-note { color: var(--ink-soft); }
.section-index { font-weight: 700; color: var(--ink); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: 0.98;
  letter-spacing: -.03em; text-transform: uppercase;
}
.section-title em {
  font-style: italic; font-family: var(--font-sans); font-weight: 300;
  text-transform: none; letter-spacing: -.02em; color: var(--ink);
}
html[lang="zh"] .section-title em,
html[lang="zh"] .contact-title em,
html[lang="ja"] .section-title em,
html[lang="ja"] .contact-title em {
  font-style: normal;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0;
}
.title-lime, .section-title .title-lime {
  background: var(--lime);
  padding: 0.06em 0.18em 0.1em;
  display: inline-block;
  margin-top: 0.06em;
  line-height: 1.1;
}
.section-desc {
  font-family: var(--font-cn); font-size: 1.05rem; line-height: 1.8;
  color: var(--ink-mute); max-width: 520px; margin-top: 28px;
}
.section-desc--center { margin-left: auto; margin-right: auto; }

/* ---------- works ---------- */
.works { position: relative; z-index: 2; padding: 140px 0 120px; }
.works-list { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 160px; }

.work { position: relative; }
.work-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center;
}
.work-grid--rev { direction: rtl; }
.work-grid--rev > * { direction: ltr; }

.work-visual { position: relative; }
.work-num {
  position: absolute; top: -32px; left: -16px; z-index: 3;
  font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7rem);
  color: var(--ink); line-height: 1; opacity: .08; pointer-events: none;
}
.work-corner {
  position: absolute; width: 28px; height: 28px; pointer-events: none; z-index: 3;
  border-color: var(--lime-deep); border-style: solid; border-width: 0;
}
.work-corner--tl { top: -8px; left: -8px; border-top-width: 3px; border-left-width: 3px; }
.work-corner--br { bottom: -8px; right: -8px; border-bottom-width: 3px; border-right-width: 3px; }

.work-frame {
  position: relative; z-index: 2; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.35);
  transition: transform .6s var(--ease), box-shadow .6s;
  border: 1px solid var(--line);
}
.work:hover .work-frame { transform: translateY(-8px) rotate(-.3deg); box-shadow: 0 50px 100px -30px rgba(0,0,0,.45); }
.work-grid--rev .work:hover .work-frame { transform: translateY(-8px) rotate(.3deg); }

.frame-browser {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #0d1117; border-bottom: 1px solid rgba(255,255,255,.06);
}
.frame-browser .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.frame-url {
  margin-left: 12px; font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.45); letter-spacing: .02em;
}

/* erhu mock */
.work-frame--dark { background: #0a0e14; }
.erhu-mock { padding: 32px; min-height: 380px; display: flex; flex-direction: column; color: #fff; }
.erhu-mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mock-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: #5eead4; text-transform: uppercase; }
.mock-live { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: #ff6b6b; letter-spacing: .15em; }
.mock-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.erhu-mock-big {
  font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: .9; color: #fff; margin-bottom: 6px;
}
.erhu-mock-big span { font-size: .35em; vertical-align: top; color: #5eead4; }
.erhu-mock-big span:last-child {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .25em;
  color: rgba(255,255,255,.4); margin-top: 14px;
}
.erhu-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.erhu-platforms span {
  font-family: var(--font-mono); font-size: 11px; padding: 6px 12px; border-radius: 999px;
  background: rgba(94,234,212,.1); color: #5eead4; border: 1px solid rgba(94,234,212,.25);
}
.erhu-wave { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: auto; }
.erhu-wave span {
  flex: 1; background: linear-gradient(to top, #5eead4, rgba(94,234,212,.15));
  border-radius: 2px; animation: wave 1.4s ease-in-out infinite;
}
.erhu-wave span:nth-child(1){animation-delay:.0s}.erhu-wave span:nth-child(2){animation-delay:.1s}
.erhu-wave span:nth-child(3){animation-delay:.2s}.erhu-wave span:nth-child(4){animation-delay:.3s}
.erhu-wave span:nth-child(5){animation-delay:.4s}.erhu-wave span:nth-child(6){animation-delay:.3s}
.erhu-wave span:nth-child(7){animation-delay:.2s}.erhu-wave span:nth-child(8){animation-delay:.1s}
.erhu-wave span:nth-child(9){animation-delay:.15s}.erhu-wave span:nth-child(10){animation-delay:.25s}
@keyframes wave { 0%,100% { height: 20%; } 50% { height: 100%; } }

/* pip mock */
.work-frame--paper { background: #f5f0e8; }
.frame-browser--paper { background: #e8e1d3; border-bottom-color: rgba(0,0,0,.08); }
.frame-browser--paper .frame-url { color: rgba(0,0,0,.5); }
.pip-mock { padding: 40px; min-height: 420px; color: #1c1917; position: relative; text-align: center; }
.pip-plane { color: #b45309; margin: 0 auto 18px; animation: floatY 4s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-8deg); } }
.pip-vol { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #b45309; margin-bottom: 20px; }
.pip-headline {
  font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.8rem);
  line-height: 1; margin-bottom: 24px; text-transform: uppercase;
}
.pip-headline em { font-family: var(--font-sans); font-weight: 300; font-style: italic; text-transform: none; color: #b45309; }
.pip-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.pip-chips span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 13px; border: 1.5px solid rgba(0,0,0,.25); border-radius: 999px; color: #1c1917; font-weight: 500;
}
.pip-bars { max-width: 300px; margin: 0 auto; text-align: left; }
.pip-bar { display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 12px; }
.pip-bar label { font-family: var(--font-mono); font-size: 11px; color: rgba(0,0,0,.6); }
.pip-bar .bar { height: 8px; background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden; }
.pip-bar .bar i { display: block; height: 100%; background: #b45309; border-radius: 999px; }
.pip-bar b { font-family: var(--font-mono); font-size: 12px; }

/* tech mock */
.work-frame--ink { background: #f3efe7; }
.frame-browser--ink { background: #e4ddd0; border-bottom-color: rgba(0,0,0,.08); }
.frame-browser--ink .frame-url { color: rgba(0,0,0,.5); }
.tech-mock { padding: 40px; min-height: 440px; display: flex; justify-content: center; align-items: center; }
.tech-phone {
  width: 250px; height: 420px; background: #111; border-radius: 40px;
  padding: 11px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), inset 0 0 0 2px #2a2a2a;
  position: relative;
}
.tech-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #111; border-radius: 0 0 16px 16px; z-index: 2; }
.tech-screen {
  width: 100%; height: 100%; background: #f3efe7; border-radius: 30px;
  padding: 40px 20px 20px; color: #111; overflow: hidden;
}
.tech-kicker { font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; color: #c8372a; margin-bottom: 12px; font-weight: 700; }
.tech-title {
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.05;
  margin-bottom: 16px; text-transform: uppercase;
}
.tech-title em { font-family: var(--font-sans); font-weight: 300; font-style: italic; text-transform: none; color: #c8372a; }
.tech-cards { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.tech-card { background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: 9px 11px; }
.tech-card b { display: block; font-family: var(--font-display); font-size: 12px; text-transform: uppercase; }
.tech-card span { font-family: var(--font-mono); font-size: 8px; color: rgba(0,0,0,.55); letter-spacing: .03em; }
.tech-stacks { font-family: var(--font-mono); font-size: 7px; letter-spacing: .05em; color: rgba(0,0,0,.5); line-height: 1.7; font-weight: 500; }

/* work content */
.work-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  padding: 7px 16px 7px 14px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 28px; font-weight: 500;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.work-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent) 58%, var(--lime) 58.1%, var(--lime) 100%);
}
.work-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem); line-height: .9; letter-spacing: -.03em;
  margin-bottom: 14px; text-transform: uppercase;
}
.work-title em {
  font-family: var(--font-sans); font-weight: 300; font-style: italic;
  text-transform: none; color: var(--lime-deep);
}
.work-sub-cn {
  font-family: var(--font-cn); font-size: 1.05rem; color: var(--ink-mute);
  margin-bottom: 24px; padding-left: 16px; border-left: 3px solid var(--lime-deep);
}
.work-desc {
  font-family: var(--font-cn); font-size: 1.02rem; line-height: 1.85;
  color: var(--ink-2); margin-bottom: 36px; max-width: 520px;
}
.work-feats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-feats li {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 16px 20px 0;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: .05em; text-transform: uppercase;
  border-right: 1px solid var(--line);
}
.work-feats li:last-child { border-right: none; padding-right: 0; }
.work-feats li span {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--ink);
  letter-spacing: -.02em; text-transform: none;
}
.work-links { display: flex; align-items: stretch; justify-content: flex-start; gap: 18px; flex-wrap: wrap; }
.work-links .btn-small { justify-content: center; min-width: 168px; width: 168px; border-width: 2px; box-sizing: border-box; }
.btn-outline-dark { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.work-stack { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .02em; }

/* ---------- story ---------- */
.story {
  position: relative; z-index: 2; padding: 140px 0;
  background: var(--ink); color: var(--paper); overflow: hidden;
}
.story-bg-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.story-bg-photo img {
  position: absolute; left: 0; top: 0;
  width: 50%; max-width: 760px; height: 100%;
  object-fit: cover; object-position: left center;
  opacity: 0.95;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to right, black 0%, black 40%, rgba(0,0,0,0.6) 65%, transparent 85%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 40%, rgba(0,0,0,0.6) 65%, transparent 85%);
}
.story-bg-photo::after {
  content: ""; position: absolute; left: 0; top: 0;
  width: 50%; max-width: 760px; height: 100%;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(200,245,66,0.1), transparent 55%),
    linear-gradient(180deg, rgba(14,14,12,0.5), transparent 15%, transparent 75%, rgba(14,14,12,0.6));
  mix-blend-mode: overlay; pointer-events: none;
  z-index: 1;
}
.story-bg-mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,12,0.3) 0%, rgba(14,14,12,0.6) 45%, var(--ink) 65%),
    linear-gradient(180deg, var(--ink) 0%, transparent 5%, transparent 95%, var(--ink) 100%);
}
.story > .section-head,
.story > .story-grid { position: relative; z-index: 2; }
.story .section-index { color: var(--lime); }
.story .section-title em { color: var(--lime); }
.story .section-title .title-lime { color: var(--ink); }
.story .section-desc { color: rgba(242,239,232,.6); }
.story .section-note { color: rgba(242,239,232,.4); }
.story-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; align-items: start; }
.story-lead-text {
  font-family: var(--font-cn); font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.85; color: var(--paper); font-weight: 400;
}
.story-lead-text em { font-style: normal; color: var(--lime); font-weight: 700; }
.story-lead-text strong { color: var(--paper); font-weight: 700; background: linear-gradient(transparent 60%, rgba(200,245,66,.25) 60%); }
.story-signature { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; color: var(--lime); }
.story-signature span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--lime), rgba(200,245,66,.1));
}
.tl-item { position: relative; padding: 0 0 48px 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--lime);
  transition: all .3s var(--ease);
}
.tl-item:hover::before { background: var(--lime); transform: scale(1.2); }
.tl-year {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime); display: block; margin-bottom: 10px; font-weight: 700;
}
.tl-item h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  margin-bottom: 12px; color: var(--paper); text-transform: uppercase; letter-spacing: -.01em;
}
.tl-item p { font-family: var(--font-cn); font-size: .98rem; line-height: 1.8; color: rgba(242,239,232,.7); }

/* ---------- craft ---------- */
.craft { position: relative; z-index: 2; padding: 140px 0; }
.craft-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 2px solid var(--ink);
}
.craft-card {
  background: var(--paper); padding: 44px 32px; position: relative;
  border-right: 1px solid var(--line); transition: background .4s var(--ease), color .4s;
}
.craft-card:last-child { border-right: none; }
.craft-card:hover { background: var(--paper-2); }
.craft-card--lime { background: var(--lime); color: var(--ink); border-right: none; }
.craft-card--lime:hover { background: var(--lime-deep); }
.craft-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; display: block; margin-bottom: 32px; opacity: .5;
}
.craft-icon { margin-bottom: 28px; transition: transform .4s var(--ease-spring); }
.craft-card:hover .craft-icon { transform: translateY(-4px) rotate(-6deg) scale(1.1); }
.craft-card h3 {
  font-family: var(--font-display); font-size: 1.4rem;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1;
}
.craft-card p { font-family: var(--font-cn); font-size: .95rem; line-height: 1.8; color: var(--ink-mute); }
.craft-card--lime p { color: var(--ink-2); }

/* ---------- contact ---------- */
.contact {
  position: relative; z-index: 2; padding: 160px 40px;
  text-align: center; overflow: hidden;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200,245,66,.3), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200,245,66,.2), transparent 40%);
}
.contact-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.contact .section-index { margin-bottom: 28px; display: block; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem); line-height: 1.02; letter-spacing: -.04em;
  margin-bottom: 36px; text-transform: uppercase;
  text-align: center;
}
.contact-title > span,
.contact-title > em {
  display: block;
}
.contact-title em {
  font-family: var(--font-sans); font-weight: 300; font-style: italic; text-transform: none;
}
html[lang="zh"] .contact-title em {
  font-family: var(--font-cn); font-weight: 400; font-style: normal;
  letter-spacing: 0.08em; padding-left: 0.08em; text-transform: none;
}
html[lang="ja"] .contact-title em {
  font-family: var(--font-jp); font-weight: 400; font-style: normal;
  letter-spacing: 0.06em; padding-left: 0.06em; text-transform: none;
}
html[lang="zh"] .contact-title em,
html[lang="zh"] .contact-title > span,
html[lang="ja"] .contact-title em,
html[lang="ja"] .contact-title > span { font-style: normal; }
.contact-title .title-lime {
  display: inline-block;
  margin-top: 0.06em;
}
.contact-desc {
  font-family: var(--font-cn); font-size: 1.05rem; line-height: 1.85;
  color: var(--ink-mute); max-width: 560px; margin: 0 auto 56px;
}
.contact-actions { margin-bottom: 52px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 auto 24px;
  max-width: 880px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .5s var(--ease-spring), box-shadow .5s var(--ease);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(200,245,66,.10), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.contact-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--lime), var(--accent), transparent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .6s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 24px 56px -24px rgba(14,14,12,.18); border-color: var(--line-strong); }
.contact-card:hover::before { opacity: 1; }
.contact-card:hover::after { transform: scaleX(1); }
.contact-card--wechat:hover { border-color: rgba(7,193,96,.35); }
.contact-card--qq:hover { border-color: rgba(18,183,245,.35); }

.contact-card-top {
  text-align: center; margin-bottom: 24px; position: relative; z-index: 1;
}
.contact-brand {
  height: 32px; width: auto; max-width: 100%;
  object-fit: contain; display: block; margin: 0 auto 14px;
  transition: transform .5s var(--ease-spring);
}
.contact-card--qq .contact-brand { height: 38px; }
.contact-card:hover .contact-brand { transform: scale(1.06); }
.contact-idline {
  margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; color: var(--ink);
  flex-wrap: wrap;
}
.contact-id { font-weight: 500; letter-spacing: .01em; }
.contact-id-sep { color: var(--ink-soft); }

.contact-qr-row { display: flex; gap: 16px; justify-content: center; margin-top: auto; position: relative; z-index: 1; }
.contact-qr { margin: 0; text-align: center; }
.qr-frame {
  display: block; width: fit-content; margin: 0 auto;
  padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.contact-qr img {
  width: 128px; height: 128px; object-fit: cover;
  display: block; border-radius: 6px;
}
.contact-card:hover .qr-frame {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -12px rgba(14,14,12,.14);
  border-color: var(--line-strong);
}
.contact-qr figcaption {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-soft); margin-top: 12px; letter-spacing: .06em;
  transition: color .3s var(--ease);
}
.contact-card:hover .contact-qr figcaption { color: var(--ink-mute); }
.contact-qr--single { margin-top: auto; position: relative; z-index: 1; }

/* Email banner */
.contact-email {
  display: flex; align-items: center; gap: 24px;
  max-width: 880px; margin: 0 auto 48px;
  padding: 24px 32px;
  background: var(--paper); color: var(--ink);
  border-radius: 10px; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease);
  border: 1px solid rgba(14,14,12,.08);
}
.contact-email::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(200,245,66,.10), transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(242,107,58,.08), transparent 40%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.contact-email::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(200,245,66,.10) 45%, rgba(242,107,58,.06) 55%, transparent 70%);
  transform: translateX(-100%); transition: transform .9s var(--ease);
}
.contact-email:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -24px rgba(14,14,12,.18); }
.contact-email:hover::before { opacity: 1; }
.contact-email:hover::after { transform: translateX(100%); }
.contact-email-graphic {
  flex-shrink: 0; width: auto; height: auto;
  display: block;
  transition: transform .5s var(--ease-spring);
  position: relative; z-index: 1;
}
.contact-email-graphic img {
  display: block; height: 56px; width: auto; object-fit: contain;
}
.contact-email:hover .contact-email-graphic { transform: scale(1.08) rotate(-3deg); }
.contact-email-body { flex: 1; min-width: 0; position: relative; z-index: 1; text-align: left; }
.contact-email-label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(14,14,12,.45);
  margin-bottom: 6px;
}
.contact-email-addr {
  display: block; font-family: var(--font-mono); font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500; color: var(--ink); letter-spacing: .01em;
  word-break: break-all;
}
.contact-email-action {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1;
  padding: 14px 26px; border-radius: 999px;
  background: var(--lime); color: var(--ink);
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600;
  letter-spacing: .02em; white-space: nowrap;
  transition: background .3s var(--ease), gap .35s var(--ease-spring), box-shadow .3s var(--ease);
}
.contact-email-action::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.contact-email:hover .contact-email-action {
  background: var(--lime-deep); gap: 16px;
  box-shadow: 0 8px 24px -8px rgba(200,245,66,.5);
}
.contact-email-arrow {
  display: inline-block; transition: transform .4s var(--ease-spring);
}
.contact-email:hover .contact-email-arrow { transform: translateX(5px); }

/* Entrance animation */
.reveal-card {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .9s var(--ease-spring);
}
.reveal-card.is-in { opacity: 1; transform: translateY(0); }
.contact-grid .contact-card:nth-child(2) { transition-delay: .12s; }
.contact-email { transition-delay: .24s; opacity: 0; transform: translateY(40px); }
.contact-email.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-card, .contact-email { opacity: 1; transform: none; transition: none; }
  .contact-email::after { display: none; }
}

.contact-links {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 13px;
  padding: 18px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 880px; margin: 0 auto;
  position: relative;
}
.contact-links::before {
  content: ""; position: absolute; left: 50%; top: -1px;
  transform: translateX(-50%); width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--lime), var(--accent), transparent);
  border-radius: 0 0 3px 3px;
}
.contact-links a {
  color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .3s, color .3s; font-weight: 500;
}
.contact-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cl-sep { color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; background: var(--ink); color: var(--paper); padding: 48px 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }

/* Lockup wordmark · EXACTLY mirrors SVG structure (620×140 viewBox scaled ~3x) */
.footer-logo { display: flex; flex-direction: column; gap: 0; }
.fl-wordmark { display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.fl-title {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  letter-spacing: -.03em; line-height: .92; color: var(--paper);
}
/* Tension underline · SVG: x=123 y=66 width=208 height=6 · starts where STRINGS begins */
.fl-strand {
  display: block; height: 6px; border-radius: 3px;
  /* "TWO " ≈ 42% of title width before "STRINGS" begins */
  margin-left: 42%; width: 58%;
  /* EXACT 5-stop gradient from SVG tension bar: ink→shoulder→peak→shoulder→ink */
  background: linear-gradient(90deg,
    var(--paper) 0%,
    var(--accent-deep) 42%,
    var(--accent) 50%,
    var(--accent-deep) 58%,
    var(--paper) 100%
  );
  position: relative;
}
/* Signature hairline · SVG: x=123 width=52 (24% of bar), y=65.5 (top of bar) */
.fl-hair {
  position: absolute; left: 0; top: -0.5px; width: 24%; height: 1px;
  border-radius: 0.5px; background: rgba(255,255,255,.7);
}
/* STUDIO · same x as title (x=0 in SVG), below the tension bar */
.fl-sub {
  display: block; margin-top: 6px;
}
.fl-studio {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .42em; color: var(--paper); opacity: .68;
}
/* Twin anchor dots · SVG: cx=430 cy=89 (right of STRINGS, vertically aligned with STUDIO)
   They act as a "period" after the wordmark, positioned at the wordmark's right edge */
.fl-anchors {
  position: absolute; right: 0; bottom: 2px;
  display: flex; gap: 6px; align-items: center;
}
.fl-anchors .a1 { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fl-anchors .a2 { width: 4px; height: 4px; border-radius: 50%; background: var(--paper); opacity: .58; }

.footer-tag { display: block; font-family: var(--font-mono); font-size: 11px; color: rgba(242,239,232,.5); letter-spacing: .05em; }
.footer-meta { font-family: var(--font-mono); font-size: 12px; color: rgba(242,239,232,.5); display: flex; gap: 14px; align-items: center; }
.footer-divider { color: var(--accent); opacity: .6; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-side { display: none; }
  .work-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-grid--rev { direction: ltr; }
  .story-grid { grid-template-columns: 1fr; gap: 60px; }
  .craft-grid { padding: 0; border: 2px solid var(--ink); position: static; }
  .craft-grid::before { display: none; }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-card { padding: 32px 22px; }
  .craft-card:nth-child(2) { border-right: none; }
  .craft-card:nth-child(1), .craft-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; max-width: 440px; }
  .contact-card { padding: 28px 22px 22px; }
  .contact-brand { height: 28px; margin-bottom: 12px; }
  .contact-idline { font-size: 13px; gap: 8px; }
  .contact-card-top { margin-bottom: 20px; }
  .contact-qr img { width: 116px; height: 116px; }
  .contact-qr-row { gap: 14px; }
  .contact-email {
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 24px 22px; max-width: 440px; text-align: left;
  }
  .contact-email-graphic img { height: 44px; }
  .contact-email-action { width: 100%; justify-content: center; }
  .contact-email-addr { word-break: break-all; }
}
@media (max-width: 720px) {
  .nav-inner { padding: 0 12px; gap: 8px; }
  .nav-links { display: none; }
  .nav-actions { gap: 4px; flex-shrink: 0; }
  .lang-toggle { padding: 2px; gap: 0; }
  .lang-option { padding: 3px 6px; font-size: 11px; min-width: 28px; }
  .nav-cta { padding: 6px 10px; font-size: 11px; gap: 4px; white-space: nowrap; }
  .nav-cta span:last-child { display: none; }
  .nav-logo { gap: 5px; flex-shrink: 1; min-width: 0; }
  .logo-mark svg { width: 22px; height: 22px; }
  .logo-text { letter-spacing: -.03em; gap: 2px; overflow: visible; }
  .logo-text b { font-size: 13px; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
  .logo-text .logo-strand { display: block; height: 3px; width: 62%; min-width: 50px; }
  .logo-text samp { display: block; font-size: 7.5px; letter-spacing: .3em; white-space: nowrap; }

  .section-title { font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1; }

  .work-tag { font-size: 9.5px; padding: 6px 12px 6px 10px; letter-spacing: .05em; gap: 6px; }
  .work-tag::before { width: 6px; height: 6px; }

  .contact-links {
    flex-wrap: nowrap; gap: 10px; font-size: 11px;
    padding: 14px 16px;
    max-width: calc(100% - 40px);
  }
  .contact-links a { padding: 4px 0; white-space: nowrap; }
  .contact-links .cl-sep { flex-shrink: 0; }

  .footer-inner { justify-content: flex-start; align-items: flex-start; flex-direction: column; gap: 28px; }
  .footer-brand { align-items: flex-start; }
  .footer-meta { flex-wrap: wrap; gap: 8px 12px; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 10px; gap: 6px; }
  .nav-actions { gap: 3px; }
  .lang-option { padding: 2px 5px; font-size: 10px; min-width: 26px; }
  .nav-cta { padding: 5px 8px; font-size: 10px; letter-spacing: -.01em; }
  .nav-logo { gap: 4px; }
  .logo-mark svg { width: 20px; height: 20px; }
  .logo-text b { font-size: 12px; }
  .logo-text .logo-strand { height: 2.5px; min-width: 40px; }
  .logo-text samp { font-size: 7px; letter-spacing: .26em; }

  .section-title { font-size: clamp(1.8rem, 10vw, 2.8rem); }

  .work-tag { font-size: 8.5px; padding: 5px 10px 5px 8px; letter-spacing: .03em; gap: 5px; }
  .work-tag::before { width: 5px; height: 5px; }

  .contact-links { gap: 8px; font-size: 10px; padding: 12px 12px; max-width: calc(100% - 24px); }

  .hero { padding: calc(var(--nav-h) + 24px) 16px 40px; }
  .hero-eyebrow {
    font-size: 11px; gap: 0; padding: 7px 8px 7px 7px; margin-bottom: 28px;
    width: fit-content; max-width: 100%;
  }
  .eyebrow-tag { padding: 4px 10px; font-size: 10px; white-space: nowrap; margin-right: 0; }
  .hero-eyebrow > span:not(.eyebrow-tag) { display: none; }
  .eyebrow-sep { display: none; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .meta-item:nth-child(2)::after { display: none; }
  .meta-item:nth-child(1), .meta-item:nth-child(2) { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .section-head { padding: 0 20px; margin-bottom: 56px; }
  .works { padding: 90px 0 80px; }
  .works-list { padding: 0 20px; gap: 110px; }
  .story, .craft, .contact { padding: 90px 0; }
  .story-grid { padding: 0 20px; gap: 48px; }
  /* Mobile: keep the same visual as desktop — photo peeks from the left */
  .story { padding: 90px 0; }
  .story-bg-photo {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  }
  .story-bg-photo img {
    position: absolute; left: 0; top: 0;
    width: 88%; height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 30% center;
    opacity: 0.95;
    mix-blend-mode: screen;
    display: block;
    mask-image: linear-gradient(to right, black 0%, black 62%, rgba(0,0,0,0.7) 80%, transparent 92%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 62%, rgba(0,0,0,0.7) 80%, transparent 92%);
    filter: saturate(1.0) contrast(1.12) brightness(1.05);
  }
  .story-bg-photo::after {
    content: ""; position: absolute; left: 0; top: 0;
    width: 88%; height: 100%;
    background:
      radial-gradient(ellipse at 25% 30%, rgba(200,245,66,0.12), transparent 55%),
      linear-gradient(180deg, rgba(14,14,12,0.45), transparent 18%, transparent 75%, rgba(14,14,12,0.55));
    mix-blend-mode: overlay; pointer-events: none;
    z-index: 1;
    display: block;
    margin-top: 0;
  }
  .story-bg-mask {
    display: block;
    position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(14,14,12,0.15) 0%, rgba(14,14,12,0.4) 62%, var(--ink) 88%),
      linear-gradient(180deg, var(--ink) 0%, transparent 5%, transparent 95%, var(--ink) 100%);
  }
  .story > .section-head {
    padding: 0 20px;
    margin-top: 0;
    margin-bottom: 56px;
  }
  .craft-grid { padding: 0; border: 2px solid var(--ink); position: static; }
  .craft-grid::before { display: none; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-card { padding: 28px 22px; border-right: none; border-bottom: 1px solid var(--line); }
  .craft-card:last-child { border-bottom: none; }
  .contact { padding: 100px 20px; }
  .work-feats { grid-template-columns: 1fr; }
  .work-feats li { border-right: none; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .work-feats li:last-child { border-bottom: none; }
  .erhu-mock, .pip-mock, .tech-mock { padding: 24px; }
  .tech-phone { width: 220px; height: 370px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-eyebrow { font-size: 11px; gap: 10px; padding: 8px 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-title .word { opacity: 1; transform: none; }
  .string-canvas, .bg-decor { display: none; }
  html { scroll-behavior: auto; }
}
