:root {
  --bg: #090807;
  --paper: #f4efe6;
  --muted: rgba(244, 239, 230, 0.68);
  --soft: rgba(244, 239, 230, 0.1);
  --line: rgba(244, 239, 230, 0.16);
  --ink: #14100d;
  --accent: #ff4d2a;
  --accent-soft: rgba(255, 77, 42, 0.26);
  --font: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 77, 42, 0.14), transparent 34rem),
    linear-gradient(180deg, #0d0b0a 0%, #050505 58%, #120b08 100%);
  color: var(--paper);
  font-family: var(--font);
  overflow-x: hidden;
  width: 100%;
}

body.detail-open {
  overflow: hidden;
}

body.video-open {
  overflow: hidden;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  color: inherit;
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 24%),
    repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.cursor {
  position: fixed;
  z-index: 2500;
  width: 22px;
  height: 22px;
  pointer-events: none;
  border: 1px solid var(--paper);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.cursor.is-active {
  width: 64px;
  height: 64px;
}

/* 导航栏渐变模糊背景容器 */
.nav-blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 190;
  pointer-events: none;
  user-select: none;
}

.nav-blur-overlay .blur-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* React Bits 核心原理复刻：
   利用 mask-image 实现条带状的交叉融合。
   每一层只负责一段区域，并向上下两端渐变到 transparent，避免硬切边。
*/

/* 第 1 层：顶部最强模糊 (32px) */
.nav-blur-overlay .blur-layer:nth-child(1) {
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  mask-image: linear-gradient(to bottom, black 0%, black 16.6%, transparent 33.3%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 16.6%, transparent 33.3%);
}

/* 第 2 层：高模糊 (16px) */
.nav-blur-overlay .blur-layer:nth-child(2) {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 16.6%, black 33.3%, transparent 50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16.6%, black 33.3%, transparent 50%);
}

/* 第 3 层：中等偏高模糊 (8px) */
.nav-blur-overlay .blur-layer:nth-child(3) {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to bottom, transparent 16.6%, black 33.3%, black 50%, transparent 66.6%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 16.6%, black 33.3%, black 50%, transparent 66.6%);
}

/* 第 4 层：中等偏低模糊 (4px) */
.nav-blur-overlay .blur-layer:nth-child(4) {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(to bottom, transparent 33.3%, black 50%, black 66.6%, transparent 83.3%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 33.3%, black 50%, black 66.6%, transparent 83.3%);
}

/* 第 5 层：弱模糊 (2px) */
.nav-blur-overlay .blur-layer:nth-child(5) {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(to bottom, transparent 50%, black 66.6%, black 83.3%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 50%, black 66.6%, black 83.3%, transparent 100%);
}

/* 第 6 层：最底部，超弱模糊 (1px) 完美融合到页面正文，无生硬边界 */
.nav-blur-overlay .blur-layer:nth-child(6) {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask-image: linear-gradient(to bottom, transparent 66.6%, black 83.3%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 66.6%, black 83.3%, black 100%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--paper);
  mix-blend-mode: difference;
}

.brand {
  width: max-content;
  display: block;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: clamp(24px, 2.5vw, 42px);
  width: auto;
  filter: brightness(0) invert(1);
  transform: scale(4) translateX(-25px);
  transform-origin: left center;
}

.menu-dropdown-wrapper {
  justify-self: end;
  position: relative;
  isolation: isolate;
  margin-right: calc(-1 * clamp(18px, 5vw, 64px) + 50px);
}

.menu-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.92);
  color: #12100e;
  padding: 14px 22px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-pill span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(20, 16, 13, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 14px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  isolation: isolate;
}

.menu-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-dropdown li a {
  display: block;
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-dropdown li a:hover {
  background: rgba(244, 239, 230, 0.1);
  color: var(--accent);
}

.home-view {
  position: relative;
  z-index: 2;
}

.scene-section {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: clamp(88px, 10vw, 150px) clamp(18px, 5vw, 74px);
}

.hero {
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  gap: 0;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.58) 58%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  transform: scale(1.03);
}

.hero-bg video {
  filter: saturate(0.96) contrast(1.08) brightness(0.62);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  gap: clamp(18px, 4vw, 70px);
  align-items: center;
  min-height: calc(100svh - clamp(118px, 15vw, 190px));
  padding-top: clamp(56px, 8vw, 110px);
}

.hero-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-title,
.giant-title,
.work-title,
.contact-title,
.detail-title {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--paper);
}

.hero-title {
  position: absolute;
  top: 26%;
  right: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: clamp(28px, 4vw, 54px);
  width: 100vw;
  margin-inline: auto;
  box-sizing: border-box;
  padding-inline: clamp(18px, 3vw, 74px);
  text-align: center;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}

.hero-title-main {
  display: block;
  width: 100%;
}

.hero-title-svg {
  display: block;
  width: 60%;
  height: auto;
  max-width: 100%;
  margin: -150px auto 0;
}

.hero-title-sub {
  display: block;
  color: rgba(244, 239, 230, 0.78);
  font-size: clamp(18px, 1.55vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: clamp(0.42em, 1.8vw, 1.35em);
  padding-left: clamp(0.42em, 1.8vw, 1.35em);
}

.hero-copy {
  grid-column: 1 / 4;
  align-self: end;
  max-width: 396px;
  margin: 0;
  position: relative;
  top: 60px;
  color: rgba(244, 239, 230, 0.72);
  font-size: clamp(12px, 0.85vw, 16px);
  font-weight: 300;
  line-height: 1.55;
}

.hero-copy-en {
  grid-column: 1 / 5;
  align-self: end;
  max-width: 460px;
  margin: 16px 0 0 0;
  color: rgba(244, 239, 230, 0.55);
  font-size: clamp(10px, 0.7vw, 13px);
  font-weight: 300;
  line-height: 1.5;
}

.scroll-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  grid-row: 2;
  grid-column: 5 / 13;
  letter-spacing: 0.5em;
  align-self: end;
  color: var(--paper);
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  margin-top: 0;
}

.scroll-bar span:first-child,
.scroll-bar span:last-child {
  font-size: 32px;
}
.about {
  position: relative;
  z-index: 1;
  min-height: 235svh;
  overflow: visible;
  padding: 0;
  background: #050505;
}

.about-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: visible;
  padding: clamp(70px, 7vw, 110px) clamp(18px, 4vw, 70px);
  background: #050505;
  perspective: 1200px;
}

.flow-line {
  position: absolute;
  top: -18vh;
  bottom: -18vh;
  left: clamp(16px, 7vw, 110px);
  z-index: 0;
  width: clamp(120px, 16vw, 250px);
  pointer-events: none;
}

.flow-line-one {
  top: clamp(800px, 85vh, 1000px);
  right: auto;
  bottom: auto;
  left: -80px;
  z-index: 1;
  width: 100vw;
  aspect-ratio: 2400 / 1320;
  height: auto;
  overflow: hidden;
}

.flow-line svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-line-two {
  right: clamp(16px, 8vw, 130px);
  left: auto;
}

.draw-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: clamp(28px, 3vw, 42px);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(255, 77, 42, 0.35));
}

.about-copy,
.contact-title,
.contact-card {
  position: relative;
  z-index: 2;
}

/* 容器开启 3D 透视 */
.metrics-container {
  position: absolute;
  top: clamp(84px, 7.4vw, 128px);
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  width: min(1280px, 92vw);
  margin: 0 auto;
}

.metric-wrap {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
              opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.6s ease;
  cursor: pointer;
}

/* 核心交互：悬停容器时，让非悬停卡片后退变暗 */
.metrics-container:hover .metric-wrap:not(:hover) {
  opacity: 0.3;
  transform: scale(0.9) translateZ(-40px);
  filter: blur(3px);
}
.metric-wrap:hover { z-index: 10; }

/* 卡片本体 */
.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 18vw, 280px);
  padding: 30px;
  background: #111111;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0,0,0,0.6);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.metric-content {
  position: relative;
  z-index: 2;
  transform: translateZ(30px); /* 视差前突 */
  text-align: center;
  pointer-events: none;
}

