:root {
  --bg: #050505;
  --fg: #f3f2ec;
  --dim: #6d6d68;
  --acid: #c8ff00;
  --blue: #2f4dff;
  --pink: #ff2e9a;
  --m: clamp(16px, 2.6vw, 40px);
  --wide: "Archivo", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "PingFang SC", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--fg); font-family: var(--wide); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--acid); color: #000; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; line-height: 1.6; }
.acid { color: var(--acid); }
.dim { color: var(--dim); }
.tag { color: var(--dim); }
@media (hover: hover) { body, a { cursor: none; } }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; background: var(--acid); color: #000; display: flex; flex-direction: column; justify-content: space-between; padding: var(--m);
  clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.8, 0, .2, 1); }
#loader.done { clip-path: inset(0 0 100% 0); }
.ld-top { display: flex; justify-content: space-between; font-weight: 500; }
.ld-num { font-size: 34vw; font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ld-bar { height: 4px; background: rgba(0,0,0,.15); }
.ld-bar i { display: block; height: 100%; width: 0; background: #000; transition: width .2s; }

/* ---------- cursor + noise ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none;
  display: grid; place-items: center; transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), margin .35s cubic-bezier(.2,.8,.2,1); }
.cursor span { font-family: var(--mono); font-size: 12px; color: #000; opacity: 0; transition: opacity .2s; font-weight: 500; }
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.big span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }
.noise { position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { translate: -3% 2%; } 50% { translate: 2% -4%; } 75% { translate: -1% 3%; } }

/* ---------- HUD ---------- */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--m); mix-blend-mode: difference; color: #fff; }
.logo { font-weight: 900; font-stretch: 125%; font-size: 20px; letter-spacing: -.02em; }
.logo sup { font-size: 10px; }
.hud nav { display: flex; gap: clamp(16px, 4vw, 56px); }
.hud nav a { position: relative; }
.hud nav a::before { content: "→ "; opacity: 0; position: absolute; left: -1.6em; transition: opacity .2s, left .3s; }
.hud nav a:hover::before { opacity: 1; left: -1.3em; }
.hud-clock { font-variant-numeric: tabular-nums; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 55%, #10131c 0, var(--bg) 70%); }
.mega { position: absolute; inset: 0; z-index: 1; font-weight: 900; font-stretch: 125%; line-height: .78; letter-spacing: -.055em; pointer-events: none; user-select: none; }
.mega span { position: absolute; font-size: 25vw; }
.mega-1 { left: calc(var(--m) - 1.2vw); top: 11vh; color: var(--fg); }
.mega-2 { right: var(--m); bottom: 6vh; color: transparent; -webkit-text-stroke: 2px var(--acid); }
.mega span { translate: 0 var(--ty, 0); transition: translate .1s linear; }
#gl-hero { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.hero-tl { position: absolute; z-index: 3; right: var(--m); top: 13vh; text-align: right; }
.hero-bl { position: absolute; z-index: 3; left: var(--m); bottom: 6vh; }
.hero-zh { font-size: clamp(22px, 2.4vw, 38px); font-weight: 800; line-height: 1.15; }
.hero-br { position: absolute; z-index: 3; left: var(--m); bottom: calc(6vh + 110px); display: flex; gap: 36px; }
.hero-stat b { display: block; font-family: var(--wide); font-size: 28px; font-weight: 800; color: var(--acid); font-variant-numeric: tabular-nums; }
.hero-stat span { color: var(--dim); font-size: 11px; }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 3vh; translate: -50% 0; display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 11px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--acid), transparent); animation: drip 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- MANIFESTO ---------- */
.manifesto { padding: 28vh var(--m) 34vh; }
.mf { margin-top: 28px; font-size: clamp(34px, 5.6vw, 96px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; max-width: 15em; }
.mf em { font-style: normal; }
.mf .w { opacity: .12; transition: opacity .25s, color .25s; }
.mf .w.on { opacity: 1; }
.mf em .w.on { color: var(--acid); }

/* ---------- MARQUEE ---------- */
.marquee { padding: 10vh 0 18vh; overflow: hidden; }
.mq-row + .mq-row { margin-top: -1vw; }
.mq-row { width: 130vw; margin-left: -15vw; overflow: hidden; rotate: -3deg; white-space: nowrap; font-size: clamp(56px, 10vw, 170px); font-weight: 900; font-stretch: 125%; line-height: 1.02; letter-spacing: -.03em; }
.mq-track { display: inline-block; will-change: transform; }
.mq-row i { font-style: normal; color: var(--acid); display: inline-block; animation: spin 6s linear infinite; }
.r1 { background: var(--acid); color: #000; }
.r1 i { color: #000; }
.r2 { color: transparent; -webkit-text-stroke: 2px var(--fg); }
.r2 i { -webkit-text-stroke: 0; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- SHOWCASE (hover-reveal list) ---------- */
.showcase { position: relative; padding: 12vh var(--m) 20vh; }
#gl-hover { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; visibility: hidden; }
.sc-head { display: flex; justify-content: space-between; margin-bottom: 4vh; }
.wl { list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.wl li { border-bottom: 1px solid rgba(255,255,255,.14); }
.wl a { position: relative; z-index: 5; display: grid; grid-template-columns: 56px 1fr 110px 190px; align-items: center; gap: 16px; padding: 2.2vh 0; mix-blend-mode: difference; color: #fff;
  transition: opacity .35s, padding .45s cubic-bezier(.2,.8,.2,1); }
.wl-n { color: #8c8c86; }
.wl-t { font-size: clamp(30px, 4.1vw, 78px); font-weight: 900; font-stretch: 125%; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.wl-type, .wl-m { text-align: right; color: #a5a5a0; }
.wl-thumb { display: none; }
.wl.hovering a { opacity: .22; }
.wl.hovering a.on { opacity: 1; padding-left: 2.4vw; }
.wl a.on .wl-t { color: var(--acid); }
.archive-cta { position: relative; z-index: 5; display: block; margin-top: 12vh; padding: 5vh 3vw 4vh; background: var(--acid); color: #000; overflow: hidden; }
.archive-cta::before { content: ""; position: absolute; inset: 0; background: #000; transform: translateY(101%); transition: transform .6s cubic-bezier(.8,0,.2,1); }
.archive-cta:hover::before { transform: translateY(0); }
.archive-cta > * { position: relative; transition: color .4s .1s; }
.archive-cta:hover > * { color: var(--acid); }
.ac-k { display: flex; justify-content: space-between; font-weight: 500; }
.ac-t { display: block; margin-top: 4vh; font-size: clamp(56px, 11vw, 200px); font-weight: 900; font-stretch: 125%; line-height: .84; letter-spacing: -.055em; }
.ac-t i { font-style: normal; display: inline-block; transition: translate .5s cubic-bezier(.2,.8,.2,1); }
.archive-cta:hover .ac-t i { translate: 3vw 0; }

/* ---------- PROGRAMS ---------- */
.programs { padding: 22vh var(--m) 24vh; }
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 8vh; }
.p-title { font-size: clamp(40px, 7vw, 120px); font-weight: 900; font-stretch: 125%; line-height: .88; letter-spacing: -.04em; text-align: right; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 1200px; }
.card { position: relative; min-height: 62vh; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 4px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; overflow: hidden; }
.card:hover { transition: transform .08s linear; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), transparent 50%); }
.card:hover::after { opacity: 1; }
.c-n { font-size: clamp(90px, 11vw, 190px); font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.06em; }
.card h3 { font-size: clamp(26px, 2.6vw, 42px); font-weight: 900; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.5; opacity: .8; }
.c-k { font-weight: 500; }
.c-lime { background: var(--acid); color: #000; }
.c-blue { background: var(--blue); color: #fff; }
.c-pink { background: var(--pink); color: #000; }
.c-white { background: var(--fg); color: #000; }

/* ---------- WARP ---------- */
.warp { height: 700vh; background: #000; }
.w-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
#gl-tunnel { position: absolute; inset: 0; width: 100%; height: 100%; }
.space { position: absolute; inset: 0; perspective: 900px; pointer-events: none; }
.space > * { position: absolute; left: 50%; top: 50%; opacity: 0; will-change: transform, opacity;
  transform: translate(-50%, -50%) translate3d(var(--x, 0), var(--y, 0), calc((var(--z) + var(--dz, 0)) * 1px)); }
.fly { font-size: clamp(22px, 2.4vw, 38px); font-weight: 600; line-height: 1.2; white-space: nowrap; text-shadow: 0 0 18px #000; }
.px { width: 18px; height: 18px; background: var(--acid); }
.ring { width: 360px; height: 360px; border: 3px solid var(--acid); border-radius: 50%; box-shadow: 0 0 14px var(--acid), inset 0 0 14px var(--acid);
  transform: translate(-50%, -50%) translate3d(0, 8vh, calc((var(--z) + var(--dz, 0)) * 1px)) rotateX(76deg); }
.phase { position: absolute; z-index: 3; text-align: center; pointer-events: none; }
.phase.on { pointer-events: auto; }
h2.phase, .phase h2 { font-size: clamp(52px, 8.6vw, 150px); font-weight: 900; font-stretch: 125%; line-height: .9; letter-spacing: -.04em; }
.phase span { display: block; }
.ph-zh { letter-spacing: 0 !important; font-stretch: 100% !important; }
.phase .ch { display: inline-block; font-style: normal; opacity: 0; filter: blur(10px); transition: opacity .25s linear, filter .35s; transition-delay: var(--d); }
.phase.on .ch { opacity: 1; filter: blur(0); }
.end-k { display: block !important; color: var(--acid); margin-bottom: 18px; opacity: 0; transition: opacity .6s .2s; }
.ph-end.on .end-k { opacity: 1; }
.cta-btn { display: inline-block; margin-top: 30px; padding: 16px 30px; background: var(--acid); color: #000; font-weight: 500; opacity: 0; translate: 0 16px; transition: opacity .5s .5s, translate .5s .5s, box-shadow .3s; }
.ph-end.on .cta-btn { opacity: 1; translate: 0 0; }
.cta-btn:hover { box-shadow: 0 0 60px rgba(200, 255, 0, .6); }
.w-pct { position: absolute; right: var(--m); top: 50%; translate: 0 -50%; writing-mode: vertical-rl; color: #8a8a8a; font-size: 11px; }

/* ---------- FOOT ---------- */
.foot { padding: 16vh var(--m) 0; overflow: hidden; }
.f-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; line-height: 2; }
.f-row a:hover { color: var(--acid); }
.f-mega { font-size: 21.5vw; font-weight: 900; font-stretch: 125%; letter-spacing: -.06em; line-height: .78; margin: 8vh 0 0 -1.2vw; color: var(--acid); white-space: nowrap; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .hud nav, .scroll-hint { display: none; }
  .mega span { font-size: 30vw; }
  .mega-1 { top: 14vh; }
  .mega-2 { bottom: 26vh; }
  .hero-tl { top: auto; bottom: 6vh; }
  .hero-br { bottom: calc(6vh + 90px); }
  .wl a { grid-template-columns: 34px 1fr 64px; gap: 10px; mix-blend-mode: normal; }
  .wl-m { display: none; }
  .wl-type { font-size: 10px; }
  .wl-thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  #gl-hover { display: none; }
  .ac-k { flex-direction: column; }
  .p-head { flex-direction: column; align-items: flex-start; }
  .p-title { text-align: left; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { min-height: 46vh; }
  .warp { height: 520vh; }
  .fly { font-size: 18px; }
  .ring { width: 200px; height: 200px; }
  .w-pct { display: none; }
  .f-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
