:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0a0a0c;
  --panel: #121212;
  --panel-2: #1b1b1d;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(245, 245, 247, 0.11);
  --line-strong: rgba(245, 245, 247, 0.2);
  --accent: #d6b980;
  --accent-soft: rgba(214, 185, 128, 0.13);
  --accent-glow: rgba(214, 185, 128, 0.06);
  --focus-ring: 2px solid var(--accent);
  --warm: #e8e4da; /* 暖白强调色（原 --danger，名不副实；并非错误色） */
  --max: 1600px;
  --motion-duration: 820ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

/* 全局键盘焦点环：与 --accent 同源的香槟金，不引入新颜色 */
:is(a, button, [role="button"], .work-card, input, select, textarea, summary):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

/* 视图切换按钮位于 overflow:hidden 的胶囊容器内，焦点环内缩避免被裁切 */
.work-view-toggle button:focus-visible {
  outline-offset: -3px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(214, 185, 128, 0.035), transparent 60%),
    #050505;
  color: var(--text);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 29% 38% at -6% 18%, rgba(29, 136, 79, 0.41), transparent 76%),
    radial-gradient(ellipse 28% 46% at -6% 72%, rgba(20, 106, 60, 0.34), transparent 75%),
    radial-gradient(ellipse 29% 42% at 106% 34%, rgba(28, 132, 75, 0.39), transparent 76%),
    radial-gradient(ellipse 27% 42% at 106% 84%, rgba(16, 96, 54, 0.36), transparent 75%),
    linear-gradient(90deg, rgba(7, 67, 38, 0.26), transparent 21%, transparent 79%, rgba(7, 67, 38, 0.26));
  content: "";
  pointer-events: none;
  /* 滤镜改为静态值：filter 动画会让全屏层每帧重绘，呼吸感由 opacity/transform 承担 */
  filter: saturate(0.95) brightness(1.02);
  animation: ambient-green-base 24s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

body::after {
  position: fixed;
  inset: -12%;
  z-index: 0;
  background:
    radial-gradient(ellipse 22% 30% at 9% 31%, rgba(72, 184, 108, 0.27), transparent 74%),
    radial-gradient(ellipse 24% 32% at 91% 64%, rgba(55, 171, 96, 0.26), transparent 75%),
    radial-gradient(ellipse 20% 24% at 6% 86%, rgba(24, 124, 68, 0.17), transparent 72%);
  content: "";
  pointer-events: none;
  animation: ambient-green-pulse 16s var(--motion-ease) infinite alternate;
  will-change: opacity, transform;
}

/* 呼吸只动画 opacity/transform（合成器属性），不再逐帧动画 filter */
@keyframes ambient-green-base {
  0% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
  }
  100% {
    opacity: 0.82;
    transform: scale(1.018);
  }
}

@keyframes ambient-green-pulse {
  0% {
    opacity: 0.2;
    transform: translate3d(-2%, -1%, 0) scale(0.96);
  }
  56% {
    opacity: 0.92;
    transform: translate3d(2%, 1%, 0) scale(1.08);
  }
  100% {
    opacity: 0.34;
    transform: translate3d(-1%, 2%, 0) scale(1.01);
  }
}

main {
  position: relative;
  z-index: 1;
  padding-top: 70px;
}

body.modal-open {
  overflow: hidden;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 14px max(16px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(105deg, rgba(9, 42, 25, 0.38), rgba(8, 15, 12, 0.2) 46%, rgba(8, 39, 24, 0.34));
  backdrop-filter: blur(34px) saturate(1.35) brightness(0.9);
  -webkit-backdrop-filter: blur(34px) saturate(1.35) brightness(0.9);
  border-bottom: 1px solid rgba(218, 255, 230, 0.2);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(231, 255, 238, 0.16),
    inset 0 -1px 0 rgba(31, 129, 74, 0.26);
}

/* 移动端性能护栏（P2-9）：环境光动画降级为纯 opacity（不再动画 filter/transform），
   头部 34px 大模糊减半到 16px，低端机避免掉帧 */
@media (max-width: 680px) {
  body::before {
    animation-name: ambient-green-base-mobile;
    will-change: opacity;
  }

  body::after {
    animation-name: ambient-green-pulse-mobile;
    will-change: opacity;
  }

  .site-header {
    backdrop-filter: blur(16px) brightness(0.9);
    -webkit-backdrop-filter: blur(16px) brightness(0.9);
  }
}

@keyframes ambient-green-base-mobile {
  0% { opacity: 0.72; }
  50% { opacity: 1; }
  100% { opacity: 0.78; }
}

@keyframes ambient-green-pulse-mobile {
  0% { opacity: 0.18; }
  56% { opacity: 0.9; }
  100% { opacity: 0.32; }
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(214, 185, 128, 0.46);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(214, 185, 128, 0.22), rgba(255, 255, 255, 0.03));
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.3);
}

.brand img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.nav-signature {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.nav-signature::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(214, 185, 128, 0.7), transparent);
  content: "";
}

