/* =========================================================
   Chen Yifu Portfolio
   Black / Grey / Silver / Cold-grey accent
   Single Page Scroll Portfolio
   ========================================================= */

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

:root {
  --bg: #000000;
  --bg-elevated: #000000;
  --bg-deep: #000000;
  --bg-card: #141414;
  --bg-card-2: #18181a;
  --fg: #f5f5f5;
  --fg-mute: #a0a0a0;
  --fg-dim: #666666;
  --silver: #c8c8c8;
  --silver-bright: #e8e8e8;
  --accent: #95a6b8;
  --accent-soft: #6e7d8d;
  --accent-glow: rgba(149, 166, 184, 0.22);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.04);
  --line-silver: rgba(200, 200, 200, 0.16);

  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Cormorant Garamond", "Inter", serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 240ms;
  --t-base: 500ms;
  --t-slow: 900ms;

  --pad-x: clamp(24px, 5vw, 80px);
  --nav-h: 72px;
  --section-pad: clamp(100px, 16vh, 200px);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--pad-x);
  background: transparent;
  transition: background var(--t-slow) var(--ease), border-color var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}

.nav__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0;
  color: var(--silver);
}

.nav__brand-line {
  width: 28px;
  height: 1px;
  background: var(--line-silver);
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__brand-cn {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--fg);
  line-height: 1;
}

.nav__brand-en {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: clamp(24px, 3vw, 42px);
}

.nav__links a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  transition: opacity var(--t-fast) var(--ease);
}

.nav__cn {
  font-size: 13px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.04em;
  transition: color var(--t-fast) var(--ease);
}

.nav__en {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color var(--t-fast) var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t-base) var(--ease);
}

.nav__links a:hover .nav__cn,
.nav__links a.is-active .nav__cn { color: var(--fg); }

.nav__links a:hover .nav__en,
.nav__links a.is-active .nav__en { color: var(--accent); }

.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

/* =========================================================
   HERO (keep as is)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) var(--pad-x) 48px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background: url("assets/hero-bg.jpg") center 35% / cover no-repeat;
  opacity: 0.72;
  filter: brightness(0.85) contrast(1.02) saturate(0.85);
  will-change: transform;
  transform: scale(1.05);
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0.08) 30%, rgba(10, 10, 10, 0.55) 75%, rgba(10, 10, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.2) 0%, transparent 30%, transparent 70%, rgba(10, 10, 10, 0.2) 100%);
}

.hero__bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 10, 10, 0.45) 100%);
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(149, 166, 184, 0.08) 0%, transparent 55%);
  mix-blend-mode: screen;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { opacity: 0.4; transform: scale(0.98); }
  100% { opacity: 0.7; transform: scale(1.05); }
}

#particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vh, 40px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5vh, 16px);
}

.hero__name-cn {
  font-family: "Noto Sans SC", var(--font-sans);
  font-weight: 300;
  font-size: clamp(68px, 14vw, 196px);
  line-height: 0.95;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 50%, #b0b0b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.hero__name-en {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: 0.44em;
  padding-left: 0.44em;
  color: var(--silver);
}

.hero__role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: clamp(8px, 1.5vh, 16px);
}

.hero__role-cn {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: var(--fg);
}

.hero__role-en {
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.44em;
  padding-left: 0.44em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.hero__focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: clamp(8px, 2vh, 20px);
}

.hero__focus-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  position: relative;
  padding: 0 16px;
}

.hero__focus-label::before,
.hero__focus-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--line-silver);
}

.hero__focus-label::before { right: 100%; }
.hero__focus-label::after { left: 100%; }

.hero__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__tags li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all var(--t-base) var(--ease);
}

.hero__tags li:hover {
  border-color: var(--line-silver);
  background: rgba(20, 22, 26, 0.55);
  transform: translateY(-2px);
}

.hero__tag-cn {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.06em;
}

.hero__tag-en {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px 16px 34px;
  border: 1px solid var(--line-silver);
  border-radius: 999px;
  color: var(--fg);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
  margin-top: clamp(10px, 2vh, 20px);
}

.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(149, 166, 184, 0.7) 0%, rgba(110, 125, 141, 0.7) 100%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  z-index: -1;
}

.hero__cta:hover::before { opacity: 1; }

.hero__cta:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero__cta:hover span,
.hero__cta:hover svg { color: var(--bg-deep); }

.hero__cta-cn {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 400;
}

.hero__cta-sep { color: var(--fg-dim); font-size: 12px; }

.hero__cta-en {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.hero__cta svg { transition: transform var(--t-base) var(--ease); }
.hero__cta:hover svg { transform: translateY(2px); }

.hero__index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 900px;
  margin-top: clamp(24px, 4vh, 48px);
}

.hero__index-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all var(--t-base) var(--ease);
}

.hero__index-item:hover {
  border-color: var(--line-silver);
  background: rgba(20, 22, 26, 0.45);
  transform: translateY(-3px);
}

.hero__index-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero__index-title {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.hero__index-en {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--fg-dim), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(0.4); transform-origin: top; opacity: 0.6; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.hero__eyebrow,
.hero__name,
.hero__role,
.hero__focus,
.hero__tags,
.hero__cta,
.hero__index {
  opacity: 0;
  animation: hero-enter 1.2s var(--ease) forwards;
}

.hero__eyebrow { animation-delay: 200ms; }
.hero__name { animation-delay: 380ms; }
.hero__role { animation-delay: 620ms; }
.hero__focus { animation-delay: 820ms; }
.hero__tags { animation-delay: 1000ms; }
.hero__cta { animation-delay: 1200ms; }
.hero__index { animation-delay: 1400ms; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* =========================================================
   SECTIONS — SHARED
   ========================================================= */
