/* ==========================================================================
   阈限指针 · LIMINAL POINTER — Studio Site (v2, light / editorial)
   ========================================================================== */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0b0e14;
  --ink-soft: #3b4250;
  --muted: #747d8a;
  --line: #e7e9ee;
  --line-strong: #d3d8e0;
  --accent: #1f6feb;
  --accent-soft: rgba(31, 111, 235, 0.08);
  --green: #16c47f;
  --dark: #080a0f;
  --radius: 18px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
  --sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: rgba(31, 111, 235, 0.16); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b9c0cc; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

/* Reveal ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Top bar --------------------------------------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245, 246, 248, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
}
.topbar.scrolled { background: rgba(250, 251, 252, 0.86); border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 36px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 0.98rem; font-weight: 700; letter-spacing: 0.16em; }
.brand-name em { font-style: normal; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.3em; color: var(--muted); margin-top: 3px; }

.menu { display: flex; align-items: center; gap: 30px; }
.menu a { position: relative; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.3s; }
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--ink); transition: width 0.35s var(--ease);
}
.menu a:hover, .menu a.active { color: var(--ink); }
.menu a:hover::after, .menu a.active::after { width: 100%; }

.topbar-meta { margin-left: auto; display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--muted); }
.topbar-meta b { color: var(--ink); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 196, 127, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(22, 196, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 196, 127, 0); } }

.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 6px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }

/* Hero ------------------------------------------------------------------ */
.hero { padding: 148px 0 96px; }
.hero-rule {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: clamp(48px, 7vw, 84px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }

.kicker { display: flex; align-items: center; gap: 12px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); text-transform: uppercase; }
.kicker i { width: 3px; height: 15px; background: var(--accent); display: inline-block; border-radius: 2px; }

.display { font-size: clamp(3.3rem, 8.6vw, 7.2rem); line-height: 0.98; font-weight: 800; letter-spacing: -0.025em; margin: 26px 0 0; }
.hero .display br { display: block; }
.sign { width: min(340px, 62%); height: auto; margin: 14px 0 26px; }
#sign-path { stroke-dasharray: 560; stroke-dashoffset: 560; }
.sign.in #sign-path { animation: draw 2.6s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-desc { max-width: 470px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.95; margin-bottom: 36px; }

.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s, color 0.35s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #000; transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(8, 10, 15, 0.65); }
.btn-line { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 17px 40px; font-size: 1.08rem; }

.dots { display: flex; gap: 8px; }
.dots li { width: 8px; height: 8px; border: 1px solid var(--line-strong); background: transparent; }
.dots li.on { background: var(--accent); border-color: var(--accent); }

.hero-visual { position: relative; }

.stage {
  position: relative; aspect-ratio: 5 / 4.7; border-radius: 22px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(130% 120% at 50% 0%, #171b25 0%, #05070b 62%);
  border: 1px solid #14181f;
  box-shadow: 0 50px 90px -50px rgba(8, 10, 15, 0.7);
}
.stage--wide { aspect-ratio: 16 / 9.4; }
.stage-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85% 85% at 50% 50%, #000 30%, transparent 88%);
  mask-image: radial-gradient(85% 85% at 50% 50%, #000 30%, transparent 88%);
}
.stage-ring { position: absolute; width: 66%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; animation: spin 34s linear infinite; }
.stage-ring::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-logo { position: relative; z-index: 2; width: 50%; filter: drop-shadow(0 0 40px rgba(53, 230, 255, 0.28)); animation: float 9s ease-in-out infinite; }
.stage-logo--wide { width: 82%; animation: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.stage-cap {
  position: absolute; left: 26px; right: 26px; bottom: 20px; z-index: 2;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.28em; color: rgba(255, 255, 255, 0.42);
}

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 90px); padding-top: 36px; }
.hs b { display: block; font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.hs span { display: block; margin-top: 10px; font-size: 0.84rem; color: var(--muted); }

/* Sections -------------------------------------------------------------- */
.sec { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 62px); }
.display-sm { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; margin-top: 20px; }
.sec-note { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); max-width: 300px; }
.muted { color: var(--muted); }