.nav-signature span {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.nav-signature strong {
  display: block;
  min-width: 17em;
  color: rgba(245, 245, 247, 0.82);
  font-weight: 500;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.nav-signature strong.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a,
.header-link {
  display: inline-flex;
  transform-origin: center;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav a:hover,
.header-link:hover {
  color: #d2ead9;
  transform: scale(1.06);
}

.nav a.active {
  color: var(--accent);
  transform: scale(1.08);
}

.header-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text);
  font-size: 14px;
}

/* 移动端两级导航：更多按钮（桌面端隐藏） */
.nav-more {
  display: none;
}

@keyframes nav-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 二级导航在 ≤1280px 收进「更多」：实测 681–1280px 区间 11 个内联链接会横向溢出且滚动条被隐藏 */
@media (max-width: 1280px) {
  .nav a[data-nav-secondary] {
    display: none;
  }

  .nav-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(214, 185, 128, 0.12), rgba(255, 255, 255, 0.02));
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
  }

  .nav-more:hover {
    color: #d2ead9;
    border-color: rgba(214, 185, 128, 0.55);
  }

  .nav-more.has-active {
    color: var(--accent);
    border-color: rgba(214, 185, 128, 0.55);
  }

  .nav-more-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 220ms var(--motion-ease);
  }

  .nav-more.is-open .nav-more-chevron {
    transform: rotate(180deg);
  }

  .nav-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    min-width: 184px;
    padding: 8px;
    border: 1px solid rgba(218, 255, 230, 0.14);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(16, 27, 20, 0.94), rgba(7, 12, 9, 0.97));
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow:
      0 18px 46px rgba(0, 0, 0, 0.52),
      inset 0 1px 0 rgba(236, 255, 242, 0.06);
    z-index: 1200;
    transform-origin: top right;
    animation: nav-menu-in 220ms var(--motion-ease);
  }

  .nav-more-menu[hidden] {
    display: none;
  }

  .nav-more-menu a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease;
  }

  .nav-more-menu a:hover {
    color: var(--accent);
    background: rgba(214, 185, 128, 0.08);
  }

  .nav-more-menu a.active {
    color: var(--accent);
  }

  .nav-more-menu a.nav-more-resume {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 9px;
    margin-top: 6px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-more-menu {
    animation: none;
  }
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

section[id] {
  scroll-margin-top: 92px;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse 60% 50% at 70% 60%, rgba(232, 228, 218, 0.04), transparent 65%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

/* WebGL 放映光束尘埃层：叠在环境光之上、文案之下，不拦截交互 */
.hero-dust {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-dust {
    display: none;
  }
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(72px, 10vw, 156px);
  line-height: 0.9;
}

/* 渐变只作用于「韦蓝鑫」span，避免 background-clip:text 把斜体 Nicolas 的降部裁掉 */
.hero-name > span {
  background: linear-gradient(135deg, #f2dcab 0%, #d6b980 40%, #a87c2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-name {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
  align-items: flex-end;
}

.hero-name small {
  margin-bottom: 0.12em;
  color: var(--accent);
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(22px, 2.3vw, 42px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding-bottom: 0.1em;
  -webkit-text-fill-color: var(--accent);
}

/* 名字保持较慢节奏，但使用匀速连续扫光，避免循环衔接处减速停顿。 */
.hero-name > span,
.hero-name small {
  background-image: linear-gradient(
    100deg,
    #a87c2f 0%,
    #d6b980 34%,
    #fff7e0 50%,
    #d6b980 66%,
    #a87c2f 100%
  );
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hero-name-polish 5.6s linear infinite;
}

@keyframes hero-name-polish {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name > span,
  .hero-name small {
    animation: none;
    background-position: 50% 0;
  }
}

.hero-statement {
  position: relative;
  max-width: min(820px, 100%);
  margin-top: 30px;
  border: 1px solid rgba(245, 245, 247, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(214, 185, 128, 0.12), rgba(12, 12, 12, 0.58) 44%, rgba(10, 10, 10, 0.36)),
    radial-gradient(circle at 8% 20%, rgba(214, 185, 128, 0.14), transparent 28rem);
  padding: clamp(22px, 3vw, 38px) clamp(26px, 3.4vw, 48px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-statement::before {
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.hero-role {
  margin: 0;
  color: var(--accent);
  font-size: clamp(22px, 1.85vw, 31px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}

/* 文字抛光扫光：仅保留大字层级（hero-role / result-hero），周期性从左扫到右，循环。
   小字 eyebrow、experience-date 回到静止 --accent，保证 12px 字号对比度并减少动效噪音 */
.hero-role,
.result-hero strong {
  background-image: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent) 38%,
    #fff7e0 50%,
    var(--accent) 62%,
    var(--accent) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: text-polish 2.8s linear infinite;
}

@keyframes text-polish {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* 排除：首屏 "Personal Portfolio 2026" 与弹窗分类不抛光 */
.hero-copy > .eyebrow,
#modalCategory {
  background-image: none;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-role,
  .result-hero strong {
    animation: none;
  }
}

.hero-summary {
  max-width: 820px;
  white-space: pre-line;
  margin: 20px 0 0;
  color: rgba(245, 245, 247, 0.68);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.hero-tags,
.skill-list,
.related-works {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 28px;
}

.hero-tags span,
.skill-list span,
.related-works span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 14px;
  color: var(--accent);
  font-size: 16px;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.hero-tags span:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

@media (prefers-reduced-motion: reduce) {
  .set-banner-slide,
  .photo-showcase-progress-track > span {
    transition: none;
  }
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  transition:
    background 180ms var(--motion-ease),
    border-color 180ms var(--motion-ease),
    color 180ms var(--motion-ease),
    box-shadow 180ms var(--motion-ease),
    transform 120ms var(--motion-ease);
}

/* 按压物理反馈：快速下压，松开回弹（hover 抬升在按下时让位） */
.button:active {
  transform: scale(0.97);
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(214, 185, 128, 0.2);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  border-color: var(--accent);
  background: rgba(214, 185, 128, 0.12);
}

.hero-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    var(--panel);
  overflow: hidden;
}

.hero-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-brief div {
  min-width: 0;
  background: rgba(13, 13, 12, 0.92);
  padding: 18px;
}

.hero-brief span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero-brief strong {
  display: block;
  margin-top: 10px;
  color: var(--warm);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.quick-grid div {
  min-width: 0;
  background: rgba(13, 13, 12, 0.92);
  padding: 18px;
}

.quick-grid span,
.profile-cards span,
.growth-path-card span,
.work-kicker,
.modal-meta dt,
.experience-date,
.profile-cards article span {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.quick-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-resume-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin: 18px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
}

.hero-resume-link:hover {
  background: rgba(199, 167, 100, 0.25);
}

.set-banner {
  position: relative;
  /* 布满屏宽 */
  width: 100%;
  height: clamp(660px, calc(100svh - 70px), 880px);
  min-height: 620px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse 90% 80% at 72% 46%, rgba(29, 157, 86, 0.34), transparent 58%),
    radial-gradient(ellipse 68% 78% at 18% 72%, rgba(7, 96, 51, 0.52), transparent 62%),
    linear-gradient(135deg, #03130b 0%, #061c10 46%, #020604 100%);
  overflow: hidden;
  contain: paint;
}

.set-banner.is-media-loading {
  background-size: 118% 118%, 112% 112%, 100% 100%;
  animation: hero-ambient-loading 3.6s var(--motion-ease) infinite alternate;
}

.hero-opening {
  position: fixed;
  inset: 0;
  z-index: 1600;
  overflow: hidden;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 640ms var(--motion-ease), visibility 640ms var(--motion-ease);
}

html.hero-opening-pending .hero-opening {
  display: block;
  opacity: 1;
  visibility: visible;
}

.hero-opening.is-playing {
  opacity: 1;
  visibility: visible;
}

.hero-opening.is-leaving {
  opacity: 0;
  visibility: visible;
}

.hero-opening-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.04) brightness(0.86);
  transform: scale(1.01);
  opacity: 0;
}

.hero-opening.is-video-playing .hero-opening-video {
  animation: hero-opening-push 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-opening-welcome {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  color: rgba(248, 246, 239, 0.96);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(58px, 12.6vw, 220px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.78;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.1);
  transform: translate(-48%, -50%) scale(0.98);
  opacity: 1;
  white-space: nowrap;
}

.hero-opening-welcome-left,
.hero-opening-welcome-right,
.hero-opening-welcome-o {
  display: inline-block;
}

.hero-opening-welcome-left,
.hero-opening-welcome-right {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(1.018);
}

.hero-opening-welcome-o {
  position: relative;
  isolation: isolate;
  color: #f33d32;
  text-shadow: 0 0 18px rgba(243, 61, 50, 0.18);
  transform: translate3d(-2.82em, 0, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.hero-opening-welcome-dot {
  color: #f33d32;
}

.hero-opening-welcome-o::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 30%;
  width: 4.6em;
  height: 1.5em;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse at 82% 50%, rgba(255, 91, 75, 0.42), rgba(206, 31, 29, 0.18) 42%, rgba(103, 10, 13, 0) 76%);
  filter: blur(0.22em);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -50%, 0) scaleX(0.24);
  transform-origin: right center;
  will-change: transform, opacity;
}

.hero-opening.is-playing .hero-opening-welcome-o {
  animation: hero-opening-o-reveal 1450ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-opening.is-playing .hero-opening-welcome-o::before {
  animation: hero-opening-o-glow-field 1450ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-opening.is-playing .hero-opening-welcome-left {
  animation: hero-opening-word-in 420ms cubic-bezier(0.22, 1, 0.36, 1) 1450ms forwards;
}

.hero-opening.is-playing .hero-opening-welcome-right {
  animation: hero-opening-word-in 420ms cubic-bezier(0.22, 1, 0.36, 1) 1690ms forwards;
}

.hero-opening::before,
.hero-opening::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-opening::before {
  background: radial-gradient(ellipse 76% 92% at 50% 45%, transparent 20%, rgba(2, 10, 12, 0.54) 100%);
}

.hero-opening::after {
  background: radial-gradient(ellipse 58% 66% at 50% 54%, rgba(42, 171, 96, 0.62), rgba(5, 40, 23, 0.88) 70%, rgba(2, 12, 8, 0.96));
  opacity: 0;
}

.hero-opening.is-playing::after {
  animation: hero-opening-handoff 1.55s ease-in 2360ms forwards;
}

.hero-opening-kicker {
  position: absolute;
  right: clamp(22px, 4vw, 68px);
  bottom: clamp(30px, 6vh, 74px);
  color: rgba(239, 220, 171, 0.76);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero-opening-skip {
  position: absolute;
  top: 22px;
  right: clamp(20px, 3vw, 54px);
  border: 1px solid rgba(239, 220, 171, 0.34);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(5, 20, 13, 0.26);
  color: rgba(248, 245, 236, 0.86);
  cursor: pointer;
  opacity: 0;
  transition: opacity 300ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-opening.is-playing .hero-opening-skip { opacity: 1; }
.hero-opening-skip:hover { border-color: rgba(239, 220, 171, 0.8); background: rgba(5, 20, 13, 0.5); }

@keyframes hero-opening-push {
  0% { filter: saturate(0.82) contrast(1.04) brightness(0.86); transform: scale(1.01); opacity: 0; }
  20% { opacity: 1; }
  64% { filter: saturate(0.92) contrast(1.08) brightness(0.94); transform: scale(1.035); opacity: 1; }
  100% { filter: saturate(0.56) hue-rotate(18deg) brightness(0.56); transform: scale(1.08); opacity: 1; }
}

@keyframes hero-opening-handoff {
  0%, 58% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes hero-opening-o-reveal {
  0% { opacity: 0; filter: blur(8px); transform: translate3d(-2.82em, 0, 0); }
  48.276% { opacity: 1; filter: blur(0); transform: translate3d(-2.82em, 0, 0); }
  65.517% { opacity: 1; filter: blur(0); transform: translate3d(-2.82em, 0, 0); }
  100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

@keyframes hero-opening-o-glow-field {
  0%, 65.517% { opacity: 0; transform: translate3d(0, -50%, 0) scaleX(0.24); }
  74% { opacity: 0.82; transform: translate3d(-0.18em, -50%, 0) scaleX(0.86); }
  87% { opacity: 0.42; transform: translate3d(-0.64em, -50%, 0) scaleX(1.18); }
  100% { opacity: 0; transform: translate3d(-0.94em, -50%, 0) scaleX(1.34); }
}

@keyframes hero-opening-word-in {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(1.018); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.hero-media-wait {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 680ms var(--motion-ease), visibility 680ms var(--motion-ease);
}

.set-banner.is-media-loading .hero-media-wait,
.set-banner.is-media-fallback .hero-media-wait {
  opacity: 1;
}

.set-banner.is-media-ready .hero-media-wait {
  visibility: hidden;
}

.hero-media-wait::before,
.hero-media-wait::after {
  position: absolute;
  inset: -12%;
  content: "";
  pointer-events: none;
}

.hero-media-wait::before {
  background:
    radial-gradient(ellipse 28% 42% at 74% 46%, rgba(68, 234, 130, 0.24), transparent 72%),
    radial-gradient(ellipse 24% 36% at 24% 68%, rgba(202, 164, 75, 0.13), transparent 74%),
    repeating-linear-gradient(0deg, rgba(235, 255, 241, 0.025) 0 1px, transparent 1px 4px);
  animation: hero-wait-ambient 4.2s var(--motion-ease) infinite alternate;
}

.hero-media-wait::after {
  background: linear-gradient(112deg, transparent 39%, rgba(229, 205, 149, 0.03) 45%, rgba(236, 255, 242, 0.28) 50%, rgba(229, 205, 149, 0.04) 55%, transparent 61%);
  transform: translateX(-115%);
  animation: hero-scanline 3.8s ease-in-out infinite;
}

.hero-media-wait span {
  position: relative;
  z-index: 1;
  color: rgba(231, 205, 144, 0.84);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.hero-media-wait i {
  position: absolute;
  top: calc(50% + 20px);
  left: 50%;
  width: min(164px, 28vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 255, 231, 0.9), transparent);
  transform: translateX(-50%);
}

@keyframes hero-wait-ambient {
  from { opacity: 0.55; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.04); }
}

@keyframes hero-scanline {
  0%, 22% { transform: translateX(-115%); opacity: 0; }
  38% { opacity: 0.7; }
  70%, 100% { transform: translateX(115%); opacity: 0; }
}

@keyframes hero-ambient-loading {
  from {
    background-position: 88% 42%, 10% 76%, 50% 50%;
  }

  to {
    background-position: 66% 50%, 24% 66%, 50% 50%;
  }
}

.cinematic-hero {
  isolation: isolate;
}

.set-banner::before,
.set-banner::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.set-banner::before {
  background:
    /* 左侧文字区轻压暗，保证 hero 文案可读 */
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08) 42%, transparent 62%),
    /* 中心亮、四周暗的径向暗角：边缘压到接近 10%，过渡平滑 */
    radial-gradient(ellipse 78% 72% at 50% 45%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.55) 75%, rgba(0, 0, 0, 0.9) 100%);
}

.set-banner::after {
  box-shadow: inset 0 -150px 130px rgba(0, 0, 0, 0.42), inset 0 0 80px rgba(0, 0, 0, 0.24);
}

.set-banner-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 760ms var(--motion-ease);
}

.set-banner.is-banner-ready .set-banner-track {
  opacity: 1;
}

.set-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 900ms var(--motion-ease), transform 1600ms var(--motion-ease);
  pointer-events: none;
}

.set-banner-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.set-banner-slide img,
.set-banner-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03) brightness(0.96);
  transition: opacity 760ms var(--motion-ease), filter 760ms var(--motion-ease);
}

.set-banner-slide div {
  position: absolute;
  right: 40px;
  top: 34px;
  z-index: 3;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(243, 240, 232, 0.48);
  background: rgba(0, 0, 0, 0.26);
  padding: 12px 14px;
  text-align: right;
}

.set-banner-slide strong {
  font-size: 16px;
}

.set-banner-slide span {
  color: var(--muted);
  font-size: 12px;
}

.set-banner .hero {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-items: end;
  width: min(var(--max), calc(100% - 40px));
  padding-top: clamp(72px, 8vw, 110px);
  padding-bottom: clamp(54px, 7vw, 92px);
}

.set-banner .hero-copy {
  max-width: 1120px;
}

.set-banner-overlay {
  position: static;
  z-index: 4;
  width: min(720px, 100%);
  margin-top: 34px;
  transform: none;
  text-align: left;
}

.set-banner-overlay h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.3;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.62);
}

.set-banner-overlay p:last-child {
  display: block;
  max-width: 560px;
  min-height: 0;
  margin: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.banner-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.16);
  color: var(--text);
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease, border-color 180ms ease, background 180ms ease;
}

.banner-control svg {
  display: block;
}

.set-banner.is-banner-ready .banner-control {
  opacity: 1;
  pointer-events: auto;
}

.banner-control:hover {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.44);
}

.banner-control.prev {
  left: 22px;
}

.banner-control.next {
  right: 22px;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 420ms ease;
}

.set-banner.is-banner-ready .banner-dots {
  opacity: 1;
}

.banner-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 240, 232, 0.45);
  padding: 0;
  cursor: pointer;
}

.banner-dots button.active {
  width: 34px;
  background: var(--text);
}

.highlights-section {
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 48%, transparent);
}

.highlights-heading {
  margin-bottom: 24px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  padding-bottom: 14px;
}

.metrics-strip::-webkit-scrollbar {
  display: none;
}

.metric-card {
  position: relative;
  min-height: clamp(360px, 34vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(245, 245, 247, 0.09);
  border-radius: 8px;
  background: #0d0d0e;
  scroll-snap-align: center;
}

.metric-card img,
.metric-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.metric-card img {
  object-fit: cover;
  filter: grayscale(0.15) saturate(0.82) contrast(1.06);
  transition: transform 1100ms var(--motion-ease), filter 1100ms var(--motion-ease);
}

.metric-card-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 24%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(90deg, rgba(214, 185, 128, 0.18), transparent 55%);
}

.metric-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: clamp(24px, 3vw, 38px);
}

.metric-card strong {
  display: block;
  color: var(--accent);
  font-size: clamp(36px, 3.2vw, 56px);
  line-height: 0.95;
}

.metric-card-copy > span {
  display: block;
  max-width: 16em;
  margin-top: 14px;
  color: rgba(245, 245, 247, 0.84);
  font-size: 16px;
  line-height: 1.55;
}

.metric-card:hover img {
  transform: scale(1.025);
  filter: grayscale(0) saturate(0.95) contrast(1.07);
}

.featured-cinema {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 2.8vw, 38px) 0 clamp(32px, 4vw, 52px);
  overflow: hidden;
  /* 背景移至 ::after，便于顶部/底部渐隐融入相邻模块 */
}

/* 放映厅背景层：暗场影院化——近黑深墨绿底，顶部与底部各 150px 渐隐融入相邻模块 */
.featured-cinema::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 72% at 50% 48%, rgba(34, 96, 56, 0.62), rgba(14, 40, 24, 0.7) 55%, rgba(7, 18, 11, 0.82) 85%),
    linear-gradient(180deg, rgba(7, 20, 12, 0.82), #0a2415 50%, rgba(7, 20, 12, 0.82));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, black 150px, black calc(100% - 150px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, black 150px, black calc(100% - 150px), transparent 100%);
  content: "";
  pointer-events: none;
}

.featured-cinema::before {
  position: absolute;
  inset: -12% -10%;
  z-index: 0;
  /* 主光源：与图集同款，更亮、更大范围 */
  background: radial-gradient(
    ellipse 64% 78% at 50% 50%,
    rgba(132, 255, 188, 0.8) 0%,
    rgba(90, 230, 148, 0.52) 34%,
    rgba(54, 184, 112, 0.32) 54%,
    rgba(34, 142, 84, 0.18) 70%,
    transparent 84%
  );
  content: "";
  filter: blur(22px) saturate(1.12);
  opacity: 0.95;
  pointer-events: none;
  transform: scale(0.98);
  animation: cinema-ambient-breathe 13s ease-in-out infinite alternate;
}

.featured-cinema > * {
  position: relative;
  z-index: 1;
}

@keyframes cinema-ambient-breathe {
  from {
    opacity: 0.85;
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    transform: scale(1.01);
  }
}

.motion-archive {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 100svh;
  min-height: 100svh;
  margin-top: 0;
  overflow: visible;
  /* 背景移至 ::before，便于整体加渐隐 mask */
}