/* 卡片背后的外辉光 */
.metric-glow {
  position: absolute;
  inset: -10px;
  z-index: -1;
  background: radial-gradient(circle 180px at var(--mx, 50%) var(--my, 50%), rgba(255, 77, 42, 0.6), transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 25px;
  pointer-events: none;
}
.metric-wrap:hover .metric-glow { opacity: 1; }

/* 字体排版 */
.metric-content strong {
  display: block;
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: 12px;
}
.metric-content strong span.plus {
  font-size: 0.6em;
  color: #ff4d2a;
  vertical-align: top;
}
.metric-content span.label {
  color: rgba(244, 239, 230, 0.6);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.about-copy {
  position: absolute;
  top: clamp(600px, 60vh, 740px);
  left: clamp(48px, 4.8vw, 96px);
  z-index: 3;
  width: min(1480px, calc(100vw - clamp(40px, 5vw, 104px)));
  min-height: clamp(420px, 44vh, 520px);
}

.giant-title,
.work-title,
.contact-title {
  font-size: clamp(86px, 10.2vw, 178px);
  line-height: 0.86;
  color: var(--paper);
}

.giant-title {
  font-size: clamp(160px, 14vw, 280px);
  line-height: 1.05;
  max-width: none;
  white-space: nowrap;
  color: #f4efe6;
}

.giant-title-line {
  display: block;
  padding-left: clamp(156px, 14vw, 300px);
  white-space: nowrap;
}

/* 修复 Splitting.js 拆分后的版式：保持字符自然行内流，不改变原始排版 */
.giant-title .word,
.giant-title .char,
.work-title .word,
.work-title .char {
  display: inline;
}

.about-text {
  position: absolute;
  top: clamp(580px, calc(50vh + 100px), 700px);
  right: clamp(-452px, calc(4.8vw - 500px), -404px);
  left: auto;
  max-width: 480px;
  margin: 0;
  color: rgba(244, 239, 230, 0.92);
  font-size: clamp(10px, 0.74vw, 13px);
  font-weight: 500;
  line-height: 1.6;
  text-transform: uppercase;
  text-align: right;
}

.about-placeholder {
  position: absolute;
  top: clamp(1360px, calc(155vh - 100px), 1600px);
  left: clamp(120px, 10vw, 200px);
  z-index: 5;
  width: clamp(320px, 32vw, 520px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 16px;
  background: #17110e;
}

.about-placeholder-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05) brightness(0.84);
  transform: scale(1.02);
}

.about-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: #FF4D2A;
  opacity: 1;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  border-radius: 16px;
}

.showcase {
  position: relative;
  z-index: 2;
  background: #050505;
  padding: 0 clamp(18px, 4vw, 70px) clamp(100px, 12vw, 180px);
  margin-top: -50svh;
}

.showcase-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(1500px, 100%);
  margin-inline: auto;
}

.showcase-hero {
  position: relative;
}

.showcase-marks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  color: var(--paper);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 300;
  padding: clamp(14px, 1.8vw, 26px) 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.showcase-marks-top {
}

.showcase-marks-bottom {
}

.showcase-marks span {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  place-self: center;
}

.showcase-marks span::before,
.showcase-marks span::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.showcase-marks span::before {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.showcase-marks span::after {
  top: 50%;
  left: 0;
  height: 2px;
  width: 100%;
  transform: translateY(-50%);
}

.showcase-marks span:first-child {
  justify-self: start;
}

.showcase-marks span:last-child {
  justify-self: end;
}

/* 陀螺旋动画 */
@keyframes spin-ccw {
  to { transform: rotate(-360deg); }
}

@keyframes spin-cw {
  to { transform: rotate(360deg); }
}

/* hover 触发：上方逆时针、下方顺时针，各自绕中心持续旋转 */
.showcase-stage:has(.showcase-headline:hover) .showcase-marks-top span {
  animation: spin-ccw 1s linear infinite;
}

.showcase-stage:has(.showcase-headline:hover) .showcase-marks-bottom span {
  animation: spin-cw 1s linear infinite;
}

.showcase-card {
  position: relative;
  min-height: clamp(420px, 56svh, 720px);
  overflow: hidden;
  border-radius: 18px;
  background: #17110e;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.showcase-media {
  position: relative;
  min-height: clamp(420px, 56svh, 720px);
}

.showcase-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  z-index: 0;
  filter: saturate(1.04) contrast(1.05) brightness(0.84);
  transform: scale(1.02);
}

.showcase-video {
  display: none; /* 封面阶段隐藏，弹窗中播放 */
}

.showcase-video.showcase-video-playing {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  z-index: 1;
}

.showcase-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: block;
  width: clamp(140px, 15vw, 240px);
  height: clamp(80px, 9.5vw, 180px);
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: none;
}

.showcase-headline {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
  transform: translate(-50%, -50%);
  color: var(--paper);
  font-size: clamp(80px, 9.5vw, 180px);
  font-weight: 500;
  line-height: 1;
}

.showcase-headline img {
  width: clamp(86px, 8vw, 138px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo-stack {
  position: relative;
  display: inline-block;
  width: clamp(86px, 8vw, 138px);
  height: 0;
  padding-bottom: clamp(95px, 8.9vw, 153px);
  vertical-align: middle;
  flex: 0 0 auto;
}

.logo-bg,
.logo-main {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-bg {
  z-index: 1;
  transition: filter 0.45s ease;
}

.logo-main {
  z-index: 2;
  transform: scale(0.5);
  top: -8px;
  left: 4px;
  transition: filter 0.45s ease;
}

/* hover: bg ↔ main 颜色交换 */
.showcase-headline:hover .logo-bg {
  filter: brightness(10) saturate(0);
}

.showcase-headline:hover .logo-main {
  filter: brightness(0) saturate(100%) invert(38%) sepia(100%) saturate(3000%) hue-rotate(347deg) brightness(100%) contrast(93%);
}

/* headline 整体微微放大 */
.showcase-headline {
  transition: transform 0.45s ease;
}

.showcase-headline:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.studios {
  position: relative;
  z-index: 1;
  z-index: 1;
  margin-top: -18svh;
  padding-top: clamp(180px, 24vw, 320px);
  background: #050505;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 40px;
  align-items: start;
  margin-bottom: clamp(36px, 7vw, 90px);
  perspective: 1000px;
}

.work-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 26px);
  line-height: 1.45;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 38px;
  perspective: 1300px;
}

.portal-card {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card::after {
  display: none;
  content: "";
}

.portal-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  background: #17110e;
  border: 0;
}

.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.04) brightness(0.82);
  transform: scale(1.02);
}

/* 视觉设计卡片：图片上边缘对齐容器上边缘 */
.portal-card[data-title="Design System"] .portal-media img {
  object-position: top;
}

.portal-card:hover {
  transform: translateY(-16px) rotateX(4deg) rotateY(var(--tilt-x, 0deg));
}

.portal-card:hover .portal-media img {
  animation: focusPulse 0.92s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.focus-frame {
  display: none;
}

.portal-meta {
  position: relative;
  z-index: 3;
  padding: 20px 0 0;
}

.portal-meta h3 {
  position: relative;
  max-width: 620px;
  margin: 14px 0 12px;
  font-size: clamp(44px, 4.2vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  overflow: hidden;
  white-space: nowrap;
  color: var(--paper);
}

.portal-meta h3 span {
  color: var(--paper);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
}

.title-arrow,
.title-text {
  display: inline-block;
  vertical-align: baseline;
}

.title-arrow {
  position: absolute;
  left: 0;
  width: 1em;
  opacity: 0;
  color: var(--paper);
  transform: translateX(-0.42em);
  transition: opacity 0.22s ease, transform 0.3s ease;
}

.title-text {
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--paper);
}

.portal-card:hover .title-arrow {
  opacity: 1;
  transform: translateX(0);
}

.portal-card:hover .title-text {
  transform: translateX(1.14em);
}

.portal-card:not(:hover) .title-arrow {
  opacity: 0;
  transform: translateX(0.42em);
}

.portal-card:not(:hover) .title-text {
  transform: translateX(0);
}

.portal-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-card.is-warping {
  z-index: 1000;
  animation: warpPulse 0.86s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact {
  position: relative;
  min-height: 160svh;
  padding: 0 clamp(18px, 5vw, 74px);
  background: #050505;
}

.contact-stage {
  position: relative;
  min-height: 160svh;
  padding: clamp(96px, 9vw, 140px) 0 clamp(120px, 12vw, 180px);
  isolation: isolate;
}

.contact-curve {
  position: absolute;
  right: -120px;
  top: clamp(-50px, calc(8vw - 100px), 0px);
  z-index: 0;
  width: clamp(1147px, 79.6vw, 1568px);
  height: clamp(1147px, 79.6vw, 1568px);
  pointer-events: none;
}

.contact-curve svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.contact-draw-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 32px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px rgba(255, 77, 42, 0.38));
}

.contact-hero {
  position: absolute;
  top: clamp(190px, 16vw, 300px);
  left: clamp(318px, calc(5vw + 300px), 374px);
  z-index: 3;
  pointer-events: none;
}

.contact-title {
  display: grid;
  gap: 0.03em;
  width: max-content;
  max-width: none;
  margin: 0;
  font-size: clamp(65px, 7vw, 135px);
  line-height: 1.08;
  text-align: left;
  color: #f4efe6;
}

.contact-title span,
.contact-title strong {
  display: block;
  font-weight: bold;
  color: var(--paper);
  white-space: nowrap;
}

.contact-title strong {
  font-size: clamp(92px, 9.6vw, 182px);
  line-height: 0.98;
  transform-origin: left center;
  will-change: transform;
}

.contact-body {
  position: relative;
  z-index: 2;
  margin-top: clamp(850px, 44vw, 1070px);
}

.contact-group {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: stretch;
  will-change: transform;
}

.contact-media {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 32px;
  border: 12px solid rgba(80, 80, 80, 0.45);
  background: #ffffff;
  will-change: transform;
  transform-origin: center center;
}

