/* =========================================================
   分裂细胞 Cells of Division — HIGH PATH
   ========================================================= */

:root {
  --bg: #0a0a0c;
  --bg-soft: #101014;
  --ink: #f4f4ee;
  --muted: rgba(244, 244, 238, .62);
  --faint: rgba(244, 244, 238, .38);
  --line: rgba(244, 244, 238, .12);
  --accent: #d9ff43;
  --accent-ink: #0a0a0c;
  --violet: #7c5cff;
  --green: #3ee07f;
  --radius: 18px;
  --max: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 12, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}
.brand img {
  width: auto;
  height: 52px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  letter-spacing: .02em;
}
.site-nav > a { color: var(--muted); transition: color .2s; }
.site-nav > a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .2s, border-color .2s;
}
.nav-cta:hover { background: rgba(244, 244, 238, .08); border-color: rgba(244, 244, 238, .3); }
.nav-cta svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 10, 12, .4);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 64px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .5;
  filter: saturate(.85) contrast(1.05);
  transform: scale(1.03);
}

.hero-grain {
  z-index: -1;
  background:
    radial-gradient(90% 70% at 15% 20%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(70% 60% at 90% 85%, rgba(217, 255, 67, .1), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 12, .45) 0%, rgba(10, 10, 12, .72) 55%, var(--bg) 96%),
    linear-gradient(90deg, rgba(10, 10, 12, .88) 0%, rgba(10, 10, 12, .35) 55%, rgba(10, 10, 12, .55) 100%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title { margin: 18px 0 0; }

.title-cn {
  display: block;
  font-size: clamp(58px, 9.5vw, 132px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: .04em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .45);
}

.title-en {
  display: block;
  margin-top: 16px;
  font-size: clamp(13px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: .52em;
  color: var(--muted);
}

.hero-tagline {
  margin-top: 28px;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: .04em;
}
.hero-tagline i { color: var(--accent); font-style: normal; padding: 0 6px; }

.hero-lead {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; fill: currentColor; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #e6ff70; }

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(244, 244, 238, .04);
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(244, 244, 238, .34); background: rgba(244, 244, 238, .09); }

.hero-stats {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--faint);
}
.hero-stats dd {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
}

.scroll-hint {
  position: absolute;
  right: max(24px, calc((100% - var(--max)) / 2));
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--faint);
}
.scroll-hint i {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--faint), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .25; transform: scaleY(.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Spec band ---------- */

.spec-band {
  background: var(--accent);
  color: var(--accent-ink);
  border-block: 1px solid rgba(0, 0, 0, .15);
}

.spec-list {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px clamp(24px, 5vw, 64px);
  padding: 15px 0;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .14em;
}

.spec-list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.spec-list li + li::before {
  content: "✦";
  margin-right: 10px;
  font-size: 10px;
  opacity: .5;
}

/* ---------- Sections ---------- */

.section {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(80px, 11vw, 132px) 0;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2,
.studio-copy h2,
.follow h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: .01em;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.about-copy .lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  color: rgba(244, 244, 238, .86);
}
.about-copy .lead strong { color: var(--ink); }
.about-copy > p + p {
  margin-top: 20px;
  color: var(--muted);
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.about-meta li { display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.about-meta span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--faint);
}

.about-quote {
  position: relative;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(124, 92, 255, .18), transparent 55%),
    var(--bg-soft);
}
.about-quote::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 18px;
  font-size: 84px;
  line-height: 1;
  color: var(--accent);
  opacity: .3;
}
.about-quote blockquote {
  position: relative;
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 800;
  line-height: 1.5;
}
.about-quote figcaption {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--faint);
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(244, 244, 238, .035), rgba(244, 244, 238, .012));
  overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.feature-card:hover {
  border-color: rgba(217, 255, 67, .35);
  background: linear-gradient(180deg, rgba(217, 255, 67, .06), rgba(244, 244, 238, .015));
  transform: translateY(-4px);
}