/* 精选作品背景层：顶部 180px 渐隐融入上一屏环境光，消除模块间硬切横带 */
.motion-archive::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 56% 68% at 50% 48%, rgba(120, 255, 170, 0.6) 0%, rgba(52, 210, 120, 0.32) 40%, rgba(26, 140, 78, 0.14) 60%, transparent 74%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(3, 16, 10, 0.4) 0%, #06331d 24%, #041c11 56%, rgba(2, 12, 7, 0.95) 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0, black calc(100% - 160px), transparent 100%);
  mask-image: linear-gradient(180deg, black 0, black calc(100% - 160px), transparent 100%);
  content: "";
  pointer-events: none;
}

/* 模块分界发丝线：两端渐隐、中间微亮，把接缝变成刻意的版式语言 */
/* 模块分界发丝线：两端渐隐、中间微亮，把接缝变成刻意的版式语言 */
.section-hairline {
  display: block;
  width: min(var(--max), calc(100% - 32px));
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, rgba(214, 185, 128, 0.26) 24%, rgba(238, 224, 192, 0.6) 50%, rgba(214, 185, 128, 0.26) 76%, transparent 100%);
  box-shadow: 0 0 14px rgba(214, 185, 128, 0.16);
}

.motion-archive::after {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(214, 185, 128, 0.26) 24%, rgba(238, 224, 192, 0.6) 50%, rgba(214, 185, 128, 0.26) 76%, transparent 100%);
  box-shadow: 0 0 14px rgba(214, 185, 128, 0.16);
  content: "";
  pointer-events: none;
}

.motion-archive-sticky {
  position: relative;
  display: grid;
  min-height: 100svh;
  height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 56% 58% at 50% 50%, rgba(42, 190, 94, 0.28), transparent 74%),
    radial-gradient(ellipse 38% 82% at 0% 50%, rgba(13, 150, 67, 0.28), transparent 78%),
    radial-gradient(ellipse 38% 82% at 100% 50%, rgba(12, 142, 64, 0.25), transparent 78%);
}

.motion-archive-sticky::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(56vw, 860px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 185, 128, 0.82), rgba(218, 255, 231, 0.78), rgba(214, 185, 128, 0.82), transparent);
  box-shadow: 0 0 26px rgba(214, 185, 128, 0.28);
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.12);
  transition: opacity 420ms ease, transform 980ms var(--motion-ease);
}

.motion-archive.is-cinematic-transition .motion-archive-sticky::before {
  opacity: 0.92;
  transform: translate(-50%, -50%) scaleX(1);
}

.motion-archive.is-cards-visible .motion-archive-sticky::before {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(1.16);
}

.motion-archive-intro {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100%;
  height: 1em;
  font-size: clamp(30px, 4.1vw, 70px);
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 0.82;
  transform: translate(-50%, -50%);
  transition: opacity 680ms var(--motion-ease), filter 680ms var(--motion-ease);
  white-space: nowrap;
}

.motion-archive-intro span {
  position: absolute;
  top: 50%;
  transform-origin: center;
  transition:
    left 940ms var(--motion-ease),
    right 940ms var(--motion-ease),
    transform 940ms var(--motion-ease),
    scale 320ms var(--motion-ease),
    filter 320ms ease,
    text-shadow 320ms ease;
}

.motion-archive-intro span:first-child {
  left: 50%;
  color: rgba(226, 190, 112, 0.88);
  text-shadow: 0 0 30px rgba(214, 173, 85, 0.22);
  transform: translate(-102%, -50%);
}

.motion-archive-intro span:last-child {
  right: 50%;
  color: rgba(125, 246, 176, 0.84);
  text-shadow: 0 0 32px rgba(74, 235, 139, 0.26);
  transform: translate(102%, -50%);
}

.motion-archive-intro span:first-child:hover {
  scale: 1.12;
  color: #ffd76a;
  filter: saturate(1.5) brightness(1.1);
  text-shadow: 0 0 48px rgba(255, 220, 140, 1), 0 0 120px rgba(250, 190, 70, 0.8);
}

.motion-archive-intro span:last-child:hover {
  scale: 1.12;
  color: #5cffa8;
  filter: saturate(1.5) brightness(1.1);
  text-shadow: 0 0 52px rgba(150, 255, 190, 1), 0 0 130px rgba(80, 250, 140, 0.8);
}

.motion-archive.is-intro-open .motion-archive-intro {
  opacity: 0.58;
  filter: blur(0.35px);
}

.motion-archive.is-intro-open .motion-archive-intro:has(span:hover) {
  opacity: 1;
  filter: blur(0);
}

.motion-archive.is-intro-open .motion-archive-intro span:first-child {
  left: clamp(24px, 7vw, 140px);
  transform: translate(0, -50%);
}

.motion-archive.is-intro-open .motion-archive-intro span:last-child {
  right: clamp(24px, 7vw, 140px);
  transform: translate(0, -50%);
}

.motion-archive-track {
  position: relative;
  z-index: 1;
  width: min(72vw, 1040px);
  height: min(84svh, 780px);
  margin-inline: auto;
  pointer-events: none;
}

.motion-archive-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(50vw, 720px);
  transform: translate(-50%, -50%) translate3d(0, 100px, 0) scale(0.74);
  opacity: 0;
  transition: opacity 460ms var(--motion-ease), transform 760ms var(--motion-ease), filter 560ms var(--motion-ease);
  filter: brightness(0.94) saturate(0.9) blur(0.1px);
  will-change: transform, opacity;
}

.motion-archive.is-cards-visible .motion-archive-card {
  opacity: var(--motion-opacity, 0.82);
  transform: var(--motion-transform, translate(-50%, -50%) translate3d(0, 0, 0) scale(0.9));
}

.motion-archive-card.is-recycling {
  transition: none;
}

.motion-archive.is-cards-visible .motion-archive-card:nth-child(1) { transition-delay: 0ms; }
.motion-archive.is-cards-visible .motion-archive-card:nth-child(2) { transition-delay: 35ms; }
.motion-archive.is-cards-visible .motion-archive-card:nth-child(3) { transition-delay: 70ms; }
.motion-archive.is-cards-visible .motion-archive-card:nth-child(4) { transition-delay: 105ms; }
.motion-archive.is-cards-visible .motion-archive-card:nth-child(5) { transition-delay: 140ms; }
.motion-archive.is-cards-visible .motion-archive-card:nth-child(n + 6) { transition-delay: 175ms; }

.motion-archive-card.is-active {
  filter: brightness(1.04) saturate(1.04);
  pointer-events: auto;
}

.motion-archive-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(220, 255, 231, 0.36);
  border-radius: clamp(16px, 1.8vw, 24px);
  background: linear-gradient(135deg, #3a9a5a, #0b2515);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28), 0 0 36px rgba(57, 215, 112, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.motion-archive-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 28, 15, 0), transparent 50%, rgba(0, 0, 0, 0.06));
  content: "";
  pointer-events: none;
}

.motion-archive-media img,
.motion-archive-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motion-archive-card.is-portrait-video .motion-archive-media {
  background:
    linear-gradient(90deg, #030b07 0%, #0b2518 18%, #0c1d14 36%, #0c1d14 64%, #0b2518 82%, #030b07 100%);
}

.motion-archive-card.is-portrait-video .motion-archive-media video {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: translateX(-50%);
}

.motion-archive-portrait-mark {
  position: absolute;
  top: 50%;
  z-index: 0;
  width: 24%;
  color: rgba(189, 232, 201, 0.42);
  font-size: clamp(9px, 0.78vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 16px rgba(32, 118, 65, 0.26);
  opacity: 0;
  transition: opacity 500ms var(--motion-ease) 250ms;
}

.motion-archive-card.is-portrait-video .motion-archive-portrait-mark {
  opacity: 1;
}

.motion-archive-card > span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: rgba(245, 245, 247, 0.86);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.motion-archive-controls {
  position: absolute;
  right: clamp(20px, 4vw, 70px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.motion-archive-hint {
  margin: 0;
  color: rgba(214, 185, 128, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.featured-cinema-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 36px;
}

.featured-cinema-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -14px;
}

.featured-cinema-copy h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
}

.featured-cinema-copy > p:last-child {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.featured-cinema-stage {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  min-height: clamp(520px, 47vw, 700px);
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity 1300ms var(--motion-ease),
    transform 1300ms var(--motion-ease),
    filter 1300ms var(--motion-ease);
  border: 1px solid rgba(245, 245, 247, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(ellipse 50% 66% at 50% 46%, rgba(76, 196, 116, 0.28), rgba(16, 60, 36, 0.14) 58%, transparent 78%),
    linear-gradient(180deg, rgba(8, 26, 16, 0.92), rgba(5, 17, 11, 0.96));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.34),
    0 0 100px rgba(52, 205, 112, 0.2),
    inset 0 1px 0 rgba(226, 255, 235, 0.12);
  animation: featured-cinema-ambient 12s ease-in-out infinite alternate;
}

.featured-cinema-stage::before {
  position: absolute;
  right: -12%;
  bottom: -24%;
  left: -12%;
  height: 42%;
  border-top: 1px solid rgba(159, 211, 174, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(159, 211, 174, 0.028) 0 1px, transparent 1px 80px),
    linear-gradient(180deg, rgba(70, 132, 93, 0.07), transparent 72%);
  content: "";
  transform: perspective(560px) rotateX(58deg);
  transform-origin: bottom;
}

.featured-cinema-stage::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 72% at 50% 48%, rgba(90, 210, 140, 0.15), transparent 70%),
    linear-gradient(90deg, rgba(10, 67, 34, 0.06), transparent 16%, transparent 84%, rgba(10, 67, 34, 0.06)),
    linear-gradient(180deg, rgba(29, 118, 60, 0.06), transparent 42%, rgba(2, 22, 11, 0.12));
  content: "";
  pointer-events: none;
  animation: featured-cinema-glow 12s ease-in-out infinite alternate;
}

@keyframes featured-cinema-ambient {
  0% {
    background-position: center, 50% 50%;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3), 0 0 70px rgba(40, 190, 100, 0.13), inset 0 1px 0 rgba(218, 255, 230, 0.09);
  }
  100% {
    background-position: center, 50% 48%;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26), 0 0 100px rgba(60, 215, 120, 0.19), inset 0 1px 0 rgba(236, 255, 242, 0.13);
  }
}