.work-section,
.about-section,
.contact-section {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + var(--section-pad)) 0 var(--section-pad);
  overflow: hidden;
  isolation: isolate;
}

.section__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.12;
  animation: orb-float 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.1); }
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.ambient-fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.section-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

/* Section specific ambiance — all orbs unified to same color for consistent background */
.section--product,
.section--short,
.section--animation,
.section--visual,
.section--render { background: #000000; }

.orb--product-1   { width: 600px; height: 600px; top: -200px;  right: -200px;  background: rgba(149, 166, 184, 0.12); }
.orb--product-2   { width: 400px; height: 400px; bottom: 10%;  left: -100px;   background: rgba(149, 166, 184, 0.12); animation-delay: -5s; }

.orb--short-1     { width: 500px; height: 500px; top: 10%;     left: -150px;   background: rgba(149, 166, 184, 0.12); }
.orb--short-2     { width: 350px; height: 350px; bottom: 20%;  right: -100px;  background: rgba(149, 166, 184, 0.12); animation-delay: -7s; }

.orb--animation-1 { width: 700px; height: 700px; top: -250px;  left: 50%; transform: translateX(-50%); background: rgba(149, 166, 184, 0.12); }
.orb--animation-2 { width: 300px; height: 300px; bottom: 15%;  left: 10%;     background: rgba(149, 166, 184, 0.12); animation-delay: -6s; }

.orb--visual-1    { width: 450px; height: 450px; top: 5%;      right: -100px; background: rgba(149, 166, 184, 0.12); }
.orb--visual-2    { width: 300px; height: 300px; bottom: 30%;  left: -50px;   background: rgba(149, 166, 184, 0.12); animation-delay: -4s; }

.orb--render-1    { width: 500px; height: 500px; top: -100px;  right: -150px; background: rgba(149, 166, 184, 0.12); }
.orb--render-2    { width: 350px; height: 350px; bottom: 10%;  left: -100px;  background: rgba(149, 166, 184, 0.12); animation-delay: -8s; }

.section__content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: clamp(60px, 8vh, 100px);
}

.section__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.section__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section__index::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section__title {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--fg);
}

.section__title-en {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: 0.12em;
  color: var(--silver);
  margin-left: 0.3em;
  padding-left: 0.12em;
}

.section__desc {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--fg-mute);
  font-weight: 300;
}

.section__desc--secondary {
  max-width: 620px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-dim);
}

