/* PIXBOK v2 — clean international-style marketing site */

:root {
  --brand: #8b3fd9;
  --brand-dark: #6f2eb8;
  --brand-soft: #f4edff;
  --brand-glow: rgba(139, 63, 217, 0.12);
  --pink: #ff6b9d;
  --ink: #111118;
  --ink-2: #4b4f5e;
  --ink-3: #8b90a0;
  --line: rgba(17, 17, 24, 0.08);
  --bg: #ffffff;
  --bg-2: #faf9fc;
  --surface: #ffffff;
  --surface-muted: #f5f3fa;
  --nav-scrolled-bg: rgba(255, 255, 255, 0.82);
  --card-meta-bg: linear-gradient(180deg, #ffffff 0%, #fdfbff 100%);
  --card-meta-border: rgba(17, 17, 24, 0.05);
  --card-title: var(--ink);
  --card-stat: var(--brand);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(17, 17, 24, 0.06);
  --shadow-sm: 0 8px 24px rgba(139, 63, 217, 0.08);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-bg: rgba(16, 16, 22, 0.38);
  --glass-bg-hover: rgba(22, 22, 30, 0.46);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-hover: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  --glass-blur: blur(8px) saturate(1.04);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html.i18n-pending:not(.i18n-ready) body { visibility: hidden; }
html { scroll-behavior: smooth; }
html:has(body.has-scroll-video) { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  touch-action: none;
  overscroll-behavior: none;
}
body.modal-open { overflow: hidden; }
body.is-page-loading { overflow: hidden; }

/* ── Page loader (home) ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(139, 63, 217, 0.14), transparent 68%),
    #050508;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader.is-decoding .page-loader__text {
  animation: loader-text-pulse 1.2s ease-in-out infinite;
}
.page-loader.is-decoding .page-loader__ring {
  animation-duration: 0.75s;
}
@keyframes loader-text-pulse {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}
.page-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px 12px;
}
.page-loader__visual {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}
.page-loader__logo {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(139, 63, 217, 0.28));
}
.page-loader__ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(139, 63, 217, 0.14);
  border-top-color: rgba(212, 168, 255, 0.92);
  border-right-color: rgba(139, 63, 217, 0.42);
  animation: loader-spin 1.05s linear infinite;
}
.page-loader__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139, 63, 217, 0.28);
  animation: loader-pulse 2s ease-out infinite;
}
.page-loader__pulse:nth-child(2) {
  animation-delay: 0.9s;
}
.page-loader__text {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes loader-pulse {
  0% {
    transform: scale(0.72);
    opacity: 0.72;
  }
  70%, 100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

/* ── Scroll video background (home) ── */
.has-scroll-video { background: #050508; }
.scroll-video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050508 center / cover no-repeat;
  pointer-events: none;
}
.scroll-video-stage.has-poster {
  background-size: cover;
  background-position: center;
}
.scroll-video-stage.is-video-ready.has-poster {
  background-image: none !important;
}
.scroll-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scroll-video-dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.scroll-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.5) 0%, rgba(5, 5, 8, 0.08) 42%, rgba(5, 5, 8, 0.62) 100%),
    radial-gradient(ellipse 80% 55% at 50% 45%, transparent 25%, rgba(5, 5, 8, 0.28) 100%);
}
.has-scroll-video .site-nav {
  position: fixed;
  z-index: 100;
}
.has-scroll-video main,
.has-scroll-video .site-footer {
  position: relative;
  z-index: 1;
}
.has-scroll-video .hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 96px;
  background: transparent;
}
.has-scroll-video .hero .container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
  padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
}
.has-scroll-video .hero-grid {
  grid-template-columns: 1fr;
  width: 100%;
}
.has-scroll-video .hero-showcase { display: none; }
.has-scroll-video .hero-copy {
  max-width: 620px;
  padding-inline: 4px;
}
.has-scroll-video .hero-copy .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.has-scroll-video .hero h1 { color: #fff; }
.has-scroll-video .hero h1 .accent {
  background: linear-gradient(135deg, #e4c4ff, #ff9ec0);
  -webkit-background-clip: text;
  background-clip: text;
}
.has-scroll-video .hero-lead { color: rgba(255, 255, 255, 0.84); }
.has-scroll-video .hero-points { color: rgba(255, 255, 255, 0.62); }
.has-scroll-video .hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.has-scroll-video .hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.has-scroll-video .section,
.has-scroll-video .section-alt,
.has-scroll-video #contact.section {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
}
.has-scroll-video .site-footer {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.has-scroll-video .section-head h2 {
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.42);
}
.has-scroll-video .section-head p {
  color: rgba(255, 255, 255, 0.76);
}
.has-scroll-video .feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.has-scroll-video .feature-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.has-scroll-video .feature-card h3 {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}
.has-scroll-video .feature-card p {
  color: rgba(255, 255, 255, 0.68);
}
.has-scroll-video .feature-icon {
  background: rgba(139, 63, 217, 0.16);
  border: 1px solid rgba(139, 63, 217, 0.28);
  color: #d8b8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.has-scroll-video .skills-kicker {
  color: #e4ccff;
  background: rgba(139, 63, 217, 0.18);
  border-color: rgba(192, 132, 252, 0.28);
}
.has-scroll-video .skill-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.has-scroll-video .skill-panel:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.has-scroll-video .skill-panel h3 {
  color: rgba(255, 255, 255, 0.96);
}
.has-scroll-video .skill-tagline {
  color: #d8b8ff;
}
.has-scroll-video .skill-desc {
  color: rgba(255, 255, 255, 0.68);
}
.has-scroll-video .skill-badge {
  color: #e4ccff;
  background: rgba(139, 63, 217, 0.16);
  border-color: rgba(192, 132, 252, 0.24);
}
.has-scroll-video .skill-device {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 70px rgba(109, 40, 217, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.has-scroll-video .skill-flow {
  border-color: rgba(192, 132, 252, 0.24);
  background: rgba(139, 63, 217, 0.1);
  color: rgba(255, 255, 255, 0.72);
}
.has-scroll-video .skill-flow span:not(.skill-flow-arrow) {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.has-scroll-video .skill-note {
  color: rgba(255, 255, 255, 0.62);
}
.has-scroll-video .step {
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.has-scroll-video .step h3 {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}
.has-scroll-video .step p {
  color: rgba(255, 255, 255, 0.68);
}
.has-scroll-video .step-num {
  background: rgba(139, 63, 217, 0.2);
  border: 1px solid rgba(139, 63, 217, 0.32);
  color: #e4ccff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.has-scroll-video .section-cta {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.has-scroll-video .section-cta h2 {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: none;
}
.has-scroll-video .section-cta p {
  color: rgba(255, 255, 255, 0.68);
  text-shadow: none;
}
.has-scroll-video .ribbon-card-inner {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.has-scroll-video .card-ribbon-hint {
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.has-scroll-video .section .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.has-scroll-video .section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.has-scroll-video .footer-brand .brand,
.has-scroll-video .footer-col h4 {
  color: rgba(255, 255, 255, 0.95);
}
.has-scroll-video .footer-brand p,
.has-scroll-video .footer-col a,
.has-scroll-video .footer-bottom,
.has-scroll-video .footer-bottom a {
  color: rgba(255, 255, 255, 0.68);
}
.has-scroll-video .footer-col a:hover {
  color: #fff;
}
.has-scroll-video .card-fan::before {
  background: radial-gradient(ellipse 70% 55% at 50% 88%, rgba(139, 63, 217, 0.2), transparent 72%);
}
.has-scroll-video .scroll-video-overlay {
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.48) 0%, rgba(5, 5, 8, 0.06) 38%, rgba(5, 5, 8, 0.42) 100%),
    radial-gradient(ellipse 80% 55% at 50% 45%, transparent 32%, rgba(5, 5, 8, 0.16) 100%);
}
.has-scroll-video .site-nav:not(.is-scrolled) {
  border-color: rgba(255, 255, 255, 0.08);
}
.has-scroll-video .site-nav:not(.is-scrolled) .brand,
.has-scroll-video .site-nav:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.92);
}
.has-scroll-video .site-nav:not(.is-scrolled) .nav-link:hover,
.has-scroll-video .site-nav:not(.is-scrolled) .nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.has-scroll-video .site-nav:not(.is-scrolled) .lang-switch {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}
.has-scroll-video .site-nav:not(.is-scrolled) .lang-btn { color: rgba(255, 255, 255, 0.72); }
.has-scroll-video .site-nav:not(.is-scrolled) .lang-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.has-scroll-video .site-nav:not(.is-scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
.has-scroll-video .site-nav:not(.is-scrolled) .nav-toggle span { background: #fff; }
.has-scroll-video .site-nav:not(.is-scrolled) .nav-actions .btn-ghost.nav-link {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.has-scroll-video .site-nav:not(.is-scrolled) .nav-actions .btn-ghost.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
/* Mobile menu open at hero top: override transparent nav so close (X) stays visible */
body.has-scroll-video.nav-open .site-nav:not(.is-scrolled) .nav-toggle {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
body.has-scroll-video.nav-open .site-nav:not(.is-scrolled) .nav-toggle span {
  background: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
  box-shadow: 0 4px 24px rgba(17, 17, 24, 0.04);
}
.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
  min-width: 0;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.is-active { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  gap: 2px;
}
.lang-btn {
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  transition: background 0.2s, color 0.2s;
}
.lang-btn.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.lang-btn:hover:not(.is-active) { color: var(--ink-2); }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #a855f7);
  box-shadow: 0 10px 28px var(--brand-glow);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(139, 63, 217, 0.22); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}
.btn-ghost:hover { border-color: rgba(139, 63, 217, 0.25); color: var(--brand); }
.btn-block { width: 100%; }

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-h) + 56px) 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(139, 63, 217, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(255, 107, 157, 0.05), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.hero-showcase {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  overflow: visible;
}
.hero-blob {
  position: absolute;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 63, 217, 0.16) 0%, rgba(255, 107, 157, 0.06) 45%, transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}
.hero-brand-card {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(139, 63, 217, 0.06),
    0 24px 48px rgba(139, 63, 217, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #8b3fd9;
}
.hero-brand-card img {
  width: 100%;
  height: auto;
  max-width: 750px;
  display: block;
}
.hero-float {
  position: absolute;
  z-index: 3;
  width: 132px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid #fff;
  box-shadow: 0 16px 40px rgba(17, 17, 24, 0.14);
  transition: transform 0.4s var(--ease);
}
.hero-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-float--tl {
  top: 6%;
  left: -10%;
  transform: rotate(-7deg);
}
.hero-float--br {
  bottom: 4%;
  right: -8%;
  transform: rotate(8deg);
}
.hero-showcase:hover .hero-float--tl { transform: rotate(-5deg) translateY(-4px); }
.hero-showcase:hover .hero-float--br { transform: rotate(6deg) translateY(-4px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.75;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-3);
  font-size: 0.88rem;
}
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Sections ── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--ink-2); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 63, 217, 0.15);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

/* ── PIXBOK Skills ── */
.skills-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(139, 63, 217, 0.18);
}
.skill-showcase {
  display: grid;
  gap: clamp(22px, 3vw, 30px);
}
.skill-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(139, 63, 217, 0.08), transparent 58%),
    var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.skill-panel--motion {
  background:
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(236, 72, 153, 0.07), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(139, 63, 217, 0.06), transparent 58%),
    var(--surface);
}
.skill-panel--reverse {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
}
.skill-panel--reverse .skill-panel__visual { grid-column: 1; grid-row: 1; }
.skill-panel--reverse .skill-panel__copy { grid-column: 2; grid-row: 1; }
.skill-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 63, 217, 0.2);
}
.skill-panel__copy {
  position: relative;
  min-width: 0;
  padding: 4px 0;
  justify-self: start;
  max-width: min(100%, 42ch);
}
.skill-panel--reverse .skill-panel__copy {
  justify-self: end;
  text-align: left;
}
.skill-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(139, 63, 217, 0.08);
  border: 1px solid rgba(139, 63, 217, 0.14);
}
.skill-badge--vip {
  color: #7c3aed;
  background: linear-gradient(135deg, rgba(139, 63, 217, 0.12), rgba(236, 72, 153, 0.1));
  border-color: rgba(139, 63, 217, 0.2);
}
.skill-panel h3 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
}
.skill-tagline {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.skill-desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 38ch;
}
.skill-panel__visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.skill-panel--reverse .skill-panel__visual {
  justify-content: flex-start;
}
.skill-device {
  position: relative;
  width: min(100%, 300px);
  margin-inline: 0;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(165deg, #ffffff 0%, #f7f2ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 26px 64px rgba(109, 40, 217, 0.2),
    0 10px 24px rgba(17, 17, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.skill-panel--reverse .skill-device {
  transform: perspective(1200px) rotateY(4deg) rotateX(2deg);
}
.skill-panel:hover .skill-device {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-6px);
  box-shadow:
    0 34px 78px rgba(109, 40, 217, 0.26),
    0 14px 30px rgba(17, 17, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.skill-device--motion {
  box-shadow:
    0 26px 64px rgba(124, 58, 237, 0.22),
    0 10px 24px rgba(236, 72, 153, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.skill-device__glow {
  position: absolute;
  inset: 12% 8% -10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.34), transparent 72%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}
.skill-device--motion .skill-device__glow {
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.28), rgba(236, 72, 153, 0.18), transparent 72%);
}
.skill-device img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  background: #fff;
}
.skill-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px dashed rgba(139, 63, 217, 0.22);
  background: linear-gradient(135deg, rgba(139, 63, 217, 0.05), rgba(168, 85, 247, 0.03));
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}
.skill-flow span:not(.skill-flow-arrow) {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.skill-flow-arrow {
  color: var(--brand);
  font-size: 0.9rem;
  opacity: 0.8;
}
.skill-note {
  margin: 18px 0 0;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
  padding: 24px 16px;
}
.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step h3 { margin: 0 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }

/* ── Feed preview ── */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feed-card,
.explore-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.explore-card {
  cursor: pointer;
  border-radius: 14px;
  border-color: rgba(17, 17, 24, 0.06);
  box-shadow: 0 8px 24px rgba(17, 17, 24, 0.06);
}
.feed-card:hover,
.explore-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.explore-card:hover {
  border-color: rgba(17, 17, 24, 0.08);
  box-shadow: 0 12px 30px rgba(17, 17, 24, 0.08);
}
.feed-card-media,
.explore-card-media {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg-2);
  overflow: hidden;
}
.feed-card-media img,
.explore-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(139, 63, 217, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(139, 63, 217, 0.25);
}
.feed-card-body { padding: 12px 14px 14px; }
.feed-card-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Home card ribbon ── */
.card-ribbon-scene {
  position: relative;
  margin: 4px 0 0;
}
.card-ribbon-viewport {
  overflow: hidden;
  padding: 28px 0 12px;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.card-ribbon-viewport.is-dragging { cursor: grabbing; }
.card-ribbon-track {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.card-ribbon-track.is-sliding {
  transition: transform 0.72s var(--ease);
}
.card-ribbon-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.ribbon-card {
  flex: 0 0 clamp(148px, 28vw, 188px);
  text-decoration: none;
  color: inherit;
  transform: translateZ(0);
}
.ribbon-card-inner {
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: ribbon-card-drift 6.2s ease-in-out infinite;
  animation-delay: calc(var(--flag-i, 0) * -0.52s);
  transform-origin: center center;
  will-change: transform;
}
.ribbon-card-flag {
  border-radius: inherit;
  overflow: hidden;
  transform-origin: center center;
  transform-style: preserve-3d;
  animation: ribbon-flag-wave 5.2s ease-in-out infinite;
  animation-delay: calc(var(--flag-i, 0) * -0.6s);
  will-change: transform;
}
.ribbon-card .fan-card-media {
  border-radius: inherit;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: transparent;
}
.ribbon-card-flag .fan-card-media img {
  transform: scale(1.06);
}
@keyframes ribbon-card-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-0.25deg);
  }
  28% {
    transform: translate3d(0, -7px, 0) rotate(0.55deg);
  }
  56% {
    transform: translate3d(0, 3px, 0) rotate(-0.45deg);
  }
  78% {
    transform: translate3d(0, -4px, 0) rotate(0.35deg);
  }
}
@keyframes ribbon-flag-wave {
  0%, 100% {
    transform: perspective(680px) rotateY(0deg) rotateX(0deg) skewX(0deg) translateY(0);
  }
  25% {
    transform: perspective(680px) rotateY(5deg) rotateX(0.8deg) skewX(0.9deg) translateY(-3px);
  }
  50% {
    transform: perspective(680px) rotateY(-4deg) rotateX(-0.6deg) skewX(-0.7deg) translateY(2px);
  }
  75% {
    transform: perspective(680px) rotateY(4.5deg) rotateX(0.7deg) skewX(0.75deg) translateY(-2px);
  }
}
.ribbon-card:hover .ribbon-card-inner {
  box-shadow: none;
}
.ribbon-card--placeholder {
  flex: 1 1 auto;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ── Home card fan (legacy, explore may reuse fan-card parts) ── */
.card-fan-scene {
  position: relative;
  margin: 4px -8px 0;
  padding: 8px 0 0;
}
.card-fan-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.card-fan {
  position: relative;
  flex: 1 1 auto;
  width: min(100%, 820px);
  height: clamp(350px, 52vw, 440px);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  perspective: 1800px;
  perspective-origin: center 84%;
  transform-style: preserve-3d;
}
.card-fan:active { cursor: grabbing; }
.card-fan:focus-visible {
  outline: 2px solid rgba(139, 63, 217, 0.35);
  outline-offset: 6px;
  border-radius: 24px;
}
.card-fan::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(90%, 560px);
  height: 56px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 63, 217, 0.16), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.card-fan-hint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.fan-nav {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(139, 63, 217, 0.18);
  background: var(--surface);
  color: var(--brand);
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(139, 63, 217, 0.1);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.fan-nav:hover {
  transform: scale(1.06);
  border-color: rgba(139, 63, 217, 0.35);
  box-shadow: 0 10px 24px rgba(139, 63, 217, 0.16);
}
.fan-card {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: clamp(162px, 29vw, 232px);
  text-decoration: none;
  color: inherit;
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(139, 63, 217, 0.14);
  box-shadow:
    0 2px 6px rgba(17, 17, 24, 0.05),
    0 16px 40px rgba(139, 63, 217, 0.13);
  transform-origin: center bottom;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    transform 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease,
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  will-change: transform, opacity;
}
.fan-card.is-no-transition {
  transition: none !important;
}
.fan-card.is-animating-front {
  z-index: 50 !important;
}
.fan-card.is-animating-back {
  z-index: 3 !important;
}
.fan-card.is-center {
  border-color: rgba(139, 63, 217, 0.28);
  box-shadow:
    0 6px 16px rgba(139, 63, 217, 0.1),
    0 24px 52px rgba(139, 63, 217, 0.2);
}
.fan-card-media {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg-2);
  overflow: hidden;
}
.fan-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.fan-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(139, 63, 217, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(139, 63, 217, 0.25);
}
.fan-card-body {
  padding: 11px 14px 13px;
  background: linear-gradient(180deg, #fff 0%, #fdfbff 100%);
}
.fan-card-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fan-card--placeholder {
  left: 50%;
  bottom: 50%;
  width: 200px;
  transform: translate(-50%, 50%) !important;
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 0.88rem;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  box-shadow: none;
  z-index: 1;
}

.section-cta {
  text-align: center;
  padding: 64px 32px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(139, 63, 217, 0.06), rgba(255, 107, 157, 0.04));
  border: 1px solid rgba(139, 63, 217, 0.1);
}
.section-cta h2 { margin: 0 0 10px; font-size: 1.8rem; letter-spacing: -0.03em; }
.section-cta p { margin: 0 0 24px; color: var(--ink-2); }