@keyframes featured-cinema-glow {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.featured-cinema-kicker,
.featured-cinema-side-label {
  position: absolute;
  z-index: 2;
  color: rgba(245, 245, 247, 0.38);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.featured-cinema-kicker {
  top: 26px;
  left: 30px;
  opacity: 0;
}

.featured-cinema.is-visible .featured-cinema-kicker {
  opacity: 1;
}

.featured-cinema-side-label {
  right: -38px;
  bottom: 146px;
  color: rgba(164, 207, 177, 0.3);
  opacity: 0;
  transform: rotate(-90deg);
  transform-origin: center;
}

.featured-cinema.is-visible .featured-cinema-side-label {
  opacity: 1;
}

.featured-cinema-monitor {
  --monitor-top-bezel: clamp(22px, 1.5vw, 28px);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(58vw, 880px);
  opacity: 0;
  filter: brightness(0.72) saturate(0.8);
  transform: translate(-50%, calc(-50% + 16px)) scale(0.93);
  transition: opacity 520ms var(--motion-ease), transform 820ms var(--motion-ease), filter 820ms var(--motion-ease);
}

.featured-cinema-monitor::before {
  position: absolute;
  top: -14%;
  right: -20%;
  bottom: -12%;
  left: -20%;
  z-index: -1;
  border-radius: 42%;
  background: radial-gradient(ellipse at 50% 46%, rgba(140, 255, 180, 0.85), rgba(64, 224, 134, 0.52) 45%, transparent 76%);
  content: "";
  filter: blur(24px);
  opacity: 0.95;
  pointer-events: none;
  animation: monitor-halo-breathe 7.2s ease-in-out infinite alternate;
}

@keyframes monitor-halo-breathe {
  from {
    opacity: 0.8;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

.featured-cinema.is-visible .featured-cinema-monitor {
  opacity: 1;
  filter: brightness(1) saturate(1);
  transform: translate(-50%, -50%) scale(1);
}

.featured-cinema.is-visible .featured-cinema-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.featured-cinema-monitor-screen {
  position: relative;
  z-index: 1;
  width: calc(100% - clamp(20px, 1.45vw, 28px));
  margin: 0 auto;
  overflow: hidden;
  border: clamp(11px, 0.95vw, 15px) solid #262b2e;
  border-top-width: var(--monitor-top-bezel);
  border-bottom-width: clamp(14px, 1.1vw, 20px);
  border-radius: clamp(12px, 1vw, 18px);
  background: #071009;
  box-shadow:
    0 0 0 1px rgba(210, 255, 226, 0.5),
    0 0 0 rgba(92, 179, 118, 0),
    0 26px 52px rgba(0, 0, 0, 0.58),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  transition: box-shadow 820ms var(--motion-ease);
}

.featured-cinema.is-visible .featured-cinema-monitor-screen {
  box-shadow:
    0 0 0 1px rgba(210, 255, 226, 0.55),
    0 0 60px rgba(77, 164, 104, 0.22),
    0 26px 52px rgba(0, 0, 0, 0.58),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

.featured-cinema-monitor-screen::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 22%, transparent 44%, transparent 60%, rgba(255, 255, 255, 0.06) 76%, rgba(255, 255, 255, 0.14) 100%);
  content: "";
  pointer-events: none;
}

.featured-cinema-monitor-camera {
  position: absolute;
  top: calc(var(--monitor-top-bezel) / 2);
  left: 50%;
  z-index: 4;
  width: clamp(4px, 0.35vw, 6px);
  height: clamp(4px, 0.35vw, 6px);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #e4ffea 0 12%, #76ff9c 36%, #1aa553 100%);
  box-shadow: 0 0 2px rgba(226, 255, 234, 0.86), 0 0 6px rgba(87, 255, 141, 0.62), 0 0 13px rgba(35, 206, 89, 0.2);
  transform: translate(-50%, -50%);
  animation: monitor-camera-status 2.8s ease-in-out infinite;
}

@keyframes monitor-camera-status {
  0%,
  58%,
  100% {
    background: radial-gradient(circle at 34% 30%, #e4ffea 0 12%, #76ff9c 36%, #1aa553 100%);
    box-shadow: 0 0 2px rgba(226, 255, 234, 0.86), 0 0 6px rgba(87, 255, 141, 0.62), 0 0 13px rgba(35, 206, 89, 0.2);
  }
  70%,
  76% {
    background: radial-gradient(circle at 34% 30%, #fff1eb 0 12%, #ff826f 35%, #ad2c25 100%);
    box-shadow: 0 0 2px rgba(255, 238, 232, 0.86), 0 0 6px rgba(239, 84, 68, 0.7), 0 0 13px rgba(177, 43, 35, 0.24);
  }
}

.featured-cinema-monitor-chin {
  position: relative;
  z-index: 0;
  display: block;
  width: 23%;
  height: clamp(12px, 1vw, 18px);
  margin: -1px auto 0;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #34383b, #101213);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 8px rgba(0, 0, 0, 0.45);
}

.featured-cinema-monitor-neck {
  position: relative;
  z-index: 0;
  display: block;
  width: clamp(38px, 4.2vw, 66px);
  height: clamp(38px, 3.8vw, 58px);
  margin: -1px auto 0;
  background: linear-gradient(90deg, #171a1c, #4a4f52 50%, #171a1c);
  clip-path: polygon(26% 0, 74% 0, 94% 100%, 6% 100%);
}

.featured-cinema-monitor-base {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(180px, 24vw, 360px);
  height: clamp(12px, 1vw, 18px);
  margin: -1px auto 0;
  border: 1px solid rgba(245, 245, 247, 0.16);
  border-radius: 50%;
  background: linear-gradient(180deg, #4a4f52, #141516);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 20px rgba(0, 0, 0, 0.52);
}

.featured-cinema-track,
.featured-cinema-slide,
.featured-cinema-slide video,
.featured-cinema-slide img,
.featured-cinema-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-cinema-track {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(2px, 0.35vw, 6px);
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 460ms var(--motion-ease) 330ms, transform 700ms var(--motion-ease) 330ms;
}

.featured-cinema.is-visible .featured-cinema-track {
  opacity: 1;
  transform: scale(1);
}

.featured-cinema-slide {
  isolation: isolate;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 900ms var(--motion-ease), transform 1400ms var(--motion-ease);
}

.featured-cinema-slide.active {
  opacity: 1;
  transform: scale(1);
}

.featured-cinema-slide video,
.featured-cinema-slide img {
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.featured-cinema-slide.fit-contain video,
.featured-cinema-slide.fit-contain img {
  object-fit: contain;
}

.featured-cinema-slide.is-portrait {
  background:
    linear-gradient(90deg, #030b07 0%, #0b2518 18%, #0c1d14 36%, #0c1d14 64%, #0b2518 82%, #030b07 100%);
}

.featured-cinema-slide.is-portrait video,
.featured-cinema-slide.is-portrait img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: translateX(-50%);
}

.featured-cinema-portrait-mark {
  position: absolute;
  top: 50%;
  z-index: 0;
  width: 24%;
  color: rgba(189, 232, 201, 0.42);
  font-size: clamp(10px, 0.85vw, 14px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 16px rgba(32, 118, 65, 0.26);
  opacity: 0;
  transition: opacity 500ms var(--motion-ease) 250ms;
}

.portrait-mark-left {
  left: 3%;
  transform: translateY(-50%) rotate(-90deg);
}

.portrait-mark-right {
  right: 3%;
  transform: translateY(-50%) rotate(90deg);
}

.featured-cinema-slide.is-portrait .featured-cinema-portrait-mark {
  opacity: 1;
}

.featured-cinema-vignette {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 30%, transparent 68%, rgba(0, 0, 0, 0.52)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.featured-cinema-meta {
  position: absolute;
  left: clamp(28px, 3vw, 52px);
  bottom: clamp(28px, 3vw, 46px);
  z-index: 4;
  display: grid;
  gap: 10px;
  max-width: min(390px, calc(50% - min(33vw, 500px) - 78px));
}

.featured-cinema-meta span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-cinema-meta strong {
  font-size: clamp(22px, 2.7vw, 42px);
  line-height: 1.3;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.72);
}

.featured-cinema-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.featured-cinema-toggle svg {
  display: block;
}

.featured-cinema-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.featured-cinema-dots button {
  width: 24px;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.32);
  padding: 0;
  cursor: pointer;
}

.featured-cinema-dots button.active {
  background: #7cff9a;
  box-shadow: 0 0 8px rgba(87, 255, 141, 0.72);
}

.media-load {
  opacity: 0;
  transition: opacity 650ms ease, transform 900ms var(--motion-ease), filter 900ms var(--motion-ease) !important;
}

.media-load.is-loaded {
  opacity: 1;
}

.media-load:not(.is-loaded) {
  background: linear-gradient(105deg, #111 28%, #191919 42%, #111 58%) 0 0 / 220% 100%;
  animation: media-shimmer 1.6s ease-in-out infinite;
}

@keyframes media-shimmer {
  to { background-position: -220% 0; }
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.method-section > * {
  min-width: 0;
  min-height: 0;
}

.method-copy {
  display: grid;
  align-content: start;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(222, 255, 233, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 14%, rgba(214, 185, 128, 0.16), transparent 31rem),
    radial-gradient(circle at 96% 96%, rgba(36, 161, 91, 0.15), transparent 28rem),
    linear-gradient(135deg, rgba(29, 35, 31, 0.8), rgba(9, 14, 12, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 22px 52px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  padding: clamp(28px, 3vw, 44px);
}

.method-copy h2 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.04;
}

.method-copy p:not(.eyebrow) {
  width: 100%;
  max-width: 920px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.75;
}

.method-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.method-steps span {
  border: 1px solid rgba(214, 185, 128, 0.34);
  border-radius: 999px;
  background: rgba(214, 185, 128, 0.08);
  padding: 10px 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.method-visual,
.visual-panel figure,
.experience-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #090909;
}

.method-visual {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(245, 245, 247, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.method-visual::after,
.visual-panel figure::after,
.experience-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.52)),
    linear-gradient(90deg, rgba(214, 185, 128, 0.16), transparent 44%);
  pointer-events: none;
}

.method-visual img,
.visual-panel img,
.experience-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) saturate(0.9) contrast(1.06);
}

.method-visual img,
.experience-visual img {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.method-visual figcaption,
.experience-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border: 1px solid rgba(245, 245, 247, 0.16);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.55);
  padding: 8px 12px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 12px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(16px);
}

.method-visual,
.visual-panel figure,
.experience-visual,
.metric-card {
  opacity: 0.5;
  transform: translateX(36px);
  transition: opacity var(--motion-duration) var(--motion-ease), transform var(--motion-duration) var(--motion-ease);
  will-change: opacity, transform;
}

.method-visual.is-visible,
.visual-panel figure.is-visible,
.experience-visual.is-visible,
.metric-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  body::after {
    animation: none;
  }

  .featured-cinema-monitor-camera {
    animation: none;
  }

  .featured-cinema-stage,
  .featured-cinema-stage::after {
    animation: none;
  }

  .featured-cinema-stage {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .featured-cinema-kicker {
    opacity: 1;
    letter-spacing: 0.14em;
    transform: none;
    transition: none;
  }

  .featured-cinema-side-label {
    opacity: 1;
    transform: rotate(-90deg) scale(1);
    transition: none;
  }

  .modal,
  .modal::before,
  .modal::after,
  .modal-panel {
    animation: none;
  }

  .method-visual,
  .visual-panel figure,
  .experience-visual,
  .metric-card,
  .skill-panel,
  .skill-panel h3,
  .skill-panel .skill-list span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .featured-cinema-monitor {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) scale(1);
    transition: none;
  }

  .featured-cinema-track {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .motion-archive-intro,
  .motion-archive-card {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1.05;
}

.section-heading p:last-child:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading.title-reveal {
  --heading-eyebrow-shift: 10px;
  --heading-title-shift: 24px;
  --heading-reveal-blur: 6px;
}

.js .section-heading.title-reveal .eyebrow {
  opacity: 0;
  filter: blur(var(--heading-reveal-blur));
  will-change: opacity, transform, filter;
}

.js .section-heading.title-reveal .eyebrow {
  transform: translateY(var(--heading-eyebrow-shift));
  letter-spacing: 0.02em;
  transition:
    opacity 560ms var(--motion-ease),
    transform 680ms var(--motion-ease),
    filter 680ms var(--motion-ease),
    letter-spacing 720ms var(--motion-ease);
}

.js .section-heading.title-reveal h2 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.14em);
  filter: blur(var(--heading-reveal-blur));
  will-change: opacity, transform, filter;
  transition:
    opacity 520ms var(--motion-ease),
    transform 640ms var(--motion-ease),
    filter 640ms var(--motion-ease);
  transition-delay: calc(90ms + var(--char-index, 0) * 26ms);
}

.js .section-heading.title-reveal.is-visible .eyebrow {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  letter-spacing: 0.16em;
}

.js .section-heading.title-reveal.is-visible h2 .char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .section-heading.title-reveal .eyebrow,
  .js .section-heading.title-reveal h2 .char {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

@media (max-width: 680px) {
  .section-heading.title-reveal {
    --heading-eyebrow-shift: 6px;
    --heading-title-shift: 14px;
    --heading-reveal-blur: 3px;
  }
}

code {
  color: var(--warm);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.keyword-grid span {
  min-height: 84px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  color: var(--warm);
  font-size: 18px;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  cursor: pointer;
  transition:
    color 180ms var(--motion-ease),
    background 180ms var(--motion-ease),
    border-color 180ms var(--motion-ease),
    transform 120ms var(--motion-ease);
}

.filter-bar button:active {
  transform: scale(0.96);
}

.filter-bar button.active,
.filter-bar button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.works-toolbar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.works-toolbar .filter-bar {
  margin-bottom: 0;
}

.work-view-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 12, 7, 0.38);
}

.work-view-toggle button {
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition:
    color 180ms var(--motion-ease),
    background 180ms var(--motion-ease),
    transform 120ms var(--motion-ease);
}

.work-view-toggle button:active {
  transform: scale(0.94);
}

.work-view-toggle button.active {
  background: rgba(214, 185, 128, 0.18);
  color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid rgba(245, 245, 247, 0.06);
  border-radius: 8px;
  background: linear-gradient(180deg, #151515, #101010);
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  background: var(--panel-2);
  border-color: rgba(214, 185, 128, 0.32);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3);
}

/* 按压反馈：卡片下沉半格，确认「点中了」 */
.work-card:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 100ms;
}

/* 筛选空态：占满整行，发丝虚线框 + 静音文字，不用 emoji 不用插画 */
.work-grid-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}

.work-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.work-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.72));
  z-index: 2;
}

.work-overlay-stats {
  position: absolute;
  left: 14px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  gap: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.82);
  pointer-events: none;
  align-items: center;
}

.stat-like,
.stat-view {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 图标包裹层：让 SVG 与数字基线对齐 */
.stat-like > span,
.stat-view > span {
  display: inline-flex;
  align-items: center;
}

.stat-like {
  color: #ff4d6a;
}

.stat-view {
  color: #fff;
}

.work-card-details {
  position: absolute;
  inset: auto 10px 10px;
  z-index: 4;
  display: grid;
  gap: 1px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-card-details span {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  background: rgba(5, 5, 5, 0.72);
  padding: 8px 10px;
  color: rgba(245, 245, 247, 0.86);
  font-size: 12px;
  line-height: 1.35;
  backdrop-filter: blur(18px);
}

.work-card-details b {
  color: var(--accent);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
}

.work-image img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.03) brightness(0.94);
  transition: transform 320ms ease, filter 320ms ease;
}