.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

.contact-texts {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 42px);
  padding-top: clamp(12px, 1vw, 22px);
  padding-left: 100px;
  max-width: 800px;
}

.contact-text {
  margin: 0;
  color: rgba(244, 239, 230, 0.94);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.contact-text-en {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* 回到顶部按钮 */
.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 144px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ff4d2a;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 77, 42, 0.5), 0 0 40px rgba(255, 77, 42, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-start;
}

.back-to-top svg {
  width: 70px;
  height: 70px;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(255, 77, 42, 0.7), 0 0 56px rgba(255, 77, 42, 0.35);
}

/* 按钮与SVG文字行 */
.contact-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  width: 100%;
}

.contact-svg-text {
  height: 72px;
  width: auto;
  opacity: 0.45;
}

/* ── Contact Finale: 白色终章 ── */
.contact-finale-overlay {
   position: fixed;
   inset: 0;
   z-index: 50;
   background: #ffffff;
   opacity: 0;
   pointer-events: none;
   will-change: opacity;
 }

 .contact-finale {
   position: fixed;
   inset: 0;
   z-index: 100;
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   gap: clamp(40px, 6vw, 100px);
   padding: clamp(40px, 8vw, 120px);
   opacity: 0;
   pointer-events: none;
   will-change: opacity;
 }

.finale-image {
  flex: 0 0 clamp(280px, 32vw, 480px);
  aspect-ratio: 4 / 3;
  will-change: transform, opacity;
}

.finale-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.finale-text-group {
  flex: 0 1 auto;
  min-width: 0;
}

.finale-title {
  margin: 0 0 clamp(32px, 5vw, 60px);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: clamp(72px, 10vw, 180px);
  font-weight: 900;
  color: #0d0b0a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.finale-info {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  width: 100%;
  max-width: 900px;
}

.finale-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
}

.finale-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finale-qr-row {
  display: flex;
  gap: clamp(32px, 5vw, 56px);
}

.finale-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.finale-qr-item img {
  width: clamp(80px, 9vw, 120px);
  height: clamp(80px, 9vw, 120px);
  object-fit: contain;
  border-radius: 18px;
}

.finale-qr-item span {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
}

.finale-label {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
}

.finale-info-item a,
.finale-info-item span:not(.finale-label) {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
}

.finale-info-item a:hover {
   color: #ff4d2a;
 }

.finale-spacer {
  height: 100vh;
  background: #ffffff;
}

/* ── Detail standalone page ── */
.detail-page {
  padding-top: 5rem;
  min-height: 100vh;
}

.detail-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 0%, var(--detail-glow, rgba(255, 77, 42, 0.24)), transparent 35rem),
    var(--detail-bg, #160f0b);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.52s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.52s;
}

.camera-warp {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  pointer-events: none;
}

.camera-warp.is-active {
  visibility: visible;
}

.warp-frame {
  position: fixed;
  overflow: hidden;
  border-radius: 28px;
  background: #17110e;
  transform-origin: center;
  will-change: transform, filter, border-radius;
}

.warp-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.warp-color {
  position: fixed;
  inset: 0;
  opacity: 0;
  background: var(--warp-color, #ff4d2a);
}

.detail-view.is-open {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

/* Detail page: keep header white, no mix-blend-mode */
.detail-page-body .site-header {
  mix-blend-mode: normal;
  color: #fff;
}

.detail-page-body .brand-logo {
  filter: brightness(0) invert(1);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.92);
  color: #12100e;
  padding: 14px 22px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(10px, 2vw, 34px);
  min-height: 100svh;
  padding: clamp(88px, 10vw, 150px) clamp(18px, 5vw, 74px);
}

.detail-copy {
  display: grid;
  align-content: center;
}

.detail-brand {
  margin: 0 0 26px;
  color: var(--detail-accent, var(--accent));
  font-size: clamp(26px, 3vw, 52px);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.detail-title {
  color: #fff3e2;
  font-size: clamp(62px, 8vw, 138px);
  line-height: 0.9;
}

.detail-description {
  max-width: 620px;
  margin: 42px 0;
  color: rgba(255, 243, 226, 0.86);
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.48;
}

.detail-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 42px;
}

.detail-services span {
  color: var(--detail-accent, var(--accent));
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-services p {
  margin: 18px 0 0;
  color: #fff3e2;
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.42;
}

.detail-media {
  align-self: center;
  min-height: min(74svh, 760px);
  overflow: hidden;
  border-radius: 34px;
  background: #090807;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.46);
}

.detail-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 0 clamp(18px, 5vw, 74px) clamp(70px, 10vw, 130px);
}

.detail-case {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 28px;
  background: #17110e;
}

.detail-case::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.76));
}

.detail-case-copy {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
}

.detail-case-copy span {
  color: var(--detail-accent, var(--accent));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-case-copy h3 {
  margin: 14px 0 0;
  color: var(--paper);
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.9;
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}

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

.video-overlay video {
  width: min(100vw, 100%);
  height: 100vh;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.follow-close {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2002;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: #120b08;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.24s ease, background 0.24s ease;
}

.video-overlay.is-open .follow-close {
  opacity: 1;
}

.motion-item {
  opacity: 0;
  transform: translateY(72px);
}

.blurry-reveal {
  transform-origin: center center;
}

/* 霓虹特效初始化，防止加载时闪烁 */
.neon-path {
  fill: transparent;
  stroke: transparent;
  visibility: hidden;
  will-change: stroke-dashoffset, fill, stroke;
}

.blurry-char {
  display: inline-block;
  will-change: transform, filter, opacity;
}

/* 修改为以下形式，防止与 GSAP 冲突 */
.motion-item.in-view:not([style*="translate"]) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0) !important;
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease;
}

@keyframes loadLine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

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

@keyframes focusPulse {
  0% {
    filter: blur(0) saturate(0.96) brightness(0.82);
    transform: scale(1.02);
  }
  32% {
    filter: blur(7px) saturate(1.45) brightness(0.8);
    transform: scale(1.105) translate3d(7px, -5px, 0);
  }
  58% {
    filter: blur(3px) saturate(1.3) brightness(0.9);
    transform: scale(1.08) translate3d(-4px, 3px, 0);
  }
  100% {
    filter: blur(0) saturate(1.04) brightness(0.92);
    transform: scale(1.075);
  }
}