/* About ----------------------------------------------------------------- */
.about-top { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(40px, 6vw, 80px); align-items: end; margin-bottom: clamp(50px, 6vw, 80px); }
.statement { font-size: clamp(1.45rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.55; letter-spacing: -0.015em; }
.about-side p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.95; margin-bottom: 16px; }
.about-side .muted { color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { padding: 36px 32px 12px; border-left: 1px solid var(--line); transition: background 0.4s; }
.value:first-child { border-left: 0; padding-left: 0; }
.value:hover { background: var(--surface); }
.value i { font-style: normal; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.value b { display: block; font-size: 1.08rem; margin: 16px 0 10px; letter-spacing: -0.01em; }
.value p { color: var(--muted); font-size: 0.94rem; line-height: 1.9; }

/* Works ----------------------------------------------------------------- */
.works-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.work {
  grid-column: span 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.work:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 34px 64px -40px rgba(8, 10, 15, 0.5); }
.work-feature { grid-column: span 6; flex-direction: row; }

.work-art { position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 130% at 50% 0%, #161a23, #05070b 66%); }
.work-feature .work-art { flex: 1.1; min-height: 340px; }
.work:not(.work-feature) .work-art { aspect-ratio: 16 / 10; }
.work-art svg { width: 100%; height: 100%; }
.work-art img { width: 42%; filter: drop-shadow(0 0 30px rgba(53, 230, 255, 0.28)); }
.spin-slow { animation: spin 44s linear infinite; }
.pulse-line { stroke-dasharray: 150 650; animation: dash 3.8s linear infinite; }
@keyframes dash { from { stroke-dashoffset: 800; } to { stroke-dashoffset: 0; } }

.badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.18em; color: #fff;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.work-meta { padding: 28px; display: flex; flex-direction: column; }
.work-feature .work-meta { flex: 1; justify-content: center; gap: 24px; padding: clamp(28px, 4vw, 52px); }
.work-meta h3 { font-size: 1.24rem; letter-spacing: -0.01em; }
.work-meta h3 em { display: block; font-style: normal; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.24em; color: var(--muted); margin-top: 6px; }
.work-meta p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.9; margin-top: 12px; margin-bottom: 20px; }
.work-feature .work-meta p { max-width: 460px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tags li { font-size: 0.73rem; color: var(--muted); padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fafbfc; }

/* Studio ---------------------------------------------------------------- */
.studio-band { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 48px); align-items: stretch; }
.roster { display: flex; flex-direction: column; gap: 14px; }
.member {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.member:hover { transform: translateX(5px); border-color: var(--line-strong); }
.member img { width: 48px; height: 48px; object-fit: contain; padding: 6px; border-radius: 11px; background: #0a0d14; }
.member b { display: block; font-size: 1rem; letter-spacing: 0.02em; }
.member span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); }
.member .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2.4s var(--ease) infinite; }
.member.ghost { border-style: dashed; background: transparent; }
.member .plus { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 11px; }
.roster-note { color: var(--muted); font-size: 0.92rem; line-height: 1.95; margin-top: 8px; }

/* Tech ------------------------------------------------------------------ */
.tech-rows { border-top: 1px solid var(--line); }
.trow { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: baseline; padding: 28px 4px; border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease), background 0.4s; }
.trow:hover { padding-left: 16px; background: var(--surface); }
.trow span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; }
.trow p { font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; }

.marquee { position: relative; overflow: hidden; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.22em; color: var(--muted); white-space: nowrap; }
.marquee-track b { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.22em; color: var(--ink); font-weight: 600; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contact --------------------------------------------------------------- */
.contact-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-desc { max-width: 580px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.95; margin: 26px 0 36px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: 900px; margin-top: clamp(56px, 6vw, 80px); }
.cc { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.cc:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.cc span { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 12px; }
.cc b { font-size: 1rem; font-weight: 600; }

/* Footer ---------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 34px; height: 34px; object-fit: contain; }
.footer-brand b { display: block; font-size: 0.98rem; letter-spacing: 0.12em; }
.footer-brand span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.26em; color: var(--muted); }
.footer-copy { color: var(--muted); font-size: 0.84rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.88rem; color: var(--ink-soft); transition: color 0.3s; }
.footer-links a:hover { color: var(--ink); }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .about-top { grid-template-columns: 1fr; align-items: start; }
  .studio-band { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .work-feature { flex-direction: column; }
  .work-feature .work-art { min-height: 280px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .trow { grid-template-columns: 130px 1fr; }
}

@media (max-width: 860px) {
  .menu {
    position: absolute; top: 74px; left: 4vw; right: 4vw;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 10px; box-shadow: 0 30px 60px -30px rgba(8, 10, 15, 0.4);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: 0.35s var(--ease);
  }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { padding: 13px 14px; border-radius: 10px; }
  .menu a:hover { background: var(--bg); }
  .menu a::after { display: none; }
  .topbar-meta { margin-left: auto; }
  .burger { display: flex; }
  .brand-name { font-size: 0.9rem; }
}

@media (max-width: 620px) {
  .topbar-in { gap: 14px; height: 66px; }
  .topbar-meta .live { display: none; }
  .menu { top: 66px; }
  .hero { padding: 118px 0 72px; }
  .hero-rule { flex-direction: column; gap: 6px; }
  .display { font-size: clamp(2.8rem, 15vw, 4rem); }
  .sign { width: 70%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .trow { grid-template-columns: 1fr; gap: 8px; }
  .work-meta { padding: 22px; }
  .footer-in { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  #sign-path { stroke-dashoffset: 0; }
}