.work-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms ease, transform 360ms var(--motion-ease);
}

.work-card.is-previewing .work-preview {
  opacity: 1;
  transform: scale(1.018);
}

.work-card.is-previewing .work-image img {
  opacity: 0;
}

.work-card:hover .work-image img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04) brightness(0.88);
}

.work-card:hover .work-card-details {
  opacity: 1;
  transform: translateY(0);
}

.work-body {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 14px;
}

.work-body-line {
  display: grid;
  gap: 6px;
  transition: transform 420ms var(--motion-ease), opacity 300ms ease;
}

.work-body-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 420ms var(--motion-ease), opacity 300ms ease;
  pointer-events: none;
}

.work-cta-arrow {
  transition: transform 260ms ease;
}

.work-card:hover .work-body-line {
  transform: translateY(-100%);
  opacity: 0;
}

.work-card:hover .work-body-cta {
  transform: translateY(0);
  opacity: 1;
}

.work-card:hover .work-cta-arrow {
  transform: translateX(4px);
}

.work-grid.is-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.work-grid.is-list .work-card {
  grid-template-columns: minmax(180px, 25%) minmax(0, 1fr);
  grid-template-rows: 1fr;
  min-height: 126px;
}

.work-grid.is-list .work-image {
  aspect-ratio: auto;
  min-height: 126px;
}

.work-grid.is-list .work-body {
  display: grid;
  align-content: center;
  padding: 22px 24px;
}

.work-grid.is-list .work-body-line {
  grid-template-columns: minmax(132px, 0.35fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
}

.work-grid.is-list .work-card-details {
  display: none;
}

.work-body strong {
  font-size: 16px;
  line-height: 1.35;
}

.work-role {
  color: var(--warm) !important;
}

.work-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.work-stats span {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 9px 12px;
  color: var(--text);
  font-size: 12px;
}

.growth-path-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.08);
  overflow: hidden;
}

.growth-path-card,
.profile-cards article,
.skill-panel {
  border: 0;
  background: rgba(18, 18, 18, 0.82);
}

.growth-path-card {
  min-height: 260px;
  padding: 24px;
}

.growth-path-card h3 {
  margin: 16px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.growth-path-card strong {
  display: block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 17px;
  line-height: 1.45;
}

.growth-path-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.result-hero {
  display: grid;
  gap: 14px;
  margin: -18px 0 34px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 20%, rgba(214, 185, 128, 0.15), transparent 34rem),
    linear-gradient(135deg, #181818, #0f0f10);
  padding: clamp(28px, 5vw, 58px);
}

.visual-panel {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
  margin: -18px 0 34px;
  background: transparent;
  padding: 0;
}

.visual-panel > div {
  display: grid;
  align-content: center;
  min-height: 320px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 20%, rgba(214, 185, 128, 0.15), transparent 34rem),
    linear-gradient(135deg, #181818, #0f0f10);
  padding: clamp(28px, 4vw, 52px);
}

.visual-panel p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.visual-panel figure {
  min-height: 320px;
  border-radius: 8px;
}

#growthPath .visual-panel > div {
  padding: clamp(26px, 2vw, 32px);
}

#growthPath .visual-panel > div > span {
  color: rgba(245, 245, 247, 0.74);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
}

#growthPath .visual-panel > div > strong {
  display: block;
  max-width: none;
  margin-top: 10px;
  color: var(--accent);
  font-size: clamp(26px, 2vw, 36px);
  line-height: 1.3;
  white-space: nowrap;
}

#growthPath .visual-panel > div > p {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.85;
}

@media (min-width: 1025px) {
  #growthPath .visual-panel {
    grid-template-columns: minmax(0, 1.85fr) minmax(340px, 0.9fr);
  }

  #growthPath .visual-panel > div,
  #growthPath .visual-panel figure {
    height: clamp(290px, 18vw, 320px);
    min-height: 0;
  }
}

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

.trait-card {
  position: relative;
  border: 1px solid rgba(245, 245, 247, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 185, 128, 0.08), transparent 8rem),
    linear-gradient(180deg, rgba(22, 22, 22, 0.82), rgba(14, 14, 15, 0.92));
  padding: 28px 24px;
  overflow: hidden;
  transition: border-color 200ms ease, transform 180ms ease;
}

.trait-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 185, 128, 0.34);
  border-radius: 50%;
  background: rgba(214, 185, 128, 0.08);
  margin-bottom: 18px;
}

.trait-card i::before {
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.trait-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.trait-card span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.trait-card h3 {
  margin: 14px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.trait-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.photo-showcase {
  --photo-showcase-card-width: clamp(680px, min(50vw, 105svh), 920px);
  --photo-showcase-track-bleed: clamp(28px, 3vw, 48px);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 760px;
  isolation: isolate;
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  overflow: clip;
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(88px, 9svh, 124px);
  padding-inline: 0;
}

.photo-showcase::after {
  position: absolute;
  inset: -120px 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 46% 72% at 0% 50%, rgba(40, 224, 112, 0.5), transparent 74%),
    radial-gradient(ellipse 46% 72% at 100% 52%, rgba(24, 194, 91, 0.46), transparent 74%),
    radial-gradient(ellipse 52% 46% at 50% 54%, rgba(31, 142, 74, 0.2), transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  content: "";
  filter: blur(26px) saturate(1.06);
  opacity: 0.5;
  pointer-events: none;
  transform: scale(0.98);
  animation: photo-showcase-ambient 7.2s ease-in-out infinite alternate;
}

.photo-showcase > * {
  position: relative;
  z-index: 1;
}

.photo-showcase > .section-heading {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

@keyframes photo-showcase-ambient {
  from {
    opacity: 0.38;
    transform: scale(0.97);
  }
  to {
    opacity: 0.88;
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-cinema::before,
  .featured-cinema-stage,
  .featured-cinema-stage::after,
  .featured-cinema-monitor::before,
  .photo-showcase::after {
    animation: none;
  }
}

.photo-showcase-wrap {
  width: 100%;
  margin-top: 24px;
}

.photo-showcase-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--photo-showcase-card-width);
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* 焦点卡视觉放大不占布局：预留稳定的裁切缓冲，不再随超宽视口无限增长。 */
  padding-block: var(--photo-showcase-track-bleed);
  padding-inline: max(16px, calc((100vw - var(--photo-showcase-card-width)) / 2));
  margin-top: calc(-1 * var(--photo-showcase-track-bleed));
  margin-bottom: calc(-1 * var(--photo-showcase-track-bleed));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8vw, #000 calc(100% - 8vw), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8vw, #000 calc(100% - 8vw), transparent);
}

.photo-showcase-track::-webkit-scrollbar {
  display: none;
}

.photo-showcase-card {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: center;
  opacity: 0.5;
  transition: opacity var(--motion-duration) var(--motion-ease);
}

.photo-showcase-card-inner {
  display: grid;
  gap: 14px;
  transform: translateX(36px) scale(0.76);
  transform-origin: center center;
  transition: transform var(--motion-duration) var(--motion-ease);
  will-change: transform;
}

.photo-showcase-card.is-visible .photo-showcase-card-inner {
  transform: translateY(0) scale(0.76);
}

.photo-showcase-card.is-focus {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.photo-showcase-card.is-focus .photo-showcase-card-inner {
  transform: translateY(0) scale(1.06);
}

.photo-showcase-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #06180e;
  transition: box-shadow var(--motion-duration) var(--motion-ease);
}

/* 外部柔光保留在容器上；统一描边放到图片上层的 ::after，避免被 img 覆盖。 */
.photo-showcase-card.is-focus .photo-showcase-image {
  box-shadow:
    0 0 32px rgba(90, 230, 150, 0.4),
    0 0 78px rgba(56, 186, 112, 0.22);
}

/* 焦点图背景光晕：放在 section 层（z-index:0，低于轨道 z-index:1），
   避免被 .photo-showcase-track 的 overflow-x:auto 垂直裁掉；
   圆形墨绿发散光，中心亮、边缘可见圆形边界 */
.photo-showcase > .photo-showcase-focus-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 0;
  width: min(980px, 84vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(132, 255, 188, 0.82) 0%,
    rgba(90, 230, 148, 0.56) 34%,
    rgba(54, 184, 112, 0.34) 52%,
    rgba(34, 142, 84, 0.18) 64%,
    transparent 74%
  );
  filter: blur(14px);
  pointer-events: none;
}

.photo-showcase-image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.68));
  box-shadow: inset 0 0 0 1px rgba(130, 255, 185, 0.16);
  pointer-events: none;
  transition: box-shadow var(--motion-duration) var(--motion-ease);
}

.photo-showcase-card.is-focus .photo-showcase-image::after {
  box-shadow:
    inset 0 0 0 1.5px rgba(143, 255, 191, 0.68),
    inset 0 0 18px rgba(90, 230, 150, 0.16);
}

.photo-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.82) contrast(1.04);
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-showcase-card:hover .photo-showcase-image img {
  transform: scale(1.012);
  filter: saturate(0.95) contrast(1.06);
}

.photo-showcase-caption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  max-width: 96%;
  min-width: 0;
}

.photo-showcase-caption strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

.photo-showcase-caption p {
  margin: 0;
  min-width: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.82);
}

.photo-showcase-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 260px);
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.photo-showcase-progress-track {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.photo-showcase-progress-track > span {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, rgba(214, 185, 128, 0.72), rgba(143, 255, 191, 0.88));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 620ms var(--motion-ease);
}

.showcase-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.showcase-controls button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.showcase-controls button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* 翻页按钮移到左右两侧（垂直居中于图集），避免和底部装饰线/页脚挤在一起 */
.photo-showcase > .showcase-controls {
  position: absolute;
  top: 52%;
  left: 0;
  right: 0;
  z-index: 3;
  margin-top: 0;
  gap: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(16px, 2vw, 32px);
  transform: translateY(-50%);
  pointer-events: none;
}

.photo-showcase > .showcase-controls button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.result-hero span {
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 20px);
}

.result-hero strong {
  max-width: none;
  color: var(--accent);
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.3;
  text-wrap: balance;
}

.timeline {
  --timeline-flow-y: 0px;
  display: grid;
  gap: 24px;
}

.experience-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 159px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(214, 185, 128, 0.54) 8%, rgba(94, 221, 139, 0.32) 86%, transparent);
  content: "";
}

.timeline::after {
  position: absolute;
  top: calc(34px + var(--timeline-flow-y));
  bottom: auto;
  left: 159px;
  z-index: 1;
  width: 3px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(98, 238, 150, 0.16) 18%, rgba(239, 213, 158, 0.96) 50%, rgba(98, 238, 150, 0.16) 82%, transparent);
  box-shadow: 0 0 12px rgba(113, 244, 160, 0.48), 0 0 28px rgba(214, 185, 128, 0.28);
  content: "";
  pointer-events: none;
  transform: translateX(-1px) translateY(-50%);
  animation: timeline-flow-pulse 1.8s ease-in-out infinite;
  will-change: opacity;
}

/* 只动画 opacity：filter 逐帧动画会持续触发重绘，will-change: top 是历史遗留（无 top 动画） */
@keyframes timeline-flow-pulse {
  0%, 100% { opacity: 0.56; }
  50% { opacity: 1; }
}

.timeline-entry {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 680ms var(--motion-ease), transform 920ms var(--motion-ease);
  transition-delay: min(calc(var(--experience-index, 0) * 65ms), 260ms);
}

.timeline-entry::before {
  content: none;
}

.timeline-entry.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

.experience-card.featured {
  margin-bottom: 18px;
}