@keyframes warpPulse {
  0% {
    filter: blur(0);
    transform: translateY(-16px) scale(1.02);
  }
  24% {
    filter: blur(8px);
    transform: translateY(-18px) scale(0.96) rotateZ(-0.8deg) skewX(1.8deg);
  }
  45% {
    filter: blur(2px);
    transform: translateY(-18px) scale(1.08) rotateZ(0.8deg) skewX(-1.5deg);
  }
  100% {
    filter: blur(18px);
    transform: translateY(0) scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .cursor {
    display: none;
  }

  .follow-close {
    top: 24px !important;
    right: 24px;
    left: auto !important;
    transform: none;
    opacity: 0;
    pointer-events: none;
  }

  .video-overlay.is-open .follow-close {
    opacity: 1;
    pointer-events: auto;
  }

  .about-copy,
  .section-intro,
  .portal-grid,
  .detail-wrap,
  .detail-case-list,
  .showcase-stage {
    grid-template-columns: 1fr;
  }

  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    min-height: calc(100svh - 116px);
    align-items: center;
  }

  .hero-title {
    top: 30%;
    width: 100vw;
    padding-inline: 18px;
  }

  .hero-title-sub {
    font-size: clamp(16px, 2.6vw, 24px);
    letter-spacing: 0.58em;
    padding-left: 0.58em;
  }

  .hero-copy {
    grid-column: 1;
    max-width: 520px;
  }

  .scroll-bar {
    grid-column: 1;
  }

  .draw-path {
    stroke-width: 28px;
  }

  .metric-card {
    min-height: 170px;
  }


  .portal-card {
    min-height: 0;
  }

  .portal-grid {
    gap: 34px 24px;
  }

  .detail-back {
    right: 18px;
    left: auto;
    transform: none;
  }

  .detail-media {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .scene-section {
    padding-inline: 18px;
  }

  .brand-logo {
    height: clamp(38px, 9vw, 50px);
    transform: scale(4) translateX(-18px);
    transform-origin: left center;
  }

  .menu-pill {
    width: 62px;
    height: 62px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .hero-grid {
    gap: 24px;
    padding-top: 84px;
  }

  .hero-title {
    top: 32%;
    gap: 22px;
    width: 100vw;
    padding-inline: 18px;
  }

  .hero-title-sub {
    font-size: clamp(14px, 4.2vw, 20px);
    letter-spacing: 0.42em;
    padding-left: 0.42em;
  }

  .hero-copy {
    font-size: 12px;
    max-width: 320px;
  }

  .scroll-bar {
    gap: 12px;
    font-size: 11px;
  }

  .giant-title,
  .work-title {
    font-size: clamp(74px, 21vw, 124px);
    color: #f4efe6;
  }

  .contact {
    min-height: 130svh;
  }

  .contact-stage {
    min-height: 130svh;
  }

  .contact-hero {
    top: 160px;
    left: 318px;
  }

  .contact-title {
    font-size: clamp(40px, 11.4vw, 62px);
    line-height: 1.08;
  }

  .contact-title strong {
    font-size: clamp(75px, 20.8vw, 120px);
    line-height: 0.98;
  }

  .contact-curve {
    right: 288px;
    top: 90px;
    width: 122.85vw;
    height: 122.85vw;
  }

  .contact-body {
    grid-template-columns: 1fr;
    margin-top: clamp(590px, 108vw, 770px);
  }

  .about-text {
    font-size: 12px;
  }

  .portal-card {
    min-height: 0;
  }

  .portal-meta h3 {
    font-size: 32px;
  }

  .detail-title {
    font-size: clamp(62px, 16vw, 96px);
  }

  .detail-description {
    margin: 28px 0;
  }

  .detail-services {
    grid-template-columns: 1fr 1fr;
  }

  .detail-case {
    min-height: 340px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 92svh;
    padding: 0 18px 28px;
  }

  .hero-grid {
    min-height: 92svh;
    padding-top: 72px;
    gap: 20px;
  }

  .hero-title {
    top: 24%;
    gap: 18px;
    padding-inline: 18px;
  }

  .hero-title-main svg {
    width: 84% !important;
    margin-top: -92px !important;
  }

  .hero-title-svg {
    width: 84%;
    margin-top: -92px;
  }

  .hero-title-sub {
    font-size: clamp(12px, 3.2vw, 18px);
    letter-spacing: 0.3em;
    padding-left: 0.3em;
  }

  .hero-copy,
  .hero-copy-en {
    max-width: 100%;
    font-size: clamp(12px, 2.7vw, 16px);
  }

  .hero-copy {
    top: 24px;
  }

  .scroll-bar {
    grid-column: 1 / -1;
    font-size: 12px;
    gap: 12px;
    letter-spacing: 0.28em;
  }

  .metrics-container {
    width: min(100%, 100%);
    top: 72px;
    gap: 14px;
    padding-inline: 18px;
  }

  .metric-card {
    min-height: 148px;
    padding: 18px;
  }

  .metric-content strong {
    font-size: clamp(34px, 7vw, 52px);
  }

  .metric-content span.label {
    font-size: 11px;
  }

  .about {
     min-height: 130svh;
   }

  .about-stage {
    min-height: 84svh;
    padding-inline: 18px;
  }

  .about-placeholder {
    top: clamp(610px, 70vh, 700px);
    left: 18px;
    width: min(58vw, 260px);
  }

  .flow-line-one {
    top: clamp(520px, 60vh, 620px);
    left: -36px;
    width: 140vw;
  }

  .about-copy {
    inset: auto 18px 24px;
    transform: translateY(70px);
  }

  .giant-title {
    white-space: normal;
    font-size: clamp(52px, 13vw, 96px);
  }

  .giant-title-line {
    padding-left: 0;
  }

  .about-text {
    position: static;
    max-width: 100%;
    margin-top: 16px;
    font-size: 12px;
  }

  .showcase {
    min-height: auto;
    margin-top: -38svh;
    padding-bottom: 34px;
  }

  .showcase-stage {
    width: 100%;
  }

  .showcase-card,
  .showcase-media {
    min-height: 46svh;
  }

  .showcase-headline {
    gap: 16px;
    font-size: clamp(44px, 9vw, 78px);
  }

  .showcase-headline img,
  .logo-stack {
    width: clamp(64px, 16vw, 106px);
  }

  .logo-stack {
    padding-bottom: clamp(70px, 16vw, 118px);
  }

  .showcase-play {
    width: clamp(96px, 20vw, 160px);
    height: clamp(58px, 12vw, 104px);
  }

  .studios {
    min-height: auto;
    margin-top: 0;
    padding-top: 24px;
  }

  .section-intro,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 8px;
    margin-bottom: 18px;
  }

  .work-note {
    margin-top: 8px;
    font-size: 13px;
  }

  .portal-grid {
    gap: 22px;
  }

  .portal-meta h3 {
    white-space: normal;
    font-size: clamp(28px, 7vw, 46px);
  }

  .portal-card:hover {
    transform: translateY(-6px);
  }

  .contact {
    min-height: 120svh;
    padding-inline: 18px;
  }

  .contact-stage {
    min-height: 120svh;
    padding-top: 84px;
  }

  .contact-curve {
    right: -180px;
    top: 40px;
    width: 140vw;
    height: 140vw;
  }

  .contact-hero {
    top: 120px;
    left: 18px;
  }

  .contact-title {
    font-size: clamp(34px, 9vw, 54px);
  }

  .contact-title strong {
    font-size: clamp(58px, 14vw, 92px);
  }

  .contact-body {
    margin-top: clamp(420px, 78vw, 620px);
  }

  .contact-group {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-media {
    max-width: 100%;
    border-width: 6px;
    border-radius: 20px;
    aspect-ratio: 16 / 10;
  }

  .contact-texts {
    padding-left: 0;
    gap: 18px;
  }

  .contact-text {
    font-size: 14px;
  }

  .contact-svg-text {
    height: 48px;
  }

  .contact-finale {
    flex-direction: column;
    gap: 26px;
    padding: 28px 18px;
    align-items: flex-start;
  }

  .finale-image {
    flex-basis: auto;
    width: min(100%, 320px);
  }

  .finale-title {
    font-size: clamp(48px, 15vw, 84px);
    margin-bottom: 22px;
  }

  .finale-info,
  .finale-info-row,
  .finale-qr-row {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.site-footer {
  position: relative;
  z-index: 2;
  min-height: auto;
  padding: clamp(80px, 12vw, 160px) clamp(18px, 5vw, 74px) clamp(70px, 8vw, 120px);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-stage {
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(48px, 8vw, 100px);
}

.footer-info {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  color: var(--paper);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.5;
  padding-top: clamp(8px, 1.2vw, 18px);
}

.footer-info p {
  margin: 0;
}

.footer-info .label {
  display: inline-block;
  margin-right: 0.4em;
  color: var(--muted);
  font-size: 0.92em;
}

.footer-heading {
  justify-self: end;
  text-align: right;
}

.footer-heading h2 {
  display: grid;
  gap: clamp(4px, 0.6vw, 10px);
  margin: 0;
}

.footer-heading .zh {
  display: block;
  color: var(--paper);
  font-size: clamp(42px, 5vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.footer-heading .en {
  display: block;
  color: var(--paper);
  font-size: clamp(38px, 4.6vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.footer-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 18px);
}

.footer-avatars .avatar {
  width: clamp(64px, 8vw, 110px);
  height: clamp(64px, 8vw, 110px);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid rgba(244, 239, 230, 0.18);
}

.footer-avatars .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-heading {
    justify-self: start;
    text-align: left;
  }

  .footer-info {
    order: 2;
  }

  .footer-heading {
    order: 1;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-inline: 18px;
  }

  .footer-avatars .avatar {
    width: clamp(52px, 14vw, 72px);
    height: clamp(52px, 14vw, 72px);
  }
}

/* Video library pages */
body.video-library-page,
body.video-detail-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 122, 71, 0.16), transparent 30rem),
    linear-gradient(180deg, #120b08 0%, #080706 48%, #120d0b 100%);
}

.video-library-page .detail-page,
.video-detail-page .detail-page {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.video-library-hero {
  position: relative;
  min-height: 66svh;
  display: grid;
  align-items: center;
  padding: clamp(92px, 8vw, 118px) clamp(18px, 5vw, 74px) 26px;
  background: #35494f;
  overflow: clip;
  isolation: isolate;
}

.video-library-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  display: flex;
}

.video-library-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.video-library-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 16px;
  max-width: min(48rem, 100%);
  animation: videoFadeUp 0.8s ease both;
}

.video-library-kicker {
  margin: 0;
  color: var(--accent);
  font-size: clamp(22px, 2.8vw, 44px);
  font-weight: 900;
}

.video-library-title {
  margin: 0;
  color: var(--paper);
  font-size: clamp(64px, 7vw, 124px);
  line-height: 0.9;
  font-weight: 900;
}

.video-library-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  width: min(520px, 100%);
  margin-top: 8px;
}

.video-library-category {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.16);
  color: rgba(244, 239, 230, 0.86);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.video-library-category:hover,
.video-library-category:focus-visible {
  border-color: rgba(255, 77, 42, 0.72);
  color: var(--paper);
  transform: translateX(4px);
}

.video-library-stats {
  display: grid;
  gap: 10px;
  width: min(340px, 100%);
}

.video-library-stat {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.video-library-stat strong {
  color: var(--paper);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1;
}

.video-library-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-catalog {
  display: grid;
  gap: clamp(74px, 8vw, 132px);
  padding: clamp(52px, 6vw, 86px) clamp(18px, 5vw, 74px) 140px;
}

.video-section {
  animation: videoFadeUp 0.75s ease both;
  scroll-margin-top: 110px;
}

.video-section:nth-child(2) {
  animation-delay: 0.06s;
}

.video-section:nth-child(3) {
  animation-delay: 0.12s;
}

.video-section:nth-child(4) {
  animation-delay: 0.18s;
}

.video-section:nth-child(5) {
  animation-delay: 0.24s;
}

.video-section:nth-child(6) {
  animation-delay: 0.3s;
}

.video-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.video-section-head h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(48px, 5.6vw, 86px);
  line-height: 1;
  font-weight: 900;
}

.video-section-arrow {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  background: rgba(244, 239, 230, 0.04);
  color: var(--paper);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.video-section-arrow::before {
  content: "→";
  font-size: 22px;
  line-height: 1;
}

.video-section-arrow:hover {
  transform: translateX(5px) scale(1.06);
  border-color: rgba(255, 122, 71, 0.48);
  background: rgba(255, 122, 71, 0.12);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px;
}

.video-card,
.video-detail-row {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
}

.video-card {
  display: grid;
  overflow: hidden;
  min-height: 0;
  background: #f6f3ee;
  border: 1px solid rgba(24, 18, 16, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transform-origin: center top;
  animation: videoFadeUp 0.7s ease both;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.video-card:nth-child(2n) {
  animation-delay: 0.08s;
}

.video-card:nth-child(3n) {
  animation-delay: 0.14s;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(255, 122, 71, 0.42);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  background: #fffaf2;
}

.video-card-media {
  position: relative;
  overflow: hidden;
  background: #090706;
}

.video-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.44));
  pointer-events: none;
}

.video-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #17110e;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.video-card:hover img {
  transform: scale(1.035);
  filter: brightness(1.06);
}

.video-card-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fffaf2;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.video-card::after {
  content: none;
}

.video-card-copy {
  position: static;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 154px;
  padding: 24px 24px 30px;
  transition: transform 0.28s ease;
}

.video-card:hover .video-card-copy {
  transform: translateY(2px);
}

.video-card-copy span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.video-card-copy h3 {
  margin: 0;
  color: #211f26;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.12;
  font-weight: 800;
}

.video-card-copy p {
  margin: 0;
  color: rgba(45, 50, 62, 0.58);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.45;
  font-weight: 650;
}

.video-detail-hero {
  padding: clamp(106px, 10vw, 144px) clamp(18px, 5vw, 74px) 12px;
}

.video-detail-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.video-detail-title {
  margin: 0;
  color: var(--paper);
  font-size: clamp(54px, 6.8vw, 114px);
  line-height: 0.92;
  font-weight: 900;
}

.video-detail-list {
  display: grid;
  gap: 30px;
  padding: 18px clamp(18px, 5vw, 74px) 120px;
}

.video-detail-row {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  border-radius: 22px;
  padding: 16px;
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid rgba(244, 239, 230, 0.1);
  cursor: pointer;
  animation: videoFadeUp 0.72s ease both;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.video-detail-row:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(255, 122, 71, 0.45);
  background: rgba(244, 239, 230, 0.04);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-detail-row:nth-child(2) {
  animation-delay: 0.08s;
}

.video-detail-row:nth-child(3) {
  animation-delay: 0.16s;
}

.video-detail-row:nth-child(4) {
  animation-delay: 0.24s;
}

.video-detail-row:nth-child(5) {
  animation-delay: 0.32s;
}

.video-detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 210px;
  background: #090807;
}

.video-detail-poster img {
  transition: transform 0.32s ease, filter 0.32s ease;
}

.video-detail-row:hover .video-detail-poster img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.video-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-detail-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  transition: transform 0.28s ease;
}

