:root {
  --bg: #07070a; --bg2: #0d0d12; --panel: rgba(255,255,255,.025); --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #f3efe6; --muted: #9a958b; --dim: #6a665f;
  --gold: #f0b941; --gold2: #ffd479; --goldDeep: #b8862a;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --display: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --r: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #000; }

/* background */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.grid { position: absolute; inset: -1px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; opacity: .35; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 20%, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.g1 { width: 720px; height: 720px; right: -160px; top: -240px; background: radial-gradient(circle, rgba(240,185,65,.20), transparent 65%); }
.g2 { width: 620px; height: 620px; left: -260px; top: 55%; background: radial-gradient(circle, rgba(120,140,255,.08), transparent 65%); }
.grain { position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--goldDeep), var(--gold2)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(240,185,65,.6); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px); transition: background .4s, border-color .4s, padding .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7,7,10,.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); }
.logo { width: 34px; height: 34px; }
.logo rect { fill: #0b0b0f; stroke: var(--gold); stroke-width: 1.6; }
.logo path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.bname { font-size: 19px; font-weight: 700; letter-spacing: .12em; }
body.en .bname { letter-spacing: .02em; }
.bsep { color: var(--dim); }
.brole { font-family: var(--display); font-size: 15px; color: var(--muted); }
.links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 14.5px; }
.links a { color: var(--muted); position: relative; padding: 4px 0; transition: color .25s; }
.links a:not(.cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.links a:hover, .links a.active { color: var(--text); }
.links a.active::after, .links a:not(.cta):hover::after { transform: scaleX(1); }
.links .cta { color: var(--gold); border: 1px solid rgba(240,185,65,.45); padding: 8px 18px; border-radius: 10px; transition: .25s; }
.links .cta:hover { background: var(--gold); color: #0a0a0a; box-shadow: 0 8px 30px -8px rgba(240,185,65,.55); }
.lang { background: transparent; border: 1px solid var(--line2); color: var(--muted); width: 36px; height: 36px; border-radius: 50%; font: 600 12px/1 var(--sans); cursor: pointer; transition: .25s; }
.lang:hover { color: var(--gold); border-color: var(--gold); }

/* hero */
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; padding: 120px 0 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 14px 7px 12px; border: 1px solid var(--line2); border-radius: 999px;
  font-size: 13px; color: var(--muted); letter-spacing: .04em; background: rgba(255,255,255,.02); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.15), 0 0 14px #3ddc84; animation: pulse 2.4s infinite; }
.eyebrow.small { padding: 0; border: 0; background: none; color: var(--gold); font-size: 12.5px; letter-spacing: .18em; margin-bottom: 14px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,0), 0 0 6px #3ddc84; } }
h1 { margin: 0; display: flex; flex-direction: column; }
.h-name { font: 900 clamp(84px, 13vw, 176px)/1.12 var(--serif); padding-top: .04em; letter-spacing: .04em;
  background: linear-gradient(180deg, #fffaf0 0%, #efe4cc 55%, #b9ab8e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(240,185,65,.12)); }
body.en .h-name { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.h-role { margin-top: 14px; font: italic 400 clamp(30px, 4vw, 52px)/1.1 var(--display); color: var(--gold);
  background: linear-gradient(90deg, var(--gold2), var(--gold) 50%, var(--goldDeep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body:not(.en) .h-role { font-style: normal; font-family: var(--serif); font-weight: 600; letter-spacing: .12em; }
.lead { max-width: 560px; margin: 30px 0 0; font-size: clamp(16px, 1.35vw, 18.5px); color: #c9c3b6; line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 15px; letter-spacing: .02em; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #120d02; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 34px -12px rgba(240,185,65,.7); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 44px -12px rgba(240,185,65,.85); }
.btn.ghost { border: 1px solid var(--line2); color: var(--text); background: rgba(255,255,255,.02); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn.line { height: 44px; padding: 0 18px; margin-top: auto; align-self: flex-start; border: 1px solid rgba(240,185,65,.4); color: var(--gold); font-size: 14px; }
.btn.line:hover { background: var(--gold); color: #120d02; }
.stats { display: flex; gap: clamp(22px, 4vw, 52px); margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats div { min-width: 0; }
.stats dt { font: 400 40px/1 var(--display); color: var(--text); }
.stats dd { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* hero art */
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.orbit { width: 100%; height: 100%; overflow: visible; }
.orbit .r0 { fill: none; stroke: var(--line); }
.orbit .r1 { fill: none; stroke: url(#ring); stroke-width: 1.2; }
.orbit .r2 { fill: none; stroke: rgba(240,185,65,.22); stroke-dasharray: 2 7; }
.orbit .r3 { fill: none; stroke: rgba(255,255,255,.12); }
.orbit .node { fill: var(--gold2); filter: drop-shadow(0 0 6px var(--gold)); }
.orbit .node.dim { fill: #fff; opacity: .55; filter: none; }
.orbit .glyph path { fill: none; stroke: url(#ring); stroke: var(--gold); stroke-width: 15; stroke-linecap: round; filter: drop-shadow(0 0 24px rgba(240,185,65,.55)); stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.2s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spin { transform-origin: 260px 260px; animation: spin 60s linear infinite; }
.s2 { animation-duration: 38s; animation-direction: reverse; }
.s3 { animation-duration: 24s; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line2);
  background: rgba(16,16,22,.66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); animation: float 7s ease-in-out infinite; }
.chip b { font: 700 15px/1.2 var(--display); color: var(--text); }
.chip span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.c1 { left: -2%; top: 18%; } .c2 { right: -2%; top: 40%; animation-delay: -2.5s; } .c3 { left: 12%; bottom: 8%; animation-delay: -4.5s; }
.c3 b { color: var(--gold); font-size: 22px; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* marquee */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 0 calc(-1 * clamp(20px, 4vw, 56px));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 34px; width: max-content; animation: slide 40s linear infinite; white-space: nowrap; }
.track span { font: 400 26px/1 var(--serif); color: #d8d2c4; letter-spacing: .06em; }
body.en .track span { font-family: var(--display); font-style: italic; letter-spacing: 0; }
.track i { font-style: normal; color: var(--gold); font-size: 14px; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.section { padding: 140px 0 20px; }
.shead { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); padding-bottom: 34px; margin-bottom: 44px; border-bottom: 1px solid rgba(240,185,65,.22); position: relative; }
.shead::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 1px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.snum { font: 400 clamp(64px, 9vw, 120px)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); }
h2 { margin: 0; font: 700 clamp(44px, 6vw, 84px)/1 var(--serif); letter-spacing: .06em; color: var(--text); }
body.en h2 { font-family: var(--display); letter-spacing: -.01em; color: var(--gold); text-shadow: 0 0 40px rgba(240,185,65,.25); }
.shead p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.proj { grid-column: span 2; position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; isolation: isolate; }
.proj.feature { grid-column: span 4; grid-row: span 2; }
.proj:nth-child(2) { grid-column: span 2; }
.proj::before, .bcard::before, .ccard::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240,185,65,.10), transparent 45%); }
.proj:hover::before, .bcard:hover::before, .ccard:hover::before { opacity: 1; }
.proj:hover { transform: translateY(-6px); border-color: rgba(240,185,65,.35); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(240,185,65,.08); }
.pa { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-bottom: 1px solid var(--line); }
.proj.feature .pa { aspect-ratio: auto; flex: 1; min-height: 300px; }
.pa svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform 1.2s var(--ease); }
.proj:hover .pa svg { transform: scale(1.045); }
.pa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,7,10,.55)); }
.pb { position: relative; padding: 22px 24px 26px; display: flex; flex-direction: column; }
.proj.feature .pb { padding: 28px 32px 32px; }
.pmeta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); }
.pidx { font-family: var(--mono); color: var(--gold); }
.pkind { letter-spacing: .08em; }
.pmeta .tag { margin-left: auto; }
.proj h3 { margin: 12px 0 0; font: 700 26px/1.25 var(--serif); letter-spacing: .03em; }
body.en .proj h3 { font-family: var(--display); letter-spacing: 0; }
.proj.feature h3 { font-size: clamp(34px, 3.6vw, 46px); }
.proj p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.proj.feature p { font-size: 16.5px; max-width: 620px; }
.go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--gold); font-size: 14px; font-family: var(--mono); }
.go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .35s var(--ease); }
.proj:hover .go svg { transform: translate(3px, -3px); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em; white-space: nowrap;
  color: var(--muted); border: 1px solid var(--line2); background: rgba(255,255,255,.02); }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.tag.live, .tag.open { color: #48e08f; border-color: rgba(72,224,143,.35); background: rgba(72,224,143,.06); }
.tag.live::before, .tag.open::before { box-shadow: 0 0 8px currentColor; }
.tag.dev { color: #e9c46a; border-color: rgba(233,196,106,.3); background: rgba(233,196,106,.05); }
.tag.paused { color: #8f8a80; }

/* svg animations inside art */
.caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wave rect { transform-origin: center; transform-box: fill-box; animation: eq 1.8s ease-in-out infinite; }
.wave rect:nth-child(3n) { animation-delay: -.4s; } .wave rect:nth-child(3n+1) { animation-delay: -.9s; } .wave rect:nth-child(5n) { animation-delay: -1.3s; }
@keyframes eq { 50% { transform: scaleY(.45); } }
.flow path { stroke-dasharray: 6 10; animation: flow 6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -160; } }

/* business */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,.015); }
.bcard { position: relative; display: flex; flex-direction: column; padding: 36px 32px 34px; border-right: 1px solid var(--line); min-height: 400px; }
.bcard:last-child { border-right: 0; }
.btop { display: flex; align-items: center; justify-content: space-between; }
.bnum { font: 400 54px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.2); }
.bcard h3 { margin: 26px 0 0; font: 700 28px/1.3 var(--serif); letter-spacing: .04em; }
body.en .bcard h3 { font-family: var(--display); letter-spacing: 0; }
.bcard p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }
.bcard ul { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; }
.bcard li { position: relative; padding-left: 20px; font-size: 14px; color: #cfc9bd; }
.bcard li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--gold); }
.talk { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 22px; padding: 40px 44px; border-radius: var(--r); border: 1px solid rgba(240,185,65,.28);
  background: radial-gradient(600px 200px at 0% 0%, rgba(240,185,65,.12), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
.talk h3 { margin: 0; font: 700 clamp(28px, 3vw, 38px)/1.2 var(--serif); }
body.en .talk h3 { font-family: var(--display); }
.muted { color: var(--muted); margin: 10px 0 0; max-width: 620px; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ccard { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .3s, transform .4s var(--ease); width: 100%; }
.ccard:hover { border-color: rgba(240,185,65,.4); transform: translateY(-3px); }
.ccard.soon { cursor: default; grid-column: 1 / -1; padding: 30px; }
.ccard.soon:hover { transform: none; }
.cicon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(240,185,65,.08); border: 1px solid rgba(240,185,65,.25); }
.cicon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ccard b { display: block; font-size: 16px; }
.ccard span { color: var(--muted); font-size: 14px; }
.carrow, .ccopy { margin-left: auto; color: var(--dim); font-size: 12px; }
.carrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.foot { max-width: 1240px; margin: 120px auto 0; padding: 34px clamp(20px, 4vw, 56px) 48px; display: flex; justify-content: space-between; gap: 20px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
.foot a:hover { color: var(--gold); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; } .hero .reveal:nth-child(3) { transition-delay: .16s; } .hero .reveal:nth-child(4) { transition-delay: .24s; } .hero .reveal:nth-child(5) { transition-delay: .32s; }
.hero-art.reveal { transition-delay: .2s; transform: scale(.96); }
.projects .reveal:nth-child(3n+2) { transition-delay: .08s; } .projects .reveal:nth-child(3n) { transition-delay: .16s; }
.biz .reveal:nth-child(2) { transition-delay: .1s; } .biz .reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .orbit .glyph path { stroke-dashoffset: 0; }
}

/* responsive */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: 0; }
  .hero-art { justify-self: center; max-width: 440px; order: -1; margin-bottom: -10px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .proj, .proj:nth-child(2) { grid-column: span 1; }
  .proj.feature { grid-column: span 2; grid-row: auto; }
  .proj.feature .pa { aspect-ratio: 2 / 1; min-height: 0; flex: none; }
  .biz { grid-template-columns: 1fr; }
  .bcard { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .bcard:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .brole, .bsep, .links a:not(.cta) { display: none; }
  .hero { padding-top: 92px; gap: 10px; }
  .hero-art { max-width: 320px; }
  .chip { padding: 9px 12px; } .chip b { font-size: 13px; } .c3 b { font-size: 18px; }
  .stats { gap: 18px; justify-content: space-between; } .stats dt { font-size: 32px; } .stats dd { font-size: 12px; }
  .actions .btn { flex: 1; justify-content: center; padding: 0 16px; }
  .projects { grid-template-columns: 1fr; gap: 16px; }
  .proj, .proj:nth-child(2), .proj.feature { grid-column: span 1; }
  .section { padding-top: 96px; }
  .shead { flex-direction: column; align-items: flex-start; gap: 6px; }
  .snum { font-size: 56px; }
  .talk { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .track span { font-size: 20px; }
  .foot { flex-direction: column; }
}

/* ===== v3 motion & featured ===== */
.hero { position: relative; }
.stars { position: absolute; inset: 0 calc(-1 * clamp(20px, 4vw, 56px)); width: calc(100% + 2 * clamp(20px, 4vw, 56px)); height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 90% 80% at 60% 45%, #000 30%, transparent 85%); }
.hero-art, .hero-text { will-change: translate; }

.cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(240,185,65,.7); box-shadow: 0 0 22px rgba(240,185,65,.35); opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; mix-blend-mode: screen; }
.cursor.on { opacity: 1; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(240,185,65,.08); }

.btn, .links .cta, .lang { transition: transform .35s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s; }

/* split title */
h2.split .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(6deg); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s; transition-delay: calc(var(--i) * 55ms + .1s); }
.shead.in h2.split .ch { opacity: 1; transform: none; filter: none; }

/* marquee rows */
.marquee { display: grid; gap: 16px; }
.track.rev { animation-direction: reverse; animation-duration: 52s; }
.track.rev span { font-size: 15px; font-family: var(--sans); color: var(--dim); letter-spacing: .3em; text-transform: uppercase; font-style: normal; }
.track.rev i { font-size: 8px; color: var(--goldDeep); }
.marquee:hover .track { animation-play-state: paused; }

/* 12-col projects with two featured */
.projects { grid-template-columns: repeat(12, 1fr); }
.proj, .proj:nth-child(2) { grid-column: span 3; }
.proj.feature { grid-column: span 6; grid-row: auto; }
.proj.feature .pa { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
.proj { transform-style: preserve-3d; will-change: transform; transition: transform .25s ease-out, border-color .4s, box-shadow .5s; }
.proj.feature { border-color: rgba(240,185,65,.22); }
.proj.feature::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(255,212,121,.9) 80%, transparent 90%);
  -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 exclude, linear-gradient(#000 0 0);
  animation: border-spin 6s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes border-spin { to { --a: 360deg; } }
.pick { position: absolute; top: 16px; right: 16px; z-index: 4; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: #120d02; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 8px 24px -8px rgba(240,185,65,.8); }
.pts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.pts li { font-size: 12.5px; padding: 5px 12px; border-radius: 8px; color: #e8dcc0; background: rgba(240,185,65,.07); border: 1px solid rgba(240,185,65,.2); }
.proj:not(.feature) h3 { font-size: 22px; }
.proj:not(.feature) .pb { padding: 20px 20px 22px; }
.proj:not(.feature) p { font-size: 13.8px; }

/* art motion */
.tile { animation: tile-in .8s var(--ease) both; }
.tile:nth-child(2) { animation-delay: .1s; } .tile:nth-child(3) { animation-delay: .2s; } .tile:nth-child(4) { animation-delay: .3s; } .tile:nth-child(5) { animation-delay: .4s; } .tile:nth-child(6) { animation-delay: .5s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } }
.proj:hover .tile rect:first-child { stroke: rgba(240,185,65,.5); }
.qtoast { animation: toast 5s var(--ease) infinite; }
@keyframes toast { 0%, 8% { opacity: 0; transform: translateY(14px); } 16%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-6px); } }
.qspark { stroke-dasharray: 160; stroke-dashoffset: 160; animation: spark 5s var(--ease) infinite; }
@keyframes spark { 10% { stroke-dashoffset: 160; } 45%, 100% { stroke-dashoffset: 0; } }
.cloud { animation: drift 18s linear infinite; } .cloud.c2 { animation-duration: 26s; animation-delay: -9s; }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(620px); } }
.farmer { animation: bob .6s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.tw { animation: tw 3s ease-in-out infinite; } .tw:nth-child(3n) { animation-delay: -1s; } .tw:nth-child(4n) { animation-delay: -2s; }
@keyframes tw { 50% { fill-opacity: .1; } }

@media (max-width: 1020px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .proj, .proj:nth-child(2) { grid-column: span 1; }
  .proj.feature { grid-column: span 2; }
}
@media (max-width: 640px) {
  .projects { grid-template-columns: 1fr; }
  .proj, .proj:nth-child(2), .proj.feature { grid-column: span 1; }
  .pick { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { h2.split .ch { opacity: 1; transform: none; filter: none; } }

/* ===== v4: hero title ===== */
.h-name { position: relative; display: inline-block; align-self: flex-start; font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(100deg, #8a6a2c 0%, #f6dc93 18%, #fffaf0 30%, #e9c26a 42%, #7d5d22 55%, #f1d58c 70%, #fff6dc 80%, #b88a35 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 18px 50px rgba(240,185,65,.28)); }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.h-name::before, .h-name::after { content: attr(data-text); position: absolute; left: 0; top: 0; padding-top: inherit; pointer-events: none; -webkit-background-clip: initial; background-clip: initial; }
.h-name::before { z-index: -1; color: transparent; -webkit-text-stroke: 1.5px rgba(240,185,65,.45); transform: translate(.06em, .06em); filter: blur(.3px); }
.h-name::after { z-index: -2; color: transparent; -webkit-text-stroke: 1px rgba(240,185,65,.18); transform: translate(.12em, .12em); }
.h-name.glitch { animation: sheen 7s ease-in-out infinite, glitch .5s steps(2) 1; }
@keyframes glitch {
  0% { clip-path: inset(0 0 0 0); transform: none; }
  20% { clip-path: inset(10% 0 55% 0); transform: translate(-6px, 0) skewX(-6deg); }
  40% { clip-path: inset(60% 0 8% 0); transform: translate(5px, 0); }
  60% { clip-path: inset(30% 0 35% 0); transform: translate(-3px, 0) skewX(4deg); }
  80% { clip-path: inset(0 0 0 0); transform: translate(2px, 0); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}
.hero h1::after { content: ""; display: block; width: 120px; height: 2px; margin-top: 18px; background: linear-gradient(90deg, var(--gold), transparent); order: 1; }
.h-role { order: 2; }

/* ===== v4: contact ===== */
.contact { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ccard { overflow: hidden; }
.cgroup { grid-column: 1 / -1; display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; padding: 40px 44px; border-radius: 24px;
  border-color: rgba(42,171,238,.35); background: radial-gradient(500px 260px at 15% 50%, rgba(42,171,238,.16), transparent 70%), radial-gradient(600px 300px at 100% 0%, rgba(240,185,65,.10), transparent 70%), rgba(255,255,255,.02); }
.cgroup:hover { border-color: rgba(42,171,238,.7); transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(42,171,238,.45); }
.cg-art { position: relative; width: 240px; height: 240px; justify-self: center; }
.cg-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(42,171,238,.45); animation: spin 30s linear infinite; }
.cg-ring.r2 { inset: 38px; border-style: solid; border-color: rgba(240,185,65,.3); animation-duration: 18s; animation-direction: reverse; }
.cg-core { position: absolute; inset: 78px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2aabee, #1d7fd6); box-shadow: 0 0 0 10px rgba(42,171,238,.12), 0 0 60px rgba(42,171,238,.6); animation: breathe 3.2s ease-in-out infinite; }
.cg-core svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
@keyframes breathe { 50% { box-shadow: 0 0 0 18px rgba(42,171,238,.06), 0 0 80px rgba(42,171,238,.75); } }
.bub { position: absolute; display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 19px; font: 600 13px/1 var(--sans);
  color: #e9f6ff; background: rgba(14,22,32,.85); border: 1px solid rgba(42,171,238,.4); backdrop-filter: blur(6px); animation: float 5s ease-in-out infinite; }
.bub.b0 { left: -6px; top: 30px; } .bub.b1 { right: 0; top: 14px; color: var(--gold); border-color: rgba(240,185,65,.45); animation-delay: -1s; }
.bub.b2 { right: -14px; top: 120px; color: var(--gold); animation-delay: -2s; } .bub.b3 { left: 12px; bottom: 26px; animation-delay: -3s; }
.bub.b4 { right: 30px; bottom: 0; animation-delay: -1.6s; } .bub.b5 { left: -18px; top: 120px; color: var(--gold); border-color: rgba(240,185,65,.45); animation-delay: -4s; }
.cg-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #6cc6f5; font-size: 13px; letter-spacing: .08em; }
.cg-eyebrow svg { width: 16px; height: 16px; fill: currentColor; }
.cgroup h3 { margin: 14px 0 0; font: 800 clamp(30px, 3.4vw, 46px)/1.15 var(--serif); letter-spacing: .04em; }
body.en .cgroup h3 { font-family: var(--display); letter-spacing: 0; }
.cgroup p { margin: 12px 0 0; color: var(--muted); font-size: 16px; max-width: 520px; }
.cg-btn { margin-top: 26px; }
.cgroup:hover .cg-btn svg { transform: translate(3px,-3px); }
.cg-btn svg { transition: transform .35s var(--ease); }

.csoc { display: flex; flex-direction: column; gap: 0; padding: 28px 28px 22px; border-radius: 22px; min-height: 230px; cursor: default; --brand: 240,185,65; }
.csoc.k-tg { --brand: 42,171,238; } .csoc.k-x { --brand: 235,235,235; }
.cs-main { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.csoc:hover { border-color: rgba(var(--brand), .55); transform: translateY(-4px); box-shadow: 0 28px 60px -30px rgba(var(--brand), .45); }
.csoc::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px 200px at 100% 100%, rgba(var(--brand), .14), transparent 70%); opacity: .6; transition: opacity .4s; }
.csoc:hover::after { opacity: 1; }
.cs-mark { position: absolute; right: -24px; bottom: -34px; width: 180px; height: 180px; opacity: .06; transition: transform .8s var(--ease), opacity .4s; pointer-events: none; }
.cs-mark svg { width: 100%; height: 100%; fill: rgb(var(--brand)); }
.csoc:hover .cs-mark { transform: rotate(-10deg) scale(1.1); opacity: .12; }
.cs-top { display: flex; align-items: center; gap: 12px; }
.csoc .cicon { width: 44px; height: 44px; background: rgba(var(--brand), .1); border-color: rgba(var(--brand), .35); }
.csoc .cicon svg.fill, .cicon svg.fill { fill: rgb(var(--brand, 240,185,65)); stroke: none; }
.cs-label { font-size: 15px; color: var(--muted); letter-spacing: .06em; }
.cs-arrow { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); transition: .4s var(--ease); }
.cs-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; }
.csoc:hover .cs-arrow { background: rgb(var(--brand)); border-color: transparent; transform: rotate(45deg); }
.csoc:hover .cs-arrow svg { stroke: #0a0a0a; }
.cs-handle { margin: 26px 0 0; font: 700 clamp(30px, 3.2vw, 42px)/1.1 var(--display); letter-spacing: -.01em; }
.cs-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; }
.cs-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.cs-note i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.cs-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); font: 500 12.5px var(--sans); cursor: pointer; transition: .25s; }
.cs-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cs-copy:hover { color: var(--text); border-color: rgba(var(--brand), .6); }
.cs-copy.ok { color: #48e08f; border-color: rgba(72,224,143,.5); }

/* ===== v4: leaving curtain ===== */
.curtain { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; visibility: hidden; --brand: 240,185,65; }
.curtain.k-tg { --brand: 42,171,238; } .curtain.k-x { --brand: 235,235,235; }
.curtain::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(var(--brand), .18), transparent 55%), #050507;
  clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%)); transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
.curtain.show { visibility: visible; pointer-events: auto; }
.curtain.show::before { clip-path: circle(150% at 50% 50%); }
.cu-panel { position: relative; text-align: center; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s .3s, transform .6s .3s var(--ease); }
.curtain.show .cu-panel { opacity: 1; transform: none; }
.cu-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: rgba(var(--brand), .12); border: 1px solid rgba(var(--brand), .45); box-shadow: 0 0 60px rgba(var(--brand), .35); }
.cu-icon svg { width: 36px; height: 36px; fill: none; stroke: rgb(var(--brand)); stroke-width: 1.7; }
.cu-icon svg.fill { fill: rgb(var(--brand)); stroke: none; }
.cu-going { margin: 26px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .3em; }
.cu-name { margin: 8px 0 0; font: 800 clamp(34px, 5vw, 56px)/1.15 var(--serif); }
.cu-host { margin: 8px 0 0; font: 13px var(--mono); color: rgb(var(--brand)); opacity: .85; }
.cu-line { display: block; width: 220px; height: 2px; margin: 26px auto 0; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; position: relative; }
.cu-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--brand), .2), rgb(var(--brand))); transform: scaleX(0); transform-origin: 0 50%; }
.curtain.show .cu-line::after { transition: transform .6s .35s var(--ease); transform: scaleX(1); }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .cgroup { grid-template-columns: 1fr; padding: 30px 24px; gap: 18px; text-align: left; }
  .cg-art { width: 200px; height: 200px; } .cg-core { inset: 64px; }
  .csoc { min-height: 200px; padding: 24px 22px 20px; }
}
.csoc { align-items: stretch; text-align: left; }
.cs-handle { text-align: left; }