.experience-date {
  position: relative;
  z-index: 2;
  display: flex;
  align-self: start;
  align-items: center;
  padding-top: 28px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.experience-date::after {
  display: block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-left: auto;
  margin-right: -6px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #0d1c12;
  box-shadow: 0 0 0 6px rgba(6, 25, 14, 0.86), 0 0 18px rgba(214, 185, 128, 0.24);
  content: "";
}

/* 焦点卡（前两条）公司名内边距更大，时间同步下移对齐 */
.experience-card.featured .experience-date {
  padding-top: clamp(30px, 4vw, 54px);
}

.experience-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.experience-body.has-visual {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: stretch;
}

.experience-main {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #151515, #101010);
  padding: 28px;
}

.experience-card.featured .experience-main {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

.experience-card.featured .company-intro {
  max-width: 42em;
  margin: 28px 0;
  color: rgba(245, 245, 247, 0.78);
  font-size: clamp(16px, 1.3vw, 19px);
}

.experience-proof {
  display: grid;
  gap: 9px;
  margin: 0 0 30px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(214, 185, 128, 0.12), transparent);
  padding: 18px 20px;
}

.experience-proof span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.experience-proof strong {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5;
}

@keyframes media-reveal {
  from {
    opacity: 0.5;
    transform: translateX(36px) scale(1.015);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.experience-title {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.experience-title h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
}

.experience-title p {
  margin: 8px 0 0;
  color: var(--warm);
}

.experience-title span {
  flex-shrink: 0;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
}

.company-intro {
  margin: 22px 0;
  color: var(--muted);
  line-height: 1.8;
}

.experience-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.experience-columns h4 {
  margin: 0 0 10px;
  color: var(--accent);
}

.experience-columns ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.78;
}

.experience-columns li + li {
  margin-top: 6px;
}

.related-works {
  margin-top: 18px;
}

.experience-visual {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
}

.experience-visual img {
  min-height: 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.08);
  overflow: hidden;
}

.profile-cards article {
  min-height: 88px;
  padding: 18px 22px;
}

.profile-cards strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.skill-panel {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(222, 255, 233, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 4%, rgba(214, 185, 128, 0.13), transparent 25rem),
    radial-gradient(circle at 94% 94%, rgba(36, 161, 91, 0.18), transparent 29rem),
    linear-gradient(135deg, rgba(25, 34, 29, 0.78), rgba(8, 15, 12, 0.65));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 22px 52px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  padding: 28px;
  overflow: hidden;
}

.skill-panel h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 32px;
}

.skill-panel {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms var(--motion-ease), transform 620ms var(--motion-ease);
}

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

.skill-panel h3,
.skill-panel .skill-list span {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 460ms var(--motion-ease), transform 460ms var(--motion-ease);
}

.skill-panel.is-visible h3,
.skill-panel.is-visible .skill-list span {
  opacity: 1;
  transform: translateY(0);
}

.skill-panel.is-visible .skill-list span:nth-child(1) { transition-delay: 70ms; }
.skill-panel.is-visible .skill-list span:nth-child(2) { transition-delay: 100ms; }
.skill-panel.is-visible .skill-list span:nth-child(3) { transition-delay: 130ms; }
.skill-panel.is-visible .skill-list span:nth-child(4) { transition-delay: 160ms; }
.skill-panel.is-visible .skill-list span:nth-child(5) { transition-delay: 190ms; }
.skill-panel.is-visible .skill-list span:nth-child(n + 6) { transition-delay: 220ms; }

.behind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.behind-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.behind-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.82) contrast(1.05) brightness(0.86);
}

.behind-grid figcaption {
  padding: 16px 18px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  font-size: 14px;
}

.site-footer-polish {
  width: fit-content;
  background-image: linear-gradient(
    102deg,
    #a87c2f 0%,
    var(--accent) 32%,
    #fff5d7 48%,
    var(--accent) 64%,
    #a87c2f 100%
  );
  background-position: 120% 0;
  background-size: 280% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: var(--accent);
  -webkit-text-fill-color: transparent;
  animation: footer-text-polish 7.2s ease-in-out infinite;
  animation-delay: var(--footer-polish-delay, 0s);
}

.site-footer-signature {
  --footer-polish-delay: 0s;
}

.site-footer-manifesto {
  --footer-polish-delay: 0.45s;
  justify-self: center;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  white-space: nowrap;
}

.site-footer-contact {
  --footer-polish-delay: 0.9s;
  justify-self: end;
}

@keyframes footer-text-polish {
  0%, 42% {
    background-position: 120% 0;
  }
  68%, 100% {
    background-position: -20% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-polish {
    animation: none;
    background-position: 50% 0;
  }
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 58% 72% at 50% 44%, rgba(55, 219, 113, 0.42), transparent 67%),
    radial-gradient(ellipse 42% 68% at 5% 88%, rgba(22, 180, 81, 0.45), transparent 72%),
    radial-gradient(ellipse 40% 66% at 96% 12%, rgba(28, 193, 91, 0.36), transparent 70%),
    linear-gradient(135deg, #062814 0%, #0b3b1d 48%, #052311 100%);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(1, 10, 5, 0.14);
  backdrop-filter: blur(18px) saturate(1.16);
}

.modal::before,
.modal::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  filter: blur(28px);
  pointer-events: none;
}

.modal::before {
  width: min(66vw, 980px);
  height: min(66vw, 980px);
  top: -32%;
  left: -12%;
  background: radial-gradient(circle, rgba(68, 239, 132, 0.4), transparent 68%);
  animation: modal-glow-drift 10s ease-in-out infinite alternate;
}

.modal::after {
  width: min(58vw, 820px);
  height: min(58vw, 820px);
  right: -16%;
  bottom: -42%;
  background: radial-gradient(circle, rgba(40, 214, 104, 0.36), transparent 70%);
  animation: modal-glow-drift 12s ease-in-out -4s infinite alternate-reverse;
}

@keyframes modal-glow-drift {
  from {
    opacity: 0.56;
    filter: blur(30px) brightness(0.92) saturate(0.98);
    transform: translate3d(-2%, -1%, 0) scale(0.94);
  }
  to {
    opacity: 1;
    filter: blur(24px) brightness(1.18) saturate(1.14);
    transform: translate3d(5%, 4%, 0) scale(1.08);
  }
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  width: min(1040px, 100%);
  height: min(760px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  border: 1px solid rgba(215, 255, 229, 0.23);
  background: linear-gradient(135deg, rgba(9, 35, 19, 0.62), rgba(7, 25, 14, 0.5));
  box-shadow: 0 34px 94px rgba(0, 0, 0, 0.34), 0 0 54px rgba(55, 221, 113, 0.16), inset 0 1px 0 rgba(235, 255, 242, 0.16);
  -webkit-backdrop-filter: blur(26px) saturate(1.16);
  backdrop-filter: blur(26px) saturate(1.16);
  overflow: hidden;
}

/* 弹窗入场：背板先淡入，面板淡入 + 上浮半格 + 轻微回正，一次性 260ms，不循环 */
.modal:not([hidden]) {
  animation: modal-fade-in 200ms ease-out both;
}

.modal:not([hidden]) .modal-panel {
  animation: modal-panel-in 260ms var(--motion-ease) both;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
}

@keyframes modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@media (min-width: 981px) {
  .modal-panel.landscape-layout {
    grid-template-columns: minmax(0, 1.84fr) minmax(340px, 1fr);
    width: min(1360px, calc(100vw - 44px));
    height: min(680px, calc(100vh - 48px));
  }

  .modal-panel.landscape-layout .modal-media {
    padding: 18px 22px;
  }

  .modal-panel.landscape-layout .video-frame.landscape-frame,
  .modal-panel.landscape-layout .poster-only {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .modal-panel.landscape-layout .modal-content {
    padding: 30px 32px;
  }

  .modal-panel.landscape-layout .modal-content h2 {
    padding-right: 34px;
    font-size: clamp(25px, 2.15vw, 32px);
    line-height: 1.22;
  }

  .modal-panel.landscape-layout .modal-content > p:not(.eyebrow) {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.7;
  }

  .modal-panel.landscape-layout .modal-meta {
    margin: 20px 0;
  }

  .modal-panel.landscape-layout .modal-meta div {
    padding: 11px 13px;
  }

  .modal-panel.landscape-layout .modal-meta dd {
    margin-top: 5px;
  }

  .modal-panel.landscape-layout .modal-result {
    padding: 13px 15px;
    line-height: 1.6;
  }

  .modal-panel.landscape-layout .external-link {
    min-height: 38px;
    margin-top: 10px;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.7);
  color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover {
  transform: scale(1.06);
  border-color: rgba(214, 185, 128, 0.42);
  background: rgba(36, 34, 30, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.modal-close:active {
  transform: scale(0.94);
}

.modal-close:focus-visible {
  outline: 2px solid rgba(214, 185, 128, 0.78);
  outline-offset: 3px;
}

.modal-media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 0;
  background: linear-gradient(145deg, rgba(5, 31, 16, 0.68), rgba(3, 17, 9, 0.56));
  overflow: hidden;
  padding: 18px 18px 26px;
}

.modal-media.landscape-media {
  background:
    linear-gradient(145deg, rgba(159, 255, 196, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(15, 39, 24, 0.9) 0%, rgba(6, 18, 10, 0.82) 52%, rgba(13, 31, 19, 0.86) 100%);
}

.modal-media.landscape-media::before {
  content: "NICOLAS  /  VISUAL DIRECTOR  /  NICOLAS\A PORTFOLIO  /  NICOLAS  /  MOTION & STORY\A VISUAL DIRECTOR  /  NICOLAS  /  PORTFOLIO\A NICOLAS  /  MOTION & STORY  /  NICOLAS\A PORTFOLIO  /  NICOLAS  /  VISUAL DIRECTOR\A MOTION & STORY  /  NICOLAS  /  PORTFOLIO\A NICOLAS  /  VISUAL DIRECTOR  /  NICOLAS\A VISUAL STORYTELLING  /  NICOLAS  /  PORTFOLIO\A PORTFOLIO  /  MOTION & STORY  /  NICOLAS";
  position: absolute;
  left: 52%;
  top: 51%;
  z-index: 0;
  width: 185%;
  color: rgba(235, 235, 232, 0.04);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2.1vw, 31px);
  font-weight: 500;
  line-height: 2.5;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: pre;
  transform: translate(-50%, -50%) rotate(-28deg);
  pointer-events: none;
  user-select: none;
}

.modal-media > * {
  position: relative;
  z-index: 1;
}

.modal-project-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid rgba(220, 255, 231, 0.12);
  padding-top: 15px;
}

.modal-project-nav[hidden] {
  display: none;
}

.modal-project-nav button {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.modal-project-nav button:last-child {
  text-align: right;
}

.modal-project-nav button span,
.modal-project-index {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.modal-project-nav button strong {
  overflow: hidden;
  color: rgba(245, 245, 247, 0.9);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  transition: color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.modal-project-nav button:hover strong,
.modal-project-nav button:focus-visible strong {
  color: var(--accent);
}

.modal-project-nav button:first-child:hover strong { transform: translateX(-3px); }
.modal-project-nav button:last-child:hover strong { transform: translateX(3px); }

@media (max-width: 760px) {
  .works-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .work-view-toggle {
    align-self: flex-end;
  }

  .work-grid.is-list .work-card {
    grid-template-columns: minmax(118px, 34%) minmax(0, 1fr);
    min-height: 102px;
  }

  .work-grid.is-list .work-image { min-height: 102px; }
  .work-grid.is-list .work-body { padding: 15px; }
  .work-grid.is-list .work-body-line { display: grid; grid-template-columns: 1fr; gap: 5px; }

  .timeline::before { left: 7px; }
  .timeline::after { left: 7px; }
  .timeline-entry { padding-left: 22px; }
  .experience-date::after {
    position: absolute;
    top: 50%;
    left: -21px;
    margin: 0;
    transform: translateY(-50%);
  }
  .experience-card.featured .experience-date { padding-top: 0; }

  .modal-project-nav { margin-top: 14px; }
  .modal-project-nav button strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-opening,
  .hero-media-wait::before,
  .hero-media-wait::after,
  .timeline-entry,
  .motion-archive-sticky::before,
  .work-preview {
    animation: none;
    transition: none;
  }

  .timeline-entry { opacity: 1; transform: none; }
  .timeline::after { animation: none; }
  .hero-opening { display: none; }
}

.poster-only {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  background: #050505;
  overflow: hidden;
}

.video-frame.landscape-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 100%;
}

.video-frame.portrait-frame {
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 100%;
}

.modal-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.video-poster-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: #050505;
  padding: 0;
  cursor: pointer;
}

.video-poster-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.78) brightness(0.86);
}

.video-poster-button span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(214, 185, 128, 0.55);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  padding: 10px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.video-frame.is-playing .video-poster-button {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.video-quality-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(214, 185, 128, 0.35);
  border-radius: 999px;
  background: rgba(5, 12, 8, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.video-quality-switch button {
  min-width: 50px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 7px 11px;
  color: rgba(243, 240, 232, 0.72);
  font-size: 12px;
  cursor: pointer;
}

.video-quality-switch button.active {
  background: var(--accent);
  color: #07120c;
  font-weight: 700;
}

.video-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  border: 1px solid rgba(214, 185, 128, 0.5);
  background: rgba(5, 5, 5, 0.78);
  padding: 12px 14px;
  color: var(--warm);
  font-size: 13px;
  line-height: 1.6;
}

.poster-only {
  position: relative;
  display: grid;
  place-items: center;
}

.external-poster {
  display: grid;
  place-items: center;
  color: inherit;
  cursor: pointer;
}

.poster-only img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: saturate(0.75) brightness(0.82);
}

.poster-only span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.68);
  padding: 10px 12px;
  color: var(--warm);
  font-size: 13px;
}

.external-poster:hover img {
  filter: saturate(0.8) brightness(0.92);
}

.external-poster:hover span {
  border-color: var(--accent);
  color: var(--text);
}