/* ── Explore page ── */
.page-hero {
  padding: calc(var(--nav-h) + 40px) 0 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -0.03em; }
.page-hero p { margin: 0; color: var(--ink-2); }
.explore-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 20px;
  flex-wrap: wrap;
}
.tabs { display: flex; gap: 8px; }
.tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--surface);
}
.tab.is-active {
  background: var(--brand-soft);
  border-color: rgba(139, 63, 217, 0.2);
  color: var(--brand-dark);
}
.explore-stage {
  position: relative;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.masonry-grid {
  display: flex !important;
  align-items: flex-start;
  gap: 18px;
}
.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.masonry-col > .gallery-card,
.masonry-col > .explore-card,
.masonry-col > .gallery-skeleton {
  margin: 0;
  width: 100%;
}
.masonry-col > .gallery-card.is-reveal-pending,
.masonry-col > .explore-card.is-reveal-pending {
  opacity: 0;
}
.masonry-col > .gallery-card.is-visible,
.masonry-col > .explore-card.is-visible {
  opacity: 1;
  transition: opacity 0.58s ease;
}
.masonry-grid .explore-card-media,
.masonry-grid .gallery-card-media {
  background: #f0ecf8;
}
.masonry-grid .explore-card-media img,
.masonry-grid .gallery-card-media img,
.gallery-card-videoframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.62s ease;
}
.masonry-grid .explore-card-media img.is-loaded,
.masonry-grid .gallery-card-media img.is-loaded,
.gallery-card-videoframe.is-loaded {
  opacity: 1;
}
.masonry-grid .explore-empty {
  width: 100%;
}
.gallery-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 8px;
  flex-wrap: wrap;
}
.gallery-status,
#explore-status.gallery-status {
  text-align: center;
  color: var(--ink-3);
  font-size: 0.86rem;
  min-height: 1.4em;
  margin-top: 8px;
}
.feed-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 12px;
}
.feed-sentinel.is-busy {
  height: 42px;
  position: relative;
}
.feed-sentinel.is-busy::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 14px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: rgba(139, 63, 217, 0.18);
  animation: feed-loading-pulse 1.1s ease-in-out infinite;
}
@keyframes feed-loading-pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.45; }
  50% { transform: scale(1); opacity: 1; }
}
.gallery-card-badge.is-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #8b3fd9 0%, #a855f7 100%);
  color: #fff;
  left: auto;
  right: 12px;
  top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(139, 63, 217, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gallery-card-badge.is-video::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #fff;
  opacity: 0.95;
  flex-shrink: 0;
}
.gallery-card-media.is-video::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.22));
}
.gallery-lightbox__video {
  max-width: min(92vw, 1180px);
  max-height: calc(100vh - 180px);
  width: auto;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  background: #000;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.32s ease, transform 0.38s ease;
  cursor: zoom-in;
}
.gallery-lightbox__video.is-ready {
  opacity: 1;
  transform: scale(1);
}
.explore-card-meta {
  padding: 12px 14px 14px;
}
.explore-peek {
  position: relative;
  margin-top: 4px;
}
.explore-peek-stage {
  position: relative;
  height: var(--peek-total, 144px);
  overflow: hidden;
}
.explore-peek-grid {
  --peek-solid: 36px;
  --peek-fade: 108px;
  --peek-total: calc(var(--peek-solid) + var(--peek-fade));
}
.explore-peek-grid .explore-card {
  pointer-events: auto;
  border-color: transparent;
  box-shadow: none;
}
.explore-peek-grid .explore-card-meta { display: none; }
.explore-peek-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0) calc(var(--peek-solid) * 0.42),
    rgba(255, 255, 255, 0.52) calc(var(--peek-solid) + var(--peek-fade) * 0.2),
    rgba(255, 255, 255, 0.86) calc(var(--peek-solid) + var(--peek-fade) * 0.48),
    #ffffff calc(var(--peek-solid) + var(--peek-fade) * 0.78)
  );
}
.explore-peek .explore-load-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 20px;
  padding: 0 0 4px;
  background: none;
}
.explore-hidden {
  display: none !important;
}
.explore-more-btn {
  min-width: 148px;
  box-shadow: 0 12px 28px var(--brand-glow);
  pointer-events: auto;
}
.explore-card-meta {
  padding: 14px 16px 16px;
  background: var(--card-meta-bg);
  border-top: 1px solid var(--card-meta-border);
}
.explore-card-title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--card-title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.explore-card-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.explore-card-stat {
  color: var(--card-stat);
  font-weight: 600;
}
.explore-empty,
#explore-status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-3);
  padding: 40px 0;
}
#explore-status { padding: 12px 0 0; }

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(17, 17, 24, 0.45);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.2rem;
  line-height: 1;
  z-index: 2;
}