.section__process {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.process-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

.process-step:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border: 1px solid var(--fg-dim);
  border-radius: 50%;
  margin-left: 2px;
}

.section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 360px;
}

.pill {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--t-fast) var(--ease);
}

.pill:hover {
  border-color: var(--line-silver);
  background: rgba(149, 166, 184, 0.08);
  color: var(--fg);
  box-shadow: 0 0 20px rgba(149, 166, 184, 0.1);
}

.section__body {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 80px);
}

.sub-section__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.sub-section__title-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  margin-left: 12px;
}

/* =========================================================
   VIDEO / IMAGE FRAMES
   ========================================================= */
.video-frame,
.image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  transform-style: preserve-3d;
}

.video-frame::before,
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(149, 166, 184, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
  z-index: 1;
}

.video-frame:hover,
.image-frame:hover,
.work-row__item:hover .video-frame,
.work-row__item:hover .image-frame,
.asset-card:hover .image-frame,
.gallery__item:hover .image-frame,
.render-card:hover .image-frame,
.animation-cover:hover .image-frame,
.gallery__main:hover .image-frame,
.featured-work:hover .video-frame,
.render-feature:hover .image-frame,
.render-category:hover .image-frame,
.visual-gallery__item:hover .image-frame,
.visual-gallery__main:hover .image-frame,
.visual-row__item:hover .image-frame {
  border-color: var(--line-silver);
  box-shadow: 0 0 40px rgba(149, 166, 184, 0.12), 0 0 0 1px rgba(149, 166, 184, 0.15);
  transform: translateY(-4px) scale(1.005);
}

.video-frame:hover::before,
.image-frame:hover::before,
.work-row__item:hover .video-frame::before,
.work-row__item:hover .image-frame::before {
  opacity: 1;
}

.video-frame video,
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease), filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  transform: translateY(var(--py, 0));
}

.image-frame img {
  filter: brightness(0.92);
}

.video-frame:hover video,
.work-row__item:hover .video-frame video {
  transform: translateY(var(--py, 0)) scale(1.02);
}

.image-frame:hover img,
.work-row__item:hover .image-frame img,
.asset-card:hover .image-frame img,
.featured-work:hover .video-frame video,
.render-feature:hover .image-frame img,
.render-category:hover .image-frame img,
.visual-gallery__item:hover .image-frame img,
.visual-gallery__main:hover .image-frame img,
.visual-row__item:hover .image-frame img {
  transform: translateY(var(--py, 0)) scale(1.04);
  filter: brightness(1.05);
}

/* =========================================================
   HOVER PREVIEW 系统 — 电影滤镜默认态
   默认显示真实首帧 + 电影滤镜（降亮度/饱和度/对比度 + 暗角）
   hover 去除滤镜 + 恢复色彩 + 自动播放 + 轻微放大
   ========================================================= */

/* 旧 poster 蒙版不再使用 —— 显示真实画面 */
.video-frame__poster,
.image-frame__poster {
  display: none;
}

/* 视频默认：接近黑白、低对比、暗调电影预告片暂停感 */
.video-frame video {
  opacity: 1;
  filter: brightness(0.45) saturate(0) contrast(0.92);
  transition: filter 800ms var(--ease), transform 900ms var(--ease), opacity 500ms var(--ease);
}

/* 暗角：默认较强，hover 淡化 */
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 800ms var(--ease);
}

/* hover：去除滤镜 + 暗角消失 + 恢复真实色彩 + 轻微放大 */
.video-frame:hover video,
.work-row__item:hover .video-frame video,
.featured-work:hover .video-frame video {
  filter: brightness(1.05) saturate(1) contrast(1);
  transform: translateY(var(--py, 0)) scale(1.02);
}

.video-frame:hover::after,
.work-row__item:hover .video-frame::after,
.featured-work:hover .video-frame::after {
  opacity: 0;
}

/* 小提示 PLAY PREVIEW —— 仅 hover 出现，非视觉主体 */
.video-frame__hint {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 10px;
  letter-spacing: 0.28em;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.88);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  z-index: 3;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.video-frame:hover .video-frame__hint,