.modal-content {
  min-height: 0;
  overflow-y: auto;
  padding: 34px;
  background: linear-gradient(180deg, rgba(9, 20, 13, 0.38), rgba(7, 15, 10, 0.22));
}

.modal-content h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.modal-content p {
  color: var(--muted);
  line-height: 1.8;
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 24px 0;
  background: var(--line);
}

.modal-meta div {
  background: rgba(7, 17, 10, 0.5);
  padding: 14px;
}

.modal-meta div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.modal-meta dd {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.modal-result {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px;
  color: var(--warm);
  line-height: 1.75;
}

.external-link {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border: 1px solid var(--accent);
  background: rgba(199, 167, 100, 0.18);
  padding: 0 16px;
  color: var(--text);
  font-weight: 700;
}

.external-link:hover {
  background: rgba(199, 167, 100, 0.28);
}

@media (max-width: 1024px) {
  .section-shell {
    padding: 36px 0;
  }

  .method-section,
  .visual-panel {
    grid-template-columns: 1fr;
  }

  .method-visual,
  .visual-panel figure {
    min-height: 360px;
  }

  .nav-signature {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-showcase {
    --photo-showcase-card-width: min(72vw, 760px, 96svh);
  }

  .photo-showcase-track {
    gap: 24px;
  }

  .metrics-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(380px, 72vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-inline: 16px;
    margin-inline: -16px;
  }

  .set-banner {
    height: auto;
    min-height: calc(100svh - 70px);
  }

  .set-banner .hero {
    position: relative;
    min-height: calc(100svh - 70px);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  .nav-signature {
    display: none;
  }

  .nav {
    justify-content: flex-start;
    gap: 18px;
  }

  .hero,
  .section-heading.split,
  .profile-layout,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .set-banner-slide div {
    right: 24px;
    top: 24px;
  }

  .result-hero strong {
    font-size: clamp(22px, 4vw, 30px);
  }

  .hero-statement {
    max-width: 100%;
  }

  .metrics-strip,
  .keyword-grid,
  .traits-grid,
  .growth-path-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(420px, 72vw);
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-showcase-image {
    border-radius: 16px;
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-date {
    padding-top: 0;
  }

  .experience-main {
    padding: 22px;
  }

  .experience-body.has-visual {
    grid-template-columns: 1fr;
  }

  .experience-visual {
    min-height: 260px;
  }

  .profile-cards article {
    min-height: 84px;
    padding: 18px 20px;
  }

  .profile-cards strong {
    font-size: 20px;
  }

  .skill-panel {
    padding: 22px;
  }

  .skill-panel h3 {
    font-size: 26px;
  }
}

@media (max-width: 680px) {
  .section-shell {
    padding: 34px 0;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 64px;
    padding: 10px 12px;
  }

  .brand {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .nav {
    align-items: center;
    height: 44px;
    font-size: 13px;
    gap: 12px;
    justify-content: flex-start;
  }

  .nav a {
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
    line-height: 1;
  }

  .nav-more {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px;
    line-height: 1;
  }

  .header-link {
    display: none;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-name {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  .hero-name small {
    margin: 0;
    padding: 0;
    font-size: 26px;
  }

  .hero-statement {
    margin-top: 24px;
    padding: 20px;
  }

  .hero-tags span:nth-child(n + 5) {
    display: none;
  }

  .hero-tags span {
    border-color: rgba(214, 185, 128, 0.28);
    background: rgba(4, 12, 8, 0.62);
    color: #ead19a;
    backdrop-filter: blur(10px);
  }

  .hero-actions {
    align-items: center;
    gap: 18px;
    margin-top: 26px;
  }

  .hero-actions .button.ghost {
    min-height: 36px;
    border: 0;
    border-bottom: 1px solid rgba(214, 185, 128, 0.5);
    border-radius: 0;
    background: transparent;
    padding: 0 2px;
    color: rgba(255, 255, 255, 0.78);
  }

  .method-copy h2 {
    font-size: 42px;
  }

  .method-copy,
  .visual-panel > div {
    padding: 24px;
  }

  #growthPath .visual-panel > div {
    padding: 24px;
  }

  #growthPath .visual-panel > div > strong {
    font-size: 30px;
    line-height: 1.35;
    white-space: normal;
  }

  #growthPath .visual-panel > div > p {
    font-size: 15px;
    line-height: 1.75;
  }

  .method-visual,
  .visual-panel figure,
  .experience-visual {
    min-height: 260px;
  }

  /* 手机竖屏隐藏工作履历照片，节省纵向空间、聚焦文字 */
  .experience-visual {
    display: none;
  }

  .visual-panel > div {
    min-height: auto;
  }

  .hero-role {
    font-size: 19px;
    line-height: 1.4;
    white-space: normal;
  }

  .hero-summary {
    font-size: 16px;
    margin-top: 16px;
  }

  .set-banner {
    width: calc(100% - 16px);
    min-height: calc(100svh - 62px);
    margin-top: 10px;
  }

  .featured-cinema {
    padding: 16px 0 30px;
  }

  .featured-cinema-stage {
    width: calc(100% - 32px);
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 7px;
  }

  .featured-cinema-stage::before,
  .featured-cinema-kicker,
  .featured-cinema-side-label,
  .featured-cinema-monitor-camera,
  .featured-cinema-monitor-chin,
  .featured-cinema-monitor-neck,
  .featured-cinema-monitor-base {
    display: none;
  }

  .featured-cinema-monitor {
    width: 100%;
    filter: none;
    transform: translate(-50%, -50%) scale(0.985);
  }

  .featured-cinema.is-visible .featured-cinema-monitor {
    transform: translate(-50%, -50%) scale(1);
  }

  .featured-cinema-monitor-screen {
    width: 100%;
    margin-top: 0;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .featured-cinema-track {
    transition-delay: 220ms;
  }

  .featured-cinema-meta {
    left: 18px;
    bottom: 28px;
    max-width: calc(100% - 88px);
  }

  .featured-cinema-meta strong {
    font-size: 20px;
  }

  .featured-cinema-toggle {
    right: 16px;
    bottom: 26px;
    width: 44px;
    height: 44px;
  }

  .set-banner .hero {
    width: calc(100% - 28px);
    min-height: calc(100svh - 62px);
    padding-top: 46px;
    padding-bottom: 66px;
  }

  .set-banner-overlay {
    width: 100%;
    margin-top: 24px;
  }

  .set-banner-overlay h2 {
    font-size: 24px;
  }

  .set-banner-overlay p:last-child {
    min-height: auto;
    padding: 10px 16px;
    line-height: 1.5;
  }

  .result-hero strong {
    font-size: 22px;
    white-space: normal;
  }

  .set-banner-slide div {
    display: none;
  }

  .banner-control {
    top: auto;
    bottom: 18px;
    width: 40px;
    height: 40px;
    transform: none;
  }

  .banner-control.prev {
    left: 12px;
  }

  .banner-control.next {
    right: 12px;
  }

  .quick-grid,
  .hero-brief,
  .keyword-grid,
  .traits-grid,
  .work-grid,
  .growth-path-grid,
  .experience-columns,
  .profile-cards,
  .behind-grid,
  .modal-meta {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: none;
    grid-auto-columns: minmax(84vw, 1fr);
    gap: 14px;
    padding-inline: 16px;
  }

  .metric-card {
    min-height: min(112vw, 430px);
  }

  .metric-card strong {
    font-size: clamp(42px, 14vw, 60px);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .photo-showcase-track {
    --photo-showcase-card-width: 86vw;
    grid-auto-columns: var(--photo-showcase-card-width);
    gap: 16px;
    padding-inline: 7vw;
  }

  .photo-showcase {
    padding-bottom: 72px;
  }

  .photo-showcase-card.is-focus .photo-showcase-card-inner {
    transform: translateY(0) scale(1.04);
  }

  .photo-showcase-image {
    aspect-ratio: 16 / 9;
  }

  .photo-showcase-caption {
    gap: 10px;
    flex-wrap: wrap;
  }

  .photo-showcase-caption strong {
    font-size: 18px;
  }

  .photo-showcase-caption p {
    font-size: 14px;
    white-space: normal;
  }

  .experience-title {
    display: grid;
  }

  .experience-title span {
    max-width: none;
  }

  .modal {
    padding: 0;
  }

  .modal-content {
    padding: 24px;
  }

  .modal-panel {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
    border-left: 0;
  }

  .modal.landscape-modal {
    place-items: start stretch;
    padding: 0;
  }

  .modal-panel.landscape-layout {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border: 0;
  }

  .modal-panel.landscape-layout .modal-media {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 78px 0 54px;
  }

  .modal-panel.landscape-layout .video-frame.landscape-frame,
  .modal-panel.landscape-layout .poster-only {
    width: 100vw;
    height: auto;
    max-width: none;
    aspect-ratio: 16 / 9;
  }

  .modal-panel.landscape-layout .modal-content {
    padding: 30px 24px 56px;
  }

  .modal-panel.landscape-layout .modal-close {
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
  }

  .modal-media,
  .poster-only {
    min-height: 0;
    height: min(62vh, 520px);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    padding-top: 26px;
    text-align: center;
  }

  .site-footer-manifesto,
  .site-footer-contact {
    justify-self: center;
  }

  .site-footer-manifesto {
    max-width: 100%;
    font-size: 10px;
    letter-spacing: 0.13em;
    white-space: normal;
  }

  .work-body {
    padding: 10px;
  }

  .work-body strong {
    font-size: 14px;
  }

  .work-card-details {
    display: none;
  }

  .profile-cards article {
    padding: 18px;
    min-height: 86px;
  }

  .profile-cards strong {
    font-size: 18px;
    margin-top: 8px;
  }

  .skill-panel {
    padding: 18px;
  }

  .skill-panel h3 {
    font-size: 22px;
  }

  .experience-main {
    padding: 18px;
  }

  .experience-title {
    display: grid;
    gap: 10px;
  }

  .experience-title h3 {
    font-size: 20px;
  }

  .growth-path-card {
    padding: 18px;
    min-height: auto;
  }

  .growth-path-card h3 {
    font-size: 20px;
  }

  .hero-tags span,
  .filter-bar button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .photo-showcase-progress {
    grid-template-columns: auto minmax(88px, 1fr);
    width: calc(100% - 48px);
    margin-top: 18px;
  }

  .motion-archive {
    min-height: 100svh;
    margin-top: 12px;
  }

  .motion-archive-intro {
    width: 100%;
    font-size: 15vw;
  }

  .motion-archive.is-intro-open .motion-archive-intro {
    gap: 22vw;
  }

  .motion-archive-track {
    width: 100%;
    height: 68svh;
  }

  .motion-archive-card {
    width: 86vw;
  }
}

@media (max-width: 480px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .profile-cards {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .profile-cards article {
    padding: 16px;
    min-height: 80px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-role {
    font-size: 19px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .set-banner {
    width: calc(100% - 16px);
  }

  .set-banner-overlay h2 {
    font-size: 21px;
  }

  .metrics-strip div {
    padding: 22px 18px;
  }

  .metrics-strip strong {
    font-size: 28px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .section-shell {
    padding: 28px 0;
  }

  .hero {
    gap: 28px;
  }

  .footer {
    padding: 20px 0 30px;
    gap: 10px;
  }
}

/* ===== 精选作品：服务品牌跑马灯 ===== */
.brand-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 0;
  overflow: hidden;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.brand-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: brand-marquee-scroll 44s linear infinite;
}

.brand-marquee-track span {
  margin: 0 26px;
  color: rgba(245, 245, 247, 0.3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 240ms ease;
}

.brand-marquee:hover .brand-marquee-track span {
  color: var(--accent);
}

@keyframes brand-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track {
    animation: none;
  }
}

/* ===== 联系方式页 ===== */
body.contact-page {
  overflow: hidden;
  cursor: none;
}

body.contact-page a,
body.contact-page button {
  cursor: none;
}

/* 自定义光标：墨绿光晕（慢层，滞后跟随） */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(86, 230, 144, 0.4), rgba(26, 140, 82, 0.16) 48%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(24px);
  transform: translate(-50%, -50%) translate3d(-9999px, -9999px, 0);
  opacity: 0;
  will-change: transform;
  transition: opacity 0.45s ease, filter 0.35s ease;
}

/* 自定义光标：核心点（快层，紧贴鼠标） */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: #45ff8b;
  box-shadow: 0 0 14px rgba(69, 255, 139, 0.95);
  transform: translate(-50%, -50%) translate3d(-9999px, -9999px, 0);
  opacity: 0;
  will-change: transform;
  transition: opacity 0.45s ease, width 0.22s ease, height 0.22s ease, background 0.22s ease;
}

body.contact-page.cursor-on .cursor-dot,
body.contact-page.cursor-on .cursor-glow {
  opacity: 1;
}

/* hover 聚焦：圆点放大变亮，光晕收缩聚拢 */
body.contact-page.cursor-hover .cursor-dot {
  width: 18px;
  height: 18px;
  background: #a6ffc9;
}

body.contact-page.cursor-hover .cursor-glow {
  filter: blur(24px) brightness(1.5) saturate(1.2);
}

/* 中央墨绿光晕：加载时由小变大、由暗变亮 */
.contact-glow-center {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(62vmin, 540px);
  height: min(62vmin, 540px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(86, 230, 144, 0.42) 0%,
    rgba(48, 190, 112, 0.22) 30%,
    rgba(26, 140, 82, 0.12) 55%,
    rgba(14, 88, 54, 0.05) 78%,
    transparent 100%
  );
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(0.42);
  opacity: 0;
  filter: blur(26px) brightness(0.5);
  will-change: transform, opacity, filter;
}

.contact-glow-center.is-entering {
  animation: contact-glow-enter 2.4s var(--motion-ease) 0.9s forwards;
}

@keyframes contact-glow-enter {
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: blur(26px) brightness(1.1); }
}

.contact-screen {
  position: relative;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(20px, 5vw, 56px);
  isolation: isolate;
}

.contact-screen::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 70% at 0% 42%, rgba(48, 232, 120, 0.5), transparent 72%),
    radial-gradient(ellipse 48% 70% at 100% 58%, rgba(40, 216, 110, 0.46), transparent 72%),
    radial-gradient(ellipse 76% 50% at 50% 115%, rgba(42, 210, 108, 0.55), transparent 74%);
  filter: blur(30px) saturate(1.15);
  animation: contact-glow-breathe 7.2s ease-in-out infinite alternate;
}

@keyframes contact-glow-breathe {
  from { opacity: 0.7; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.03); }
}

.contact-center {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vh, 56px);
  padding-top: 56px;
}

.contact-cycler {
  position: relative;
  width: 100%;
  height: clamp(200px, 30vh, 320px);
}

.contact-group {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 760ms var(--motion-ease),
    transform 760ms var(--motion-ease);
}

.contact-group.active {
  opacity: 1;
  transform: translateY(0);
}

/* 首屏第一组标题逐字浮现 */
.contact-group.is-entering .contact-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(8px);
  animation: contact-char-in 0.72s var(--motion-ease) forwards;
  animation-delay: calc(var(--ci) * 42ms);
}

@keyframes contact-char-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.contact-title {
  margin: 0;
  font-size: clamp(50px, 10vw, 128px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-align: center;
  color: var(--text);
  text-shadow: 0 0 60px rgba(120, 255, 170, 0.16);
}

.contact-en {
  margin: 0 -0.6em 0 0;
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 600;
  letter-spacing: 0.6em;
  word-spacing: 1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact-info a,
.contact-info .city {
  text-decoration: none;
}

.ci-label {
  color: var(--muted);
  transition: color 200ms ease;
}

.ci-value {
  color: var(--text);
  transition: color 200ms ease;
}

.contact-info a:hover .ci-value,
.contact-info .city:hover .ci-value {
  color: var(--accent);
}

.contact-info .sep {
  opacity: 0.4;
}

.contact-marquee {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.contact-marquee .brand-marquee-track span {
  transition: color 240ms ease;
}

.contact-marquee:hover .brand-marquee-track span {
  color: var(--accent);
}

/* 触屏设备：禁用自定义光标，恢复原生光标 */
@media (hover: none) {
  body.contact-page,
  body.contact-page a,
  body.contact-page button { cursor: auto; }
  .cursor-dot, .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-glow { display: none; }
  body.contact-page,
  body.contact-page a,
  body.contact-page button { cursor: auto; }
  .contact-group { transition: none; }
  .contact-screen::before { animation: none; }
  .contact-glow-center { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(26px) brightness(1.1); animation: none; }
}

@media (max-width: 680px) {
  .contact-title {
    font-size: clamp(28px, 8.5vw, 44px);
  }
  .contact-en {
    letter-spacing: 0.3em;
    word-spacing: 0.5em;
    margin-right: -0.3em;
  }
  .contact-cycler {
    height: clamp(150px, 22vh, 210px);
  }
}

/* ===== 编辑模式（仅管理员可见，由 app.js 注入）===== */
.admin-edit-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 70;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 12, 10, 0.78);
  border: 1px solid rgba(108, 247, 164, 0.45);
  color: #8ff0bb;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-edit-badge:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.admin-edit-badge-hero {
  top: 88px;
}

.admin-edit-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.admin-edit-toggle {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(108, 247, 164, 0.5);
  background: rgba(9, 12, 10, 0.85);
  color: #8ff0bb;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-edit-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(108, 247, 164, 0.85);
}

.admin-edit-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(9, 12, 10, 0.92);
  border: 1px solid rgba(108, 247, 164, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 168px;
}

.admin-edit-menu a,
.admin-edit-exit {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.admin-edit-menu a:hover,
.admin-edit-exit:hover {
  background: rgba(108, 247, 164, 0.12);
}

.admin-edit-exit {
  color: #ff9c9c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

/* ===== 个人特质模块：紧凑布局（仅作用于 #traits）===== */
#traits .section-heading {
  margin-bottom: 20px;
}

#traits .result-hero {
  gap: 8px;
  margin: -8px 0 20px;
  padding: clamp(18px, 2.4vw, 30px);
}

#traits .result-hero span {
  font-size: clamp(12px, 1.1vw, 15px);
}

#traits .result-hero strong {
  font-size: clamp(17px, 1.8vw, 24px);
}