/* ── Mini program QR modal ── */
.mp-modal {
  --mp-bg-top: #ffffff;
  --mp-bg-bottom: #fdfbff;
  --mp-ink: #111118;
  --mp-ink-2: #4b4f5e;
  --mp-line: rgba(17, 17, 24, 0.08);
  --mp-tip-bg: rgba(139, 63, 217, 0.05);
  --mp-tip-border: rgba(139, 63, 217, 0.08);
  --mp-close-bg: #ffffff;
  --mp-close-ink: #111118;
  --mp-eyebrow-bg: #f4edff;
  --mp-eyebrow-ink: #6f2eb8;
}
.mp-modal-panel {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: linear-gradient(180deg, #fff 0%, #fdfbff 100%);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(139, 63, 217, 0.12);
  box-shadow:
    0 24px 64px rgba(17, 17, 24, 0.12),
    0 8px 28px rgba(139, 63, 217, 0.14);
  padding: 32px 28px 24px;
  text-align: center;
}
.mp-modal .mp-modal-panel {
  background: linear-gradient(180deg, var(--mp-bg-top) 0%, var(--mp-bg-bottom) 100%);
  border-color: rgba(139, 63, 217, 0.12);
}
.mp-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.mp-modal .mp-modal-eyebrow {
  background: var(--mp-eyebrow-bg);
  color: var(--mp-eyebrow-ink);
}
.mp-modal-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.mp-modal .mp-modal-title {
  color: var(--mp-ink);
}
.mp-modal-lead {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
}
.mp-modal .mp-modal-lead {
  color: var(--mp-ink-2);
}
.mp-wechat-hint {
  display: none;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(139, 63, 217, 0.08);
  border: 1px solid rgba(139, 63, 217, 0.14);
  color: var(--brand-dark);
  font-size: 0.86rem;
  line-height: 1.45;
}
.mp-modal .mp-wechat-hint {
  color: var(--mp-eyebrow-ink);
  background: var(--mp-tip-bg);
  border-color: var(--mp-tip-border);
}
.mp-modal.is-wechat .mp-wechat-hint { display: block; }
.mp-modal .modal-close {
  background: var(--mp-close-bg);
  border-color: var(--mp-line);
  color: var(--mp-close-ink);
}
.mp-qr-wrap {
  margin: 22px auto 18px;
  padding: 14px;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid rgba(139, 63, 217, 0.1);
  box-shadow:
    0 2px 8px rgba(17, 17, 24, 0.04),
    0 16px 36px rgba(139, 63, 217, 0.1);
  display: inline-block;
}
.mp-modal .mp-qr-wrap {
  background: #fff;
}
.mp-qr-wrap img {
  width: 200px;
  height: 200px;
  border-radius: 14px;
  object-fit: cover;
}
.wx-login-modal-panel {
  padding-bottom: 20px;
}
.wx-login-qr-shell {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 14px auto 10px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4edff 0%, #ebe2fb 100%);
  border: 1px solid rgba(139, 63, 217, 0.14);
  box-shadow: 0 10px 28px rgba(139, 63, 217, 0.12);
}
.wx-login-qr-mount {
  width: 200px;
  height: 200px;
  line-height: 0;
  font-size: 0;
}
.wx-login-qr-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 10px;
  background: linear-gradient(135deg, #f0e6ff 0%, #ebe2fb 100%);
  border-radius: 16px;
  transition: opacity 0.18s ease;
}
.wx-login-qr-loading[hidden] {
  display: none !important;
}
.wx-login-qr-loading.is-hiding {
  opacity: 0;
  pointer-events: none;
}
.wx-login-qr-mount iframe {
  width: 200px !important;
  height: 200px !important;
  border: 0 !important;
  display: block !important;
  margin: 0 !important;
}
.wx-login-qr-skeleton {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(110deg, #e9d9ff 8%, #d8c4f7 22%, #f0e6ff 38%, #d8c4f7 54%, #e9d9ff 70%);
  background-size: 200% 100%;
  animation: wx-qr-shimmer 0.9s ease-in-out infinite;
}
@keyframes wx-qr-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.wx-login-loading {
  margin: 0;
  padding: 24px 12px;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.wx-login-close {
  margin-top: 4px;
}

@media (prefers-color-scheme: dark) {
  .wx-login-modal .mp-modal-panel {
    background: linear-gradient(180deg, #1c1e2a 0%, #14161e 100%);
    border-color: rgba(139, 63, 217, 0.24);
    box-shadow:
      0 24px 64px rgba(0, 0, 0, 0.42),
      0 8px 28px rgba(139, 63, 217, 0.18);
  }
  .wx-login-modal .mp-modal-title {
    color: #eef0f5;
  }
  .wx-login-modal .mp-modal-lead,
  .wx-login-modal .wx-login-loading {
    color: #b4b9c9;
  }
  .wx-login-modal .mp-modal-eyebrow {
    background: rgba(139, 63, 217, 0.22);
    color: #d8b4fe;
  }
  .wx-login-modal .modal-close {
    background: #1f2130;
    border-color: rgba(255, 255, 255, 0.1);
    color: #eef0f5;
  }
  .wx-login-modal .wx-login-qr-shell {
    background: linear-gradient(135deg, #2a1a42 0%, #1a1428 100%);
    border-color: rgba(139, 63, 217, 0.22);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(139, 63, 217, 0.08);
  }
  .wx-login-modal .wx-login-qr-loading {
    background: linear-gradient(135deg, #2a1a42 0%, #1f1630 100%);
  }
  .wx-login-modal .wx-login-qr-skeleton {
    background: linear-gradient(110deg, #3b2860 8%, #4a3278 22%, #2f2148 38%, #4a3278 54%, #3b2860 70%);
    background-size: 200% 100%;
  }

  .mp-modal {
    --mp-bg-top: #1c1e2a;
    --mp-bg-bottom: #14161e;
    --mp-ink: #eef0f5;
    --mp-ink-2: #b4b9c9;
    --mp-line: rgba(255, 255, 255, 0.1);
    --mp-tip-bg: rgba(139, 63, 217, 0.14);
    --mp-tip-border: rgba(139, 63, 217, 0.22);
    --mp-close-bg: #1f2130;
    --mp-close-ink: #eef0f5;
    --mp-eyebrow-bg: rgba(139, 63, 217, 0.22);
    --mp-eyebrow-ink: #d8b4fe;
  }
  .mp-modal .mp-modal-panel {
    border-color: rgba(139, 63, 217, 0.24);
    box-shadow:
      0 24px 64px rgba(0, 0, 0, 0.42),
      0 8px 28px rgba(139, 63, 217, 0.18);
  }
  .mp-modal .mp-qr-wrap {
    background: #fff;
    border-color: rgba(139, 63, 217, 0.2);
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.2),
      0 16px 36px rgba(139, 63, 217, 0.14);
  }
}
.mp-tips {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}
.mp-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(139, 63, 217, 0.05);
  border: 1px solid rgba(139, 63, 217, 0.08);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.45;
}
.mp-modal .mp-tip {
  color: var(--mp-ink);
  background: var(--mp-tip-bg);
  border-color: var(--mp-tip-border);
}
.mp-tip:last-child { margin-bottom: 0; }
.mp-tip-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #a855f7);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}
.modal-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-media img,
.modal-media video {
  width: 100%;
  max-height: min(72vh, 780px);
  object-fit: contain;
  display: block;
  background: #0f0f12;
}
.modal-media video {
  background: #000;
}
.modal-info h2 { margin: 0 0 8px; font-size: 1.3rem; }
.modal-author { margin: 0 0 12px; color: var(--ink-3); font-size: 0.9rem; }
.modal-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.modal-hint {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.88rem;
}
.modal-loading { text-align: center; color: var(--ink-3); padding: 40px 0; }

/* ── Legal pages ── */
.legal-page {
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.legal-wrap {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}
.legal-wrap h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.legal-meta { color: var(--ink-3); font-size: 0.88rem; margin-bottom: 32px; }
.legal-wrap h2 {
  margin: 32px 0 12px;
  font-size: 1.15rem;
  color: var(--ink);
}
.legal-wrap p,
.legal-wrap li {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.legal-wrap ul { padding-left: 1.2rem; }
.legal-wrap a { color: var(--brand); text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { margin: 10px 0 0; color: var(--ink-2); font-size: 0.9rem; max-width: 28ch; }
.footer-studio {
  margin-top: 6px !important;
  font-size: 0.8rem !important;
  color: var(--ink-3) !important;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.footer-copyright {
  margin: 0;
  color: inherit;
  font-size: inherit;
}
.footer-credit {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink-3);
  opacity: 0.92;
  max-width: 42ch;
}
.has-scroll-video .footer-credit {
  color: rgba(255, 255, 255, 0.56);
}
.footer-bottom--compact .footer-legal {
  gap: 3px;
}
.footer-bottom-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.82rem;
}
.footer-icp {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-decoration: none;
  opacity: 0.62;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-icp:hover {
  color: var(--ink-2);
  opacity: 0.9;
  text-decoration: none;
}
.has-scroll-video .footer-icp {
  color: rgba(255, 255, 255, 0.38);
  opacity: 1;
}
.has-scroll-video .footer-icp:hover {
  color: rgba(255, 255, 255, 0.62);
}
.preview-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 24, 0.88);
  color: #fff;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(0.985);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  transition-delay: 0s;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0s);
}
.section-head.reveal {
  transform: translate3d(0, 24px, 0);
}
.section-head.reveal.is-visible {
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero {
    padding: calc(var(--nav-h) + 36px) 0 56px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-showcase {
    order: -1;
    min-height: 210px;
    padding: 0 0 4px;
    max-width: 380px;
    margin-inline: auto;
    width: 100%;
  }
  .hero-copy {
    order: 1;
    max-width: none;
  }
  .hero-brand-card {
    width: min(100%, 380px);
    margin-inline: auto;
  }
  .hero-float {
    display: block;
    width: 72px;
    border-radius: 11px;
    border-width: 2px;
  }
  .hero-float--tl { left: -12px; top: 12%; transform: rotate(-7deg); }
  .hero-float--br { right: -12px; bottom: 14%; transform: rotate(7deg); }
  .feature-grid,
  .steps { grid-template-columns: 1fr 1fr; }
  #skills.section { padding: 72px 0; }
  #skills .section-head h2 {
    font-size: clamp(1.35rem, 4.2vw, 1.7rem);
    line-height: 1.28;
  }
  #skills .section-head p { font-size: 0.92rem; }
  .skill-showcase { gap: 16px; }
  .skill-panel,
  .skill-panel--reverse {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px 20px;
    border-radius: 22px;
  }
  .skill-panel--reverse .skill-panel__copy,
  .skill-panel--reverse .skill-panel__visual {
    grid-column: auto;
    grid-row: auto;
  }
  .skill-panel__visual,
  .skill-panel--reverse .skill-panel__visual {
    order: -1;
    justify-content: center;
    width: 100%;
  }
  .skill-panel__copy,
  .skill-panel--reverse .skill-panel__copy {
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }
  .skill-panel h3 { font-size: 1.32rem; }
  .skill-tagline { margin-bottom: 10px; font-size: 0.88rem; }
  .skill-desc { font-size: 0.9rem; line-height: 1.65; max-width: none; }
  .skill-panel:hover { transform: none; }
  .skill-device,
  .skill-panel--reverse .skill-device {
    width: min(100%, 268px);
    margin-inline: auto;
    padding: 8px;
    border-radius: 24px;
    transform: none;
  }
  .skill-panel:hover .skill-device,
  .skill-panel--reverse:hover .skill-device {
    transform: none;
  }
  .skill-device img { border-radius: 18px; }
  .skill-flow {
    margin-top: 18px;
    padding: 12px 10px;
    gap: 6px 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .skill-flow::-webkit-scrollbar { display: none; }
  .skill-flow span:not(.skill-flow-arrow) {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 5px 9px;
  }
  .skill-flow-arrow { flex-shrink: 0; font-size: 0.78rem; }
  .skill-note { margin-top: 14px; font-size: 0.86rem; line-height: 1.55; }
  .fan-card { width: clamp(144px, 34vw, 204px); }
  .card-fan { height: clamp(330px, 56vw, 410px); width: min(100%, 720px); }
  .feed-grid,
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .has-scroll-video .hero .container {
    width: min(1120px, calc(100% - 44px));
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  }
  .has-scroll-video .hero-copy {
    padding-inline: 8px;
  }
  .has-scroll-video .container {
    width: min(1120px, calc(100% - 36px));
  }
  .hero-showcase {
    min-height: 188px;
    max-width: 320px;
  }
  .hero-brand-card { width: min(100%, 280px); }
  .hero-float {
    width: 64px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(17, 17, 24, 0.12);
  }
  .hero-float--tl { left: -8px; top: 16%; transform: rotate(-8deg); }
  .hero-float--br { right: -8px; bottom: 18%; transform: rotate(8deg); }
  .nav-inner {
    gap: 8px;
    width: min(1120px, calc(100% - 28px));
  }
  .brand {
    font-size: 0.92rem;
    gap: 8px;
    min-width: 0;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .lang-switch { order: -1; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-actions > .btn-primary[data-open-miniprogram] { display: none; }
  .nav-links,
  .nav-actions .btn-ghost { display: none; }
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 198;
  }
  body.nav-open .scroll-video-stage {
    pointer-events: none;
  }
  body.nav-open main,
  body.nav-open .site-footer {
    pointer-events: none;
  }
  body.nav-open .site-nav {
    background: var(--bg);
    border-color: var(--line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 200;
  }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    padding: calc(var(--nav-h) + 24px) 24px 120px;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    align-items: stretch;
    z-index: 201;
    overflow: hidden;
    overscroll-behavior: contain;
  }
  body.has-scroll-video.nav-open .site-nav .brand,
  body.has-scroll-video.nav-open .nav-links .nav-link {
    color: var(--ink-2);
    text-shadow: none;
  }
  body.has-scroll-video.nav-open .nav-links .nav-link.is-active,
  body.has-scroll-video.nav-open .nav-links .nav-link:hover {
    color: var(--brand);
    background: var(--brand-soft);
  }
  body.has-scroll-video.nav-open .nav-actions .btn-ghost.nav-link {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
  }
  body.has-scroll-video.nav-open .nav-toggle span {
    background: var(--ink);
  }
  body.nav-open .nav-actions .btn-ghost:not([hidden]) { display: inline-flex; }
  body.nav-open .nav-actions > .btn-primary[data-open-miniprogram] { display: inline-flex; }
  body.nav-open .nav-actions {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 0;
    flex-direction: column;
    z-index: 202;
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  body.nav-open .nav-toggle {
    position: fixed;
    top: calc((var(--nav-h) - 40px) / 2);
    right: 24px;
    z-index: 210;
    display: flex;
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
  }
  body.nav-open .nav-toggle span {
    background: var(--ink);
  }
  body.nav-open .nav-actions .btn { width: 100%; }
  .feature-grid,
  .steps { grid-template-columns: 1fr; }
  #skills.section { padding: 56px 0; }
  #skills .container { width: min(1120px, calc(100% - 32px)); }
  #skills .section-head { margin-bottom: 20px; }
  #skills .section-head h2 { font-size: 1.28rem; }
  .skill-showcase { gap: 14px; }
  .skill-panel,
  .skill-panel--reverse {
    gap: 14px;
    padding: 16px 14px 18px;
    border-radius: 20px;
  }
  .skill-panel h3 { font-size: 1.22rem; }
  .skill-badge { font-size: 0.68rem; margin-bottom: 10px; }
  .skill-device,
  .skill-panel--reverse .skill-device {
    width: min(100%, 248px);
    padding: 7px;
    border-radius: 22px;
  }
  .skill-flow { margin-top: 16px; padding: 10px 8px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .preview-banner { white-space: normal; text-align: center; max-width: calc(100% - 32px); }
  .fan-nav { flex-basis: 34px; width: 34px; height: 34px; font-size: 1.25rem; }
  .fan-card { width: 132px; border-radius: 24px; bottom: 24px; }
  .card-fan { height: 300px; }

  .modal {
    padding: 12px;
    align-items: center;
  }
  .modal-panel {
    width: min(100%, 380px);
    padding: 14px 14px 16px;
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .modal-grid { gap: 14px; }
  .modal-media { min-height: 0; }
  .modal-media img,
  .modal-media video {
    max-height: min(46dvh, 420px);
  }
  .modal-info h2 { font-size: 1.08rem; margin-bottom: 6px; }
  .modal-author { font-size: 0.84rem; margin-bottom: 10px; }
  .modal-stats { font-size: 0.84rem; margin-bottom: 12px; }
  .modal-hint {
    padding: 10px 12px;
    font-size: 0.82rem;
    margin-bottom: 14px;
  }
  .modal-info .btn { padding: 10px 16px; font-size: 0.88rem; }

  .mp-modal-panel {
    width: min(100%, 340px);
    padding: 22px 18px 18px;
    border-radius: 20px;
    max-height: calc(100dvh - 24px);
  }
  .mp-modal-title { font-size: 1.18rem; }
  .mp-modal-lead { font-size: 0.86rem; }
  .mp-wechat-hint { font-size: 0.8rem; padding: 8px 12px; }
  .mp-qr-wrap {
    margin: 14px auto 12px;
    padding: 10px;
    border-radius: 18px;
  }
  .mp-qr-wrap img {
    width: 148px;
    height: 148px;
    border-radius: 12px;
  }
  .mp-tips { margin-bottom: 14px; }
  .mp-tip {
    padding: 9px 11px;
    font-size: 0.82rem;
    gap: 10px;
  }
  .mp-tip-num {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 0.75rem;
  }

  .explore-peek-fade {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) calc(var(--peek-solid) * 0.35),
      rgba(255, 255, 255, 0.48) calc(var(--peek-solid) + var(--peek-fade) * 0.18),
      rgba(255, 255, 255, 0.82) calc(var(--peek-solid) + var(--peek-fade) * 0.44),
      #ffffff calc(var(--peek-solid) + var(--peek-fade) * 0.76)
    );
  }
  .explore-peek .explore-load-wrap { margin-top: 12px; }
  .explore-more-btn { min-width: 132px; padding: 10px 18px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fan-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-loader__ring { animation: none; }
  .page-loader__pulse { animation: none; opacity: 0.35; }
  .ribbon-card-inner { animation: none; }
  .ribbon-card-flag { animation: none; }
  .card-ribbon-track.is-sliding { transition-duration: 0.2s; }
}

/* Gallery page */
.gallery-page { padding-top: 88px; }
.gallery-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 12px;
  text-align: center;
}
.gallery-eyebrow {
  margin: 0 0 8px;
  color: #7c3aed;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.gallery-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 2.8rem); }
.gallery-lead, .gallery-meta, .gallery-empty, .gallery-loading {
  color: var(--ink-3);
  line-height: 1.6;
}
.gallery-meta { margin-top: 8px; font-size: 0.92rem; }
.gallery-section { max-width: 1280px; margin: 0 auto; padding: 8px 20px 64px; }
.gallery-grid {
  column-count: 4;
  column-gap: 18px;
}
.gallery-grid.is-loading {
  column-count: 4;
}
.gallery-skeleton {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(124, 58, 237, 0.05);
}
.gallery-skeleton__media {
  height: clamp(180px, 24vw, 280px);
  background: linear-gradient(
    110deg,
    #f5f3fa 8%,
    #fbfaff 22%,
    #f2eff8 38%,
    #fbfaff 54%,
    #f5f3fa 70%
  );
  background-size: 220% 100%;
  animation: gallery-shimmer 2.8s ease-in-out infinite;
}
.gallery-skeleton__line {
  height: 12px;
  margin: 14px 14px 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #f1edf9 0%, #faf8ff 50%, #f1edf9 100%);
  background-size: 220% 100%;
  animation: gallery-shimmer 2.2s ease-in-out infinite;
}
.gallery-skeleton__line.is-short {
  width: 62%;
  margin-bottom: 16px;
}
@keyframes gallery-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.gallery-card {
  break-inside: avoid;
  margin: 0 0 18px;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 24, 0.06);
  box-shadow: 0 8px 24px rgba(17, 17, 24, 0.06);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gallery-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 24, 0.08);
  box-shadow: 0 12px 30px rgba(17, 17, 24, 0.08);
}
.gallery-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.gallery-card-media {
  position: relative;
  background: #f5f2fb;
  overflow: hidden;
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  object-fit: cover;
  transform: none;
  transition: opacity 0.62s ease;
}
.gallery-card-media img.is-loaded {
  opacity: 1;
  transform: scale(1);
}
@keyframes gallery-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(17, 17, 24, 0.02), rgba(17, 17, 24, 0.42));
  opacity: 0;
  transition: opacity 0.22s ease;
}
.gallery-card-media:not(.is-video) .gallery-card-overlay {
  display: none;
}
.gallery-card-media.is-video .gallery-card-overlay {
  background: linear-gradient(180deg, rgba(8, 8, 14, 0.06), rgba(8, 8, 14, 0.34));
}
.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-visible .gallery-card-overlay { opacity: 1; }
.gallery-card-media.is-video .gallery-card-zoom {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b3fd9 0%, #a855f7 100%);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(139, 63, 217, 0.45),
    0 0 0 3px rgba(255, 255, 255, 0.24);
}
.gallery-card-media.is-video .gallery-card-zoom svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}
.gallery-card-zoom {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .gallery-card-media.is-video .gallery-card-overlay {
    opacity: 0;
  }
  .gallery-card:hover .gallery-card-media.is-video .gallery-card-overlay,
  .gallery-card:focus-visible .gallery-card-media.is-video .gallery-card-overlay {
    opacity: 1;
  }
}
@media (hover: none), (pointer: coarse) {
  .gallery-card-media.is-video .gallery-card-overlay {
    opacity: 1;
  }
}
.gallery-card-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #999;
  font-size: 1.4rem;
}
.gallery-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gallery-card-badge.is-new {
  background: linear-gradient(135deg, #8b3fd9, #c084fc);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 63, 217, 0.35);
}
.gallery-card-title {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--card-title);
  background: var(--card-meta-bg);
  border-top: 1px solid var(--card-meta-border);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-empty, .gallery-loading {
  text-align: center;
  padding: 28px 12px;
}
[data-gallery-login] { margin-top: 14px; }
[data-gallery-login][hidden],
[data-wechat-login][hidden],
[data-wechat-logout][hidden],
[data-gallery-link][hidden] { display: none !important; }

body.gallery-lightbox-open { overflow: hidden; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.gallery-lightbox.is-visible {
  opacity: 1;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 14, 0.88);
  backdrop-filter: blur(10px);
  transition: backdrop-filter 0.28s ease;
}
.gallery-lightbox__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(8, 8, 14, 0.72), rgba(8, 8, 14, 0));
}
.gallery-lightbox__icon {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox__counter {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
}
.gallery-lightbox__download {
  padding: 10px 18px;
  font-size: 0.88rem;
}
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(calc(-50% + 6px));
  transition: opacity 0.28s ease 0.06s, transform 0.28s ease 0.06s, background 0.2s ease;
}
.gallery-lightbox.is-visible .gallery-lightbox__nav {
  opacity: 1;
  transform: translateY(-50%);
}
.gallery-lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.gallery-lightbox__nav.is-prev { left: 18px; }
.gallery-lightbox__nav.is-next { right: 18px; }
.gallery-lightbox__stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 88px 84px 132px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-lightbox__stage.is-zoomed {
  cursor: grab;
}
.gallery-lightbox__image,
.gallery-lightbox__video {
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
}
.gallery-lightbox__image {
  max-width: min(92vw, 1180px);
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  background: #111;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.32s ease, transform 0.38s ease;
  cursor: zoom-in;
}
.gallery-lightbox__image.is-ready {
  opacity: 1;
  transform: scale(1);
}
.gallery-lightbox__image.is-ready.is-zoomed,
.gallery-lightbox__video.is-ready.is-zoomed {
  transition: none;
}
.gallery-lightbox__image.is-zoomed,
.gallery-lightbox__video.is-zoomed {
  border-radius: 8px;
  z-index: 3;
  cursor: grab;
}
.gallery-lightbox__image.is-zoomed:active,
.gallery-lightbox__video.is-zoomed:active {
  cursor: grabbing;
}
.gallery-lightbox.is-image-loading .gallery-lightbox__stage::after {
  content: '';
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.72);
  animation: gallery-spin 0.9s linear infinite;
}
@keyframes gallery-spin {
  to { transform: rotate(360deg); }
}
.gallery-lightbox__chrome,
.gallery-lightbox__footer {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease 0.06s, transform 0.28s ease 0.06s;
}
.gallery-lightbox.is-visible .gallery-lightbox__chrome,
.gallery-lightbox.is-visible .gallery-lightbox__footer {
  opacity: 1;
  transform: translateY(0);
}
.gallery-lightbox__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 24px;
  background: linear-gradient(0deg, rgba(8, 8, 14, 0.82), rgba(8, 8, 14, 0));
}
.gallery-lightbox__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.15rem;
}
.gallery-lightbox__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}
.gallery-lightbox__footer .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-skeleton__media,
  .gallery-skeleton__line { animation: none; }
  .masonry-col > .gallery-card.is-reveal-pending,
  .masonry-col > .explore-card.is-reveal-pending,
  .masonry-col > .gallery-card.is-visible,
  .masonry-col > .explore-card.is-visible,
  .gallery-card-media img,
  .gallery-card-videoframe,
  .gallery-lightbox,
  .gallery-lightbox__image,
  .gallery-lightbox__chrome,
  .gallery-lightbox__footer,
  .gallery-lightbox__nav {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 960px) {
  .gallery-grid,
  .gallery-grid.is-loading { column-count: 2; }
  .masonry-grid { gap: 12px; }
  .masonry-col { gap: 12px; }
  .gallery-lightbox__stage { padding: 76px 16px 148px; }
  .gallery-lightbox__nav { display: none; }
  .gallery-lightbox__footer {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
}

/* ── gallery image editor — compact floating controls ── */
.gallery-lightbox.is-editing .gallery-lightbox__nav,
.gallery-lightbox.is-editing .gallery-lightbox__image,
.gallery-lightbox.is-editing .gallery-lightbox__video {
  display: none !important;
}
.gallery-lightbox.is-editing .gallery-lightbox__chrome,
.gallery-lightbox.is-editing .gallery-lightbox__footer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
.gallery-lightbox.is-editing .gallery-lightbox__stage {
  padding: 0;
}
.gallery-editor {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.gallery-editor[hidden] { display: none !important; }
.gallery-editor__topbar {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(24, 24, 28, 0.42);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(34px) saturate(1.7);
  -webkit-backdrop-filter: blur(34px) saturate(1.7);
  pointer-events: auto;
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.98);
  transition: opacity 0.26s ease 0.08s, transform 0.34s cubic-bezier(0.32, 0.72, 0, 1) 0.08s;
}
.gallery-lightbox.is-editor-visible .gallery-editor__topbar {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.gallery-editor__top-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.gallery-editor__top-btn:hover { color: #fff; }
.gallery-editor__top-btn.is-accent {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.gallery-editor__top-btn.is-done {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.gallery-editor__preview-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 20px 132px;
  pointer-events: auto;
  overflow: hidden;
}
.gallery-editor__canvas-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: min(92vw, 1120px);
  max-height: 100%;
}
.gallery-editor__canvas {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 22px 74px rgba(0, 0, 0, 0.46);
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}
.gallery-lightbox.is-editor-visible .gallery-editor__canvas {
  transform: scale(1);
  opacity: 1;
}
.gallery-editor__crop-layer {
  position: absolute;
  pointer-events: none;
}
.gallery-editor__crop-layer:not([hidden]) {
  pointer-events: auto;
}
.gallery-editor__crop-box {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  border-radius: 2px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.52);
  cursor: move;
  touch-action: none;
}
.gallery-editor__crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.gallery-editor__crop-handle.is-nw { top: -8px; left: -8px; cursor: nwse-resize; }
.gallery-editor__crop-handle.is-ne { top: -8px; right: -8px; cursor: nesw-resize; }
.gallery-editor__crop-handle.is-sw { bottom: -8px; left: -8px; cursor: nesw-resize; }
.gallery-editor__crop-handle.is-se { bottom: -8px; right: -8px; cursor: nwse-resize; }
.gallery-editor__text-layer {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-editor__text-layer:not([hidden]) {
  pointer-events: auto;
}
.gallery-editor__text-drag {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 1px dashed rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  background: transparent;
  cursor: grab;
  touch-action: none;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.gallery-editor__text-drag:hover,
.gallery-editor__text-drag.is-dragging {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.05);
}
.gallery-editor__text-drag.is-dragging {
  cursor: grabbing;
}
body.gallery-editor-text-dragging,
body.gallery-editor-text-dragging * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: grabbing !important;
}
body.gallery-editor-text-dragging .gallery-editor__text-input {
  cursor: text !important;
}
.gallery-editor__sheet {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(1040px, calc(100vw - 28px));
  pointer-events: auto;
  padding: 0;
  border-radius: 22px;
  background: rgba(20, 20, 24, 0.5);
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(48px) saturate(1.8);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  transform: translate(-50%, 28px) scale(0.97);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.28s ease;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-lightbox.is-editor-visible .gallery-editor__sheet {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}
.gallery-editor__sheet-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.gallery-editor__board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(156px, 1.1fr) 1px minmax(148px, 0.95fr) 1px minmax(108px, 0.72fr) 1px minmax(132px, 0.88fr);
  align-items: start;
  padding: 12px 14px;
  gap: 0;
}
.gallery-editor__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.16) 18%,
    rgba(255, 255, 255, 0.16) 82%,
    rgba(255, 255, 255, 0) 100%
  );
}
.gallery-editor__col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 0 3px;
}
.gallery-editor__col.is-crop.is-active {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin: -4px;
  padding: 4px 8px;
}
.gallery-editor__col-title {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  pointer-events: none;
  cursor: default;
}
.gallery-editor__slider-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.gallery-editor__slider-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  width: 100%;
}
.gallery-editor__slider-row.is-compact {
  margin-top: 2px;
}
.gallery-editor__slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.gallery-editor__slider-name {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}
.gallery-editor__slider-val {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.gallery-editor__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}
.gallery-editor__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  border: none;
  transition: transform 0.12s ease;
}
.gallery-editor__slider:active::-webkit-slider-thumb {
  transform: scale(1.08);
}
.gallery-editor__slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  border: none;
}
.gallery-editor__slider::-moz-range-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.gallery-editor__chip-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
}
.gallery-editor__chip-stack.is-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.gallery-editor__chip-stack.is-crop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.gallery-editor__chip {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.gallery-editor__chip:focus {
  outline: none;
}
.gallery-editor__chip:focus-visible {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.38);
}
.gallery-editor__chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.gallery-editor__chip.is-active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
}
.gallery-editor__text-input {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 7px 9px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}
.gallery-editor__text-input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}
.gallery-editor__text-input:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
.gallery-editor__color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
}
.gallery-editor__color {
  width: 34px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.gallery-editor__pill {
  margin-top: 2px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 7px 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease;
}
.gallery-editor__pill:hover {
  background: rgba(255, 255, 255, 0.24);
}
@media (max-width: 960px) {
  .gallery-editor__preview-wrap {
    padding: 52px 12px 200px;
  }
  .gallery-editor__sheet {
    width: calc(100vw - 16px);
    bottom: 10px;
    border-radius: 18px;
  }
  .gallery-editor__board {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 0;
  }
  .gallery-editor__divider {
    width: 100%;
    height: 1px;
    margin: 10px 0;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.14) 20%,
      rgba(255, 255, 255, 0.14) 80%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .gallery-editor__chip-stack.is-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-editor__chip-stack.is-crop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-editor__canvas,
  .gallery-editor__sheet,
  .gallery-editor__topbar {
    transition: none;
    animation: none;
    opacity: 1;
  }
}

/* ── Inner pages: follow system light / dark (home video page unchanged) ── */
@media (prefers-color-scheme: dark) {
  body[data-page="gallery"],
  body[data-page="explore"],
  body[data-page="privacy"],
  body[data-page="terms"] {
    color-scheme: dark;
    --bg: #0c0d12;
    --bg-2: #12141c;
    --surface: #181a24;
    --surface-muted: #14161e;
    --ink: #eef0f5;
    --ink-2: #b4b9c9;
    --ink-3: #848a9c;
    --line: rgba(255, 255, 255, 0.08);
    --brand-soft: rgba(139, 63, 217, 0.2);
    --brand-dark: #c89cff;
    --brand-glow: rgba(139, 63, 217, 0.24);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
    --nav-scrolled-bg: rgba(12, 13, 18, 0.9);
    --card-meta-bg: linear-gradient(135deg, #8b3fd9 0%, #a855f7 100%);
    --card-meta-border: rgba(255, 255, 255, 0.14);
    --card-title: #ffffff;
    --card-stat: #f3e8ff;
  }

  body[data-page="gallery"] .gallery-skeleton,
  body[data-page="explore"] .gallery-skeleton {
    border-color: rgba(255, 255, 255, 0.05);
  }

  body[data-page="gallery"] .gallery-skeleton__media,
  body[data-page="explore"] .gallery-skeleton__media {
    background: linear-gradient(110deg, #171923 8%, #1d2030 22%, #141722 38%, #1d2030 54%, #171923 70%);
  }

  body[data-page="gallery"] .gallery-skeleton__line,
  body[data-page="explore"] .gallery-skeleton__line {
    background: linear-gradient(110deg, #171923 0%, #1d2030 50%, #171923 100%);
  }

  body[data-page="gallery"] .gallery-card,
  body[data-page="explore"] .explore-card,
  body[data-page="explore"] .feed-card {
    border-color: rgba(168, 85, 247, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  body[data-page="gallery"] .gallery-card:hover,
  body[data-page="explore"] .explore-card:hover {
    border-color: rgba(192, 132, 252, 0.28);
    box-shadow: 0 12px 30px rgba(139, 63, 217, 0.18);
  }

  body[data-page="gallery"] .gallery-card-media,
  body[data-page="explore"] .explore-card-media {
    background: var(--surface-muted);
  }

  body[data-page="gallery"] .gallery-eyebrow,
  body[data-page="explore"] .tab.is-active {
    color: #c89cff;
  }

  body[data-page="gallery"] .tab.is-active,
  body[data-page="explore"] .tab.is-active {
    border-color: rgba(139, 63, 217, 0.35);
  }

  body[data-page="explore"] .explore-card-author {
    color: rgba(255, 255, 255, 0.82);
  }

  body[data-page="gallery"] .gallery-card-title,
  body[data-page="explore"] .explore-card-title {
    color: var(--card-title);
  }

  body[data-page="explore"] .explore-card-stat {
    color: var(--card-stat);
  }

  body[data-page="gallery"] .gallery-card-badge.is-video,
  body[data-page="explore"] .gallery-card-badge.is-video {
    box-shadow: 0 10px 24px rgba(139, 63, 217, 0.48);
    border-color: rgba(255, 255, 255, 0.32);
  }
}