.video-detail-row:hover .video-detail-copy {
  transform: translateX(4px);
}

.video-detail-copy h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.05;
}

.video-detail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.video-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.06);
  color: rgba(244, 239, 230, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 5, 4, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.video-modal-panel {
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #120d0b;
  border: 1px solid rgba(244, 239, 230, 0.14);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.5);
}

.video-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}

.video-modal-title {
  margin: 0;
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
}

.video-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.08);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.video-modal-body {
  background: #000;
}

.video-modal video {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

@media (max-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .video-card-copy {
    min-height: auto;
    padding: 18px 18px 20px;
  }

  .video-card-duration {
    right: 10px;
    bottom: 10px;
    min-width: 54px;
    min-height: 28px;
    font-size: 13px;
  }

  .video-library-hero {
    min-height: 66svh;
    padding-bottom: 24px;
  }

  .video-library-visual img {
    object-position: left center;
  }

  .video-library-copy {
    max-width: 100%;
  }

  .video-detail-row {
    grid-template-columns: 1fr;
  }

  .video-detail-poster {
    min-height: 230px;
  }

  .video-modal {
    padding: 12px;
  }

  .video-modal-panel {
    max-height: calc(100vh - 24px);
  }

  .video-modal-head {
    padding: 14px 16px;
  }
}

@keyframes videoFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

  .video-section-head {
    align-items: center;
  }

  .video-section-head h2 {
    font-size: clamp(38px, 11.2vw, 61px);
  }

  .video-section-arrow {
    width: 46px;
    height: 46px;
  }

  .video-library-title {
    font-size: clamp(52px, 16vw, 82px);
  }

  .video-library-stat {
    grid-template-columns: 72px 1fr;
  }

  .video-detail-title {
    font-size: clamp(42px, 14vw, 64px);
  }
}

/* AI creative and new media standalone pages */
body.ai-creative-page,
body.newmedia-operation-page {
  color: #f7f2ea;
}

.ai-page,
.newmedia-page {
  padding-top: 0;
  overflow: hidden;
  letter-spacing: 0;
}

.ai-page *,
.newmedia-page * {
  letter-spacing: 0;
}

body.ai-creative-page {
  background:
    linear-gradient(180deg, #030508 0%, #080812 42%, #120d0b 100%);
}

.ai-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: end;
  gap: 2rem;
  min-height: 100svh;
  padding: 8.5rem clamp(1.25rem, 5vw, 4.625rem) 4.5rem;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.94) 0%, rgba(3, 5, 8, 0.76) 43%, rgba(3, 5, 8, 0.26) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 7.5rem);
}

.ai-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.ai-hero-media video {
  opacity: 0.62;
  filter: saturate(1.18) contrast(1.12) brightness(0.72);
  transform: scale(1.04);
}

.ai-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.08) 0%, rgba(3, 5, 8, 0.32) 58%, #030508 100%),
    linear-gradient(120deg, rgba(0, 216, 255, 0.16), transparent 32%, rgba(255, 77, 42, 0.16));
}

.ai-grid-surface {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, transparent 0%, rgba(0, 216, 255, 0.2) 50%, transparent 100%);
  mix-blend-mode: screen;
  animation: aiScanMove 9s linear infinite;
}

.ai-hero-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}

.ai-kicker,
.ai-section-head p,
.nm-kicker,
.nm-section-head p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-kicker,
.ai-section-head p {
  color: #5ee7ff;
}

.ai-hero-copy h1,
.nm-hero-copy h1 {
  margin: 0;
  font-size: 7.5rem;
  line-height: 0.88;
  font-weight: 900;
}

.ai-hero-copy p:not(.ai-kicker),
.nm-hero-copy p:not(.nm-kicker) {
  margin: 0;
  max-width: 42rem;
  color: rgba(247, 242, 234, 0.78);
  font-size: 1.18rem;
  line-height: 1.78;
}

.ai-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ai-hero-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(94, 231, 255, 0.34);
  border-radius: 6px;
  background: rgba(247, 242, 234, 0.06);
  color: #f7f2ea;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.ai-hero-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 42, 0.72);
  background: rgba(255, 77, 42, 0.16);
}

.ai-hero-system {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(28rem, 100%);
  border: 1px solid rgba(247, 242, 234, 0.18);
  border-radius: 18px;
  background: rgba(3, 5, 8, 0.54);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.ai-hero-system div {
  display: grid;
  gap: 0.5rem;
  min-height: 9rem;
  padding: 1.1rem;
  border-right: 1px solid rgba(247, 242, 234, 0.12);
  border-bottom: 1px solid rgba(247, 242, 234, 0.12);
}

.ai-hero-system div:nth-child(2n) {
  border-right: 0;
}

.ai-hero-system div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ai-hero-system span,
.ai-video-copy span,
.ai-image-tile span,
.nm-case-copy span,
.nm-operation-map span {
  color: #ff5b3d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-hero-system strong {
  align-self: end;
  font-size: 1.55rem;
  line-height: 1;
}

.ai-hero-system small {
  color: rgba(247, 242, 234, 0.66);
  font-size: 0.88rem;
}

.ai-signal-strip {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  padding: 1px 0;
  background: rgba(247, 242, 234, 0.12);
}

.ai-signal-strip span {
  flex: 1 0 max(12rem, 16%);
  display: grid;
  place-items: center;
  min-height: 4.25rem;
  background: #080812;
  color: rgba(247, 242, 234, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-video-lab,
.ai-image-gallery,
.nm-cases,
.nm-operation-map {
  padding: 6.5rem clamp(1.25rem, 5vw, 4.625rem);
}

.ai-section-head,
.nm-section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ai-section-head h2,
.nm-section-head h2 {
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.95;
  font-weight: 900;
}

.ai-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(23rem, auto);
  gap: 1rem;
}

.ai-video-card {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 234, 0.14);
  border-radius: 8px;
  background: #111217;
  transition: transform 0.32s ease, border-color 0.32s ease, filter 0.32s ease;
}

.ai-video-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 48rem;
}