#traits .traits-grid {
  gap: 10px;
}

#traits .trait-card {
  padding: 18px;
}

#traits .trait-card i {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
}

#traits .trait-card i::before {
  width: 11px;
  height: 11px;
}

#traits .trait-card span {
  font-size: 12px;
}

#traits .trait-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
}

#traits .trait-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  #traits .result-hero {
    margin: -4px 0 14px;
    padding: 18px;
  }

  #traits .trait-card {
    padding: 16px;
  }
}

/* ===== 首屏悬浮视频窗（竖屏在左 + 2 横屏在右，叠加在 Banner 右侧）===== */
.banner-video-stack {
  position: absolute;
  top: 50%;
  right: clamp(76px, 7vw, 110px);
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: min(58%, 500px);
  pointer-events: none;
}

.banner-video-window {
  position: relative;
  pointer-events: auto;
  padding: 0;
  border: 1px solid rgba(245, 245, 247, 0.14);
  border-radius: 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  filter: blur(8px) saturate(0.72);
  scale: 0.94;
  transition:
    opacity 0.9s var(--motion-ease),
    scale 0.9s var(--motion-ease),
    filter 0.9s var(--motion-ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  transition-delay: calc(var(--bv-i) * 140ms);
}

.banner-video-stack.is-in .banner-video-window.is-poster-ready {
  opacity: 1;
  filter: none;
  scale: 1;
}

.banner-video-stack.is-in .banner-video-window:not(.is-poster-ready) {
  opacity: 0.16;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), 0 0 38px rgba(62, 214, 116, 0.16);
  animation: hero-window-wait 2.4s ease-in-out infinite alternate;
}

@keyframes hero-window-wait {
  to {
    border-color: rgba(126, 255, 171, 0.34);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48), 0 0 52px rgba(62, 214, 116, 0.28);
  }
}

.banner-video-window:hover {
  border-color: rgba(214, 185, 128, 0.5);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55), 0 0 24px rgba(214, 185, 128, 0.18);
}

.banner-video-window video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-video-window::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  content: "";
  pointer-events: none;
}

/* 竖屏在左，顶边/底边与右侧两横屏的整体高度对齐 */
.bv-portrait {
  flex: 0 0 auto;
  z-index: 3;
  height: 100%;
  width: auto;
  aspect-ratio: 9 / 16;
}

/* 两个横屏在右：各半高堆叠 */
.bv-landscapes {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 100%;
}

.bv-landscape-a,
.bv-landscape-b {
  justify-self: start;
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
}

.bv-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  display: grid;
  gap: 2px;
  max-width: calc(100% - 24px);
  text-align: left;
  pointer-events: none;
}

.bv-label em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.68);
}

.bv-label > span {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .banner-video-stack {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .set-banner.is-media-loading,
  .banner-video-stack.is-in .banner-video-window:not(.is-poster-ready) {
    animation: none;
  }

  .banner-video-window {
    filter: none;
    scale: 1;
    transition: none;
  }

  .banner-video-stack.is-in .banner-video-window.is-poster-ready {
    opacity: 1;
  }
}

/* ===== 质感增强：全局光标 / 进度条 / 卡片 hover ===== */

/* 全局自定义光标（主页）：复用 contact 页光标，挂在 body.cursor-enabled 上 */
body.cursor-enabled { cursor: none; }
body.cursor-enabled a,
body.cursor-enabled button { cursor: none; }
body.cursor-enabled.cursor-on .cursor-dot,
body.cursor-enabled.cursor-on .cursor-glow { opacity: 1; }
body.cursor-enabled.cursor-hover .cursor-dot { width: 18px; height: 18px; background: #a6ffc9; }
body.cursor-enabled.cursor-hover .cursor-glow { filter: blur(24px) brightness(1.5) saturate(1.2); }

/* 顶部滚动进度条：一条暗金细线 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 2px;
  background: linear-gradient(90deg, rgba(214, 185, 128, 0.22), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 卡片 hover 暗金描边 + 上浮 + 暗金光晕（指标卡补上；作品卡/特质卡增强光晕） */
.metric-card {
  transition: transform 220ms var(--motion-ease), border-color 200ms ease, box-shadow 220ms var(--motion-ease);
}
.metric-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 185, 128, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 22px rgba(214, 185, 128, 0.14);
}
.work-card:hover {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.3), 0 0 20px rgba(214, 185, 128, 0.13);
}
.trait-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), 0 0 18px rgba(214, 185, 128, 0.13);
}


/* ===== 作品分享按钮 + 分享面板 ===== */
.modal-share-btn {
  position: absolute;
  top: 14px;
  right: 64px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.modal-share-btn:hover {
  transform: scale(1.05);
  border-color: rgba(214, 185, 128, 0.45);
  color: var(--accent);
  background: rgba(24, 24, 24, 0.82);
}
.modal-share-btn:active { transform: scale(0.97); }
.modal-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.modal-share-pop {
  position: absolute;
  top: 62px;
  right: 64px;
  z-index: 6;
  width: min(274px, calc(100vw - 56px));
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(215, 255, 229, 0.22);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(11, 42, 23, 0.96), rgba(8, 22, 13, 0.94));
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(235, 255, 242, 0.12);
  animation: share-pop-in 180ms var(--motion-ease);
}
.modal-share-pop[hidden] { display: none; }
@keyframes share-pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-share-pop > strong {
  display: block;
  padding: 4px 8px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}
.modal-share-pop > button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.modal-share-pop > button:hover { background: rgba(214, 185, 128, 0.13); transform: translateX(2px); }
.modal-share-pop > button:active { transform: scale(0.98); }
.modal-share-pop > button svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); opacity: 0.95; }
.modal-share-pop > button em { display: block; font-style: normal; font-weight: 600; font-size: 13.5px; }
.modal-share-pop > button small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.52); }

@media (max-width: 640px) {
  .modal-share-btn { right: 58px; padding: 0 13px; }
  .modal-share-pop { right: 58px; }
}

/* ===== 内嵌模式（?work=X&embed=1）：只显示作品内容 ===== */
html.embed-mode .site-header,
html.embed-mode .site-footer,
html.embed-mode main { display: none; }

html.embed-mode body.modal-open { overflow: auto; }

html.embed-mode .modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: block;
  padding: 0;
  background: #04170c;
  animation: none;
  overflow: auto;
}
html.embed-mode .modal::before,
html.embed-mode .modal::after,
html.embed-mode .modal-backdrop { display: none; }

html.embed-mode .modal-panel {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  width: 100%;
  height: auto;
  min-height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #062814 0%, #0b3b1d 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
html.embed-mode .modal-panel.landscape-layout {
  width: 100%;
  height: auto;
  min-height: 100vh;
  max-height: none;
}
html.embed-mode .modal-panel.landscape-layout .modal-media,
html.embed-mode .modal-panel .modal-media { padding: 0; }
html.embed-mode .modal-panel.landscape-layout .video-frame.landscape-frame,
html.embed-mode .modal-panel.landscape-layout .poster-only {
  width: 100%;
  aspect-ratio: 16 / 9;
}
html.embed-mode .modal-content {
  flex: 0 0 auto;
  padding: 18px 22px 26px;
  background: rgba(6, 24, 13, 0.94);
}
html.embed-mode .modal-content h2 { padding-right: 0; }
html.embed-mode .modal-meta { margin: 14px 0; }
html.embed-mode .modal-result { margin-top: 0; }
html.embed-mode .modal-close,
html.embed-mode .modal-share-btn,
html.embed-mode .modal-share-pop { display: none; }
