:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-2: #0b0f14;
  --ink: #f0eee6;
  --muted: #a9a296;
  --dim: #6e776f;
  --line: rgba(229, 224, 207, .16);
  --hot: #d7ff4f;
  --cyan: #70fff5;
  --red: #ff4d6d;
  --blue: #6b7cff;
  --card: rgba(12, 16, 19, .76);
  --glass: rgba(255,255,255,.055);
  --shadow: 0 28px 80px rgba(0,0,0,.55);
  --serif: ui-serif, "Songti SC", "Noto Serif CJK SC", "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
  --mono: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(112,255,245,.18), transparent 28vw),
    radial-gradient(circle at 80% 8%, rgba(215,255,79,.09), transparent 24vw),
    radial-gradient(circle at 62% 70%, rgba(107,124,255,.16), transparent 30vw),
    linear-gradient(135deg, #040506 0%, #101013 52%, #050608 100%);
  overflow-x: hidden;
}

body.lang-en .zh { display: none; }
body:not(.lang-en) .en { display: none; }

#field { position: fixed; inset: 0; z-index: -3; opacity: .9; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5,6,8,.82), rgba(5,6,8,.18));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mark { display: grid; gap: 1px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; line-height: .95; }
.mark span:nth-child(2) { color: var(--cyan); }
.mark span:nth-child(3) { color: var(--hot); }
.top-nav { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.top-nav a, .top-nav button, .filter {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  padding: 8px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.top-nav a:hover, .top-nav button:hover, .filter:hover, .filter.active { border-color: var(--cyan); color: var(--cyan); background: rgba(112,255,245,.08); }

main { position: relative; z-index: 1; }
.hero {
  min-height: 100vh;
  display: grid;
  align-content: end;
  padding: 140px 28px 70px;
  border-bottom: 1px solid var(--line);
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 34px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-meta span { border: 1px solid rgba(255,255,255,.12); padding: 6px 8px; background: rgba(255,255,255,.04); }
h1 {
  margin: 0;
  max-width: 1180px;
  font-family: var(--serif);
  font-size: clamp(52px, 11vw, 154px);
  line-height: .82;
  font-weight: 500;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero-line {
  max-width: 820px;
  margin: 30px 0 0 auto;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.42;
  color: #d8d4c8;
}
.hero-actions { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 46px; flex-wrap: wrap; }
.primary {
  display: inline-flex; align-items: center; min-height: 54px;
  padding: 0 24px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-weight: 700;
}
.primary:hover { background: var(--hot); }
.stats { font-family: var(--mono); color: var(--muted); font-size: 12px; }

.statement {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr);
  gap: 42px;
  padding: 92px 28px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 12px; color: var(--hot); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5.2vw, 72px); line-height: .92; letter-spacing: -.04em; }
.statement-copy { columns: 2 320px; column-gap: 42px; color: #d3d0c3; font-size: 16px; line-height: 1.84; }
.statement-copy p { margin: 0 0 1.1em; break-inside: avoid; }

.works-section { padding: 82px 28px 120px; }
.works-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter { font-family: var(--mono); font-size: 11px; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.work-tile {
  --span: 3;
  grid-column: span var(--span);
  min-height: clamp(230px, 26vw, 420px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: #0b0f13;
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0);
}
.work-tile:nth-child(4n+1) { --span: 4; }
.work-tile:nth-child(6n+2) { --span: 5; }
.work-tile:nth-child(7n+3) { --span: 3; min-height: 330px; }
.work-tile:nth-child(11n+5) { --span: 6; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: saturate(.82) contrast(1.06) brightness(.72); transition: transform .8s cubic-bezier(.19,1,.22,1), filter .5s; }
.work-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.78)); }
.work-tile::after { content: attr(data-index); position: absolute; top: 10px; right: 12px; z-index: 2; font-family: var(--mono); color: var(--hot); font-size: 12px; }
.tile-caption { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 15px; }
.tile-caption h3 { margin: 0; font-size: clamp(18px, 2vw, 30px); line-height: 1.02; font-family: var(--serif); font-weight: 500; letter-spacing: -.03em; }
.tile-caption p { margin: 8px 0 0; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.work-tile:hover img { transform: scale(1.08); filter: saturate(1.15) contrast(1.15) brightness(.9); }
.work-tile:hover { border-color: rgba(112,255,245,.72); }
.work-tile.is-hidden { display: none; }

.hover-card {
  position: fixed; z-index: 80;
  top: 96px; right: 26px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
  opacity: 0;
  transform: translate3d(20px, 0, 0) scale(.97);
  transition: opacity .18s ease, transform .18s ease;
  background: var(--card);
  border: 1px solid rgba(112,255,245,.38);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.2);
}
.hover-card.visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); pointer-events: auto; }
.hover-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.92) contrast(1.1); border-bottom: 1px solid var(--line); }
.hover-body { padding: 16px 16px 15px; }
.hover-kicker { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10px; color: var(--hot); text-transform: uppercase; letter-spacing: .12em; }
.hover-card h3 { margin: 12px 0 6px; font-family: var(--serif); font-size: 32px; line-height: .98; font-weight: 500; letter-spacing: -.04em; }
.hover-author { color: var(--muted); margin: 0 0 12px; }
.hover-desc { color: #ddd8ca; line-height: 1.62; font-size: 14px; margin: 0 0 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.badge { border: 1px solid rgba(255,255,255,.16); padding: 4px 7px; font-family: var(--mono); font-size: 10px; color: var(--cyan); border-radius: 999px; background: rgba(112,255,245,.06); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 13px; }
.visit { color: var(--bg); background: var(--hot); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 12px; }
.socials { display: flex; gap: 7px; pointer-events: auto; }
.social { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--ink); font-size: 10px; font-family: var(--mono); }
.social:hover { color: var(--bg); background: var(--cyan); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 28px; color: var(--dim); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }

@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; }
  .works-head { display: block; }
  .filters { justify-content: flex-start; margin-top: 22px; }
  .work-tile, .work-tile:nth-child(n) { grid-column: span 6; min-height: 280px; }
}
@media (max-width: 620px) {
  .site-header { padding: 14px 16px; }
  .top-nav a { display: none; }
  .hero, .statement, .works-section { padding-left: 16px; padding-right: 16px; }
  .work-tile, .work-tile:nth-child(n) { grid-column: 1 / -1; }
  .hero-line { margin-left: 0; }
  .hover-card { display: none; }
}