.work-row__item:hover .video-frame__hint,
.featured-work:hover .video-frame__hint {
  opacity: 1;
  transform: translateY(0);
}

.video-frame__label,
.image-frame__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 52px);
  letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 0.06);
  transition: all var(--t-base) var(--ease);
}

.video-frame:hover .video-frame__label,
.image-frame:hover .image-frame__label,
.work-row__item:hover .video-frame__label,
.work-row__item:hover .image-frame__label {
  color: rgba(149, 166, 184, 0.16);
}

.video-frame__subtitle,
.image-frame__subtitle {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  opacity: 0.8;
}

.video-frame__meta,
.image-frame__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.9) 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.video-frame__name,
.image-frame__name {
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.video-frame__tagline,
.image-frame__tagline {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}

.video-frame--hero {
  aspect-ratio: 21 / 9;
  min-height: 460px;
}

.video-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(149, 166, 184, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
  z-index: 1;
}

.video-frame:hover .video-glow,
.work-row__item:hover .video-glow,
.featured-work:hover .video-glow { opacity: 1; }

.image-frame--wide { aspect-ratio: 21 / 9; min-height: 420px; }
.image-frame--large { aspect-ratio: 16 / 10; min-height: 480px; }
.image-frame--square { aspect-ratio: 1 / 1; min-height: 320px; }
.image-frame--vertical { aspect-ratio: 9 / 16; max-width: 420px; min-height: 560px; margin: 0 auto; }

/* 防止主视觉区块在任何宽度下溢出容器 */
.work-section,
.section__content,
.section__body,
.featured-work,
.render-feature,
.visual-gallery,
.animation-page--intro,
.short-video-stack,
.work-row,
.render-categories,
.asset-previews {
  max-width: 100%;
}

.video-frame,
.image-frame {
  max-width: 100%;
  box-sizing: border-box;
}

.image-frame--large .image-frame__poster,
.image-frame--wide .image-frame__poster {
  background: linear-gradient(135deg, #1c1c1e 0%, #262629 50%, #1c1c1e 100%);
}

/* =========================================================
   3D TILT & CLICK FEEDBACK
   ========================================================= */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform var(--t-fast) var(--ease);
}

.tilt-card.is-tilted {
  transition: transform var(--t-fast) var(--ease-out);
}

.tilt-card:active {
  transform: scale(0.98) !important;
}

/* =========================================================
   WORK ROWS
   ========================================================= */
.featured-work { width: 100%; }

.work-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.work-row--wide { grid-template-columns: repeat(2, 1fr); }
.work-row--two { grid-template-columns: repeat(2, 1fr); }

.work-row__item { position: relative; }

.work-row__item .video-frame { aspect-ratio: 16 / 10; min-height: 240px; }

/* Short video stack — two hero-sized videos */
.short-video-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vh, 56px);
}

/* =========================================================
   AI ANIMATION
   ========================================================= */
.animation-page { margin-top: clamp(24px, 4vh, 48px); }
.animation-page--intro {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}

.animation-cover { width: 100%; }
.animation-cover .image-frame--vertical { margin: 0; }

.animation-intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
}

.animation-intro__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.animation-intro__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.animation-intro__title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300;
  color: var(--fg);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.animation-intro__subtitle {
  font-size: 15px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}

.animation-intro__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.animation-intro__body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--fg-mute);
}

.animation-intro__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-item__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.meta-item__value {
  font-size: 13px;
  line-height: 1.6;
  color: var(--silver);
}

.animation-abilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.ability-pill {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--t-base) var(--ease);
}

.ability-pill:hover {
  border-color: var(--line-silver);
  background: rgba(149, 166, 184, 0.08);
  color: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(149, 166, 184, 0.1);
}

.animation-page--production { margin-top: clamp(80px, 12vh, 140px); }

/* Asset preview cards — collapsed groups */
.asset-hint {
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-hint::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-silver);
}

.asset-hint__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  margin-left: 6px;
}

.asset-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.asset-preview {
  cursor: pointer;
}