.feature-no {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 238, .14);
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .02em;
}
.feature-sub {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.feature-card > p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.mode-card {
  padding: 38px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.mode-survival { background: radial-gradient(100% 100% at 100% 0%, rgba(124, 92, 255, .3), transparent 60%), var(--bg-soft); }
.mode-maze { background: radial-gradient(100% 100% at 100% 0%, rgba(62, 224, 127, .22), transparent 60%), var(--bg-soft); }

.mode-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--faint);
}
.mode-card h3 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
}
.mode-card > p:not(.mode-tag) {
  margin-top: 12px;
  color: var(--muted);
  max-width: 460px;
}
.mode-card ul {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.mode-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 244, 238, .78);
}
.mode-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.shot {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
}
.shot-wide { grid-column: 1 / -1; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .3s;
  opacity: .92;
}
.shot:hover img { transform: scale(1.04); opacity: 1; }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 0 var(--accent);
  transition: box-shadow .3s;
  pointer-events: none;
  border-radius: inherit;
}
.shot:hover::after { box-shadow: inset 0 0 0 1px rgba(217, 255, 67, .5); }

.gallery-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(4, 4, 6, .86);
  backdrop-filter: blur(6px);
}
.lightbox img {
  width: 100%;
  max-height: calc(100vh - 34px);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, .7);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Studio ---------- */

.studio { padding-top: 0; }

.studio-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(217, 255, 67, .08), transparent 50%),
    radial-gradient(80% 120% at 100% 100%, rgba(124, 92, 255, .16), transparent 55%),
    var(--bg-soft);
}

.studio-brand img {
  width: 100%;
  max-width: 270px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4));
}

.studio-copy h2 span {
  display: block;
  font-size: .42em;
  letter-spacing: .34em;
  color: var(--accent);
  margin-top: 8px;
}
.studio-copy > p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 560px;
}
.studio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.studio-links a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
.studio-links a:hover { color: var(--ink); border-color: rgba(244, 244, 238, .3); }

/* ---------- Follow ---------- */

.follow { padding-top: 0; }

.follow-inner {
  padding: clamp(40px, 7vw, 80px) clamp(28px, 6vw, 72px);
  border-radius: 24px;
  background: linear-gradient(120deg, #16161c, #0d0d10 55%, #0d0d10);
  border: 1px solid var(--line);
}
.follow h2 { max-width: 700px; }

.follow-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.follow-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(244, 244, 238, .03);
  transition: transform .3s var(--ease), border-color .2s, background .2s;
}
.follow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 255, 67, .4);
  background: rgba(217, 255, 67, .05);
}
.follow-card .icon {
  width: 30px;
  height: 30px;
  flex: none;
  fill: currentColor;
}
.follow-card span {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}
.follow-card small {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
}
.follow-card i {
  margin-left: auto;
  font-style: normal;
  font-size: 20px;
  color: var(--faint);
  transition: transform .2s, color .2s;
}
.follow-card:hover i { transform: translateX(4px); color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 12px; opacity: .9; }
.footer-brand p { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.footer-meta {
  text-align: right;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-meta .icp a { color: var(--muted); transition: color .2s; }
.footer-meta .icp a:hover { color: var(--accent); }
.footer-meta .icp span { margin: 0 8px; }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .studio-inner { grid-template-columns: 1fr; }
  .studio-brand img { max-width: 180px; }
  .scroll-hint { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }

  .brand img { height: 42px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: rgba(10, 10, 12, .96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .site-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(244, 244, 238, .07);
  }
  .nav-cta {
    justify-content: center;
    margin-top: 16px;
    border-bottom: 0 !important;
    background: var(--accent);
    color: var(--accent-ink) !important;
  }

  .spec-list {
    gap: 6px 26px;
    padding: 14px 0;
    font-size: 12.5px;
    letter-spacing: .1em;
  }
  .spec-list li + li::before { content: none; }

  .hero { min-height: 92vh; min-height: 92svh; padding-top: calc(var(--header-h) + 48px); }
  .hero-media img { object-position: 58% 40%; opacity: .42; }

  .title-cn { font-size: clamp(52px, 15vw, 84px); }
  .title-en { letter-spacing: .34em; font-size: 11px; }

  .hero-stats {
    gap: 24px;
    margin-top: 38px;
    padding-top: 20px;
  }
  .hero-stats dt { font-size: 10px; letter-spacing: .08em; }

  .btn { padding: 13px 20px; font-size: 14px; }

  .feature-grid,
  .mode-grid,
  .follow-actions { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }

  .about-meta { grid-template-columns: 1fr 1fr; }

  .studio-inner { padding: 28px 22px; }
  .follow-inner { padding: 34px 22px; }
  .follow-card { padding: 20px; }
  .follow-card .icon { width: 26px; height: 26px; }

  .footer-inner { flex-direction: column; gap: 26px; }
  .footer-meta { text-align: left; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