.ai-video-card:hover,
.ai-image-tile:hover,
.nm-case-card:hover {
  transform: translateY(-6px);
}

.ai-video-card:hover,
.ai-image-tile:hover {
  border-color: rgba(94, 231, 255, 0.5);
  filter: brightness(1.08);
}

.ai-video-card video,
.ai-image-tile img,
.nm-case-media img,
.nm-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-video-card video {
  filter: saturate(1.08) contrast(1.08);
}

.ai-video-card::after,
.ai-image-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 34%, rgba(3, 5, 8, 0.88) 100%);
  pointer-events: none;
}

.ai-video-copy,
.ai-image-tile div {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 2;
}

.ai-video-copy h3,
.ai-image-tile h3,
.nm-case-copy h3 {
  margin: 0.55rem 0 0;
  color: #f7f2ea;
  font-size: 2.2rem;
  line-height: 1;
}

.ai-video-copy p {
  max-width: 28rem;
  margin: 0.7rem 0 0;
  color: rgba(247, 242, 234, 0.72);
  font-size: 0.98rem;
  line-height: 1.6;
}

.ai-placeholder-motion {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(94, 231, 255, 0.22), transparent 38%),
    linear-gradient(315deg, rgba(255, 77, 42, 0.24), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 1.25rem),
    #090b12;
}

.ai-placeholder-motion::before {
  position: absolute;
  inset: 8%;
  content: "";
  border: 1px solid rgba(247, 242, 234, 0.22);
  border-radius: 8px;
  animation: aiFramePulse 2.8s ease-in-out infinite;
}

.ai-placeholder-motion span {
  color: #5ee7ff;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-placeholder-motion strong {
  max-width: 14rem;
  color: #f7f2ea;
  font-size: 2rem;
  line-height: 0.98;
}

.ai-image-gallery {
  background:
    linear-gradient(180deg, #080812 0%, #14100d 100%);
}

.ai-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 16rem;
  gap: 1rem;
}

.ai-image-tile {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 234, 0.14);
  border-radius: 8px;
  background: #111217;
  transition: transform 0.32s ease, border-color 0.32s ease, filter 0.32s ease;
}

.ai-image-tile-tall {
  grid-row: span 2;
}

.ai-image-tile-wide {
  grid-column: span 2;
}

body.newmedia-operation-page {
  --nm-accent: #1F88CC;
  background: #eee8dc;
}

.newmedia-operation-page .site-header {
  color: #191919;
}

.newmedia-operation-page .brand-logo {
  filter: brightness(0);
}

.newmedia-operation-page .detail-back {
  background: rgba(25, 25, 25, 0.08);
  color: #191919;
}

.newmedia-page {
  color: #151515;
  background:
    linear-gradient(180deg, #e7edf0 0%, #e7edf0 34rem, #eee8dc 34rem, #eee8dc 100%);
}

.nm-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 68svh;
  padding: 112px clamp(18px, 5vw, 74px) 38px;
  color: #191919;
  background: #d7edf9;
  overflow: clip;
  isolation: isolate;
}

.nm-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(215, 237, 249, 0.1) 0%, rgba(215, 237, 249, 0.12) 52%, rgba(215, 237, 249, 0) 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.02));
}

.nm-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  max-width: 760px;
  animation: designFadeUp 0.8s ease both;
}

.nm-kicker,
.nm-section-head p {
  color: var(--nm-accent);
}

.nm-hero-copy h1 {
  color: #191919;
  font-size: clamp(68px, 9vw, 116px);
  line-height: 0.94;
  font-weight: 800;
}

.nm-hero-copy p:not(.nm-kicker) {
  max-width: 620px;
  margin: 0;
  color: rgba(25, 25, 25, 0.72);
  font-size: 16px;
  line-height: 1.8;
}

.nm-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  width: min(560px, 100%);
  margin-top: 8px;
}

.nm-hero-meta span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(25, 25, 25, 0.14);
  background: transparent;
  color: rgba(25, 25, 25, 0.82);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 800;
  line-height: 1.2;
}

.nm-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  display: flex;
}

.nm-hero-visual::after {
  content: none;
}

.nm-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.nm-floating-panel {
  display: none;
}

.nm-floating-panel strong {
  font-size: 1.25rem;
}

.nm-floating-panel span {
  color: rgba(20, 20, 20, 0.62);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nm-floating-panel-one {
  top: 1rem;
  right: 1rem;
}

.nm-floating-panel-two {
  bottom: 1rem;
  left: 1rem;
}

.nm-case-copy span,
.nm-operation-map span {
  color: var(--nm-accent);
}

.nm-cases {
  display: grid;
  gap: 1.25rem;
}

.nm-proof {
  position: relative;
  padding: clamp(70px, 8vw, 126px) clamp(18px, 5vw, 74px) clamp(58px, 7vw, 104px);
  background: #eee8dc;
  color: #151515;
}

.nm-proof::before {
  position: absolute;
  inset: 0 clamp(18px, 5vw, 74px) auto;
  height: 1px;
  content: "";
  background: rgba(21, 21, 21, 0.14);
}

.nm-proof-heading {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-bottom: clamp(30px, 5vw, 66px);
}

.nm-proof-kicker,
.nm-process-kicker {
  margin: 0;
  color: var(--nm-accent);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.nm-proof-heading h2,
.nm-process-head h2 {
  margin: 0;
  color: #151515;
  font-size: clamp(44px, 6vw, 94px);
  font-weight: 900;
  line-height: 0.95;
}

#nm-proof-title,
#nm-process-title {
  scroll-margin-top: 132px;
}

.nm-proof-heading h2 {
  max-width: 920px;
}

.nm-proof-heading p:not(.nm-proof-kicker),
.nm-process-head p:not(.nm-process-kicker) {
  margin: 0;
  color: rgba(21, 21, 21, 0.66);
  font-size: clamp(15px, 1.24vw, 20px);
  font-weight: 700;
  line-height: 1.78;
}

.nm-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}

.nm-proof-card {
  --metric-accent: var(--nm-accent);
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: clamp(188px, 17vw, 244px);
  padding: clamp(22px, 2.35vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28)),
    #eee8dc;
  box-shadow: 0 20px 45px rgba(21, 21, 21, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.nm-proof-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--metric-accent);
}

.nm-proof-card:nth-child(2) {
  --metric-accent: #16b47e;
}

.nm-proof-card:nth-child(3) {
  --metric-accent: #ff5b3d;
}

.nm-proof-card:nth-child(4) {
  --metric-accent: #0d162b;
}

.nm-proof-card:hover {
  transform: translateY(-6px);
  border-color: rgba(21, 21, 21, 0.22);
  box-shadow: 0 28px 60px rgba(21, 21, 21, 0.1);
}

.nm-proof-card span {
  color: var(--metric-accent);
  font-size: clamp(42px, 4.9vw, 74px);
  font-weight: 900;
  line-height: 0.9;
  white-space: nowrap;
}

.nm-proof-card strong {
  color: #151515;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 900;
  line-height: 1.12;
}

.nm-proof-card p {
  margin: 0;
  color: rgba(21, 21, 21, 0.58);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.62;
}

.nm-section-head h2 {
  color: #151515;
}

.nm-case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(20rem, 0.96fr);
  min-height: 30rem;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
  background: #151515;
  color: #f7f2ea;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.nm-case-card:hover {
  box-shadow: 0 1.5rem 3rem rgba(21, 21, 21, 0.18);
}

.nm-case-feature {
  min-height: 38rem;
}

.nm-case-media {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  background: #d3c7b8;
}

.nm-case-media img {
  filter: saturate(0.96) contrast(1.04);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.nm-case-card:hover .nm-case-media img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.08);
}

.nm-case-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(135deg, rgba(31, 136, 204, 0.18), transparent 38%);
}

.nm-thumb-row {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.nm-thumb-row span {
  min-height: 5.5rem;
  border: 1px solid rgba(247, 242, 234, 0.35);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(247, 242, 234, 0.88), rgba(247, 242, 234, 0.14)),
    var(--nm-accent);
}

.nm-thumb-row span:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(247, 242, 234, 0.74), rgba(247, 242, 234, 0.08)),
    #166da5;
}

.nm-thumb-row span:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(247, 242, 234, 0.78), rgba(247, 242, 234, 0.1)),
    #77bde8;
}

.nm-case-copy {
  display: grid;
  align-content: center;
  gap: 1.35rem;
  padding: 2rem;
}

.nm-case-copy h3 {
  color: #f7f2ea;
  font-size: 3.3rem;
}