.asset-preview__card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--bg-card);
  transition: all var(--t-base) var(--ease);
}

.asset-preview__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85);
  transition: all var(--t-slow) var(--ease);
}

.asset-preview:hover .asset-preview__card {
  border-color: var(--line-silver);
  box-shadow: 0 0 40px rgba(149, 166, 184, 0.12), 0 0 0 1px rgba(149, 166, 184, 0.15);
  transform: translateY(-4px);
}

.asset-preview:hover .asset-preview__card img {
  filter: brightness(0.95) saturate(1);
  transform: scale(1.05);
}

.asset-preview__overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-silver);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--silver);
  font-family: var(--font-display);
  font-style: italic;
  transition: all var(--t-base) var(--ease);
}

.asset-preview:hover .asset-preview__overlay {
  background: rgba(149, 166, 184, 0.85);
  color: var(--bg-deep);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(149, 166, 184, 0.3);
}

.asset-preview__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.92) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
  pointer-events: none;
}

.asset-preview__title {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.asset-preview__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}

/* =========================================================
   AI VISUAL — 上一下四布局（占满整行）
   ========================================================= */
.visual-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
  max-width: 100%;
}

/* 顶部大图：占满整行 */
.visual-gallery__hero {
  width: 100%;
  height: clamp(360px, 52vw, 560px);
  min-height: 360px;
  min-width: 0;
  position: relative;
}

.visual-gallery__hero .image-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.visual-gallery__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 下方 2×2 四小图 — 竖版排版，完整展示产品 */
.visual-gallery__quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
  min-height: 0;
  min-width: 0;
}

.visual-gallery__item {
  min-height: 0;
  min-width: 0;
  aspect-ratio: 3 / 4;
  position: relative;
  width: 100%;
}

.visual-gallery__item .image-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.visual-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* "view more" hint on the drone main visual */
.visual-gallery__more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(200, 200, 200, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
  opacity: 0.85;
  transition: all var(--t-base) var(--ease);
  pointer-events: none;
}

.visual-gallery__hero:hover .visual-gallery__more {
  opacity: 1;
  background: rgba(149, 166, 184, 0.85);
  color: var(--bg-deep);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(149, 166, 184, 0.3);
}

/* =========================================================
   3D RENDERING
   ========================================================= */
.render-feature { width: 100%; margin-bottom: clamp(24px, 4vh, 48px); }

.render-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.render-category .image-frame--square { height: 100%; min-height: 320px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-section {
  background: #000000;
  display: flex;
  align-items: center;
}

.orb--about { width: 500px; height: 500px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(149, 166, 184, 0.12); }
.about-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.about-left {
  position: sticky;
  top: calc(var(--nav-h) + 60px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-portrait__frame {
  width: 160px;
  height: 160px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}

.about-portrait__frame:hover {
  border-color: var(--line-silver);
  box-shadow: 0 0 30px rgba(149, 166, 184, 0.1);
}

.about-portrait__frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
}

.about-portrait__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  letter-spacing: 0.1em;
  color: var(--silver);
}

.about-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-name__cn {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--fg);
  line-height: 1;
}

.about-name__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.28em;
  color: var(--silver);
  padding-left: 0.28em;
}

.about-role {
  font-size: 15px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}

.about-role__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  margin-left: 8px;
}

.about-visual-element {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.about-visual-element span {
  width: 40px;
  height: 4px;
  background: var(--line);
  transition: all var(--t-base) var(--ease);
}

.about-visual-element span:nth-child(2) { width: 64px; background: var(--accent); opacity: 0.6; }
.about-visual-element span:nth-child(3) { width: 24px; }

.about-left:hover .about-visual-element span {
  background: var(--accent);
  opacity: 1;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 80px);
}

.about-intro__title,
.about-block__title {
  font-size: 16px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 22px;
}

.about-intro__title span,
.about-block__title span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: none;
  margin-left: 12px;
}

.about-intro p {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.85;
  color: var(--fg-mute);
  margin-bottom: 20px;
  font-weight: 300;
}

.about-block p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--fg-mute);
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-skill {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--t-fast) var(--ease);
}

