/* ============ RUISPHERE — dark cinematic ============ */
:root {
  --bg: #0a0a0f;
  --bg-2: #101018;
  --bg-3: #16161f;
  --text: #f2efe8;
  --muted: #a7a3b8;
  --faint: #6d6a7d;
  --gold: #d4a24e;
  --gold-soft: rgba(212, 162, 78, 0.14);
  --gold-line: rgba(212, 162, 78, 0.35);
  --card: #121219;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--gold); color: #0a0a0f; }

.container { width: min(1180px, 92%); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #0a0a0f;
  padding: 10px 16px; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 38px; width: auto; display: block; flex: none; }
.logo-text {
  font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 0.14em; color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.04em; transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--gold-line); border-radius: 999px; padding: 8px 20px !important;
  color: var(--gold) !important; transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover { background: var(--gold); color: #0a0a0f !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(212, 162, 78, 0.13), transparent 60%),
    radial-gradient(700px 500px at 12% 82%, rgba(120, 60, 140, 0.12), transparent 60%),
    radial-gradient(500px 700px at 45% 110%, rgba(60, 40, 120, 0.14), transparent 60%),
    linear-gradient(180deg, #0d0d14 0%, #0a0a0f 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 3px);
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  color: var(--gold); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  line-height: 0.98; letter-spacing: 0.015em; margin-bottom: 24px;
}
.hero-title .accent { color: var(--gold); }
.hero-sub { max-width: 620px; color: var(--muted); font-size: 1.12rem; font-weight: 300; margin-bottom: 44px; }


.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 34px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #0a0a0f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212, 162, 78, 0.35); }
.btn-ghost { border-color: var(--gold-line); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: var(--gold-soft); transform: translateY(-2px); }



/* ---------- sections ---------- */
section[id] { scroll-margin-top: 96px; }
.section { padding: 110px 0; }
.section-kicker {
  color: var(--gold); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.02; letter-spacing: 0.015em; margin-bottom: 20px;
}
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; font-weight: 300; margin-bottom: 56px; }

/* ---------- hits ---------- */
.hits { background: var(--bg); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; }
.proof-list li { position: relative; padding-left: 38px; font-size: 1.5rem; font-weight: 300; line-height: 1.5; color: var(--text); }
.proof-list li::before { content: "\25B8"; position: absolute; left: 0; top: 0; color: var(--gold); }
.proof-list li strong { color: var(--gold); font-weight: 600; }
@media (max-width: 760px) {
  .proof-list { grid-template-columns: 1fr; gap: 20px; }
  .proof-list li { font-size: 1.15rem; padding-left: 28px; }
}

/* ---------- productions ---------- */
.productions { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.prod-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}
.prod-card:hover { transform: translateY(-5px); border-color: var(--gold-line); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.prod-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; line-height: 1.15; letter-spacing: 0.02em; }
.genre-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.genre-chip { font: inherit; font-size: 0.85rem; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color 0.25s, border-color 0.25s, background 0.25s; }
.genre-chip span { color: var(--gold); font-size: 0.78rem; margin-left: 4px; }
.genre-chip:hover { color: var(--text); border-color: var(--gold-line); }
.genre-chip.active { background: var(--gold); border-color: var(--gold); color: #0a0a0f; }
.genre-chip.active span { color: #0a0a0f; }

/* ---------- studio ---------- */
.studio { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.studio-quote { border-left: 3px solid var(--gold); padding: 6px 0 6px 28px; margin: 0 0 30px; max-width: 760px; }
.studio-quote p { font-size: 1.35rem; font-weight: 300; line-height: 1.6; color: var(--text); font-style: italic; }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.principle {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.3s, border-color 0.3s;
}
.principle:hover { transform: translateY(-6px); border-color: var(--gold-line); }
.principle h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; color: var(--gold); }
.principle p { color: var(--muted); font-size: 0.94rem; }

/* ---------- capabilities ---------- */
.caps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cap-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.cap-card:hover { transform: translateY(-6px); border-color: var(--gold-line); }
.cap-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent); opacity: 0.7;
}
.cap-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-soft); -webkit-text-stroke: 1px var(--gold-line); display: block; margin-bottom: 14px; }
.cap-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.cap-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- services ---------- */
.services { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  background: linear-gradient(160deg, var(--bg-3), var(--card));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 40px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.service-card h3 { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.03em; margin-bottom: 6px; }
.service-tag { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.service-card > p { color: var(--muted); margin-bottom: 22px; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-card li { padding-left: 26px; position: relative; color: var(--text); font-size: 0.95rem; }
.service-card li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }

/* ---------- process ---------- */
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.process-steps li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; position: relative; transition: transform 0.3s, border-color 0.3s;
}
.process-steps li:hover { transform: translateY(-6px); border-color: var(--gold-line); }
.step-num {
  font-family: var(--font-display); font-size: 2.2rem; color: var(--gold);
  display: block; margin-bottom: 12px;
}
.process-steps h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.process-steps p { color: var(--muted); font-size: 0.9rem; }

/* ---------- team ---------- */
.team { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 26px; text-align: center; transition: transform 0.3s, border-color 0.3s;
}
.team-card:hover { transform: translateY(-6px); border-color: var(--gold-line); }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.05em; color: var(--text);
  border: 2px solid var(--gold-line);
}
.avatar-1 { background: radial-gradient(circle at 30% 30%, #5c1230, #1c0a12); }
.avatar-2 { background: radial-gradient(circle at 30% 30%, #1d3268, #0c1428); }
.avatar-3 { background: radial-gradient(circle at 30% 30%, #0f4a4a, #081d1d); }
.avatar-4 { background: radial-gradient(circle at 30% 30%, #4b1a63, #1c0c26); }
.avatar-5 { background: radial-gradient(circle at 30% 30%, #6b3c12, #241407); }
.avatar-6 { background: radial-gradient(circle at 30% 30%, #1f4a2c, #0d1f13); }
.team-avatar { overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-zh { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.team-card h3 { font-size: 1.1rem; font-weight: 600; }
.team-role { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 6px 0 12px; }
.team-bio { color: var(--muted); font-size: 0.9rem; }


/* ---------- contact ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-info ul { list-style: none; display: flex; flex-direction: column; gap: 26px; }
.info-label { display: block; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.contact-info a { color: var(--gold); text-decoration: none; font-size: 1.15rem; font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }
.contact-info li > span:last-child { font-size: 1.15rem; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem; padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c05555; }
.field-error { color: #d98a8a; font-size: 0.85rem; margin-top: 6px; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 0.95rem; padding: 14px 18px; border-radius: 10px; }
.form-note.success { background: rgba(212, 162, 78, 0.12); border: 1px solid var(--gold-line); color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { color: var(--faint); font-size: 0.9rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98); backdrop-filter: blur(14px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 4%;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: 15px 8px; font-size: 1rem; }
  .nav-cta { border: none !important; padding: 15px 8px !important; color: var(--gold) !important; border-radius: 0; }
  .caps-grid, .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .studio-quote p { font-size: 1.12rem; }
}
@media (max-width: 460px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- quick contact ---------- */
.quick-contact { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.qc-item { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.qc-info { background: #fff; color: #0a0a0f; font-size: 0.9rem; font-weight: 500; white-space: nowrap; padding: 12px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
.qc-item:hover .qc-info, .qc-item:focus-visible .qc-info { opacity: 1; visibility: visible; transform: translateX(0); }
.qc-btn { display: flex; align-items: center; gap: 10px; height: 56px; width: 56px; padding-left: 16px; padding-right: 14px; background: var(--gold); color: #0a0a0f; border-radius: 28px 0 0 28px; overflow: hidden; white-space: nowrap; transition: width 0.3s cubic-bezier(0.2, 0.7, 0.3, 1); }
.qc-btn svg { width: 24px; height: 24px; flex: none; }
.qc-label { font-size: 0.92rem; font-weight: 600; opacity: 0; transition: opacity 0.2s; }
.qc-item:hover .qc-btn, .qc-item:focus-visible .qc-btn { width: 150px; }
.qc-item:hover .qc-label, .qc-item:focus-visible .qc-label { opacity: 1; }
.qc-top { display: none; }
.qc-top.show { display: flex; }
@media (max-width: 760px) {
  .qc-btn { height: 48px; width: 48px; padding-left: 12px; padding-right: 12px; }
  .qc-btn svg { width: 22px; height: 22px; }
  .qc-item:hover .qc-btn, .qc-item:focus-visible .qc-btn { width: 132px; }
  .qc-info { font-size: 0.82rem; padding: 10px 12px; }
}

/* ---------- production demo frames ---------- */
.demo-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; background: linear-gradient(160deg, #1e1e2a, #0c0c12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: pointer; overflow: hidden; }
.demo-frame:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.demo-play { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: #0a0a0f; display: flex; align-items: center; justify-content: center; transition: transform 0.25s; }
.demo-frame:hover .demo-play { transform: scale(1.08); }
.demo-play svg { width: 22px; height: 22px; margin-left: 3px; }
.demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.demo-video:fullscreen { object-fit: contain; }
.demo-frame .prod-name, .demo-frame .demo-play { position: relative; z-index: 1; }
.demo-frame.playing .prod-name, .demo-frame.playing .demo-play { display: none; }