.nm-case-copy p {
  max-width: 35rem;
  margin: 0;
  color: rgba(247, 242, 234, 0.78);
  font-size: 1.03rem;
  line-height: 1.72;
}

.nm-case-copy dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 234, 0.14);
  border-radius: 8px;
}

.nm-case-copy dl div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(247, 242, 234, 0.06);
}

.nm-case-copy dt,
.nm-case-copy dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.nm-case-copy dt {
  color: rgba(247, 242, 234, 0.54);
  font-weight: 900;
}

.nm-case-copy dd {
  color: #f7f2ea;
  font-weight: 700;
}

.nm-operation-map {
  padding: clamp(84px, 9vw, 144px) clamp(18px, 5vw, 74px) clamp(96px, 10vw, 160px);
  background:
    linear-gradient(180deg, #eee8dc 0%, #f4f0e6 52%, #eee8dc 100%);
  color: #151515;
}

.nm-process-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto clamp(38px, 5.5vw, 78px);
  text-align: center;
}

.nm-process-head::after {
  width: clamp(82px, 8vw, 132px);
  height: 4px;
  content: "";
  background: var(--nm-accent);
}

.nm-process-head h2 {
  font-size: clamp(42px, 5.2vw, 76px);
}

.nm-process-head p:not(.nm-process-kicker) {
  max-width: 560px;
}

.nm-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.nm-process-card {
  --step-accent: #fff;
  --step-bg: var(--nm-accent);
  display: grid;
  align-content: start;
  gap: clamp(16px, 1.8vw, 26px);
  min-height: clamp(270px, 24vw, 342px);
  padding: clamp(24px, 2.6vw, 42px);
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 20px 46px rgba(21, 21, 21, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.nm-process-card:nth-child(2) {
  --step-accent: #fff;
  --step-bg: #16b47e;
}

.nm-process-card:nth-child(3) {
  --step-accent: #fff;
  --step-bg: #ff5b3d;
}

.nm-process-card:nth-child(4) {
  --step-accent: #fff;
  --step-bg: #0d162b;
}

.nm-process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(21, 21, 21, 0.2);
  box-shadow: 0 28px 62px rgba(21, 21, 21, 0.1);
}

.nm-process-index {
  display: inline-grid;
  place-items: center;
  width: clamp(48px, 4.6vw, 66px);
  height: clamp(48px, 4.6vw, 66px);
  border-radius: 50%;
  background: var(--step-bg);
  color: var(--step-accent);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
}

.nm-process-card .nm-process-index {
  color: var(--step-accent);
}

.nm-process-card strong {
  color: #151515;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  line-height: 1.12;
}

.nm-process-card p {
  max-width: 24rem;
  margin: 0;
  color: rgba(21, 21, 21, 0.62);
  font-size: clamp(15px, 1.16vw, 18px);
  font-weight: 700;
  line-height: 1.7;
}

@keyframes aiScanMove {
  from {
    transform: translateY(-8%);
  }

  to {
    transform: translateY(8%);
  }
}

@keyframes aiFramePulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.86;
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .ai-hero,
  .nm-hero,
  .nm-case-card {
    grid-template-columns: 1fr;
  }

  .ai-hero-system {
    justify-self: start;
  }

  .ai-video-grid,
  .ai-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-video-card-large {
    min-height: 34rem;
  }

  .nm-hero-visual {
    min-height: 26rem;
  }

  .nm-proof-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nm-proof-grid,
  .nm-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ai-hero,
  .nm-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 7.5rem;
  }

  .nm-hero {
    background: #d7edf9;
  }

  .nm-hero::after,
  .nm-hero-visual {
    display: none;
  }

  .ai-hero > *,
  .nm-hero > * {
    min-width: 0;
  }

  .ai-hero-copy h1,
  .nm-hero-copy h1 {
    font-size: 4.4rem;
  }

  .ai-section-head h2,
  .nm-section-head h2 {
    font-size: 3rem;
  }

  .ai-hero-copy p:not(.ai-kicker),
  .nm-hero-copy p:not(.nm-kicker) {
    font-size: 1rem;
  }

  .ai-hero-system,
  .nm-hero-meta,
  .nm-operation-map {
    grid-template-columns: 1fr;
  }

  .nm-proof-grid,
  .nm-process-grid {
    grid-template-columns: 1fr;
  }

  .nm-proof-card,
  .nm-process-card {
    min-height: auto;
  }

  .ai-hero-system div,
  .ai-hero-system div:nth-child(2n),
  .ai-hero-system div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(247, 242, 234, 0.12);
  }

  .ai-hero-system div:last-child {
    border-bottom: 0;
  }

  .ai-video-grid,
  .ai-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .ai-video-card,
  .ai-video-card-large,
  .ai-image-tile {
    grid-column: auto;
    grid-row: auto;
    min-height: 23rem;
  }

  .ai-image-tile-wide {
    grid-column: auto;
  }

  .nm-case-copy {
    padding: 1.4rem;
  }

  .nm-case-copy h3 {
    font-size: 2.45rem;
  }

  .nm-case-copy dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .nm-thumb-row {
    gap: 0.5rem;
  }

  .nm-thumb-row span {
    min-height: 4rem;
  }
}

@media (max-width: 520px) {
  .ai-hero-copy h1,
  .nm-hero-copy h1 {
    font-size: 3.45rem;
  }

  .ai-hero-links a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .ai-video-lab,
  .ai-image-gallery,
  .nm-proof,
  .nm-cases,
  .nm-operation-map {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ai-video-copy h3,
  .ai-image-tile h3 {
    font-size: 1.75rem;
  }

  .nm-hero-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
  }

  .nm-floating-panel {
    min-width: 8rem;
    padding: 0.8rem;
  }
}

/* New media file-tab case accordion */
.nm-file-cases {
  display: block;
  padding:
    clamp(42px, 5vw, 72px)
    clamp(18px, 5vw, 64px)
    clamp(80px, 8vw, 128px)
    clamp(18px, 5vw, 74px);
  background: #eee8dc;
}

.nm-file-stack {
  width: 100%;
  margin: 0;
  padding-top: clamp(44px, 4vw, 68px);
}

.nm-file-case {
  --case-bg: #2d66e8;
  --case-fg: #fff;
  --case-muted: rgba(255, 255, 255, 0.72);
  --case-line: rgba(255, 255, 255, 0.42);
  --case-shape: url("https://assets.viiotools.cn/assets/icons/icon-01.svg");
  --tab-left: 0%;
  --tab-width: 29.48%;
  --tab-height: clamp(50px, 3.35vw, 68px);
  --case-overlap: clamp(64px, 5.2vw, 106px);
  --case-collapsed-height: clamp(230px, 20vw, 340px);
  --case-collapsed-body: clamp(190px, 17vw, 300px);
  --case-expanded-height: clamp(760px, 96svh, 980px);
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--case-overlap));
  min-height: var(--case-collapsed-height);
  padding-top: 0;
  overflow: visible;
  background-image: var(--case-shape);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  color: var(--case-fg);
  transition:
    min-height 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.45s ease;
}

.nm-file-case:first-child {
  margin-top: 0;
}

.nm-file-case:nth-child(1) {
  z-index: 1;
}

.nm-file-case:nth-child(2) {
  z-index: 2;
}

.nm-file-case:nth-child(3) {
  z-index: 3;
}

.nm-file-case:nth-child(4) {
  z-index: 4;
}

.nm-file-case-green {
  --case-bg: #16b47e;
  --case-shape: url("https://assets.viiotools.cn/assets/icons/icon-02.svg");
  --tab-left: 23.64%;
  --tab-width: 27.85%;
  margin-top: calc(-1 * var(--case-overlap) + 30px);
}

.nm-file-case-light .nm-file-media {
  width: 85%;
  margin: 0 auto;
}

.nm-file-case-light {
  --case-bg: #f8fafc;
  --case-fg: #171717;
  --case-muted: rgba(23, 23, 23, 0.72);
  --case-line: rgba(23, 23, 23, 0.28);
  --case-shape: url("https://assets.viiotools.cn/assets/icons/icon-03.svg");
  --tab-left: 45.65%;
  --tab-width: 27.85%;
}

.nm-file-case-navy {
  --case-bg: #0d162b;
  --case-fg: #f8fbff;
  --case-muted: rgba(248, 251, 255, 0.74);
  --case-line: rgba(248, 251, 255, 0.4);
  --case-shape: url("https://assets.viiotools.cn/assets/icons/icon-04.svg?v=round-bottom-small-20260711");
  --case-expanded-height: clamp(700px, 86svh, 880px);
  --tab-left: 67.48%;
  --tab-width: 28.02%;
  border-bottom-right-radius: clamp(6px, 1vw, 20px);
  border-bottom-left-radius: clamp(6px, 1vw, 20px);
}

.nm-file-tab {
  position: absolute;
  top: 0;
  left: var(--tab-left);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.75vw, 32px);
  width: var(--tab-width);
  height: var(--tab-height);
  padding: 0 clamp(14px, 1.8vw, 34px);
  border: 0;
  background: transparent;
  color: var(--case-fg);
  cursor: pointer;
  text-align: center;
}