.about-skill:hover {
  border-color: var(--line-silver);
  color: var(--fg);
  background: rgba(149, 166, 184, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(149, 166, 184, 0.08);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
  background: #000000;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.orb--contact { width: 400px; height: 400px; bottom: 20%; right: 10%; background: rgba(149, 166, 184, 0.12); }

.contact-section__inner {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--section-pad) + var(--nav-h)) var(--pad-x) var(--section-pad);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.contact-main { display: flex; flex-direction: column; gap: 48px; }

.contact-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-head__cn {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--fg);
}

.contact-head__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3.5vw, 42px);
  letter-spacing: 0.14em;
  color: var(--silver);
  padding-left: 0.14em;
}

.contact-head__desc {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--fg-mute);
  margin-top: 24px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(28px, 4vh, 36px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: all var(--t-base) var(--ease);
  position: relative;
}

.contact-link:hover {
  padding-left: 16px;
  color: var(--accent);
  border-bottom-color: var(--line-silver);
  background: linear-gradient(90deg, rgba(149, 166, 184, 0.04) 0%, transparent 100%);
}

.contact-link:active { transform: scale(0.995); }

.contact-link__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.contact-link__value {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  letter-spacing: -0.005em;
  text-align: right;
  flex: 1;
  max-width: 70%;
}

.contact-qr {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  align-self: start;
  justify-self: center;
  padding: 32px;
}

.contact-qr__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 40%, rgba(149, 166, 184, 0.2) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
  animation: qr-glow 6s ease-in-out infinite alternate;
}

@keyframes qr-glow {
  0% { opacity: 0.35; transform: scale(0.95); }
  100% { opacity: 0.8; transform: scale(1.06); }
}

.contact-qr__frame {
  position: relative;
  width: 210px;
  height: 210px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(20, 20, 24, 0.92) 0%, rgba(28, 30, 36, 0.96) 50%, rgba(20, 20, 24, 0.92) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}

.contact-qr__frame:hover {
  border-color: var(--accent);
  box-shadow: 0 0 55px rgba(149, 166, 184, 0.24), inset 0 0 30px rgba(149, 166, 184, 0.05);
}

/* 四角科技线 */
.contact-qr__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  opacity: 0.65;
  transition: opacity var(--t-base) var(--ease);
}
.contact-qr__corner--tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.contact-qr__corner--tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.contact-qr__corner--bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.contact-qr__corner--br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.contact-qr__frame:hover .contact-qr__corner { opacity: 1; }

/* 扫描线 */
.contact-qr__scan {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(149, 166, 184, 0.75), transparent);
  box-shadow: 0 0 14px rgba(149, 166, 184, 0.5);
  animation: qr-scan 3.4s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes qr-scan {
  0%, 100% { top: 22%; opacity: 0.4; }
  50% { top: 78%; opacity: 0.95; }
}

.contact-qr__core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
}

.contact-qr__core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

.contact-qr__caption {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.footer {
  padding: 28px var(--pad-x);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-top: 1px solid var(--line-soft);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  width: min(90vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: scale(0.96);
  transition: transform var(--t-base) var(--ease);
}

.lightbox.is-open .lightbox__content { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--fg);
  font-size: 24px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  display: grid;
  place-items: center;
  z-index: 5;
}

.lightbox__close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 22, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--silver);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--t-fast) var(--ease);
  z-index: 5;
  border-radius: 50%;
}

.lightbox__nav--prev { left: -68px; }
.lightbox__nav--next { right: -68px; }