.nm-file-tab span {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: clamp(17px, 1.45vw, 30px);
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-file-tab svg {
  flex: 0 0 clamp(42px, 3.2vw, 64px);
  width: clamp(42px, 3.2vw, 64px);
  height: 24px;
}

.nm-file-tab path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nm-file-case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: start;
  gap: clamp(48px, 5vw, 82px);
  max-height: var(--case-collapsed-body);
  min-height: 0;
  padding:
    clamp(78px, 7vw, 126px)
    clamp(36px, 5vw, 84px)
    clamp(22px, 3vw, 44px);
  overflow: hidden;
  opacity: 1;
  transition:
    min-height 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    padding 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
}

.nm-file-case.is-expanded {
  min-height: var(--case-expanded-height);
}

.nm-file-case.is-expanded .nm-file-case-body {
  min-height: calc(var(--case-expanded-height) - var(--tab-height));
  max-height: 1180px;
  padding-top: clamp(94px, 8vw, 138px);
  padding-bottom: clamp(58px, 6vw, 92px);
  opacity: 1;
}

.nm-file-case-navy.is-expanded .nm-file-case-body {
  padding-bottom: clamp(34px, 3.8vw, 58px);
}

.nm-file-media {
  width: 100%;
  height: var(--media-height, auto);
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: hidden;
  background: transparent;
  transform: translateY(12px);
  transition:
    height 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.nm-file-case.is-expanded .nm-file-media {
  transform: translateY(0);
}

.nm-file-case-green .nm-file-media {
  transform: translate(-100px, 32px) scale(1.35);
}

.nm-file-case-green.is-expanded .nm-file-media {
  transform: translate(-100px, 20px) scale(1.35);
}

.nm-file-case-green .nm-file-case-body {
  overflow: visible;
}

.nm-file-case-navy .nm-file-media {
  transform: translate(-120px, 92px) scale(1.15);
}

.nm-file-case-navy.is-expanded .nm-file-media {
  transform: translate(-120px, 80px) scale(1.15);
}

.nm-file-case-navy .nm-file-case-body {
  overflow: visible;
}

.nm-file-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
}

.nm-file-case-blue .nm-file-media img,
.nm-file-case-green .nm-file-media img,
.nm-file-case-light .nm-file-media img,
.nm-file-case-navy .nm-file-media img {
  object-fit: contain;
}

.nm-file-copy {
  display: grid;
  align-content: center;
  gap: clamp(14px, 1.5vw, 22px);
  min-width: 0;
  transform: translateY(14px);
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.nm-file-case.is-expanded .nm-file-copy {
  transform: translateY(0);
}

.nm-file-label {
  margin: 0;
  color: var(--case-fg);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 900;
  line-height: 1.35;
}

.nm-file-copy h2 {
  margin: 0;
  color: var(--case-fg);
  font-size: clamp(48px, 5.4vw, 86px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.nm-file-desc {
  max-width: 720px;
  margin: 0;
  color: var(--case-muted);
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.68;
}

.nm-file-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 92px);
  width: min(640px, 100%);
  margin-top: clamp(8px, 1vw, 14px);
  padding: clamp(22px, 2vw, 32px) 0;
  border-top: 1px solid var(--case-line);
  border-bottom: 1px solid var(--case-line);
}

.nm-file-stats div {
  display: grid;
  gap: 6px;
}

.nm-file-stats strong {
  color: var(--case-fg);
  font-size: clamp(34px, 3.45vw, 52px);
  font-weight: 900;
  line-height: 0.95;
}

.nm-file-stats span {
  color: var(--case-muted);
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 700;
}

.nm-account-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(560px, 100%);
  min-height: 142px;
  margin-top: clamp(12px, 2vw, 26px);
  padding: 24px 166px 22px 28px;
  border-radius: 16px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.nm-account-card p {
  margin: 0;
  color: rgba(29, 29, 31, 0.66);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.55;
}

.nm-account-row {
  display: flex;
  align-items: center;
  width: min(370px, 100%);
  min-height: 42px;
  overflow: hidden;
  border: 2px solid #202020;
  border-radius: 999px;
  background: #fff;
}

.nm-search-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  padding: 0 8px 0 14px;
}

.nm-search-icon {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
}

.nm-search-icon::after {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  content: "";
  background: #1a1a1a;
  border-radius: 999px;
  transform: rotate(45deg);
}

.nm-search-chip strong {
  min-width: 0;
  overflow: hidden;
  color: #111;
  font-size: clamp(18px, 1.7vw, 27px);
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-copy-btn {
  flex: 0 0 auto;
  min-height: 34px;
  margin-right: 4px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #16b47e;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nm-copy-btn:hover {
  transform: translateY(-1px);
  background: #119d6e;
}

.nm-copy-btn.is-copied {
  background: #2d66e8;
}

.nm-file-case-blue .nm-copy-btn {
  background: #2d66e8;
}

.nm-file-case-blue .nm-copy-btn:hover {
  background: #1a4dcf;
}

.nm-file-case-light .nm-copy-btn {
  background: #000;
}

.nm-file-case-light .nm-copy-btn:hover {
  background: #333;
}

.nm-file-case-navy .nm-copy-btn {
  background: #0d162b;
}

.nm-file-case-navy .nm-copy-btn:hover {
  background: #1a2747;
}

.nm-account-qr {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.nm-file-case-light .nm-account-card {
  box-shadow: 0 16px 36px rgba(14, 22, 43, 0.08);
}

@media (max-width: 1180px) {
  .nm-file-case {
    --tab-height: 58px;
    --case-overlap: 72px;
  }

  .nm-file-case-body {
    gap: 34px;
  }

  .nm-account-card {
    padding-right: 140px;
  }

  .nm-account-qr {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 860px) {
  .nm-file-cases {
    padding-right: 0;
    padding-left: 0;
  }

  .nm-file-stack {
    display: grid;
    gap: 24px;
    padding-top: 44px;
  }

  .nm-file-case,
  .nm-file-case-green,
  .nm-file-case-light,
  .nm-file-case-navy {
    --tab-left: 20px;
    --tab-width: min(320px, calc(100% - 40px));
    --tab-height: 64px;
    --case-overlap: 58px;
    --case-collapsed-height: 260px;
    --case-collapsed-body: 230px;
    min-height: auto;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    background-color: var(--case-bg);
    background-size: 100% 100%;
  }

  .nm-file-case.is-expanded {
    min-height: auto;
    padding-top: 0;
  }

  .nm-file-tab {
    height: 64px;
    padding: 0 38px 0 34px;
  }

  .nm-file-tab span {
    font-size: 22px;
  }

  .nm-file-tab svg {
    width: 48px;
  }

  .nm-file-case-body {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    max-height: none;
    padding-top: 94px;
    padding-bottom: 42px;
    padding-right: 22px;
    padding-left: 22px;
    overflow: visible;
  }

  .nm-file-case.is-expanded .nm-file-case-body {
    min-height: 0;
    max-height: none;
    padding-top: 94px;
    padding-bottom: 42px;
  }

  .nm-file-case-green .nm-file-copy,
  .nm-file-case-navy .nm-file-copy {
    order: 2;
  }

  .nm-file-case-green .nm-file-media,
  .nm-file-case-green.is-expanded .nm-file-media {
    order: 1;
    transform: translateX(0);
  }

  .nm-file-case-green {
    overflow: visible;
  }

  .nm-file-case-navy .nm-file-media,
  .nm-file-case-navy.is-expanded .nm-file-media {
    order: 1;
    transform: translateX(0);
  }

  .nm-file-case-navy {
    overflow: visible;
  }

  .nm-file-media {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .nm-file-copy h2 {
    font-size: clamp(42px, 12vw, 68px);
  }

  .nm-file-desc {
    font-size: 15px;
    line-height: 1.72;
  }

  .nm-file-stats strong {
    font-size: clamp(28px, 7.2vw, 36px);
  }

  .nm-account-card {
    min-height: 132px;
    padding: 18px 112px 18px 18px;
    border-radius: 12px;
  }

  .nm-account-row {
    min-height: 38px;
  }

  .nm-search-chip strong {
    font-size: 19px;
  }

  .nm-copy-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nm-account-qr {
    right: 18px;
    bottom: 20px;
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 480px) {
  .nm-file-case,
  .nm-file-case-green,
  .nm-file-case-light,
  .nm-file-case-navy {
    --tab-left: 14px;
    --tab-width: min(280px, calc(100% - 28px));
    --case-overlap: 48px;
    --case-collapsed-height: 245px;
    --case-collapsed-body: 220px;
  }

  .nm-file-tab {
    padding-right: 30px;
    padding-left: 26px;
  }

  .nm-file-tab span {
    font-size: 19px;
  }

  .nm-file-case.is-expanded .nm-file-case-body {
    max-height: none;
    padding-bottom: 42px;
  }

  .nm-file-stats {
    gap: 18px;
  }

  .nm-account-card {
    padding-right: 18px;
  }

  .nm-account-qr {
    display: none;
  }
}