.lightbox__nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(149, 166, 184, 0.15);
  box-shadow: 0 0 24px rgba(149, 166, 184, 0.2);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.lightbox__nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.lightbox__media {
  height: auto;
  max-height: min(80vh, 880px);
  max-width: 92vw;
  width: auto;
  background: #000000;
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox__media img,
.lightbox__media video {
  max-width: 100%;
  max-height: min(80vh, 880px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox__placeholder {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  color: rgba(245, 245, 245, 0.06);
  letter-spacing: 0.1em;
}

.lightbox__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.lightbox__info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lightbox__title {
  font-size: 18px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.lightbox__note {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}

.lightbox__counter {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--silver);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* =========================================================
   REVEAL / UTILITIES
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero__index { grid-template-columns: repeat(2, 1fr); }
  .work-row { grid-template-columns: repeat(2, 1fr); }
  .work-row--wide,
  .work-row--two { grid-template-columns: repeat(2, 1fr); }
  .asset-previews { grid-template-columns: repeat(2, 1fr); }
  .visual-gallery__hero { height: clamp(280px, 45vw, 400px); min-height: 280px; }
  .visual-row { grid-template-columns: repeat(2, 1fr); }
  .render-categories { grid-template-columns: repeat(2, 1fr); }
  .about-section__inner { grid-template-columns: 1fr; }
  .about-left { position: static; }
  .contact-section__inner { grid-template-columns: 1fr; }
  .contact-qr { justify-self: start; margin-top: 0; }
  .section__header { flex-direction: column; align-items: flex-start; gap: 28px; }
  .section__tags { justify-content: flex-start; }
  .animation-page--intro { grid-template-columns: 1fr; gap: 40px; }
  .animation-intro__meta { grid-template-columns: 1fr; gap: 14px; }
  .animation-cover .image-frame--vertical { max-width: 360px; }
  .animation-page--intro { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav__en { display: none; }
  .nav__brand-en { display: none; }
  .nav__brand-line { display: none; }
  .nav__links { gap: 20px; }
  .hero__name-cn { font-size: clamp(56px, 16vw, 110px); letter-spacing: 0.08em; }
  .hero__name-en { font-size: 16px; letter-spacing: 0.32em; }
  .hero__role-cn { font-size: 15px; letter-spacing: 0.24em; }
  .hero__role-en { font-size: 9px; }
  .hero__tags li { padding: 8px 12px; }
  .hero__tag-cn { font-size: 12px; }
  .hero__tag-en { display: none; }
  .hero__cta-en, .hero__cta-sep { display: none; }
  .hero__index { grid-template-columns: 1fr 1fr; }
  .work-row { grid-template-columns: 1fr; }
  .work-row--wide,
  .work-row--two { grid-template-columns: 1fr; }
  .asset-previews { grid-template-columns: repeat(2, 1fr); }
  .video-frame--hero { aspect-ratio: 16 / 10; min-height: 280px; }
  .image-frame--wide { aspect-ratio: 16 / 10; min-height: 280px; }
  .image-frame--large { min-height: 320px; }
  .image-frame--vertical { max-width: 320px; min-height: 480px; }
  .visual-gallery__hero { height: clamp(220px, 40vw, 320px); min-height: 220px; }
  .visual-row { grid-template-columns: 1fr; }
  .render-categories { grid-template-columns: 1fr; }
  .render-category .image-frame--square { aspect-ratio: 16 / 10; min-height: 240px; }
  .section__title { font-size: clamp(30px, 9vw, 48px); }
  .contact-head__cn { font-size: clamp(40px, 12vw, 72px); }
  .contact-head__en { font-size: clamp(20px, 5vw, 32px); }
  .contact-link { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contact-link__value { text-align: left; max-width: 100%; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
  .lightbox__content { width: 94vw; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__info { flex-direction: column; align-items: flex-start; }
  .section__process { gap: 8px; }
  .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 480px) {
  .nav__cn { font-size: 12px; }
  .hero__tags { gap: 8px; }
  .hero__focus-label { font-size: 11px; }
  .hero__focus-label::before,
  .hero__focus-label::after { width: 24px; }
  .hero__index { grid-template-columns: 1fr; }
  .asset-previews { grid-template-columns: 1fr; }
  .visual-gallery__quad { grid-template-columns: 1fr; }
  .visual-gallery__hero { height: 200px; min-height: 200px; }
  .image-frame--large { min-height: 280px; }
  .image-frame--wide { min-height: 200px; }
  .about-visual-element { display: none; }
  .about-skill { font-size: 14px; padding: 10px 14px; }
  .contact-qr__frame { width: 140px; height: 140px; }
}

/* =========================================================
   NEW COMPONENTS — v2 优化
   ========================================================= */

/* 主视觉标签 */
.featured-work__label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.featured-work__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.featured-work__name {
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.04em;
}

/* 创作方向 */
.section__directions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 24px;
}
.direction-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.direction-item__cn {
  font-size: 15px;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.direction-item__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.18em;
}

/* 流程箭头 */
.process-arrow {
  color: var(--fg-dim);
  opacity: 0.45;
  font-size: 12px;
  display: inline-block;
}

/* 辅助作品行 — 主次分明 */
.work-row--aside {
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(24px, 3vh, 36px);
}
.work-row--aside .work-row__item .video-frame {
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

/* 紧凑资产预览 — 电影幕后感，小尺寸 */
.asset-previews--compact {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 18px);
}
.asset-previews--compact .asset-preview__card {
  aspect-ratio: 1 / 1;
}
.asset-previews--compact .asset-preview__meta {
  padding: 14px;
}
.asset-previews--compact .asset-preview__title {
  font-size: 13px;
}
.asset-previews--compact .asset-preview__subtitle {
  font-size: 11px;
}
.asset-previews--compact .asset-preview__overlay {
  width: 30px;
  height: 30px;
  top: 12px;
  right: 12px;
  font-size: 11px;
}

/* About 增强 */
.about-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.about-meta__item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
}
.about-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}

/* =========================================================
   氛围增强 — 背景层次 / 慢动画 / 节奏
   ========================================================= */

/* section 之间纯黑无缝过渡，无任何过渡痕迹 */

/* 标题慢 reveal */
.section__title {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 资产预览更克制的默认态 — 电影幕后感 */
.asset-previews--compact .asset-preview__card img {
  filter: brightness(0.58) saturate(0.68) contrast(0.94);
}
.asset-previews--compact .asset-preview:hover .asset-preview__card img {
  filter: brightness(0.92) saturate(1) contrast(1);
}

/* 响应式补充 */
@media (max-width: 900px) {
  .work-row--aside { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .section__directions { gap: 16px; }
  .featured-work__label { flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  .asset-previews--compact { grid-template-columns: repeat(2, 1fr); }
  .process-arrow { display: none; }
  .section__process { flex-wrap: wrap; gap: 8px; }
}

/* =========================================================
   ATMOSPHERE & MICRO-INTERACTIONS
   ========================================================= */

/* Film grain overlay */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 0.5s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -2%); }
  20% { transform: translate(2%, 2%); }
  30% { transform: translate(-1%, 1%); }
  40% { transform: translate(1%, -1%); }
  50% { transform: translate(-2%, 2%); }
  60% { transform: translate(2%, -2%); }
  70% { transform: translate(-1%, -1%); }
  80% { transform: translate(1%, 1%); }
  90% { transform: translate(-2%, -1%); }
}

/* Mouse-follow glow on cards */
.mouse-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(149, 166, 184, 0.14) 0%, transparent 50%);
  transition: opacity 400ms var(--ease);
}

.video-frame:hover .mouse-glow,
.image-frame:hover .mouse-glow,
.asset-preview__card:hover .mouse-glow {
  opacity: 1;
}

/* Parallax image containers */
.parallax-media {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Section transition lines */
.section-transition {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--line-silver) 50%, transparent);
  opacity: 0.6;
  pointer-events: none;
}

/* Enhanced reveal with blur */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease), filter 1000ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================================================
   MOTION REDUCE
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__eyebrow,
  .hero__name,
  .hero__role,
  .hero__focus,
  .hero__tags,
  .hero__cta,
  .hero__index { opacity: 1; animation: none; transform: none; filter: none; }
  .hero__bg-gradient { animation: none; }
  .ambient-orb { animation: none; }
  .section-particles { display: none; }
  .video-frame video { opacity: 0.8; filter: brightness(0.8); }
  .video-frame:hover,
  .image-frame:hover,
  .work-row__item:hover .video-frame,
  .work-row__item:hover .image-frame { transform: none; }
}
