:root {
  --bg: #06070a;
  --fg: #f7f8fb;
  --muted: rgba(247, 248, 251, 0.62);
  --line: rgba(255, 255, 255, 0.13);
  --blue: #075cff;
  --cyan: #32d6ff;
  --green: #5effa7;
  --red: #ff342a;
  --yellow: #ffe761;
  --panel: rgba(255, 255, 255, 0.08);
  --scroll-heat: 0;
  font-family:
    "Arial Black",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  color: var(--fg);
  background: var(--bg);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
}

body {
  overflow-x: hidden;
}

html.modal-open {
  overflow: hidden;
}

body.modal-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(118deg, rgba(7, 92, 255, 0.28), transparent 24%, transparent 58%, rgba(255, 52, 42, 0.16)),
    linear-gradient(18deg, transparent 12%, rgba(50, 214, 255, 0.1) 38%, transparent 64%),
    #06070a;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.045), transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 1px);
  background-size: 100% 4px, 5px 100%;
  mix-blend-mode: soft-light;
  opacity: 0.38;
  animation: globalScanDrift 7s linear infinite;
}

@keyframes globalScanDrift {
  to {
    background-position: 0 80px, 90px 0;
  }
}

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

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

button {
  font: inherit;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  mix-blend-mode: screen;
  pointer-events: none;
}

.render-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.render-atmosphere span {
  position: absolute;
  left: -18vw;
  width: 138vw;
  height: 24vh;
  filter: blur(6px);
  opacity: 0.24;
  transform: rotate(-12deg);
  animation: beamDrift 10s ease-in-out infinite alternate;
}

.render-atmosphere span:nth-child(1) {
  top: 12vh;
  background: linear-gradient(90deg, transparent, rgba(7, 92, 255, 0.36), rgba(50, 214, 255, 0.22), transparent);
}

.render-atmosphere span:nth-child(2) {
  top: 46vh;
  background: linear-gradient(90deg, transparent, rgba(255, 52, 42, 0.16), rgba(255, 231, 97, 0.16), transparent);
  animation-delay: -3s;
  animation-duration: 13s;
}

.render-atmosphere span:nth-child(3) {
  top: 72vh;
  background: linear-gradient(90deg, transparent, rgba(94, 255, 167, 0.18), rgba(50, 214, 255, 0.14), transparent);
  animation-delay: -6s;
  animation-duration: 16s;
}

@keyframes beamDrift {
  to {
    transform: translate3d(8vw, -5vh, 0) rotate(-8deg);
  }
}

main {
  position: relative;
  z-index: 2;
}

.intro-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: maskGone 1.45s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  animation-delay: 0.55s;
}

.intro-mask strong {
  position: relative;
  z-index: 2;
  font-size: clamp(48px, 10vw, 168px);
  line-height: 0.85;
  letter-spacing: 0;
  mix-blend-mode: difference;
}

.intro-mask.intro-mask--gone {
  display: none;
  visibility: hidden;
}

.mask-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  background: #f7f8fb;
  transform-origin: top;
  animation: barSplit 1.15s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  animation-delay: 0.6s;
}

.mask-bar:nth-child(1) {
  left: 0;
}

.mask-bar:nth-child(2) {
  left: 25%;
  animation-delay: 0.68s;
}

.mask-bar:nth-child(3) {
  left: 50%;
  animation-delay: 0.76s;
}

.mask-bar:nth-child(4) {
  left: 75%;
  animation-delay: 0.84s;
}

@keyframes barSplit {
  to {
    transform: scaleY(0);
  }
}

@keyframes maskGone {
  0%,
  88% {
    visibility: visible;
  }

  100% {
    visibility: hidden;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 58px);
  mix-blend-mode: difference;
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 14px;
}

.brand span {
  display: block;
  width: 34px;
  height: 4px;
  background: var(--blue);
}

.site-header nav {
  gap: clamp(14px, 3vw, 38px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, calc(0.04 + var(--scroll-heat) * 0.08));
  backdrop-filter: blur(18px);
  box-shadow: 0 0 calc(var(--scroll-heat) * 34px) rgba(50, 214, 255, 0.2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translateY(calc(var(--scroll-heat) * -4px)) scale(calc(1 + var(--scroll-heat) * 0.02));
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.page-meter {
  position: fixed;
  right: clamp(18px, 3vw, 48px);
  bottom: 34px;
  z-index: 45;
  display: grid;
  gap: 12px;
  justify-items: center;
  color: #fff;
  mix-blend-mode: difference;
}

.page-meter span {
  font-size: 12px;
  font-weight: 900;
}

.page-meter i {
  position: relative;
  display: block;
  width: 3px;
  height: 190px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.page-meter em {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: #fff;
}

.command-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 52;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 36px);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 7, 10, 0.48);
  backdrop-filter: blur(22px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
}

.command-dock span {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.command-dock button {
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #071017;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.command-dock button:hover {
  color: #fff;
  background: var(--blue);
}

body[data-scene="cases"] .command-dock {
  opacity: 0.42;
  transform: translateX(-50%) translateY(28px);
}

body[data-scene="cases"] .command-dock:hover,
body[data-scene="cases"] .command-dock:focus-within {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(50, 214, 255, 0.42);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 950;
  letter-spacing: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 0.78fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 100vh;
  padding: 96px clamp(18px, 5vw, 74px) 54px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(110deg, rgba(255, 52, 42, 0.26), transparent 18%, transparent 72%, rgba(255, 231, 97, 0.18)),
    linear-gradient(18deg, transparent 0 42%, rgba(7, 92, 255, 0.36) 43% 52%, transparent 53%),
    radial-gradient(circle at 70% 52%, rgba(50, 214, 255, 0.22), transparent 34%);
}

.hero > * {
  position: relative;
}

.impact-marquee {
  position: absolute;
  left: -10vw;
  z-index: 0;
  display: flex;
  width: 140vw;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.06);
  font-size: clamp(82px, 14vw, 210px);
  line-height: 0.8;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

.impact-marquee span {
  display: inline-block;
  min-width: max-content;
  animation: impactMarquee 12s linear infinite;
}

.impact-marquee-top {
  top: 9vh;
  transform: rotate(-6deg);
}

.impact-marquee-bottom {
  bottom: 10vh;
  color: rgba(255, 255, 255, 0.045);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  transform: rotate(5deg);
}

.impact-marquee-bottom span {
  animation-direction: reverse;
  animation-duration: 15s;
}

@keyframes impactMarquee {
  to {
    transform: translateX(-100%);
  }
}

.impact-burst {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.impact-burst::before,
.impact-burst::after {
  position: absolute;
  content: "";
  filter: none;
  mix-blend-mode: screen;
}

.impact-burst::before {
  left: -12vw;
  top: 35vh;
  width: 124vw;
  height: 18vh;
  background: linear-gradient(90deg, transparent, rgba(255, 52, 42, 0.78), rgba(255, 231, 97, 0.58), rgba(7, 92, 255, 0.64), transparent);
  clip-path: polygon(0 42%, 100% 0, 100% 44%, 0 100%);
  animation: slashHit 2.6s ease-in-out infinite alternate;
}

.impact-burst::after {
  right: -8vw;
  top: 8vh;
  width: 58vw;
  height: 72vh;
  background: conic-gradient(from 160deg, transparent, rgba(50, 214, 255, 0.22), rgba(255, 255, 255, 0.18), transparent, rgba(255, 52, 42, 0.16), transparent);
  opacity: 0.84;
  animation: haloSpin 9s linear infinite;
}

@keyframes slashHit {
  from {
    transform: translateX(-8vw) skewX(-12deg);
    opacity: 0.42;
  }

  to {
    transform: translateX(7vw) skewX(-12deg);
    opacity: 0.9;
  }
}

@keyframes haloSpin {
  to {
    transform: rotate(360deg);
  }
}

.impact-shards {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1000px;
}

.impact-shard {
  position: absolute;
  width: clamp(130px, 19vw, 310px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  filter: saturate(1.18) contrast(1.06);
  clip-path: polygon(8% 0, 100% 10%, 88% 100%, 0 84%);
  opacity: 0.9;
  animation: shardImpactFloat 4.2s ease-in-out infinite alternate;
}

.shard-1 {
  right: 4vw;
  top: 13vh;
  transform: rotate(11deg) translateZ(80px);
}

.shard-2 {
  right: 19vw;
  bottom: 8vh;
  animation-delay: -1.3s;
  transform: rotate(-12deg) translateZ(120px);
}

.shard-3 {
  left: 50vw;
  top: 4vh;
  width: clamp(110px, 14vw, 220px);
  animation-delay: -2.2s;
  transform: rotate(-8deg) translateZ(60px);
}

.shard-4 {
  left: 38vw;
  bottom: 14vh;
  animation-delay: -3s;
  transform: rotate(8deg) translateZ(100px);
}

@keyframes shardImpactFloat {
  from {
    translate: 0 -18px;
    filter: saturate(1.2) contrast(1.08) brightness(0.92);
  }

  to {
    translate: 0 22px;
    filter: saturate(1.55) contrast(1.22) brightness(1.08);
  }
}

.cinema-engine {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  top: 50%;
  z-index: 2;
  width: min(48vw, 660px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #030406;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(7, 92, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: translateY(-50%) perspective(1200px) rotateY(-13deg) rotateX(4deg) rotateZ(2deg);
  transform-style: preserve-3d;
}

.cinema-engine::before,
.cinema-engine::after {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: 12%;
  content: "";
  background: #030406;
  pointer-events: none;
}

.cinema-engine::before {
  top: 0;
}

.cinema-engine::after {
  bottom: 0;
}

.cinema-screen {
  position: absolute;
  inset: 12% 0;
  background: #000;
}

.cinema-screen::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, 0.12), transparent 1px, rgba(0, 76, 255, 0.1) 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.4));
  background-size: 100% 3px, 6px 100%, auto;
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
  animation: videoScan 1.2s linear infinite;
}

@keyframes videoScan {
  to {
    background-position: 0 24px, 8px 0, 0 0;
  }
}

.cinema-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12) translate3d(0, 0, 0);
  filter: saturate(1.22) contrast(1.12);
  transition:
    opacity 0.18s linear,
    transform 1.15s cubic-bezier(0.2, 0.8, 0.1, 1),
    filter 0.22s linear;
}

.cinema-screen img.is-live {
  opacity: 1;
  transform: scale(1.02) translate3d(var(--pan-x, 0), var(--pan-y, 0), 0);
}

.cinema-screen img.is-exit {
  opacity: 0;
  transform: scale(1.28) translate3d(calc(var(--pan-x, 0) * -1), calc(var(--pan-y, 0) * -1), 0);
  filter: saturate(1.3) contrast(1.12);
}

.cinema-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.cinema-hud i {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 52, 42, 0.9);
  animation: recBlink 0.72s steps(2, end) infinite;
}

@keyframes recBlink {
  50% {
    opacity: 0.22;
  }
}

.cinema-timeline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 17px;
  z-index: 8;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.cinema-timeline span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #fff, var(--cyan), var(--red));
  box-shadow: 0 0 18px rgba(50, 214, 255, 0.55);
}

.shot-name {
  position: absolute;
  left: 18px;
  bottom: 30px;
  z-index: 8;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.render-grid {
  position: absolute;
  left: 44%;
  bottom: -24vh;
  z-index: -1;
  width: 92vw;
  height: 62vh;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(50, 214, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 214, 255, 0.18) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.2;
  transform: perspective(780px) rotateX(64deg) rotateZ(-11deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, transparent 86%);
}

.hero::before {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: -2;
  color: rgba(255, 255, 255, 0.035);
  content: "AIGC";
  font-size: clamp(220px, 43vw, 740px);
  font-weight: 950;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
}

.hero::after {
  position: absolute;
  inset: 12% -20% auto;
  height: 44%;
  z-index: -1;
  content: "";
  background:
    linear-gradient(100deg, transparent, rgba(7, 92, 255, 0.18) 36%, rgba(50, 214, 255, 0.26) 48%, transparent 62%),
    linear-gradient(84deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  clip-path: polygon(0 36%, 100% 0, 100% 34%, 0 78%);
  transform: translateX(-18%);
  animation: lightSweep 6s ease-in-out infinite alternate;
}

.hero-copy::before,
.hero-copy::after {
  position: absolute;
  left: -18px;
  content: "";
  pointer-events: none;
}

.hero-copy::before {
  top: -24px;
  width: 72px;
  height: 72px;
  border-top: 2px solid rgba(50, 214, 255, 0.72);
  border-left: 2px solid rgba(50, 214, 255, 0.72);
  filter: drop-shadow(0 0 18px rgba(50, 214, 255, 0.42));
}

.hero-copy::after {
  bottom: -28px;
  width: min(78vw, 760px);
  height: 2px;
  background: linear-gradient(90deg, #fff, rgba(50, 214, 255, 0.72), transparent);
  animation: dataLine 2.4s ease-in-out infinite alternate;
}

@keyframes dataLine {
  from {
    transform: scaleX(0.28);
    transform-origin: left;
    opacity: 0.46;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
    opacity: 1;
  }
}

@keyframes lightSweep {
  to {
    transform: translateX(18%);
  }
}

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

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(82px, 13.8vw, 212px);
  line-height: 0.72;
  filter: drop-shadow(0 18px 0 rgba(255, 52, 42, 0.42));
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  background: linear-gradient(180deg, #fff, #fff 32%, #cfe9ff 62%, rgba(50, 214, 255, 0.72));
  background-size: 100% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(16px);
  opacity: 0;
  animation:
    titleRise 0.75s cubic-bezier(0.2, 0.7, 0, 1) forwards,
    titleShine 3.8s ease-in-out infinite alternate;
}

.hero h1 span:nth-child(2) {
  animation-delay: 0.1s;
  color: #fff;
  background: none;
  -webkit-text-stroke: 0;
  text-shadow:
    -7px 0 0 rgba(255, 52, 42, 0.72),
    7px 0 0 rgba(7, 92, 255, 0.72);
}

.hero h1 span:nth-child(3) {
  color: transparent;
  -webkit-text-stroke: 3px #fff;
  text-shadow:
    0 0 22px rgba(50, 214, 255, 0.5),
    0 0 60px rgba(255, 231, 97, 0.2);
  animation-delay: 0.2s;
}

@keyframes titleRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleShine {
  from {
    background-position: 0 0;
    filter: drop-shadow(0 0 0 rgba(50, 214, 255, 0));
  }

  to {
    background-position: 0 100%;
    filter: drop-shadow(0 0 22px rgba(50, 214, 255, 0.18));
  }
}

.hero-sub {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 1.25rem;
  line-height: 1.75;
}

.hero-card {
  position: relative;
  margin: 0;
  opacity: 0.2;
  z-index: 3;
  transform: perspective(1200px) rotateY(-14deg) rotateX(6deg) rotateZ(5deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  transform-style: preserve-3d;
}

.hero-card::before {
  position: absolute;
  inset: -22px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  content: "";
  transform: rotate(-7deg);
  box-shadow:
    0 0 0 1px rgba(50, 214, 255, 0.08),
    0 0 70px rgba(7, 92, 255, 0.2);
}

.hero-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.38) 45%, transparent 56%),
    linear-gradient(180deg, rgba(7, 92, 255, 0.16), transparent 52%, rgba(0, 0, 0, 0.24));
  mix-blend-mode: screen;
  opacity: 0.46;
  animation: glassSweep 3.8s ease-in-out infinite alternate;
}

@keyframes glassSweep {
  from {
    background-position: -120px 0, 0 0;
  }

  to {
    background-position: 220px 0, 0 0;
  }
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateZ(42px);
}

.hero-card figcaption {
  position: absolute;
  left: 22px;
  bottom: -44px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateZ(62px);
}

.scene-stats {
  position: absolute;
  right: clamp(22px, 5vw, 74px);
  bottom: 80px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  width: min(420px, 34vw);
}

.scene-stats div {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 20px rgba(50, 214, 255, 0.05);
}

.scene-stats b {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.scene-stats span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-stack {
  position: absolute;
  left: clamp(18px, 5vw, 74px);
  right: clamp(18px, 5vw, 74px);
  bottom: 112px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 8px;
  align-items: end;
  width: min(620px, 48vw);
}

.signal-stack span {
  display: block;
  height: 24px;
  background: linear-gradient(180deg, rgba(50, 214, 255, 0.04), rgba(50, 214, 255, 0.72));
  transform-origin: bottom;
  animation: signalPulse 0.9s ease-in-out infinite alternate;
}

.signal-stack span:nth-child(2) {
  animation-delay: -0.2s;
}

.signal-stack span:nth-child(3) {
  animation-delay: -0.36s;
}

.signal-stack span:nth-child(4) {
  animation-delay: -0.5s;
}

.signal-stack span:nth-child(5) {
  animation-delay: -0.68s;
}

.signal-stack b {
  padding-left: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes signalPulse {
  from {
    transform: scaleY(0.18);
    opacity: 0.38;
  }

  to {
    transform: scaleY(1.55);
    opacity: 1;
  }
}

.scroll-cue {
  position: absolute;
  left: clamp(18px, 5vw, 74px);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 54px;
  height: 2px;
  background: #fff;
}

.showreel {
  position: relative;
  height: 340vh;
}

.sticky-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  perspective: 1200px;
  isolation: isolate;
}

.sticky-stage::before {
  position: absolute;
  inset: 8% 8% 10% 42%;
  z-index: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(90deg, rgba(7, 92, 255, 0.12), rgba(50, 214, 255, 0.04), transparent);
  transform: perspective(900px) rotateY(-16deg) rotateX(7deg);
  filter: blur(0.2px);
}

.stage-copy {
  position: absolute;
  left: clamp(18px, 5vw, 74px);
  top: 50%;
  z-index: 3;
  width: min(520px, 48vw);
  transform: translateY(-50%);
}

.stage-copy h2,
.case-text h2,
.video-head h2,
.flow-copy h2 {
  margin-bottom: 22px;
  font-size: 6.7rem;
  line-height: 0.88;
  text-shadow: 0 24px 54px rgba(0, 0, 0, 0.56);
}

.stage-copy p:not(.kicker),
.case-text p:not(.kicker),
.video-head p,
.flow-copy p {
  color: var(--muted);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

.spiral {
  --turn: 0deg;
  position: absolute;
  top: 50%;
  left: 70%;
  z-index: 1;
  width: min(48vw, 680px);
  height: min(72vh, 620px);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(var(--turn)) rotateX(-8deg);
  transition: transform 0.08s linear;
}

.spiral img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(28vw, 370px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) rotateY(calc(var(--i) * 51.42deg)) translateZ(min(32vw, 450px));
  filter: saturate(1.2) contrast(1.08) drop-shadow(0 0 28px rgba(50, 214, 255, 0.16));
  backface-visibility: hidden;
  translate: 0 0;
  animation: orbitalCardFloat 5.8s ease-in-out infinite alternate;
}

.spiral img:nth-child(2n) {
  animation-delay: -2.4s;
}

.spiral img:nth-child(3n) {
  animation-delay: -4s;
}

@keyframes orbitalCardFloat {
  from {
    translate: 0 -8px;
    filter: saturate(1.12) contrast(1.04) drop-shadow(0 0 18px rgba(50, 214, 255, 0.12));
  }

  to {
    translate: 0 14px;
    filter: saturate(1.28) contrast(1.12) drop-shadow(0 0 34px rgba(50, 214, 255, 0.2));
  }
}

.spiral img::selection {
  background: transparent;
}

.spiral img:nth-child(1) {
  --i: 0;
}

.spiral img:nth-child(2) {
  --i: 1;
}

.spiral img:nth-child(3) {
  --i: 2;
}

.spiral img:nth-child(4) {
  --i: 3;
}

.spiral img:nth-child(5) {
  --i: 4;
}

.spiral img:nth-child(6) {
  --i: 5;
}

.spiral img:nth-child(7) {
  --i: 6;
}

.about-cinematic {
  min-height: 120vh;
  padding: clamp(90px, 10vw, 140px) clamp(18px, 5vw, 74px);
  background:
    linear-gradient(112deg, rgba(7, 92, 255, 0.12), transparent 34%),
    linear-gradient(18deg, transparent 48%, rgba(50, 214, 255, 0.12)),
    #f5f8fb;
  color: #0b0d12;
}

.about-frame {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(320px, 0.8fr) minmax(280px, 0.56fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.about-title h2 {
  margin-bottom: 0;
  font-size: 5.8rem;
  line-height: 0.9;
}

.about-frame figure {
  margin: 0;
}

.about-frame img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  object-position: 18% center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 28px 80px rgba(15, 28, 48, 0.2),
    0 0 0 10px rgba(255, 255, 255, 0.34);
}

.about-points p,
.about-points li {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

.about-points p {
  color: rgba(11, 13, 18, 0.68);
  line-height: 1.9;
}

.about-points ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.about-points li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 800;
}

.about-points b {
  color: var(--blue);
}

.case-track {
  background: #06070a;
}

.case-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 100vh;
  padding: 84px clamp(18px, 5vw, 74px);
  overflow: hidden;
  perspective: 1300px;
  transform-style: preserve-3d;
}

.case-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 92, 255, 0.18), transparent 46%),
    #06070a;
}

.case-panel::after {
  position: absolute;
  inset: 9% -14% auto;
  z-index: -1;
  height: 52%;
  content: "";
  background: linear-gradient(102deg, transparent 8%, rgba(255, 255, 255, 0.09) 42%, transparent 68%);
  clip-path: polygon(0 46%, 100% 0, 100% 24%, 0 88%);
}

.case-panel.dark::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 48%),
    #06070a;
}

.case-panel.spring::before {
  background:
    linear-gradient(90deg, rgba(94, 255, 167, 0.22), transparent 48%),
    #07100b;
}

.case-panel.ice::before {
  background:
    linear-gradient(90deg, rgba(50, 214, 255, 0.2), transparent 48%),
    #071017;
}

.case-text {
  position: relative;
  z-index: 2;
}

.case-text > span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-weight: 950;
  box-shadow:
    inset 0 0 22px rgba(50, 214, 255, 0.12),
    0 0 32px rgba(50, 214, 255, 0.12);
}

.case-text h2 {
  font-size: 5.6rem;
}

.case-media {
  position: relative;
  min-height: 62vh;
}

.case-media::before {
  position: absolute;
  inset: 12% 0 8% 8%;
  z-index: -1;
  content: "";
  background: linear-gradient(100deg, rgba(7, 92, 255, 0.34), rgba(50, 214, 255, 0.12), transparent);
  filter: blur(24px);
  transform: skewY(-5deg);
}

.case-media img {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  filter: saturate(1.12) contrast(1.05);
  transform-style: preserve-3d;
  translate: 0 0;
  animation: layeredFloat 5.5s ease-in-out infinite alternate;
}

.case-media img:nth-child(2) {
  animation-delay: -1.8s;
}

.case-media img:nth-child(3) {
  animation-delay: -3.2s;
}

.case-media img:nth-child(4) {
  animation-delay: -4.4s;
}

@keyframes layeredFloat {
  from {
    translate: 0 -10px;
    filter: saturate(1.06) contrast(1.03);
  }

  to {
    translate: 0 16px;
    filter: saturate(1.22) contrast(1.08);
  }
}

.media-fan img {
  position: absolute;
  width: min(62%, 620px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-fan img:nth-child(1) {
  top: 4%;
  left: 0;
  transform: perspective(1100px) rotateY(13deg) rotateX(3deg) rotateZ(-7deg) translateZ(12px);
}

.media-fan img:nth-child(2) {
  right: 0;
  bottom: 8%;
  transform: perspective(1100px) rotateY(-12deg) rotateX(-3deg) rotateZ(5deg) translateZ(34px);
}

.media-fan img:nth-child(3) {
  left: 24%;
  bottom: 2%;
  transform: perspective(1100px) rotateY(7deg) rotateX(-2deg) rotateZ(-2deg) translateZ(54px);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-content: center;
}

.mosaic img {
  width: 100%;
  height: 30vh;
  min-height: 210px;
  object-fit: cover;
  transform: perspective(1000px) rotateY(-5deg) translateZ(0);
}

.mosaic img:first-child {
  grid-row: span 2;
  height: 62vh;
  transform: perspective(1000px) rotateY(8deg) rotateX(2deg) translateZ(28px);
}

.phone-pop {
  display: grid;
  grid-template-columns: 0.54fr 1fr;
  gap: 18px;
  align-items: center;
}

.phone-pop img:first-child {
  max-height: 76vh;
  object-fit: contain;
  transform: perspective(900px) rotateY(11deg) rotateX(3deg) translateZ(36px);
}

.phone-pop img:last-child {
  width: 100%;
  transform: perspective(1100px) translateX(-18px) rotateY(-9deg) rotateX(-2deg) rotateZ(2deg) translateZ(18px);
}

.video-lab {
  min-height: 120vh;
  padding: clamp(90px, 10vw, 140px) clamp(18px, 5vw, 74px);
  background:
    linear-gradient(115deg, rgba(255, 52, 42, 0.22), transparent 42%),
    linear-gradient(16deg, transparent 10%, rgba(255, 231, 97, 0.09) 34%, transparent 56%),
    #06070a;
}

.video-head {
  width: min(960px, 100%);
  margin-bottom: 42px;
}

.reel-wall {
  display: grid;
  grid-template-columns: 1.1fr 0.56fr 0.94fr;
  gap: 16px;
  align-items: end;
  perspective: 1300px;
}

.reel-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: #111;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  translate: 0 0;
  transform: perspective(1100px) rotateY(0deg);
  animation: reelDrift 6.5s ease-in-out infinite alternate;
}

.reel-card:nth-child(1) {
  transform: perspective(1100px) rotateY(7deg) rotateX(2deg);
}

.reel-card:nth-child(2) {
  animation-delay: -2s;
  transform: perspective(1100px) rotateY(-5deg) rotateX(-2deg) translateZ(30px);
}

.reel-card:nth-child(3) {
  animation-delay: -3.4s;
  transform: perspective(1100px) rotateY(-8deg) rotateX(2deg);
}

@keyframes reelDrift {
  from {
    translate: 0 -12px;
    filter: saturate(1.02);
  }

  to {
    translate: 0 18px;
    filter: saturate(1.16);
  }
}

.reel-card.tall {
  min-height: 640px;
}

.reel-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.78;
  transition:
    opacity 0.35s ease,
    transform 0.55s ease;
}

.reel-card:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.reel-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.reel-card::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  content: "";
  transform: translate(-35%, -50%);
}

.reel-card span,
.reel-card b {
  position: absolute;
  z-index: 4;
  left: 20px;
}

.reel-card span {
  top: 20px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.reel-card b {
  right: 20px;
  bottom: 20px;
  font-size: 1.8rem;
  line-height: 1;
}

.flow-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 0.82fr) minmax(280px, 0.64fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  min-height: 120vh;
  padding: clamp(90px, 10vw, 140px) clamp(18px, 5vw, 74px);
}

.flow-board {
  position: relative;
  display: grid;
  gap: 14px;
}

.flow-board::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 32px;
  width: 2px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(0);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.flow-step.active {
  border-color: rgba(50, 214, 255, 0.68);
  background: rgba(7, 92, 255, 0.22);
  transform: translateX(18px);
  animation: nodePulse 1.45s ease-in-out infinite alternate;
}

@keyframes nodePulse {
  from {
    box-shadow: 0 0 0 rgba(50, 214, 255, 0);
  }

  to {
    box-shadow: 0 0 34px rgba(50, 214, 255, 0.18);
  }
}

.flow-step i {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--cyan);
  font-style: normal;
  font-weight: 950;
}

.flow-step b {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

.flow-images {
  display: grid;
  gap: 14px;
}

.flow-images img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(7, 92, 255, 0.12);
  transform: perspective(900px) rotateY(-5deg);
}

.finale {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 80px 18px;
  color: #0b0d12;
  text-align: center;
  background: #f5f8fb;
}

.finale img {
  width: min(760px, 100%);
  margin-bottom: 34px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.18);
}

.finale h2 {
  margin-bottom: 28px;
  font-size: 7.4rem;
  line-height: 0.85;
}

.finale a {
  display: inline-grid;
  place-items: center;
  min-width: 150px;
  height: 48px;
  border: 1px solid #0b0d12;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

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

.modal-screen {
  position: relative;
  display: grid;
  place-items: center;
  width: min(980px, 100%);
  min-height: min(620px, 72vh);
  padding: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    #090b10;
  background-size: 36px 36px;
  text-align: center;
}

.modal-screen i {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.modal-screen i::after {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fff;
  content: "";
}

.modal-screen h3 {
  margin-bottom: 14px;
  font-size: 4rem;
  line-height: 0.9;
}

.modal-screen p {
  max-width: 520px;
  color: var(--muted);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 20px;
  height: 2px;
  content: "";
  background: #fff;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .site-header nav,
  .page-meter,
  .scene-stats,
  .signal-stack,
  .cinema-engine {
    display: none;
  }

  .hero,
  .about-frame,
  .case-panel,
  .flow-lab {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-card {
    transform: rotate(0deg);
  }

  .hero h1 {
    font-size: 5rem;
  }

  .stage-copy {
    left: 18px;
    right: 18px;
    top: 18%;
    width: auto;
    transform: none;
  }

  .spiral {
    left: 50%;
    top: 62%;
    width: 86vw;
    height: 58vh;
  }

  .spiral img {
    width: 62vw;
    transform: translate(-50%, -50%) rotateY(calc(var(--i) * 51.42deg)) translateZ(72vw);
  }

  .about-cinematic,
  .video-lab,
  .flow-lab {
    min-height: auto;
  }

  .case-panel {
    position: relative;
    min-height: auto;
  }

  .case-media {
    min-height: 430px;
  }

  .mosaic,
  .phone-pop,
  .reel-wall {
    grid-template-columns: 1fr;
  }

  .mosaic img,
  .mosaic img:first-child {
    height: auto;
    min-height: 0;
  }

  .phone-pop img:last-child {
    transform: none;
  }

  .reel-card,
  .reel-card.tall {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 3.7rem;
  }

  .stage-copy h2,
  .case-text h2,
  .video-head h2,
  .flow-copy h2,
  .about-title h2 {
    font-size: 3.25rem;
  }

  .hero-sub,
  .stage-copy p:not(.kicker),
  .case-text p:not(.kicker),
  .video-head p,
  .flow-copy p {
    font-size: 15px;
  }

  .media-fan {
    min-height: 520px;
  }

  .media-fan img {
    width: 84%;
  }

  .media-fan img:nth-child(2) {
    bottom: 18%;
  }

  .media-fan img:nth-child(3) {
    bottom: 0;
    left: 4%;
  }

  .modal-screen {
    padding: 34px 18px;
  }

  .command-dock {
    left: 18px;
    right: 18px;
    bottom: 14px;
    justify-content: space-between;
    transform: none;
  }

  .command-dock span {
    display: none;
  }

  .command-dock button {
    flex: 1;
    padding: 0 8px;
    font-size: 10px;
  }
}

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

  .intro-mask {
    display: none;
  }
}


/* ===== Market-beating iteration: cinematic restraint + proof-led narrative ===== */
:root {
  --void: #000;
  --ink: #f8fbff;
  --slate: #8a94a6;
  --electric: #0099ff;
  --acid: #9dff7a;
  --warm: #ff4d36;
}

body::before {
  background:
    radial-gradient(circle at 72% 30%, rgba(0,153,255,.20), transparent 28%),
    radial-gradient(circle at 12% 80%, rgba(157,255,122,.10), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 32%),
    #000;
  background-size: auto;
}

body::after { opacity: .18; }
.render-atmosphere span { opacity: .13; filter: blur(22px); }
.site-header { padding-top: 18px; }
.brand b { letter-spacing: 0; }
.site-header nav, .command-dock {
  border-color: rgba(255,255,255,.10);
  background: rgba(0,0,0,.54);
  box-shadow: 0 20px 70px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.08);
}
.command-dock button, .hero-actions a, .hero-actions button {
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.command-dock button:hover, .hero-actions a:hover, .hero-actions button:hover { transform: translateY(-2px); }

.hero {
  grid-template-columns: minmax(360px, 1.08fr) minmax(300px, .72fr);
  background:
    linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.54) 52%, rgba(0,0,0,.86)),
    radial-gradient(circle at 70% 48%, rgba(0,153,255,.34), transparent 29%),
    #000;
}
.hero::before { content: "DIRECTOR"; opacity: .72; }
.hero::after, .impact-burst::before { opacity: .42; }
.impact-marquee { color: rgba(255,255,255,.035); }
.impact-burst::before {
  height: 11vh;
  background: linear-gradient(90deg, transparent, rgba(0,153,255,.75), rgba(255,255,255,.35), transparent);
}
.impact-burst::after { opacity: .38; }
.impact-shard {
  border-radius: 10px;
  clip-path: none;
  opacity: .72;
  filter: saturate(1.06) contrast(1.08) brightness(.86);
}
.hero h1 {
  max-width: 11ch;
  font-family: Inter, "PingFang SC", system-ui, sans-serif;
  font-size: clamp(64px, 10.8vw, 164px);
  line-height: .78;
  letter-spacing: 0;
  filter: drop-shadow(0 30px 60px rgba(0,153,255,.20));
}
.hero h1 span:nth-child(2) {
  text-shadow: -4px 0 0 rgba(255,77,54,.42), 4px 0 0 rgba(0,153,255,.46);
}
.hero h1 span:nth-child(3) {
  -webkit-text-stroke: 2px rgba(255,255,255,.88);
  color: rgba(255,255,255,.035);
}
.hero-sub {
  max-width: 780px;
  color: rgba(248,251,255,.76);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.72;
}
.hero-card {
  border-radius: 18px;
  overflow: visible;
}
.hero-card::before {
  inset: -14px;
  border-radius: 24px;
  border-color: rgba(0,153,255,.26);
  transform: rotate(-3deg);
}
.hero-card img {
  border-radius: 16px;
  filter: saturate(1.08) contrast(1.06);
}
.hero-card figcaption {
  bottom: -36px;
  color: rgba(255,255,255,.58);
  letter-spacing: .08em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions a, .hero-actions button {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.hero-actions a { color: #05070a; background: #fff; }
.reference-radar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  max-width: 760px;
}
.reference-radar small {
  color: rgba(255,255,255,.44);
  font-size: 11px;
  text-transform: uppercase;
}
.reference-radar b {
  padding: 7px 10px;
  border: 1px solid rgba(0,153,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(0,153,255,.075);
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.scene-stats div {
  border-radius: 14px;
  background: rgba(0,0,0,.44);
}

.benchmark-lab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px,.82fr) minmax(360px,1fr);
  gap: clamp(28px,5vw,78px);
  align-items: end;
  min-height: 105vh;
  padding: clamp(90px, 10vw, 150px) clamp(18px, 5vw, 74px);
  color: #05070a;
  background:
    radial-gradient(circle at 82% 16%, rgba(0,153,255,.18), transparent 26%),
    linear-gradient(135deg, #f8fbff, #eef3f8 58%, #fff);
  overflow: hidden;
}
.benchmark-lab::before {
  position: absolute;
  inset: 8% auto auto 4%;
  content: "BENCH\A MARK";
  white-space: pre;
  color: rgba(0,0,0,.045);
  font-size: clamp(110px,22vw,360px);
  line-height: .74;
  font-weight: 950;
  letter-spacing: 0;
}
.benchmark-copy, .benchmark-grid { position: relative; z-index: 1; }
.benchmark-copy h2 {
  max-width: 760px;
  margin: 0 0 24px;
  font-family: Inter, "PingFang SC", system-ui, sans-serif;
  font-size: clamp(46px, 7vw, 112px);
  line-height: .86;
  letter-spacing: 0;
}
.benchmark-copy p {
  max-width: 620px;
  color: rgba(5,7,10,.62);
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.85;
}
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.benchmark-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(5,7,10,.10);
  border-radius: 22px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 30px 90px rgba(15, 30, 60, .10), inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
}
.benchmark-grid article:nth-child(2) {
  color: #fff;
  background: #05070a;
  transform: translateY(-28px);
}
.benchmark-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--electric);
  font-weight: 950;
}
.benchmark-grid b {
  display: block;
  margin-bottom: 14px;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0;
}
.benchmark-grid p {
  margin: 0;
  color: inherit;
  opacity: .64;
  font-family: "PingFang SC", system-ui, sans-serif;
  line-height: 1.72;
}

.stage-copy h2, .case-text h2, .video-head h2, .flow-copy h2, .about-title h2, .finale h2 {
  font-family: Inter, "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}
.case-panel::before, .video-lab { background-color: #000; }
.case-media img, .reel-card { border-radius: 18px; }
.reel-card::before { border-width: 2px; backdrop-filter: blur(8px); background: rgba(0,0,0,.18); }
.flow-step { border-radius: 16px; overflow: hidden; }
.finale { background: #fff; }
.finale-note {
  max-width: 620px;
  margin: -8px auto 28px;
  color: rgba(5,7,10,.58);
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .benchmark-lab { grid-template-columns: 1fr; min-height: auto; }
  .benchmark-grid article:nth-child(2) { transform: none; }
  .hero h1 { letter-spacing: 0; }
}
@media (max-width: 640px) {
  .benchmark-grid { grid-template-columns: 1fr; }
  .hero-actions a, .hero-actions button { width: 100%; }
  .reference-radar b { font-size: 10px; }
}

/* ===== Spatial image pass: generated depth plates, lightweight parallax ===== */
.hero {
  --tilt-x: 0;
  --tilt-y: 0;
  --hero-progress: 0;
  background: #000;
}

.hero .space-backdrop {
  position: absolute;
  inset: -5vh -8vw -8vh -4vw;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform:
    translate3d(
      calc(var(--tilt-x) * -18px),
      calc(var(--tilt-y) * -12px),
      0
    )
    scale(calc(1.06 + var(--hero-progress) * 0.055));
  transform-origin: 62% 50%;
  will-change: transform;
}

.hero .space-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  opacity: 0.82;
  filter: saturate(1.1) contrast(1.08) brightness(0.72);
  transform: scale(1.045);
  animation: spaceBreath 12s ease-in-out infinite alternate;
}

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

.hero .space-backdrop::before {
  z-index: 1;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.82) 27%, rgba(0, 0, 0, 0.28) 61%, rgba(0, 0, 0, 0.76) 100%),
    radial-gradient(circle at 70% 46%, transparent 0 22%, rgba(0, 0, 0, 0.12) 36%, rgba(0, 0, 0, 0.76) 86%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.86));
}

.hero .space-backdrop::after {
  z-index: 2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055), transparent 1px),
    linear-gradient(90deg, rgba(50, 214, 255, 0.1), transparent 1px);
  background-size: 100% 5px, 8px 100%;
  mix-blend-mode: screen;
  opacity: 0.18;
}

@keyframes spaceBreath {
  from {
    transform: scale(1.045) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.095) translate3d(-1.2vw, -0.8vh, 0);
  }
}

.hero-copy,
.cinema-engine,
.impact-shards,
.scene-stats,
.signal-stack,
.scroll-cue {
  position: relative;
  z-index: 4;
}

.impact-marquee,
.impact-burst {
  z-index: 2;
}

.impact-burst::before {
  opacity: 0.32;
}

.impact-burst::after {
  opacity: 0.22;
}

.impact-shard {
  opacity: 0.44;
}

.render-grid {
  z-index: 1;
  opacity: 0.11;
}

.cinema-engine {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #030406;
  transform:
    translateY(-50%)
    perspective(1400px)
    rotateY(calc(-15deg + var(--tilt-x) * 3deg))
    rotateX(calc(5deg - var(--tilt-y) * 2deg))
    rotateZ(2deg)
    translateZ(80px);
}

.video-lab {
  --video-progress: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.video-space {
  position: absolute;
  inset: -8vh -7vw;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(calc((var(--video-progress) - 0.5) * -72px)) scale(1.08);
  transform-origin: 50% 50%;
  will-change: transform;
}

.video-space img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.1) brightness(0.56);
  transform: scale(1.04);
  animation: videoSpaceDrift 13s ease-in-out infinite alternate;
}

.video-space::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34) 48%, rgba(0, 0, 0, 0.78)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 38%, rgba(0, 0, 0, 0.94)),
    radial-gradient(circle at 48% 50%, rgba(0, 153, 255, 0.16), transparent 38%);
  pointer-events: none;
}

@keyframes videoSpaceDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.085) translate3d(1vw, -1vh, 0);
  }
}

.video-lab > :not(.video-space) {
  position: relative;
  z-index: 1;
}

.video-head {
  max-width: 900px;
  text-shadow: 0 26px 80px rgba(0, 0, 0, 0.72);
}

.reel-wall {
  transform-style: preserve-3d;
}

.reel-card {
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.reel-card::after {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88)),
    linear-gradient(90deg, rgba(0, 153, 255, 0.13), transparent 42%, rgba(255, 77, 54, 0.1));
}

@media (max-width: 980px) {
  .hero .space-backdrop {
    inset: 0 -34vw 0 -22vw;
    opacity: 0.9;
    transform: scale(1.1);
  }

  .hero .space-backdrop img {
    object-position: 66% 50%;
  }

  .video-space {
    inset: 0 -48vw;
  }
}

/* Spatial balance pass: let the generated room carry the scene. */
.hero .space-backdrop img {
  object-position: 63% 50%;
  opacity: 0.98;
  filter: saturate(1.13) contrast(1.1) brightness(0.9);
}

.hero .space-backdrop::before {
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 25%, rgba(0, 0, 0, 0.14) 58%, rgba(0, 0, 0, 0.62) 100%),
    radial-gradient(circle at 70% 46%, transparent 0 30%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.74) 92%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82));
}

.hero-copy {
  transform: translateY(-6vh);
}

.hero h1 {
  font-size: clamp(62px, 9.4vw, 142px);
  line-height: 0.82;
}

.cinema-engine {
  right: clamp(-60px, -4vw, -18px);
  top: 38%;
  width: min(43vw, 590px);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.72),
    0 0 76px rgba(0, 153, 255, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.impact-shards {
  opacity: 0.26;
}

.impact-shard {
  opacity: 0.3;
}

.impact-marquee {
  opacity: 0.5;
}

.hero-card {
  opacity: 0.08;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.34));
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 100svh;
  }

  .hero-copy {
    transform: none;
    width: min(100%, 560px);
  }

  .hero h1 {
    font-size: clamp(58px, 14vw, 96px);
  }

  .hero-card {
    display: none;
  }
}

@media (min-width: 981px) {
  .hero-copy,
  .hero-copy.reveal.visible {
    transform: translateY(-20vh);
  }
}

/* ===== Full-site cinematic rebuild: continuous dark spatial stages ===== */
.showreel,
.about-cinematic,
.benchmark-lab,
.project-sequence,
.case-panel,
.flow-lab,
.finale {
  --inview: 0;
  --travel: 0;
  isolation: isolate;
}

.showreel {
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 7, 16, 0.94) 42%, #000 100%);
}

.sticky-stage {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 46%, rgba(0, 0, 0, 0.88)),
    url("./public/generated/space-reactor.jpg") center / cover;
}

.sticky-stage::before {
  inset: 8% 10% 9% 40%;
  border-color: rgba(50, 214, 255, 0.12);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 38%),
    linear-gradient(90deg, rgba(0, 153, 255, 0.24), rgba(50, 214, 255, 0.06), transparent);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.5),
    inset 0 0 70px rgba(50, 214, 255, 0.06);
  transform:
    perspective(1000px)
    rotateY(calc(-18deg + var(--inview) * 4deg))
    rotateX(7deg)
    translateY(calc((var(--travel) - 0.5) * -42px));
}

.stage-copy {
  width: min(540px, 42vw);
}

.stage-copy h2 {
  font-size: clamp(72px, 8vw, 132px);
}

.stage-copy p:not(.kicker) {
  max-width: 420px;
  color: rgba(248, 251, 255, 0.68);
}

.spiral {
  left: 72%;
  transform:
    translate(-50%, calc(-50% + var(--inview) * -20px))
    rotateY(var(--turn))
    rotateX(-8deg);
}

.spiral img {
  border-radius: 16px;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.68),
    0 0 70px rgba(50, 214, 255, 0.18);
}

.about-cinematic,
.benchmark-lab,
.flow-lab,
.finale {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.42) 54%, rgba(0, 0, 0, 0.94)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 42%, rgba(0, 0, 0, 0.92)),
    url("./public/generated/video-control-room.jpg") center / cover fixed;
  overflow: hidden;
}

.about-cinematic::before,
.benchmark-lab::before,
.flow-lab::before,
.finale::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), transparent 1px),
    linear-gradient(90deg, rgba(50, 214, 255, 0.065), transparent 1px);
  background-size: 100% 5px, 8px 100%;
  mix-blend-mode: screen;
  opacity: 0.2;
  pointer-events: none;
}

.about-frame,
.benchmark-copy,
.benchmark-grid,
.flow-copy,
.flow-board,
.flow-images,
.finale > * {
  position: relative;
  z-index: 1;
}

.about-cinematic {
  display: grid;
  align-items: center;
  min-height: 112vh;
  padding-top: clamp(100px, 10vw, 150px);
  background-position:
    center,
    center,
    calc(50% + (var(--travel) - 0.5) * 80px) center;
}

.about-frame {
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 0.84fr) minmax(280px, 0.54fr);
  width: min(1320px, 100%);
  transform: translateY(calc((0.5 - var(--inview)) * 38px));
}

.about-title h2 {
  max-width: 7.5ch;
  color: #fff;
  font-size: clamp(58px, 7vw, 116px);
  line-height: 0.88;
  text-shadow:
    0 30px 90px rgba(0, 0, 0, 0.8),
    0 0 48px rgba(50, 214, 255, 0.14);
}

.about-frame figure {
  position: relative;
  transform:
    perspective(1300px)
    rotateY(calc(-12deg + var(--inview) * 8deg))
    rotateX(3deg)
    translateZ(40px);
  transform-style: preserve-3d;
}

.about-frame figure::before {
  position: absolute;
  inset: -24px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(50, 214, 255, 0.2);
  background: rgba(0, 153, 255, 0.06);
  transform: translateZ(-50px) rotate(-3deg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
}

.about-frame img {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 30px 110px rgba(0, 0, 0, 0.62),
    0 0 80px rgba(50, 214, 255, 0.12);
  filter: saturate(0.98) contrast(1.06) brightness(0.92);
}

.about-points p {
  color: rgba(248, 251, 255, 0.7);
}

.about-points li {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(248, 251, 255, 0.86);
}

.about-points b {
  color: var(--cyan);
}

.benchmark-lab {
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  min-height: 112vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 5, 16, 0.54) 56%, rgba(0, 0, 0, 0.94)),
    linear-gradient(180deg, #000 0%, transparent 45%, #000 100%),
    url("./public/generated/space-reactor.jpg") center / cover fixed;
}

.benchmark-lab::before {
  inset: 10% auto auto 4%;
  z-index: 0;
  color: rgba(255, 255, 255, 0.045);
  content: "PROOF\A MATRIX";
  background: none;
  mix-blend-mode: normal;
  opacity: 1;
  transform: translateY(calc((var(--travel) - 0.5) * -72px));
}

.benchmark-copy h2 {
  max-width: 740px;
  color: #fff;
  font-size: clamp(54px, 7.6vw, 124px);
  line-height: 0.84;
  text-shadow: 0 34px 110px rgba(0, 0, 0, 0.72);
}

.benchmark-copy p {
  color: rgba(248, 251, 255, 0.68);
}

.benchmark-grid {
  gap: 14px;
  perspective: 1200px;
  transform: translateY(calc((0.5 - var(--inview)) * 46px));
}

.benchmark-grid article {
  min-height: 230px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.34);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  transform: perspective(900px) rotateY(-7deg) translateZ(0);
}

.benchmark-grid article:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(0, 153, 255, 0.24), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.62);
  transform: perspective(900px) rotateY(5deg) translateY(-26px) translateZ(34px);
}

.benchmark-grid article:nth-child(3) {
  transform: perspective(900px) rotateY(-4deg) translateX(-34px);
}

.benchmark-grid article:nth-child(4) {
  transform: perspective(900px) rotateY(4deg) translateY(18px);
}

.benchmark-grid b {
  color: #fff;
  font-size: 34px;
}

.benchmark-grid p {
  color: rgba(248, 251, 255, 0.65);
}

.case-track {
  background: #000;
}

.project-sequence {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: end;
  min-height: 86vh;
  padding: clamp(96px, 10vw, 150px) clamp(18px, 5vw, 74px) clamp(60px, 7vw, 110px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 10, 22, 0.46) 54%, rgba(0, 0, 0, 0.94)),
    linear-gradient(180deg, #000, transparent 48%, #000),
    url("./public/generated/space-reactor.jpg") center / cover;
  overflow: hidden;
  isolation: isolate;
}

.project-sequence::before {
  position: absolute;
  inset: 9% auto auto 4%;
  z-index: 0;
  content: "PROJECT\A SEQUENCE";
  white-space: pre;
  color: rgba(255, 255, 255, 0.04);
  font-size: clamp(96px, 18vw, 300px);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: 0;
  transform: translateY(calc((var(--travel) - 0.5) * -60px));
}

.project-sequence > * {
  position: relative;
  z-index: 1;
}

.project-sequence h2 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(50px, 7vw, 116px);
  line-height: 0.86;
  letter-spacing: 0;
}

.project-sequence ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-sequence li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.36);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.project-sequence li:nth-child(2),
.project-sequence li:nth-child(6) {
  border-color: rgba(50, 214, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(50, 214, 255, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.44);
}

.project-sequence b {
  color: var(--cyan);
  font-size: 13px;
}

.project-sequence span {
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-weight: 900;
}

.case-panel {
  min-height: 108vh;
  background: #000;
  isolation: isolate;
}

.case-panel::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3) 58%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, #000, transparent 38%, #000),
    url("./public/generated/space-reactor.jpg") center / cover;
  opacity: 0.92;
  transform: scale(1.08) translateY(calc((var(--travel) - 0.5) * -48px));
}

.case-panel.dark::before,
.case-panel.ice::before,
.case-panel.model::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.36) 58%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, #000, transparent 42%, #000),
    url("./public/generated/video-control-room.jpg") center / cover;
}

.case-panel.spring::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.34) 56%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, #000, transparent 42%, #000),
    url("./public/generated/space-reactor.jpg") center / cover;
}

.case-panel.model::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.92)),
    linear-gradient(180deg, #000, transparent 42%, #000),
    url("./public/generated/space-reactor.jpg") center / cover;
}

.case-panel.ip::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(95, 0, 0, 0.38) 54%, rgba(0, 0, 0, 0.94)),
    linear-gradient(180deg, #000, transparent 42%, #000),
    url("./public/generated/video-control-room.jpg") center / cover;
}

.case-panel::after {
  z-index: 1;
  height: 68%;
  background:
    linear-gradient(102deg, transparent 8%, rgba(50, 214, 255, 0.14) 42%, transparent 68%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: calc(0.2 + var(--inview) * 0.55);
  transform: translateX(calc((var(--travel) - 0.5) * 120px));
}

.case-text,
.case-media {
  z-index: 2;
}

.case-text {
  transform: translateY(calc((0.5 - var(--inview)) * 42px));
}

.case-text > span {
  border-color: rgba(50, 214, 255, 0.32);
  background: rgba(0, 153, 255, 0.08);
}

.case-text h2 {
  max-width: 8ch;
  color: #fff;
  font-size: clamp(62px, 7.8vw, 128px);
  line-height: 0.84;
  text-shadow: 0 36px 110px rgba(0, 0, 0, 0.76);
}

.case-text p:not(.kicker) {
  max-width: 470px;
  color: rgba(248, 251, 255, 0.7);
}

.project-logic {
  display: grid;
  gap: 10px;
  max-width: 560px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.project-logic li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

.project-logic b {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.project-logic span {
  color: rgba(248, 251, 255, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.case-media {
  transform:
    perspective(1400px)
    rotateY(calc(-4deg + var(--inview) * 4deg))
    translateY(calc((0.5 - var(--inview)) * 56px));
}

.case-media::before {
  inset: 8% 2% 6% 0;
  background:
    linear-gradient(100deg, rgba(0, 153, 255, 0.38), rgba(50, 214, 255, 0.12), transparent),
    radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.18), transparent 42%);
  filter: blur(34px);
  opacity: 0.78;
}

.case-media img {
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 0;
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.68),
    0 0 82px rgba(50, 214, 255, 0.11);
}

.media-fan img:nth-child(1) {
  transform: perspective(1200px) rotateY(18deg) rotateX(5deg) rotateZ(-5deg) translateZ(0);
}

.media-fan img:nth-child(2) {
  transform: perspective(1200px) rotateY(-16deg) rotateX(-2deg) rotateZ(4deg) translateZ(64px);
}

.media-fan img:nth-child(3) {
  transform: perspective(1200px) rotateY(8deg) rotateX(-3deg) rotateZ(-2deg) translateZ(110px);
}

.mosaic img,
.phone-pop img {
  border-radius: 0;
}

.flow-lab {
  min-height: 112vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 10, 20, 0.48) 54%, rgba(0, 0, 0, 0.95)),
    linear-gradient(180deg, #000, transparent 48%, #000),
    url("./public/generated/video-control-room.jpg") center / cover fixed;
}

.flow-copy h2 {
  max-width: 7.3ch;
  font-size: clamp(58px, 7vw, 112px);
  line-height: 0.84;
}

.flow-copy p {
  max-width: 420px;
}

.flow-board {
  transform:
    perspective(1100px)
    rotateY(calc(-10deg + var(--inview) * 7deg))
    translateZ(24px);
}

.flow-step {
  min-height: 82px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 153, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.flow-step.active {
  border-color: rgba(50, 214, 255, 0.74);
  background:
    linear-gradient(90deg, rgba(0, 153, 255, 0.32), rgba(50, 214, 255, 0.08)),
    rgba(0, 0, 0, 0.5);
}

.flow-images {
  transform:
    perspective(1200px)
    rotateY(calc(10deg - var(--inview) * 6deg))
    translateY(calc((0.5 - var(--inview)) * 40px));
}

.flow-images img {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.62),
    0 0 68px rgba(7, 92, 255, 0.16);
}

.finale {
  min-height: 110vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.95)),
    linear-gradient(180deg, #000, transparent 45%, #000),
    url("./public/generated/space-reactor.jpg") center / cover fixed;
}

.finale img {
  position: absolute;
  top: 12%;
  right: 7%;
  z-index: 0;
  width: min(520px, 34vw);
  opacity: 0.24;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 36px 120px rgba(0, 0, 0, 0.68),
    0 0 80px rgba(50, 214, 255, 0.12);
  filter: saturate(0.9) contrast(1.06) brightness(0.82);
  transform:
    perspective(1100px)
    rotateX(4deg)
    rotateY(calc(-8deg + var(--inview) * 8deg));
}

.finale h2 {
  position: relative;
  z-index: 1;
  max-width: 960px;
  color: #fff;
  font-size: clamp(58px, 8vw, 138px);
  line-height: 0.84;
  text-shadow: 0 34px 120px rgba(0, 0, 0, 0.72);
}

.finale-note {
  color: rgba(248, 251, 255, 0.68);
}

.finale a {
  border-color: rgba(255, 255, 255, 0.18);
  color: #05070a;
  background: #fff;
}

@media (max-width: 980px) {
  .about-frame,
  .benchmark-lab,
  .project-sequence,
  .case-panel,
  .flow-lab {
    grid-template-columns: 1fr;
  }

  .about-cinematic,
  .benchmark-lab,
  .project-sequence,
  .case-panel,
  .flow-lab,
  .finale {
    min-height: auto;
    background-attachment: scroll;
  }

  .about-frame figure,
  .benchmark-grid article,
  .case-media,
  .flow-board,
  .flow-images,
  .finale img {
    transform: none;
  }

  .finale img {
    position: static;
    width: min(520px, 82vw);
    margin-bottom: 24px;
    opacity: 0.2;
  }

  .benchmark-grid article:nth-child(2),
  .benchmark-grid article:nth-child(3),
  .benchmark-grid article:nth-child(4) {
    transform: none;
  }

  .stage-copy {
    width: auto;
  }

  .case-text h2,
  .flow-copy h2,
  .benchmark-copy h2,
  .about-title h2,
  .video-head h2,
  .finale h2 {
    font-size: clamp(48px, 14vw, 86px);
  }

  .video-head h2 {
    max-width: 8.4ch;
    line-height: 0.9;
  }

  .project-sequence {
    min-height: auto;
  }

  .project-sequence ol {
    grid-template-columns: 1fr;
  }
}

/* ===== Agent video theater: long premieres + grouped short clips ===== */
.agent-video-lab {
  min-height: 190vh;
  padding: clamp(96px, 10vw, 150px) clamp(18px, 5vw, 74px);
  overflow-x: clip;
  overflow-y: visible;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.34) 54%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, #000, transparent 44%, #000),
    #000;
}

.agent-video-lab .video-head {
  width: min(1180px, 100%);
  margin-bottom: clamp(34px, 5vw, 72px);
}

.agent-video-lab .video-head h2 {
  max-width: 8ch;
  font-size: clamp(74px, 9.8vw, 168px);
  line-height: 0.82;
}

.agent-video-lab .video-head p:not(.kicker) {
  max-width: 760px;
}

.premiere-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: stretch;
  perspective: 1400px;
}

.premiere-card,
.clip-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  text-align: left;
}

.premiere-card {
  min-height: min(68vh, 720px);
  box-shadow:
    0 38px 130px rgba(0, 0, 0, 0.62),
    0 0 80px rgba(50, 214, 255, 0.1);
  transform:
    perspective(1200px)
    rotateY(-7deg)
    translateY(calc((0.5 - var(--inview)) * 42px));
  transition:
    border-color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.premiere-card.thesis {
  transform:
    perspective(1200px)
    rotateY(7deg)
    translateY(calc((0.5 - var(--inview)) * -28px))
    translateZ(50px);
}

.premiere-card:hover {
  border-color: rgba(50, 214, 255, 0.52);
  box-shadow:
    0 42px 150px rgba(0, 0, 0, 0.72),
    0 0 100px rgba(50, 214, 255, 0.22);
}

.premiere-card video,
.clip-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premiere-card video {
  position: absolute;
  inset: 0;
  filter: saturate(1.08) contrast(1.08) brightness(0.72);
  transform: scale(1.04);
  transition:
    filter 0.28s ease,
    transform 0.5s ease;
}

.premiere-card:hover video,
.premiere-card:focus-visible video {
  filter: saturate(1.22) contrast(1.12) brightness(0.86);
  transform: scale(1.08);
}

.premiere-card::before,
.clip-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 52% 42%, transparent 0 26%, rgba(0, 0, 0, 0.38) 72%);
  pointer-events: none;
}

.premiere-card::after,
.clip-card::after {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid rgba(255, 255, 255, 0.92);
  border-radius: 0;
  content: "";
  background: none;
  filter: drop-shadow(0 0 18px rgba(50, 214, 255, 0.36));
  transform: translate(-38%, -50%);
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.premiere-card:hover::after,
.clip-card:hover::after {
  filter: drop-shadow(0 0 28px rgba(50, 214, 255, 0.8));
  transform: translate(-38%, -50%) scale(1.12);
}

.premiere-card span,
.premiere-card b,
.premiere-card small {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 2.5vw, 34px);
}

.premiere-card span {
  top: clamp(18px, 2.4vw, 32px);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.premiere-card b {
  bottom: clamp(54px, 5vw, 84px);
  font-size: clamp(38px, 5vw, 82px);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.82);
}

.premiere-card small {
  bottom: clamp(22px, 2.5vw, 38px);
  color: rgba(248, 251, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.short-video-suite {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: start;
  margin-top: clamp(54px, 8vw, 112px);
}

.suite-copy {
  position: sticky;
  top: 128px;
}

.suite-copy h3 {
  max-width: 7ch;
  margin: 0 0 22px;
  font-size: clamp(48px, 5vw, 84px);
  line-height: 0.86;
}

.suite-copy p:not(.kicker) {
  color: rgba(248, 251, 255, 0.68);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.85;
}

.suite-groups {
  display: grid;
  gap: 18px;
}

.video-cluster {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.38);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.video-cluster header {
  display: grid;
  align-content: space-between;
  min-height: 250px;
  padding: 12px;
}

.video-cluster header span {
  color: var(--cyan);
  font-weight: 950;
}

.video-cluster header b {
  display: block;
  max-width: 6ch;
  font-size: clamp(28px, 3vw, 52px);
  line-height: 0.95;
}

.video-cluster header small {
  color: rgba(248, 251, 255, 0.54);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.clip-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.clip-card {
  aspect-ratio: 4 / 5;
  min-height: 250px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.clip-card.tall {
  aspect-ratio: 9 / 16;
}

.clip-card video {
  position: absolute;
  inset: 0;
  filter: saturate(1.04) contrast(1.06) brightness(0.74);
  transition:
    filter 0.28s ease,
    transform 0.45s ease;
}

.clip-card:hover video,
.clip-card:focus-visible video {
  filter: saturate(1.2) contrast(1.1) brightness(0.9);
  transform: scale(1.05);
}

.clip-card span {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 4;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.clip-card:focus-visible,
.premiere-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.modal-screen {
  width: min(1120px, 100%);
  gap: 16px;
  place-items: stretch;
  min-height: 0;
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #05070a;
  text-align: left;
}

#modal-video {
  width: 100%;
  max-height: min(68vh, 680px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.modal-screen i {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--cyan);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.modal-screen i::after {
  content: none;
}

.modal-screen h3 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
}

.modal-screen p {
  max-width: 720px;
  margin-bottom: 0;
  object-fit: initial;
  transform: none;
}

@media (max-width: 980px) {
  .agent-video-lab {
    min-height: auto;
  }

  .premiere-grid,
  .short-video-suite,
  .video-cluster {
    grid-template-columns: 1fr;
  }

  .premiere-card,
  .premiere-card.thesis {
    min-height: 440px;
    transform: none;
  }

  .suite-copy {
    position: static;
  }

  .clip-strip {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .clip-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .agent-video-lab .video-head h2 {
    font-size: clamp(52px, 18vw, 88px);
  }

  .premiere-card {
    min-height: 380px;
  }

  .premiere-card b {
    font-size: clamp(34px, 10vw, 54px);
  }

  .video-cluster {
    padding: 12px;
  }

  .clip-strip {
    grid-template-columns: repeat(3, minmax(190px, 72vw));
  }
}

/* ===== Director cut upgrade: persistent rig, agent console, theater focus ===== */
:root {
  --global-progress: 0;
  --scene-rgb: 50, 214, 255;
  --rig-x: 68vw;
  --rig-y: 42vh;
  --rig-scale: 1;
  --rig-rotate: 0deg;
  --rig-counter-rotate: 0deg;
  --rig-beam-rotate: -10deg;
  --rig-grid-rotate: -18deg;
  --rig-grid-spin: 0deg;
  --rig-opacity: 0.24;
}

.director-rig {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--rig-opacity);
  mix-blend-mode: screen;
}

.director-rig::before,
.director-rig::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.director-rig::before {
  left: -10vw;
  top: calc(var(--rig-y) + 12vh);
  width: 120vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--scene-rgb), 0.86), rgba(255, 255, 255, 0.52), transparent);
  filter: drop-shadow(0 0 22px rgba(var(--scene-rgb), 0.54));
  transform: rotate(var(--rig-beam-rotate));
}

.director-rig::after {
  left: calc(var(--rig-x) - 30vw);
  top: calc(var(--rig-y) - 30vh);
  width: 60vw;
  height: 60vh;
  border: 1px solid rgba(var(--scene-rgb), 0.18);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--scene-rgb), 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  transform:
    perspective(1000px)
    rotateX(62deg)
    rotateZ(var(--rig-grid-rotate));
}

.rig-frame,
.rig-grid {
  position: absolute;
  left: var(--rig-x);
  top: var(--rig-y);
  transform:
    translate(-50%, -50%)
    scale(var(--rig-scale))
    rotate(var(--rig-rotate));
  transform-origin: 50% 50%;
  transition:
    left 0.45s ease,
    top 0.45s ease,
    transform 0.45s ease;
}

.rig-frame {
  width: clamp(220px, 29vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--scene-rgb), 0.34);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow:
    0 0 70px rgba(var(--scene-rgb), 0.2),
    inset 0 0 56px rgba(var(--scene-rgb), 0.08);
}

.rig-frame::before,
.rig-frame::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.rig-frame::after {
  inset: 31%;
  border-color: rgba(255, 255, 255, 0.32);
  transform: rotate(var(--rig-counter-rotate));
}

.rig-frame span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent);
  transform-origin: 0 50%;
}

.rig-frame span:nth-child(1) { transform: rotate(0deg); }
.rig-frame span:nth-child(2) { transform: rotate(90deg); }
.rig-frame span:nth-child(3) { transform: rotate(180deg); }
.rig-frame span:nth-child(4) { transform: rotate(270deg); }

.rig-grid {
  width: clamp(280px, 38vw, 680px);
  height: clamp(180px, 28vw, 430px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, transparent 49%, rgba(var(--scene-rgb), 0.28) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(255, 255, 255, 0.18) 50%, transparent 51%);
  opacity: 0.36;
  transform:
    translate(-50%, -50%)
    perspective(900px)
    rotateX(68deg)
    rotateZ(var(--rig-grid-spin))
    scale(var(--rig-scale));
}

.rig-readout {
  position: fixed;
  left: clamp(18px, 4vw, 58px);
  bottom: clamp(82px, 9vw, 128px);
  display: grid;
  gap: 6px;
  padding-left: 14px;
  border-left: 2px solid rgba(var(--scene-rgb), 0.76);
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(var(--scene-rgb), 0.52);
}

.rig-readout b {
  font-size: 12px;
  letter-spacing: 0;
}

.rig-readout i {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.case-panel.dark {
  align-content: center;
}

.case-panel.dark .agent-console {
  grid-column: 1 / -1;
}

.agent-console {
  --agent-progress: 0;
  --agent-bar-width: 0%;
  --agent-wave-height: 10px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  margin-top: clamp(22px, 4vw, 52px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 34%),
    rgba(0, 0, 0, 0.52);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.agent-console::before {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--agent-bar-width);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), #fff, var(--red));
  box-shadow: 0 0 28px rgba(50, 214, 255, 0.54);
}

.agent-console-head {
  display: grid;
  align-content: space-between;
  min-height: 170px;
}

.agent-console-head span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.agent-console-head b {
  max-width: 9ch;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.9;
  letter-spacing: 0;
}

.agent-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.agent-node {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 170px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.56);
  transform: translateY(0);
  transition:
    border-color 0.24s ease,
    background 0.24s ease,
    color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.agent-node::after {
  position: absolute;
  left: calc(100% - 2px);
  top: 50%;
  width: 12px;
  height: 2px;
  content: "";
  background: rgba(255, 255, 255, 0.16);
}

.agent-node:last-child::after {
  content: none;
}

.agent-node i {
  color: var(--cyan);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.agent-node b {
  display: block;
  font-size: clamp(18px, 1.7vw, 28px);
  line-height: 0.95;
}

.agent-node small {
  color: rgba(255, 255, 255, 0.48);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.agent-node.active {
  border-color: rgba(50, 214, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(50, 214, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(0, 153, 255, 0.1);
  color: #fff;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.32),
    0 0 38px rgba(50, 214, 255, 0.16);
  transform: translateY(-10px);
}

.agent-wave {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  height: 44px;
}

.agent-wave span {
  align-self: end;
  height: var(--agent-wave-height);
  background: linear-gradient(180deg, rgba(50, 214, 255, 0.1), rgba(50, 214, 255, 0.78));
  transform-origin: bottom;
  animation: signalPulse 0.95s ease-in-out infinite alternate;
}

.agent-wave span:nth-child(2) { animation-delay: -0.18s; }
.agent-wave span:nth-child(3) { animation-delay: -0.36s; }
.agent-wave span:nth-child(4) { animation-delay: -0.54s; }
.agent-wave span:nth-child(5) { animation-delay: -0.72s; }
.agent-wave span:nth-child(6) { animation-delay: -0.9s; }

.theater-status {
  position: sticky;
  top: 92px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  margin: -24px 0 clamp(28px, 4vw, 52px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.theater-status span,
.theater-status b {
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.theater-status span {
  color: var(--cyan);
}

.theater-status b {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  text-overflow: ellipsis;
}

.theater-preview {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.46fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: stretch;
  width: min(1180px, 100%);
  min-height: min(48vh, 560px);
  margin: 0 0 clamp(38px, 6vw, 86px);
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(50, 214, 255, 0.1), rgba(255, 52, 42, 0.08)),
    rgba(0, 0, 0, 0.46);
  box-shadow:
    0 50px 160px rgba(0, 0, 0, 0.58),
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 0 100px rgba(50, 214, 255, 0.12);
  backdrop-filter: blur(20px);
  transform:
    perspective(1500px)
    rotateX(calc(1.2deg - var(--video-progress) * 1.4deg))
    rotateY(calc(-4deg + var(--video-progress) * 3deg))
    translateY(calc((0.5 - var(--video-progress)) * 42px));
  transform-style: preserve-3d;
}

@media (min-width: 981px) {
  .agent-video-lab .theater-status {
    position: relative;
    top: auto;
  }

  .theater-preview {
    position: sticky;
    top: 84px;
    z-index: 6;
  }
}

.theater-preview::before,
.theater-preview::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.theater-preview::before {
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, 0.26), transparent 46%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px);
  opacity: 0.18;
  mix-blend-mode: screen;
}

.theater-preview::after {
  left: 8%;
  right: 8%;
  bottom: -34px;
  height: 78px;
  background: radial-gradient(ellipse at center, rgba(50, 214, 255, 0.28), transparent 68%);
  filter: blur(18px);
  transform: rotateX(76deg);
}

.theater-preview-screen {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #020305;
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.56),
    inset 0 0 60px rgba(50, 214, 255, 0.06);
  transform: translateZ(42px);
}

.theater-preview-screen::before,
.theater-preview-screen::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
}

.theater-preview-screen::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 40%, rgba(0, 0, 0, 0.34) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.theater-preview-screen::after {
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.52) 48%, transparent 62%);
  opacity: 0;
  transform: translateX(-110%);
}

.theater-preview.is-live .theater-preview-screen::after {
  animation: theaterSweep 0.72s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.theater-preview-screen video,
.theater-preview-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.08) brightness(0.84);
  transition:
    opacity 0.28s ease,
    transform 0.7s ease,
    filter 0.28s ease;
}

.theater-preview-screen video {
  opacity: 0;
  transform: scale(1.035);
}

.theater-preview-screen img {
  opacity: 1;
  transform: scale(1.04);
}

.theater-preview.is-playing .theater-preview-screen video {
  opacity: 1;
  transform: scale(1.018);
}

.theater-preview.is-playing .theater-preview-screen img {
  opacity: 0;
}

.theater-preview.is-playing .theater-preview-screen::before {
  opacity: 0.28;
}

.theater-preview.is-playing .theater-preview-screen::after {
  animation: none;
  opacity: 0;
}

.theater-preview-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 360px;
  padding: clamp(18px, 2.5vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateZ(82px);
}

.theater-preview-copy span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.theater-preview-copy b {
  color: #fff;
  font-size: clamp(38px, 4.6vw, 82px);
  line-height: 0.9;
  letter-spacing: 0;
}

.theater-preview-copy p {
  max-width: 440px;
  margin: 0;
  color: rgba(248, 251, 255, 0.7);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  line-height: 1.85;
}

.agent-video-lab.is-focusing .video-space img {
  filter: saturate(1.24) contrast(1.14) brightness(0.66);
}

@keyframes theaterSweep {
  0% {
    opacity: 0;
    transform: translateX(-110%) skewX(-8deg);
  }

  32% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateX(110%) skewX(-8deg);
  }
}

@supports selector(:has(*)) {
  .premiere-grid:has(.premiere-card:hover) .premiere-card:not(:hover),
  .premiere-grid:has(.premiere-card:focus-visible) .premiere-card:not(:focus-visible) {
    opacity: 0.42;
    filter: grayscale(0.32) brightness(0.78);
    transform: perspective(1200px) rotateY(-11deg) translateY(28px) scale(0.96);
  }

  .suite-groups:has(.clip-card:hover) .clip-card:not(:hover),
  .suite-groups:has(.clip-card:focus-visible) .clip-card:not(:focus-visible) {
    opacity: 0.38;
    filter: grayscale(0.42) brightness(0.68);
    transform: scale(0.96);
  }
}

.premiere-card:hover,
.premiere-card:focus-visible {
  z-index: 4;
  transform:
    perspective(1200px)
    rotateY(0deg)
    translateY(-14px)
    translateZ(80px)
    scale(1.018);
}

.premiere-card.thesis:hover,
.premiere-card.thesis:focus-visible {
  transform:
    perspective(1200px)
    rotateY(0deg)
    translateY(-14px)
    translateZ(90px)
    scale(1.018);
}

.clip-card:hover,
.clip-card:focus-visible {
  z-index: 4;
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 34px 95px rgba(0, 0, 0, 0.5),
    0 0 70px rgba(50, 214, 255, 0.2);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-self: end;
}

.modal-nav {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.modal-nav::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
}

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

.modal-nav.next::before {
  transform: translate(-66%, -50%) rotate(135deg);
}

.modal-nav:hover {
  border-color: rgba(50, 214, 255, 0.62);
  background: rgba(50, 214, 255, 0.12);
}

@media (max-width: 980px) {
  .director-rig {
    opacity: 0.18;
  }

  .rig-readout {
    display: none;
  }

  .agent-console {
    grid-template-columns: 1fr;
  }

  .agent-pipeline {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .agent-node {
    min-height: 150px;
    scroll-snap-align: start;
  }

  .theater-status {
    position: relative;
    top: auto;
    border-radius: 10px;
  }

  .theater-preview {
    grid-template-columns: 1fr;
    min-height: auto;
    transform: none;
  }

  .theater-preview-screen {
    aspect-ratio: 16 / 10;
  }

  .theater-preview-copy {
    min-height: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .director-rig {
    display: none;
  }

  .agent-console-head {
    min-height: auto;
    gap: 26px;
  }

  .agent-wave {
    height: 28px;
  }

  .theater-status {
    display: grid;
  }

  .theater-status span,
  .theater-status b {
    white-space: normal;
  }

  .theater-preview-copy b {
    font-size: clamp(34px, 12vw, 54px);
  }

  .modal-actions {
    justify-self: start;
  }
}

/* ===== Project detail and typography pass ===== */
:root {
  --body-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, system-ui, sans-serif;
}

.case-track,
.case-panel,
.project-sequence,
.project-logic,
.project-meta {
  font-family: var(--body-font);
}

.project-sequence h2,
.case-text h2,
.flow-copy h2,
.video-head h2,
.finale h2 {
  font-family: var(--display-font);
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.project-sequence h2 {
  max-width: 680px;
  font-size: clamp(46px, 5.8vw, 92px);
  line-height: 0.98;
}

.case-panel {
  grid-template-columns: minmax(360px, 0.58fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 86px);
}

.case-text {
  max-width: 620px;
}

.case-text > span {
  width: auto;
  min-width: 64px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
}

.case-text h2 {
  max-width: 10.5ch;
  margin-bottom: 20px;
  font-size: clamp(52px, 6.2vw, 104px);
  line-height: 0.98;
}

.case-text p:not(.kicker) {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(248, 251, 255, 0.76);
  font-family: var(--body-font);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.78;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 620px;
  margin: 24px 0 0;
}

.project-meta span {
  display: grid;
  align-content: space-between;
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.45;
}

.project-meta b {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-logic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 620px;
  margin-top: 12px;
}

.project-logic li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-height: 156px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(50, 214, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.26);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.project-logic li:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.34);
}

.project-logic b {
  display: inline-grid;
  place-items: center;
  width: max-content;
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(50, 214, 255, 0.28);
  border-radius: 999px;
  background: rgba(50, 214, 255, 0.08);
}

.project-logic span {
  color: rgba(248, 251, 255, 0.72);
  font-size: 13px;
  line-height: 1.68;
}

.case-media {
  min-height: min(70vh, 690px);
}

.case-media::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  max-width: min(460px, 82%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(16px);
  content: attr(data-caption);
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.case-media img {
  object-position: center;
}

.media-fan img {
  width: min(64%, 660px);
}

.media-fan img:nth-child(1) {
  top: 0;
}

.media-fan img:nth-child(2) {
  bottom: 2%;
}

.media-fan img:only-child,
.media-fan img:nth-child(2):last-child {
  width: min(68%, 700px);
}

.mosaic {
  grid-template-columns: 1.08fr 0.92fr;
}

.mosaic img {
  height: 27vh;
}

.mosaic img:first-child {
  height: 58vh;
}

.project-sequence li {
  grid-template-columns: 58px 1fr;
}

.project-sequence span {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .project-meta,
  .project-logic {
    grid-template-columns: 1fr;
  }

  .project-logic li {
    min-height: 0;
  }
}

img,
video {
  -webkit-user-drag: none;
  user-select: none;
}

@media (min-width: 981px) {
  #theater-preview.theater-preview {
    position: sticky;
    top: 84px;
    z-index: 6;
  }
}

/* ===== Case cinema pass: chapter cuts, lens swap, 2.5D screen ===== */
.case-detail-rich {
  --case-enter: 0;
  --media-progress: 0;
}

.case-chapter {
  position: absolute;
  top: clamp(56px, 9vh, 110px);
  left: min(42vw, 720px);
  z-index: 2;
  display: grid;
  gap: 8px;
  width: min(46vw, 760px);
  pointer-events: none;
  opacity: calc(0.06 + var(--case-enter) * 0.34);
  transform:
    translate3d(calc((1 - var(--case-enter)) * -90px), calc((1 - var(--case-enter)) * 44px), 0)
    skewX(calc((1 - var(--case-enter)) * -10deg));
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.19, 1, 0.22, 1);
  mix-blend-mode: screen;
}

.case-chapter span {
  color: transparent;
  font-family: var(--display-font);
  font-size: clamp(108px, 15vw, 238px);
  font-weight: 950;
  line-height: 0.74;
  -webkit-text-stroke: 1px rgba(var(--case-accent-2), 0.55);
  text-shadow: 0 0 62px rgba(var(--case-accent), 0.42);
}

.case-chapter b {
  width: fit-content;
  padding: 8px 12px;
  border-left: 3px solid rgba(var(--case-accent-2), 0.94);
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(90deg, rgba(var(--case-accent), 0.26), transparent);
  font-size: clamp(11px, 1.05vw, 16px);
  letter-spacing: 0;
}

.case-panel.case-in-frame .case-chapter {
  animation: chapterCut 0.86s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.case-panel.case-in-frame .case-text h2 {
  animation: titleCutIn 0.72s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.dynamic-showcase {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-z: 0deg;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.dynamic-showcase::after {
  position: absolute;
  right: 7%;
  bottom: 96px;
  left: 6%;
  z-index: 0;
  display: block;
  height: 24%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(var(--case-accent), 0.34), transparent 62%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  filter: blur(26px);
  opacity: calc(0.2 + var(--case-enter) * 0.32);
  transform:
    perspective(1000px)
    rotateX(76deg)
    translate3d(0, 22px, -120px)
    scaleX(0.86);
}

.dynamic-showcase .showcase-main {
  transform-style: preserve-3d;
  will-change: transform, filter;
}

@media (min-width: 1181px) {
  .case-panel.model .dynamic-showcase .showcase-main,
  .case-panel.ice .dynamic-showcase .showcase-main,
  .case-panel.ip .dynamic-showcase .showcase-main {
    transform:
      perspective(1500px)
      rotateY(calc(-4.5deg + var(--inview) * 2deg + var(--tilt-y)))
      rotateX(calc(2.4deg - var(--travel) * 2.1deg + var(--tilt-x)))
      rotateZ(var(--tilt-z))
      translate3d(0, calc((0.5 - var(--travel)) * 20px), 58px)
      scale(calc(0.985 + var(--case-enter) * 0.015));
    transition:
      transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
      box-shadow 0.5s ease,
      filter 0.5s ease;
  }

  .case-panel.case-in-frame .dynamic-showcase .showcase-main {
    animation: caseScreenIn 0.86s cubic-bezier(0.19, 1, 0.22, 1) both;
  }
}

.dynamic-showcase .showcase-main::before,
.dynamic-showcase .showcase-main::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
}

.dynamic-showcase .showcase-main::before {
  background:
    radial-gradient(circle at var(--focus-x) var(--focus-y), rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(115deg, transparent 16%, rgba(var(--case-accent-2), 0.16), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  opacity: calc(0.12 + var(--case-enter) * 0.16);
  mix-blend-mode: screen;
}

.dynamic-showcase .showcase-main::after {
  background:
    linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.82) 47%, rgba(var(--case-accent-2), 0.36) 53%, transparent 66%),
    linear-gradient(180deg, transparent, rgba(var(--case-accent), 0.16), transparent);
  opacity: 0;
  transform: translateX(-118%) skewX(-8deg);
  mix-blend-mode: screen;
}

.dynamic-showcase.is-swapping .showcase-main {
  filter: saturate(1.18) contrast(1.08);
}

.dynamic-showcase.is-swapping .showcase-main::after {
  animation: cinematicWipe 0.58s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.dynamic-showcase.is-swapping .showcase-main img {
  animation: imageSnap 0.56s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.dynamic-showcase .showcase-main figcaption {
  transform: translateZ(44px);
}

.detail-lens {
  position: absolute;
  left: var(--lens-x, 50%);
  top: var(--lens-y, 50%);
  z-index: 6;
  width: clamp(160px, 18vw, 260px);
  height: clamp(110px, 12vw, 178px);
  border: 1px solid rgba(var(--case-accent-2), 0.78);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 238% 238%;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.52),
    0 0 0 999px rgba(0, 0, 0, 0.1),
    0 0 44px rgba(var(--case-accent), 0.34),
    inset 0 0 34px rgba(var(--case-accent), 0.08);
  transform:
    translate(-50%, -50%)
    perspective(700px)
    rotateX(-2deg)
    rotateY(3deg)
    translateZ(92px)
    scale(0.86);
  transition:
    opacity 0.18s ease,
    transform 0.28s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.detail-lens::before {
  border: 1px solid rgba(255, 255, 255, 0.32);
  transform: translate(8px, 8px);
}

.detail-lens::after {
  background:
    linear-gradient(90deg, transparent 49%, rgba(var(--case-accent-2), 0.72) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(var(--case-accent-2), 0.56) 50%, transparent 51%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.showcase-main.is-magnifying .detail-lens {
  opacity: 1;
  transform:
    translate(-50%, -50%)
    perspective(700px)
    rotateX(-2deg)
    rotateY(3deg)
    translateZ(92px)
    scale(1);
}

.dynamic-showcase .showcase-evidence figure::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(var(--case-accent-2), 0.95), rgba(var(--case-accent), 0.45));
  box-shadow: 0 0 18px rgba(var(--case-accent), 0.55);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.dynamic-showcase .showcase-evidence figure.is-active::after {
  opacity: 1;
  animation: evidenceProgress 3.2s linear forwards;
}

.case-panel.model .project-logic li.is-live,
.case-panel.ice .project-logic li.is-live,
.case-panel.ip .project-logic li.is-live {
  transform: translateX(6px);
}

.case-panel.model .project-logic li.is-live b,
.case-panel.ice .project-logic li.is-live b,
.case-panel.ip .project-logic li.is-live b,
.case-panel.model .project-logic li.is-live span,
.case-panel.ice .project-logic li.is-live span,
.case-panel.ip .project-logic li.is-live span {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 22px rgba(var(--case-accent), 0.36);
}

@keyframes chapterCut {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: translate3d(-110px, 54px, 0) skewX(-12deg);
  }

  54% {
    opacity: 0.72;
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes titleCutIn {
  0% {
    clip-path: inset(0 100% 0 0);
    filter: blur(8px);
    transform: translateX(-26px);
  }

  100% {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translateX(0);
  }
}

@keyframes caseScreenIn {
  0% {
    clip-path: inset(0 0 100% 0);
    filter: blur(12px) saturate(1.3);
    transform:
      perspective(1500px)
      rotateY(-10deg)
      rotateX(6deg)
      translate3d(76px, 42px, 10px)
      scale(0.94);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes cinematicWipe {
  0% {
    opacity: 0;
    transform: translateX(-118%) skewX(-8deg);
  }

  28% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translateX(118%) skewX(-8deg);
  }
}

@keyframes imageSnap {
  0% {
    opacity: 0.38;
    filter: blur(10px) saturate(1.32) contrast(1.12);
    transform: scale(1.045) translateX(16px);
  }

  56% {
    opacity: 0.9;
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1.08) contrast(1.04);
  }
}

@keyframes evidenceProgress {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1180px) {
  .case-chapter {
    display: none;
  }

  .detail-lens {
    display: none;
  }
}

@media (pointer: coarse) {
  .detail-lens {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-panel.case-in-frame .case-chapter,
  .case-panel.case-in-frame .case-text h2,
  .case-panel.case-in-frame .dynamic-showcase .showcase-main,
  .dynamic-showcase.is-swapping .showcase-main::after,
  .dynamic-showcase.is-swapping .showcase-main img,
  .dynamic-showcase .showcase-evidence figure.is-active::after {
    animation: none;
  }
}

@media (max-width: 980px) {
  .project-sequence h2,
  .case-text h2,
  .flow-copy h2,
  .video-head h2 {
    letter-spacing: 0;
  }

  .case-text {
    max-width: 100%;
  }

  .project-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-media::after {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .project-sequence h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 1.02;
  }

  .case-text h2 {
    max-width: 9.5ch;
    font-size: clamp(42px, 13vw, 66px);
    line-height: 1;
  }

  .case-text p:not(.kicker) {
    font-size: 15px;
    line-height: 1.72;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .project-meta span {
    min-height: 0;
  }

  .project-logic {
    grid-template-columns: 1fr;
  }

  .project-logic li {
    min-height: 0;
    padding: 14px;
  }

  .case-media::after {
    font-size: 11px;
  }
}

/* ===== Editorial project detail upgrade ===== */
body {
  font-family: var(--body-font);
}

.brand b,
.hero h1,
.benchmark-lab::before,
.benchmark-copy h2,
.benchmark-grid b,
.project-sequence::before,
.project-sequence h2,
.stage-copy h2,
.case-text h2,
.video-head h2,
.flow-copy h2,
.about-title h2,
.agent-console-head b,
.finale h2 {
  letter-spacing: 0;
}

.project-sequence h2,
.case-text h2,
.flow-copy h2,
.video-head h2,
.finale h2 {
  line-height: 1.04;
}

.case-panel {
  grid-template-columns: minmax(390px, 0.5fr) minmax(520px, 1.1fr);
  gap: clamp(38px, 6vw, 92px);
  min-height: 112vh;
  padding-top: clamp(96px, 10vw, 150px);
  padding-bottom: clamp(132px, 12vw, 190px);
}

.case-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 610px;
}

.case-text > span {
  min-width: 68px;
  height: 38px;
  margin-bottom: 18px;
  border-color: rgba(50, 214, 255, 0.38);
  background: rgba(0, 0, 0, 0.34);
  color: rgba(248, 251, 255, 0.92);
}

.case-text h2 {
  max-width: 11.5ch;
  margin-bottom: 18px;
  font-size: clamp(46px, 5.6vw, 92px);
  line-height: 1.03;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
}

.case-text p:not(.kicker) {
  max-width: 540px;
  color: rgba(248, 251, 255, 0.84);
  font-size: clamp(15px, 1.12vw, 18px);
  font-weight: 520;
  line-height: 1.82;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 590px;
  margin: 22px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(50, 214, 255, 0.12), transparent 58%),
    rgba(0, 0, 0, 0.42);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px rgba(255, 255, 255, 0.08);
}

.project-meta span {
  display: block;
  min-height: 0;
  padding: 13px 15px 14px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  color: rgba(248, 251, 255, 0.86);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.project-meta span:first-child {
  border-left: 0;
}

.project-meta b {
  display: block;
  margin-bottom: 5px;
  color: rgba(50, 214, 255, 0.92);
  font-size: 11px;
  font-weight: 950;
}

.project-logic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  max-width: 590px;
  margin: 0;
  padding: 0;
}

.project-logic li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  min-height: 0;
  padding: 13px 16px 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(50, 214, 255, 0.13), rgba(255, 255, 255, 0.035) 42%, rgba(0, 0, 0, 0.24)),
    rgba(0, 0, 0, 0.4);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.project-logic li::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--cyan), rgba(255, 255, 255, 0.16));
}

.project-logic b {
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(248, 251, 255, 0.95);
  background: none;
  font-size: 13px;
  line-height: 1.5;
}

.project-logic span {
  color: rgba(248, 251, 255, 0.84);
  font-size: 14px;
  line-height: 1.62;
}

.case-media {
  min-height: min(68vh, 660px);
}

.case-media::after {
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  max-width: min(520px, 78%);
  padding: 11px 14px;
  border-radius: 14px;
  color: rgba(248, 251, 255, 0.9);
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .case-panel {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: clamp(92px, 12vw, 140px);
    padding-bottom: clamp(136px, 14vw, 190px);
  }

  .case-text,
  .case-text p:not(.kicker),
  .project-meta,
  .project-logic {
    max-width: 760px;
  }

  .project-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-media {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .case-panel {
    padding-top: 88px;
    padding-bottom: 172px;
  }

  .case-text h2 {
    max-width: 10ch;
    font-size: clamp(40px, 11vw, 62px);
    line-height: 1.08;
  }

  .case-text p:not(.kicker) {
    font-size: 15px;
    line-height: 1.72;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .project-meta span {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-left: 0;
  }

  .project-meta span:first-child {
    border-top: 0;
  }

  .project-logic li {
    grid-template-columns: 50px 1fr;
    gap: 12px;
    padding: 13px 14px 14px 16px;
  }

  .project-logic span {
    font-size: 13px;
  }

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

  .case-media::after {
    max-width: none;
  }
}

/* ===== Project detail fit pass ===== */
.case-panel {
  grid-template-columns: minmax(470px, 0.66fr) minmax(480px, 1fr);
}

.case-text {
  max-width: 500px;
}

.case-text > span {
  height: 36px;
  margin-bottom: 14px;
}

.case-text h2 {
  max-width: 12.5ch;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 78px);
}

.case-text h2 span {
  display: block;
}

.case-text p:not(.kicker) {
  max-width: 500px;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.68;
}

.project-meta {
  max-width: 500px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.project-meta span {
  padding: 10px 12px 11px;
  font-size: 12px;
}

.project-meta b {
  margin-bottom: 4px;
  font-size: 10px;
}

.project-logic {
  max-width: 500px;
  gap: 7px;
}

.project-logic li {
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 10px 13px 11px 15px;
  border-radius: 12px;
}

.project-logic b {
  font-size: 12px;
}

.project-logic span {
  font-size: 13px;
  line-height: 1.52;
}

@media (max-width: 1180px) {
  .case-panel {
    grid-template-columns: 1fr;
  }

  .case-text,
  .case-text p:not(.kicker),
  .project-meta,
  .project-logic {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .command-dock {
    display: none;
  }

  .case-text,
  .case-text p:not(.kicker),
  .project-meta,
  .project-logic {
    max-width: 100%;
  }

  .case-text h2 {
    font-size: clamp(38px, 10.2vw, 56px);
  }
}

/* ===== Complete case frame pass ===== */
.case-panel {
  min-height: 100svh;
  padding-top: clamp(82px, 8vh, 112px);
  padding-bottom: clamp(96px, 10vh, 132px);
}

.case-media {
  height: min(66vh, 640px);
  min-height: 520px;
  overflow: visible;
}

.case-media img {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.96));
}

.media-fan img {
  width: min(58%, 590px);
  object-fit: contain;
}

.media-fan img:nth-child(1) {
  top: 1%;
  left: 2%;
}

.media-fan img:nth-child(2) {
  right: 1%;
  bottom: 4%;
}

.media-fan img:only-child,
.media-fan img:nth-child(2):last-child {
  width: min(62%, 650px);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: min(66vh, 640px);
  min-height: 520px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.mosaic img:first-child {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
}

.mosaic img:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.mosaic img:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.mosaic img:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.phone-pop {
  height: min(66vh, 640px);
  min-height: 520px;
}

.phone-pop img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.phone-pop img:first-child {
  max-height: 100%;
}

@media (min-width: 1181px) and (max-height: 860px) {
  .case-panel {
    grid-template-columns: minmax(430px, 0.62fr) minmax(460px, 1fr);
    padding-top: 74px;
    padding-bottom: 88px;
  }

  .case-text > span {
    height: 32px;
    margin-bottom: 10px;
  }

  .kicker {
    margin-bottom: 10px;
  }

  .case-text h2 {
    margin-bottom: 10px;
    font-size: clamp(36px, 4.25vw, 62px);
    line-height: 1.02;
  }

  .case-text p:not(.kicker) {
    font-size: 14px;
    line-height: 1.56;
  }

  .project-meta {
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .project-meta span {
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.38;
  }

  .project-meta b {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .project-logic {
    gap: 6px;
  }

  .project-logic li {
    grid-template-columns: 48px 1fr;
    gap: 10px;
    padding: 8px 11px 9px 13px;
  }

  .project-logic b,
  .project-logic span {
    font-size: 12px;
    line-height: 1.4;
  }

  .case-media,
  .mosaic,
  .phone-pop {
    height: calc(100vh - 170px);
    min-height: 430px;
    max-height: 560px;
  }

  .case-media::after {
    bottom: 10px;
    max-width: min(440px, 78%);
    padding: 8px 10px;
    font-size: 11px;
  }
}

@media (max-width: 1180px) {
  .case-media,
  .mosaic,
  .phone-pop {
    height: auto;
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .case-panel {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 72px;
  }

  .case-media,
  .mosaic,
  .phone-pop {
    min-height: 420px;
  }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .mosaic img,
  .mosaic img:first-child,
  .mosaic img:nth-child(2),
  .mosaic img:nth-child(3),
  .mosaic img:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    max-height: 360px;
  }

  .media-fan {
    min-height: 470px;
  }

  .media-fan img,
  .media-fan img:only-child,
  .media-fan img:nth-child(2):last-child {
    width: min(76%, 330px);
  }
}

/* ===== Impact hierarchy pass: hero image rhythm ===== */
.case-media {
  height: min(72vh, 720px);
  min-height: 560px;
}

.case-media::before {
  opacity: 0.98;
  filter: blur(42px);
}

.case-media img {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 44px 150px rgba(0, 0, 0, 0.72),
    0 0 98px rgba(50, 214, 255, 0.18);
}

.media-fan img {
  width: min(64%, 690px);
}

.media-fan img:nth-child(1) {
  top: -1%;
  left: -1%;
  z-index: 2;
}

.media-fan img:nth-child(2) {
  right: -1%;
  bottom: 1%;
  z-index: 3;
}

.case-track > .case-panel:first-of-type .media-fan img:nth-child(1),
.case-panel.ice .media-fan img:nth-child(1),
.case-panel.ip .media-fan img:nth-child(1) {
  width: min(68%, 760px);
}

.case-track > .case-panel:first-of-type .media-fan img:nth-child(2),
.case-panel.model .media-fan img:nth-child(2),
.case-panel.ip .media-fan img:nth-child(2) {
  width: min(66%, 760px);
}

.case-panel.spring .phone-pop {
  grid-template-columns: 0.42fr 1.1fr;
  gap: 10px;
}

.case-panel.spring .phone-pop img:first-child {
  z-index: 3;
  width: 118%;
  max-height: 92%;
  transform: perspective(900px) rotateY(14deg) rotateX(4deg) rotateZ(-1deg) translateZ(62px);
}

.case-panel.spring .phone-pop img:last-child {
  z-index: 2;
  width: 108%;
  transform: perspective(1100px) translateX(-34px) rotateY(-8deg) rotateX(-2deg) rotateZ(1deg) translateZ(26px);
}

.case-panel.model .media-fan img:nth-child(1) {
  width: min(58%, 640px);
  top: 1%;
  left: 7%;
  z-index: 2;
}

.case-panel.model .media-fan img:nth-child(2) {
  right: -2%;
  bottom: 2%;
  z-index: 4;
}

.case-panel.ip .media-fan img:nth-child(1) {
  top: -2%;
  left: 5%;
  z-index: 4;
  box-shadow:
    0 46px 160px rgba(0, 0, 0, 0.76),
    0 0 110px rgba(255, 52, 42, 0.22);
}

.case-panel.ip .media-fan img:nth-child(2) {
  right: -1%;
  bottom: 0;
  z-index: 3;
}

.case-panel.dark .mosaic {
  gap: 14px;
  height: min(70vh, 700px);
}

.case-panel.dark .mosaic img {
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.64),
    0 0 82px rgba(7, 92, 255, 0.12);
}

@media (min-width: 1181px) and (max-height: 860px) {
  .case-media,
  .mosaic,
  .phone-pop,
  .case-panel.dark .mosaic {
    height: calc(100vh - 152px);
    min-height: 460px;
    max-height: 610px;
  }

  .media-fan img {
    width: min(61%, 650px);
  }

  .case-track > .case-panel:first-of-type .media-fan img:nth-child(1),
  .case-panel.ice .media-fan img:nth-child(1),
  .case-panel.ip .media-fan img:nth-child(1) {
    width: min(64%, 690px);
  }

  .case-track > .case-panel:first-of-type .media-fan img:nth-child(2),
  .case-panel.model .media-fan img:nth-child(2),
  .case-panel.ip .media-fan img:nth-child(2) {
    width: min(62%, 690px);
  }

  .case-panel.spring .phone-pop img:first-child {
    width: 108%;
  }

  .case-panel.spring .phone-pop img:last-child {
    width: 103%;
    transform: perspective(1100px) translateX(-26px) rotateY(-8deg) rotateX(-2deg) rotateZ(1deg) translateZ(26px);
  }
}

@media (max-width: 760px) {
  .case-media,
  .mosaic,
  .phone-pop,
  .case-panel.dark .mosaic {
    height: auto;
    min-height: 440px;
  }

  .media-fan img,
  .case-track > .case-panel:first-of-type .media-fan img:nth-child(1),
  .case-panel.ice .media-fan img:nth-child(1),
  .case-panel.ip .media-fan img:nth-child(1),
  .case-track > .case-panel:first-of-type .media-fan img:nth-child(2),
  .case-panel.model .media-fan img:nth-child(2),
  .case-panel.ip .media-fan img:nth-child(2) {
    width: min(82%, 350px);
  }

  .case-panel.spring .phone-pop {
    grid-template-columns: 1fr;
  }

  .case-panel.spring .phone-pop img:first-child,
  .case-panel.spring .phone-pop img:last-child {
    width: 100%;
    transform: none;
  }
}

/* ===== Case story rebuild: one hero image, one evidence cluster ===== */
.case-panel {
  grid-template-columns: minmax(420px, 0.54fr) minmax(560px, 1fr);
  gap: clamp(36px, 5vw, 78px);
}

.case-showcase {
  position: relative;
  display: block;
  height: min(74vh, 760px);
  min-height: 590px;
  overflow: visible;
  isolation: isolate;
  transform:
    perspective(1400px)
    rotateY(calc(-2deg + var(--inview) * 2.5deg))
    translateY(calc((0.5 - var(--inview)) * 30px));
}

.case-showcase::after {
  display: none;
}

.case-showcase figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.96));
  box-shadow:
    0 48px 150px rgba(0, 0, 0, 0.72),
    0 0 90px rgba(50, 214, 255, 0.14);
}

.case-showcase img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: saturate(1.08) contrast(1.04);
  animation: none;
  transform: none;
}

.case-showcase figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.showcase-main {
  position: absolute;
  top: 3%;
  right: 0;
  z-index: 2;
  width: min(94%, 920px);
  height: min(59vh, 610px);
  transform:
    perspective(1200px)
    rotateY(-5deg)
    rotateX(2deg)
    rotateZ(-1.4deg)
    translateZ(24px);
}

.showcase-evidence {
  position: absolute;
  right: 2%;
  bottom: 2%;
  z-index: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 12px;
  width: min(82%, 780px);
}

.showcase-evidence figure {
  height: clamp(130px, 20vh, 196px);
  transform:
    perspective(900px)
    rotateY(5deg)
    rotateX(-2deg)
    rotateZ(1deg);
}

.showcase-evidence figcaption {
  left: 10px;
  right: auto;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border-radius: 10px;
  font-size: 10px;
}

.personal-showcase .showcase-main,
.game-showcase .showcase-main {
  width: min(88%, 820px);
  height: min(54vh, 560px);
}

.travel-showcase .showcase-main {
  width: min(98%, 980px);
  height: min(56vh, 590px);
  transform:
    perspective(1200px)
    rotateY(-4deg)
    rotateX(1.5deg)
    rotateZ(0deg)
    translateZ(38px);
}

.travel-showcase .showcase-evidence {
  left: 2%;
  right: auto;
  width: min(36%, 310px);
}

.travel-showcase .showcase-evidence figure {
  height: clamp(210px, 41vh, 390px);
  transform:
    perspective(900px)
    rotateY(9deg)
    rotateX(2deg)
    rotateZ(-1deg)
    translateZ(52px);
}

.model-showcase .showcase-main,
.ip-showcase .showcase-main {
  width: min(96%, 940px);
  height: min(58vh, 610px);
}

.ip-showcase .showcase-main {
  box-shadow:
    0 52px 170px rgba(0, 0, 0, 0.76),
    0 0 130px rgba(255, 52, 42, 0.2);
}

.agent-showcase {
  display: grid;
  grid-template-rows: minmax(0, 1.06fr) minmax(170px, 0.72fr);
  gap: 14px;
}

.agent-showcase .showcase-main,
.agent-showcase .showcase-evidence {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  transform: none;
}

.agent-showcase .showcase-main {
  min-height: 0;
}

.agent-showcase .showcase-evidence {
  display: grid;
  grid-auto-flow: unset;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-showcase .showcase-evidence figure {
  height: auto;
  min-height: 170px;
  transform: none;
}

.case-panel.dark .agent-console {
  display: none;
}

@media (min-width: 1181px) and (max-height: 860px) {
  .case-panel {
    grid-template-columns: minmax(410px, 0.52fr) minmax(540px, 1fr);
  }

  .case-showcase {
    height: calc(100vh - 148px);
    min-height: 520px;
    max-height: 650px;
  }

  .showcase-main {
    height: min(55vh, 530px);
  }

  .showcase-evidence {
    width: min(78%, 720px);
  }

  .showcase-evidence figure {
    height: clamp(118px, 18vh, 166px);
  }

  .travel-showcase .showcase-evidence figure {
    height: clamp(190px, 37vh, 330px);
  }

  .agent-showcase {
    grid-template-rows: minmax(0, 1fr) minmax(145px, 0.62fr);
  }

  .agent-showcase .showcase-evidence figure {
    min-height: 145px;
  }
}

@media (max-width: 1180px) {
  .case-panel {
    grid-template-columns: 1fr;
  }

  .case-showcase {
    height: auto;
    min-height: 0;
    transform: none;
  }

  .showcase-main,
  .showcase-evidence,
  .agent-showcase .showcase-main,
  .agent-showcase .showcase-evidence {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .showcase-main {
    height: clamp(330px, 58vw, 620px);
  }

  .showcase-evidence {
    display: grid;
    grid-auto-flow: unset;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 12px;
  }

  .showcase-evidence figure,
  .travel-showcase .showcase-evidence figure,
  .agent-showcase .showcase-evidence figure {
    height: clamp(170px, 34vw, 300px);
    min-height: 0;
    transform: none;
  }

  .agent-showcase {
    display: block;
  }
}

@media (max-width: 640px) {
  .showcase-main {
    height: clamp(260px, 70vw, 390px);
  }

  .showcase-evidence {
    grid-template-columns: 1fr;
  }

  .showcase-evidence figure,
  .travel-showcase .showcase-evidence figure,
  .agent-showcase .showcase-evidence figure {
    height: clamp(220px, 64vw, 340px);
  }

  .case-showcase figcaption {
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    border-radius: 10px;
    font-size: 10px;
  }
}

/* ===== Case content correction: fixed reading order ===== */
.case-showcase {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  height: min(74vh, 740px);
  min-height: 610px;
  transform: none;
}

.showcase-main,
.showcase-evidence,
.agent-showcase .showcase-main,
.agent-showcase .showcase-evidence,
.travel-showcase .showcase-evidence {
  position: relative;
  inset: auto;
  width: 100%;
  transform: none;
}

.showcase-main,
.personal-showcase .showcase-main,
.game-showcase .showcase-main,
.model-showcase .showcase-main,
.ip-showcase .showcase-main,
.travel-showcase .showcase-main {
  height: auto;
  min-height: min(50vh, 500px);
  transform: none;
}

.personal-showcase {
  grid-template-rows: minmax(0, 1fr);
}

.personal-showcase .showcase-main {
  min-height: min(66vh, 650px);
}

.showcase-evidence {
  display: grid;
  grid-auto-flow: unset;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
}

.showcase-evidence figure,
.travel-showcase .showcase-evidence figure {
  height: clamp(142px, 18vh, 182px);
  transform: none;
}

.agent-showcase {
  grid-template-rows: minmax(0, 0.86fr) auto;
}

.agent-showcase .showcase-evidence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-showcase .showcase-evidence figure {
  height: clamp(148px, 19vh, 190px);
  min-height: 0;
  transform: none;
}

.travel-showcase .showcase-evidence {
  grid-template-columns: minmax(190px, 0.62fr) minmax(260px, 1fr);
}

@media (min-width: 1181px) and (max-height: 860px) {
  .case-showcase {
    height: calc(100vh - 150px);
    min-height: 540px;
    max-height: 660px;
  }

  .showcase-main,
  .personal-showcase .showcase-main,
  .game-showcase .showcase-main,
  .model-showcase .showcase-main,
  .ip-showcase .showcase-main,
  .travel-showcase .showcase-main {
    min-height: 350px;
  }

  .personal-showcase .showcase-main {
    min-height: 540px;
  }

  .showcase-evidence figure,
  .travel-showcase .showcase-evidence figure {
    height: 134px;
  }

  .agent-showcase .showcase-evidence figure {
    height: 142px;
  }
}

@media (max-width: 1180px) {
  .case-showcase,
  .personal-showcase {
    display: grid;
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
  }

  .showcase-main,
  .personal-showcase .showcase-main {
    min-height: 0;
    height: clamp(300px, 58vw, 620px);
  }

  .agent-showcase .showcase-evidence,
  .travel-showcase .showcase-evidence {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

/* ===== Project image inspection layer ===== */
.case-showcase figure {
  cursor: zoom-in;
}

.case-showcase figure:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 4px;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 102, 255, 0.28), transparent 34%),
    radial-gradient(circle at 76% 82%, rgba(255, 44, 44, 0.18), transparent 32%),
    rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

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

.image-modal-screen {
  position: relative;
  display: grid;
  width: min(1500px, 100%);
  min-height: min(880px, calc(100vh - 48px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    #06080c;
  background-size: 42px 42px;
  box-shadow: 0 28px 95px rgba(0, 0, 0, 0.55);
}

.image-modal-screen::before,
.image-modal-screen::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

.image-modal-screen::before {
  top: 38px;
}

.image-modal-screen::after {
  bottom: 38px;
}

.image-modal-screen figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: end;
  width: 100%;
  min-height: inherit;
  margin: 0;
  padding: 54px;
}

.image-modal-screen img {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.5);
}

.image-modal-screen figcaption {
  position: relative;
  display: grid;
  gap: 14px;
  align-self: end;
  padding: 22px 0 8px;
  color: #fff;
}

.image-modal-screen i {
  color: rgba(255, 255, 255, 0.58);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.image-modal-screen h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 0.95;
}

.image-modal-screen p {
  max-width: 320px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  line-height: 1.85;
}

.image-modal-close,
.image-modal-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(4, 6, 10, 0.42);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.image-modal-close:hover,
.image-modal-nav:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.image-modal-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
}

.image-modal-close::before,
.image-modal-close::after {
  position: absolute;
  width: 22px;
  height: 2px;
  content: "";
  background: #fff;
}

.image-modal-close::before {
  transform: rotate(45deg);
}

.image-modal-close::after {
  transform: rotate(-45deg);
}

.image-modal-nav {
  top: 50%;
  width: 52px;
  height: 76px;
  transform: translateY(-50%);
}

.image-modal-prev {
  left: 18px;
}

.image-modal-next {
  right: 18px;
}

.image-modal-nav::before {
  width: 16px;
  height: 16px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
}

.image-modal-prev::before {
  transform: translateX(4px) rotate(-45deg);
}

.image-modal-next::before {
  transform: translateX(-4px) rotate(135deg);
}

@media (max-width: 900px) {
  .image-modal {
    padding: 12px;
  }

  .image-modal-screen {
    min-height: calc(100vh - 24px);
  }

  .image-modal-screen figure {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding: 62px 16px 72px;
  }

  .image-modal-screen img {
    max-height: 62vh;
  }

  .image-modal-screen h3 {
    font-size: clamp(24px, 8vw, 40px);
  }

  .image-modal-screen p {
    max-width: none;
    font-size: 13px;
  }

  .image-modal-nav {
    top: auto;
    bottom: 16px;
    width: 48px;
    height: 44px;
    transform: none;
  }
}

/* ===== Rich project evidence pass ===== */
.case-detail-rich {
  min-height: 110vh;
}

.case-detail-rich .case-text h2 {
  font-size: clamp(54px, 5vw, 88px);
}

.full-showcase {
  height: min(86vh, 890px);
  min-height: 720px;
  grid-template-rows: minmax(330px, 1fr) auto;
}

.full-showcase .showcase-main,
.full-showcase.travel-showcase .showcase-main,
.full-showcase.model-showcase .showcase-main,
.full-showcase.ip-showcase .showcase-main {
  min-height: min(50vh, 500px);
}

.full-showcase .showcase-evidence,
.full-showcase.travel-showcase .showcase-evidence,
.full-showcase.model-showcase .showcase-evidence,
.full-showcase.ip-showcase .showcase-evidence {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-right: 5px;
  overflow: visible;
  overscroll-behavior: contain;
}

.full-showcase.ip-showcase .showcase-evidence {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-showcase.full-showcase .showcase-evidence {
  width: min(94%, 860px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.full-showcase .showcase-evidence figure,
.full-showcase.travel-showcase .showcase-evidence figure,
.full-showcase.model-showcase .showcase-evidence figure,
.full-showcase.ip-showcase .showcase-evidence figure {
  height: clamp(112px, 14.5vh, 154px);
}

.game-showcase.full-showcase .showcase-evidence figure {
  height: clamp(92px, 12.5vh, 136px);
}

.full-showcase .showcase-evidence::-webkit-scrollbar {
  width: 5px;
}

.full-showcase .showcase-evidence::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.34);
}

.full-showcase .showcase-evidence::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 1181px) and (max-height: 860px) {
  .case-detail-rich {
    min-height: 112vh;
  }

  .full-showcase {
    height: calc(100vh - 120px);
    min-height: 650px;
    max-height: 740px;
    grid-template-rows: minmax(300px, 1fr) auto;
  }

  .full-showcase .showcase-main,
  .full-showcase.travel-showcase .showcase-main,
  .full-showcase.model-showcase .showcase-main,
  .full-showcase.ip-showcase .showcase-main {
    min-height: 330px;
  }

  .full-showcase .showcase-evidence,
  .full-showcase.travel-showcase .showcase-evidence,
  .full-showcase.model-showcase .showcase-evidence,
  .full-showcase.ip-showcase .showcase-evidence {
    max-height: none;
  }

  .full-showcase .showcase-evidence figure,
  .full-showcase.travel-showcase .showcase-evidence figure,
  .full-showcase.model-showcase .showcase-evidence figure,
  .full-showcase.ip-showcase .showcase-evidence figure {
    height: 104px;
  }
}

@media (max-width: 1180px) {
  .case-detail-rich {
    min-height: 0;
  }

  .full-showcase {
    height: auto;
    min-height: 0;
  }

  .full-showcase .showcase-main,
  .full-showcase.travel-showcase .showcase-main,
  .full-showcase.model-showcase .showcase-main,
  .full-showcase.ip-showcase .showcase-main {
    height: clamp(320px, 58vw, 620px);
    min-height: 0;
  }

  .full-showcase .showcase-evidence,
  .full-showcase.travel-showcase .showcase-evidence,
  .full-showcase.model-showcase .showcase-evidence,
  .full-showcase.ip-showcase .showcase-evidence {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    max-height: none;
    overflow: visible;
  }

  .full-showcase .showcase-evidence figure,
  .full-showcase.travel-showcase .showcase-evidence figure,
  .full-showcase.model-showcase .showcase-evidence figure,
  .full-showcase.ip-showcase .showcase-evidence figure {
    height: clamp(180px, 34vw, 300px);
  }
}

@media (min-width: 1181px) {
  .game-showcase.full-showcase {
    height: min(66vh, 660px);
    min-height: 560px;
  }

  .game-showcase.full-showcase .showcase-main {
    height: clamp(310px, 39vh, 430px);
    min-height: 0;
  }
}

@media (min-width: 1181px) and (max-height: 860px) {
  .game-showcase.full-showcase {
    height: calc(100vh - 128px);
    min-height: 560px;
    max-height: 650px;
  }

  .game-showcase.full-showcase .showcase-main {
    height: clamp(300px, 43vh, 430px);
  }

  .game-showcase.full-showcase .showcase-evidence figure {
    height: 92px;
  }
}

@media (max-width: 1180px) {
  .game-showcase.full-showcase .showcase-evidence {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 640px) {
  .game-showcase.full-showcase .showcase-evidence {
    grid-template-columns: 1fr;
  }

  .game-showcase.full-showcase .showcase-evidence figure {
    height: clamp(220px, 64vw, 340px);
  }
}

/* ===== Immersive back-half case stages ===== */
.case-panel.model {
  --case-accent: 125, 202, 255;
  --case-accent-2: 255, 255, 255;
  --case-accent-hot: 75, 128, 255;
}

.case-panel.ice {
  --case-accent: 52, 214, 255;
  --case-accent-2: 105, 255, 183;
  --case-accent-hot: 7, 92, 255;
}

.case-panel.ip {
  --case-accent: 255, 52, 42;
  --case-accent-2: 255, 219, 86;
  --case-accent-hot: 255, 102, 66;
}

.case-panel.model::before,
.case-panel.ice::before,
.case-panel.ip::before {
  filter: saturate(1.18) contrast(1.08);
}

.case-panel.model::after,
.case-panel.ice::after,
.case-panel.ip::after {
  background:
    linear-gradient(102deg, transparent 8%, rgba(var(--case-accent), 0.24) 42%, transparent 68%),
    linear-gradient(90deg, transparent, rgba(var(--case-accent-2), 0.1), transparent);
  opacity: calc(0.34 + var(--inview) * 0.4);
}

.case-stage-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: calc(0.22 + var(--inview) * 0.58);
  mix-blend-mode: screen;
}

.case-stage-fx span {
  position: absolute;
  display: block;
}

.case-stage-fx .fx-grid {
  inset: 8% 4% 6% 39%;
  border: 1px solid rgba(var(--case-accent), 0.24);
  background:
    linear-gradient(rgba(var(--case-accent), 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--case-accent), 0.16) 1px, transparent 1px),
    radial-gradient(circle at calc(44% + var(--travel) * 18%) 48%, rgba(var(--case-accent), 0.2), transparent 42%);
  background-size: 44px 44px, 44px 44px, auto;
  clip-path: polygon(7% 0, 100% 0, 94% 100%, 0 88%);
  transform:
    perspective(1000px)
    rotateY(calc(-12deg + var(--inview) * 7deg))
    rotateX(5deg)
    translateY(calc((0.5 - var(--travel)) * 36px));
  animation: caseGridDrift 10s linear infinite;
}

.case-stage-fx .fx-ring {
  width: clamp(220px, 28vw, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--case-accent), 0.34);
  border-radius: 50%;
  box-shadow:
    inset 0 0 34px rgba(var(--case-accent), 0.12),
    0 0 70px rgba(var(--case-accent), 0.16);
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--travel) * 210deg))
    scale(calc(0.86 + var(--inview) * 0.22));
}

.case-stage-fx .fx-ring-a {
  top: 42%;
  left: 72%;
}

.case-stage-fx .fx-ring-b {
  top: 72%;
  left: 52%;
  width: clamp(160px, 20vw, 330px);
  border-style: dashed;
  opacity: 0.72;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--travel) * -260deg))
    scale(calc(0.8 + var(--inview) * 0.28));
}

.case-stage-fx .fx-beam {
  top: 22%;
  left: 42%;
  width: 76vw;
  height: clamp(120px, 20vh, 230px);
  background: linear-gradient(90deg, transparent, rgba(var(--case-accent), 0.32), rgba(var(--case-accent-2), 0.16), transparent);
  filter: blur(12px);
  opacity: 0.55;
  transform:
    rotate(calc(-13deg + var(--travel) * 7deg))
    translateX(calc((var(--travel) - 0.5) * 90px));
}

.case-stage-fx .fx-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(var(--case-accent-2), 0.92);
  box-shadow:
    0 0 22px rgba(var(--case-accent-2), 0.78),
    0 0 54px rgba(var(--case-accent), 0.42);
  animation: casePulse 1.8s ease-in-out infinite alternate;
}

.case-stage-fx .fx-pulse-a {
  top: calc(23% + var(--travel) * 36%);
  left: 66%;
}

.case-stage-fx .fx-pulse-b {
  top: calc(78% - var(--travel) * 42%);
  left: 88%;
  animation-delay: -0.75s;
}

.case-panel.ip .case-stage-fx .fx-grid {
  border-color: rgba(255, 219, 86, 0.26);
  background:
    linear-gradient(rgba(255, 219, 86, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 52, 42, 0.17) 1px, transparent 1px),
    radial-gradient(circle at calc(36% + var(--travel) * 28%) 40%, rgba(255, 52, 42, 0.26), transparent 44%);
  background-size: 38px 38px, 38px 38px, auto;
}

@keyframes caseGridDrift {
  to {
    background-position: 88px 44px, 44px 88px, 0 0;
  }
}

@keyframes casePulse {
  from {
    transform: scale(0.72);
    opacity: 0.45;
  }

  to {
    transform: scale(1.8);
    opacity: 1;
  }
}

.case-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: min(590px, 100%);
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--case-accent), 0.25);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(var(--case-accent), 0.14), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.32);
  box-shadow:
    inset 0 0 28px rgba(var(--case-accent), 0.07),
    0 16px 48px rgba(0, 0, 0, 0.28);
  font-family: var(--body-font);
  list-style: none;
}

.case-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc((var(--case-step, 1) / 5) * 100%);
  content: "";
  background:
    linear-gradient(90deg, rgba(var(--case-accent), 0.24), rgba(var(--case-accent-2), 0.11)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  transition: width 0.35s ease;
}

.case-timeline li {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.case-timeline li:first-child {
  border-left: 0;
}

.case-timeline span {
  color: rgba(var(--case-accent-2), 0.9);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.case-timeline b {
  color: rgba(248, 251, 255, 0.7);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.case-timeline li.is-active b {
  color: #fff;
  text-shadow: 0 0 18px rgba(var(--case-accent), 0.55);
}

.dynamic-showcase {
  --focus-x: 50%;
  --focus-y: 44%;
}

.dynamic-showcase::before {
  inset: -6% -4%;
  background:
    radial-gradient(circle at var(--focus-x) var(--focus-y), rgba(var(--case-accent), 0.28), transparent 30%),
    linear-gradient(110deg, transparent, rgba(var(--case-accent-2), 0.12), transparent);
  opacity: calc(0.36 + var(--inview) * 0.28);
  filter: blur(22px);
}

.dynamic-showcase .showcase-main {
  transform:
    perspective(1300px)
    rotateY(calc(-3deg + var(--inview) * 2.2deg))
    rotateX(calc(1.2deg - var(--travel) * 1.8deg))
    translate3d(0, calc((0.5 - var(--travel)) * 18px), 0);
  transition:
    transform 0.48s ease,
    box-shadow 0.48s ease,
    filter 0.48s ease;
}

.dynamic-showcase .showcase-main img {
  transition:
    opacity 0.2s ease,
    filter 0.35s ease,
    transform 0.6s ease;
}

.dynamic-showcase.is-swapping .showcase-main img {
  opacity: 0.72;
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.015);
}

.dynamic-showcase.is-focusing .showcase-main {
  z-index: 6;
  box-shadow:
    0 50px 160px rgba(0, 0, 0, 0.75),
    0 0 120px rgba(var(--case-accent), 0.28);
}

.dynamic-showcase .showcase-evidence figure {
  transition:
    transform 0.34s ease,
    opacity 0.34s ease,
    border-color 0.34s ease,
    filter 0.34s ease,
    box-shadow 0.34s ease;
}

.dynamic-showcase .showcase-evidence:hover figure {
  opacity: 0.56;
  filter: saturate(0.72) brightness(0.72);
}

.dynamic-showcase .showcase-evidence figure:hover,
.dynamic-showcase .showcase-evidence figure:focus-visible,
.dynamic-showcase .showcase-evidence figure.is-active {
  z-index: 7;
  border-color: rgba(var(--case-accent-2), 0.78);
  opacity: 1;
  filter: saturate(1.16) brightness(1.05);
  transform:
    perspective(900px)
    translateY(-10px)
    scale(1.065)
    rotateX(0deg)
    rotateY(0deg);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    0 0 60px rgba(var(--case-accent), 0.24);
}

.dynamic-showcase .showcase-evidence figure.is-active figcaption {
  background: rgba(var(--case-accent-hot), 0.72);
}

@media (max-width: 1180px) {
  .case-stage-fx {
    opacity: 0.28;
  }

  .case-stage-fx .fx-grid {
    inset: 34% -12% 8% 10%;
  }

  .case-stage-fx .fx-ring-a {
    top: 60%;
    left: 72%;
  }

  .case-timeline {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .case-timeline {
    grid-template-columns: 1fr;
  }

  .case-timeline::before {
    bottom: auto;
    width: 100%;
    height: calc((var(--case-step, 1) / 5) * 100%);
  }

  .case-timeline li {
    grid-template-columns: 44px 1fr;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .case-timeline li:first-child {
    border-top: 0;
  }

  .case-timeline b {
    white-space: normal;
  }

  .dynamic-showcase .showcase-evidence:hover figure {
    opacity: 1;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-stage-fx .fx-grid,
  .case-stage-fx .fx-pulse {
    animation: none;
  }
}

/* ===== Cinematic rewrite: less wall, more sequence ===== */
@media (min-width: 1181px) {
  .case-panel.model.case-detail-rich,
  .case-panel.ice.case-detail-rich,
  .case-panel.ip.case-detail-rich {
    grid-template-columns: minmax(340px, 0.42fr) minmax(680px, 1.12fr);
    gap: clamp(42px, 6vw, 96px);
    align-items: start;
    min-height: 158vh;
    padding-top: 9vh;
    padding-bottom: 14vh;
    overflow: clip;
  }

  .case-panel.model .case-text,
  .case-panel.ice .case-text,
  .case-panel.ip .case-text {
    position: sticky;
    top: 10vh;
    z-index: 3;
    max-width: 460px;
    transform: none;
  }

  .case-panel.model .case-text h2,
  .case-panel.ice .case-text h2,
  .case-panel.ip .case-text h2 {
    max-width: min(460px, 100%);
    margin-bottom: 18px;
    font-size: clamp(58px, 5.6vw, 104px);
    line-height: 0.9;
    text-wrap: balance;
  }

  .case-panel.model .case-text h2 span,
  .case-panel.ip .case-text h2 span {
    white-space: nowrap;
  }

  .case-panel.ip .case-text h2 {
    font-size: clamp(56px, 5.2vw, 96px);
  }

  .case-panel.model .case-text p:not(.kicker),
  .case-panel.ice .case-text p:not(.kicker),
  .case-panel.ip .case-text p:not(.kicker) {
    max-width: 430px;
    font-size: 15px;
    line-height: 1.76;
  }

  .case-panel.model .project-meta,
  .case-panel.ice .project-meta,
  .case-panel.ip .project-meta {
    max-width: 430px;
    margin-top: 20px;
    border-color: rgba(var(--case-accent), 0.18);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
  }

  .case-panel.model .project-meta span,
  .case-panel.ice .project-meta span,
  .case-panel.ip .project-meta span {
    padding: 11px 12px;
  }

  .case-panel.model .project-logic,
  .case-panel.ice .project-logic,
  .case-panel.ip .project-logic {
    max-width: 430px;
    gap: 7px;
    margin-top: 16px;
  }

  .case-panel.model .project-logic li,
  .case-panel.ice .project-logic li,
  .case-panel.ip .project-logic li {
    grid-template-columns: 46px 1fr;
    gap: 10px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .case-panel.model .project-logic li::before,
  .case-panel.ice .project-logic li::before,
  .case-panel.ip .project-logic li::before {
    display: none;
  }

  .case-panel.model .project-logic b,
  .case-panel.ice .project-logic b,
  .case-panel.ip .project-logic b {
    color: rgba(var(--case-accent-2), 0.9);
    font-size: 11px;
  }

  .case-panel.model .project-logic span,
  .case-panel.ice .project-logic span,
  .case-panel.ip .project-logic span {
    color: rgba(248, 251, 255, 0.66);
    font-size: 13px;
    line-height: 1.6;
  }

  .case-panel.model .case-timeline,
  .case-panel.ice .case-timeline,
  .case-panel.ip .case-timeline {
    max-width: 430px;
    margin-top: 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .case-panel.model .case-timeline::before,
  .case-panel.ice .case-timeline::before,
  .case-panel.ip .case-timeline::before {
    top: 9px;
    bottom: auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--case-accent-2), 0.75), rgba(var(--case-accent), 0.3));
    box-shadow: 0 0 24px rgba(var(--case-accent), 0.35);
  }

  .case-panel.model .case-timeline::after,
  .case-panel.ice .case-timeline::after,
  .case-panel.ip .case-timeline::after {
    position: absolute;
    top: 9px;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.11);
  }

  .case-panel.model .case-timeline li,
  .case-panel.ice .case-timeline li,
  .case-panel.ip .case-timeline li {
    gap: 9px;
    padding: 22px 8px 0 0;
    border: 0;
  }

  .case-panel.model .case-timeline li::before,
  .case-panel.ice .case-timeline li::before,
  .case-panel.ip .case-timeline li::before {
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 2;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(var(--case-accent-2), 0.65);
    border-radius: 50%;
    content: "";
    background: #070a0e;
    box-shadow: 0 0 0 4px rgba(var(--case-accent), 0.08);
  }

  .case-panel.model .case-timeline li.is-active::before,
  .case-panel.ice .case-timeline li.is-active::before,
  .case-panel.ip .case-timeline li.is-active::before {
    background: rgba(var(--case-accent-2), 0.95);
    box-shadow:
      0 0 0 5px rgba(var(--case-accent), 0.12),
      0 0 26px rgba(var(--case-accent), 0.58);
  }

  .case-panel.model .case-timeline b,
  .case-panel.ice .case-timeline b,
  .case-panel.ip .case-timeline b {
    white-space: normal;
  }

  .case-panel.model .dynamic-showcase,
  .case-panel.ice .dynamic-showcase,
  .case-panel.ip .dynamic-showcase {
    position: sticky;
    top: 8vh;
    z-index: 3;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 122px;
    gap: 18px;
    height: 84vh;
    min-height: 660px;
    max-height: 820px;
    padding: 0;
    overflow: visible;
    transform: none;
  }

  .case-panel.ice .dynamic-showcase {
    grid-template-rows: minmax(0, 1fr) 112px;
    height: 80vh;
    min-height: 610px;
  }

  .case-panel.model .dynamic-showcase .showcase-main,
  .case-panel.ice .dynamic-showcase .showcase-main,
  .case-panel.ip .dynamic-showcase .showcase-main {
    width: 100%;
    height: auto;
    min-height: 0;
    border: 0;
    border-radius: 2px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.98));
    box-shadow:
      0 54px 170px rgba(0, 0, 0, 0.68),
      0 0 120px rgba(var(--case-accent), 0.12);
  }

  .case-panel.model .dynamic-showcase .showcase-main img,
  .case-panel.ice .dynamic-showcase .showcase-main img,
  .case-panel.ip .dynamic-showcase .showcase-main img {
    object-fit: contain;
    transform: scale(calc(1 + var(--inview) * 0.012));
  }

  .case-panel.model .showcase-evidence,
  .case-panel.ice .showcase-evidence,
  .case-panel.ip .showcase-evidence {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 2px 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
  }

  .case-panel.model .showcase-evidence::-webkit-scrollbar,
  .case-panel.ice .showcase-evidence::-webkit-scrollbar,
  .case-panel.ip .showcase-evidence::-webkit-scrollbar {
    display: none;
  }

  .case-panel.model .showcase-evidence figure,
  .case-panel.ice .showcase-evidence figure,
  .case-panel.ip .showcase-evidence figure {
    flex: 0 0 clamp(210px, 17vw, 280px);
    height: 108px;
    scroll-snap-align: center;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 3px;
    opacity: 0.48;
    transform: none;
    filter: saturate(0.82) brightness(0.72);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.46);
  }

  .case-panel.ice .showcase-evidence figure {
    flex-basis: clamp(190px, 15vw, 250px);
    height: 96px;
  }

  .case-panel.model .showcase-evidence figure:hover,
  .case-panel.model .showcase-evidence figure:focus-visible,
  .case-panel.model .showcase-evidence figure.is-active,
  .case-panel.ice .showcase-evidence figure:hover,
  .case-panel.ice .showcase-evidence figure:focus-visible,
  .case-panel.ice .showcase-evidence figure.is-active,
  .case-panel.ip .showcase-evidence figure:hover,
  .case-panel.ip .showcase-evidence figure:focus-visible,
  .case-panel.ip .showcase-evidence figure.is-active {
    flex-basis: clamp(280px, 24vw, 390px);
    border-color: rgba(var(--case-accent-2), 0.88);
    opacity: 1;
    filter: saturate(1.08) brightness(1);
    transform: translateY(-8px);
    box-shadow:
      0 26px 82px rgba(0, 0, 0, 0.58),
      0 0 0 1px rgba(var(--case-accent-2), 0.22),
      0 0 52px rgba(var(--case-accent), 0.26);
  }

  .case-panel.model .showcase-evidence figcaption,
  .case-panel.ice .showcase-evidence figcaption,
  .case-panel.ip .showcase-evidence figcaption {
    max-width: calc(100% - 18px);
    padding: 7px 9px;
    font-size: 10px;
  }

  .case-stage-fx {
    opacity: calc(0.12 + var(--inview) * 0.38);
  }

  .case-stage-fx .fx-ring,
  .case-stage-fx .fx-pulse {
    opacity: 0.26;
  }

  body[data-scene="cases"] .command-dock {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(70px);
  }

  body[data-scene="cases"] .command-dock:hover,
  body[data-scene="cases"] .command-dock:focus-within {
    opacity: 0.96;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

@media (min-width: 1181px) and (max-height: 860px) {
  .case-panel.model.case-detail-rich,
  .case-panel.ice.case-detail-rich,
  .case-panel.ip.case-detail-rich {
    min-height: 168vh;
    padding-top: 8vh;
  }

  .case-panel.model .dynamic-showcase,
  .case-panel.ice .dynamic-showcase,
  .case-panel.ip .dynamic-showcase {
    height: 82vh;
    min-height: 600px;
    grid-template-rows: minmax(0, 1fr) 104px;
  }

  .case-panel.model .case-text h2,
  .case-panel.ice .case-text h2,
  .case-panel.ip .case-text h2 {
    font-size: clamp(50px, 5vw, 86px);
  }

  .case-panel.model .project-logic span,
  .case-panel.ice .project-logic span,
  .case-panel.ip .project-logic span {
    font-size: 12px;
  }

  .case-panel.model .showcase-evidence figure,
  .case-panel.ip .showcase-evidence figure {
    height: 92px;
  }

  .case-panel.ice .showcase-evidence figure {
    height: 86px;
  }
}

@media (max-width: 1180px) {
  .case-panel.model .showcase-evidence,
  .case-panel.ice .showcase-evidence,
  .case-panel.ip .showcase-evidence {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .case-panel.model .showcase-evidence figure,
  .case-panel.ice .showcase-evidence figure,
  .case-panel.ip .showcase-evidence figure {
    flex: 0 0 min(76vw, 360px);
    scroll-snap-align: center;
  }
}

/* Effects pass: cinematic scan layers and live-media texture */
.dynamic-showcase .showcase-main {
  isolation: isolate;
}

.slice-deck {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
  transform: translateZ(72px);
  transition: opacity 0.28s ease;
}

.slice-deck span {
  position: absolute;
  top: 0;
  bottom: 0;
  background-repeat: no-repeat;
  filter: saturate(1.26) contrast(1.2) brightness(1.06);
  clip-path: inset(0 1px 0 1px);
  opacity: 0.55;
  transform:
    translate3d(var(--slice-drift), 0, 0)
    scaleY(1.012);
}

.slice-deck span:nth-child(2n) {
  opacity: 0.38;
  transform:
    translate3d(var(--slice-drift-alt), 0, 0)
    scaleY(1.018);
}

.dynamic-showcase.is-focusing .slice-deck,
.showcase-main.is-magnifying .slice-deck {
  opacity: 0.36;
}

.dynamic-showcase.is-swapping .slice-deck {
  opacity: 0.72;
}

.dynamic-showcase.is-swapping .slice-deck span {
  animation: sliceRebuild 0.64s cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: var(--slice-delay);
}

.scan-hud {
  position: absolute;
  inset: clamp(10px, 1.25vw, 18px);
  z-index: 8;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: screen;
  transform: translateZ(126px);
}

.case-panel.case-in-frame .scan-hud {
  opacity: 0.74;
}

.scan-hud::before,
.scan-hud::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.scan-hud::before {
  right: 0;
  left: 0;
  top: var(--media-progress-y, 10%);
  height: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), rgba(var(--case-accent-2), 0.86), transparent),
    linear-gradient(180deg, rgba(var(--case-accent), 0.5), transparent);
  box-shadow:
    0 0 26px rgba(var(--case-accent), 0.72),
    0 16px 46px rgba(var(--case-accent-2), 0.22);
  animation: hudScanDrift 2.7s ease-in-out infinite;
}

.scan-hud::after {
  top: 12px;
  right: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(var(--case-accent-2), 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.38);
  content: "VISUAL SCAN";
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(var(--case-accent), 0.16);
}

.scan-hud i {
  position: absolute;
  width: clamp(30px, 4vw, 56px);
  height: clamp(30px, 4vw, 56px);
  border-color: rgba(var(--case-accent-2), 0.78);
  border-style: solid;
  filter: drop-shadow(0 0 16px rgba(var(--case-accent), 0.48));
}

.scan-hud i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.scan-hud i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.scan-hud i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

.scan-hud i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.dynamic-showcase .showcase-evidence {
  position: relative;
  counter-reset: evidence-frame;
  isolation: isolate;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px),
    linear-gradient(90deg, rgba(var(--case-accent), 0.08), transparent 28%, rgba(var(--case-accent-2), 0.08));
  background-position: 0 0, 0 0;
  background-size: 100% 4px, 100% 100%;
  background-repeat: repeat-x, no-repeat;
}

.dynamic-showcase .showcase-evidence figure {
  isolation: isolate;
}

.dynamic-showcase .showcase-evidence figure::before {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  counter-increment: evidence-frame;
  content: "F" counter(evidence-frame, decimal-leading-zero);
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.46);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.06em;
  box-shadow: 0 0 18px rgba(var(--case-accent), 0.16);
}

.dynamic-showcase .showcase-evidence figure.is-active::before {
  border-color: rgba(var(--case-accent-2), 0.72);
  color: #fff;
  background: rgba(var(--case-accent-hot), 0.72);
}

.theater-preview-screen {
  isolation: isolate;
}

.stream-hud,
.stream-reticle {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
}

.stream-hud {
  padding: 6px 9px;
  border: 1px solid rgba(50, 214, 255, 0.35);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.42);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 26px rgba(50, 214, 255, 0.18);
}

.stream-hud-top {
  top: 16px;
  left: 16px;
}

.stream-hud-bottom {
  right: 16px;
  bottom: 16px;
  border-color: rgba(255, 52, 42, 0.36);
  box-shadow: 0 0 26px rgba(255, 52, 42, 0.16);
}

.stream-reticle {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(50, 214, 255, 0.34) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255, 52, 42, 0.28) 50%, transparent 50.2%);
  opacity: 0.58;
}

.stream-reticle::before,
.stream-reticle::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.stream-reticle::before {
  top: -1px;
  bottom: -1px;
  left: 12%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  box-shadow: 0 0 24px rgba(50, 214, 255, 0.56);
  animation: streamTrack 3.6s cubic-bezier(0.55, 0, 0.16, 1) infinite;
}

.stream-reticle::after {
  inset: 0;
  border:
    clamp(18px, 4vw, 46px)
    solid transparent;
  border-image:
    linear-gradient(135deg, rgba(50, 214, 255, 0.56), transparent 36%, transparent 64%, rgba(255, 52, 42, 0.42))
    1;
  opacity: 0.7;
}

.theater-preview.is-playing .stream-hud,
.theater-preview.is-live .stream-hud {
  animation: hudPulse 1.2s ease-in-out infinite alternate;
}

.theater-preview.is-playing .stream-reticle {
  opacity: 0.78;
}

.theater-preview.is-playing .stream-hud {
  animation: none;
  opacity: 0.18;
}

.theater-preview.is-playing .stream-reticle {
  opacity: 0.2;
}

.theater-preview.is-playing .stream-reticle::before {
  animation: none;
  opacity: 0.28;
}

@keyframes sliceRebuild {
  0% {
    clip-path: inset(42% 0 38% 0);
    opacity: 0;
    filter: blur(8px) saturate(1.7) contrast(1.35);
    transform:
      translate3d(var(--slice-shift), var(--slice-shift), 0)
      scale(1.08);
  }

  46% {
    opacity: 0.86;
  }

  100% {
    clip-path: inset(0 1px 0 1px);
  }
}

@keyframes hudScanDrift {
  0%,
  100% {
    opacity: 0.46;
    transform: translateY(-12px) scaleX(0.72);
  }

  50% {
    opacity: 0.95;
    transform: translateY(18px) scaleX(1);
  }
}

@keyframes streamTrack {
  0% {
    left: 8%;
    opacity: 0;
  }

  16% {
    opacity: 0.85;
  }

  100% {
    left: 92%;
    opacity: 0;
  }
}

@keyframes hudPulse {
  from {
    opacity: 0.58;
    transform: translateY(0);
  }

  to {
    opacity: 0.98;
    transform: translateY(-2px);
  }
}

@media (max-width: 1180px) {
  .slice-deck,
  .scan-hud {
    opacity: 0.2;
  }

  .stream-hud {
    font-size: 9px;
  }
}

@media (max-width: 640px) {
  .scan-hud::after,
  .stream-hud {
    display: none;
  }

  .stream-reticle {
    inset: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-showcase.is-swapping .slice-deck span,
  .scan-hud::before,
  .stream-reticle::before,
  .theater-preview.is-playing .stream-hud,
  .theater-preview.is-live .stream-hud {
    animation: none;
  }
}

/* Theater framing fix: keep portrait and near-shot videos readable */
.theater-preview {
  --preview-frame-fit: cover;
}

.theater-preview-screen {
  background:
    radial-gradient(circle at 50% 46%, rgba(50, 214, 255, 0.1), transparent 34%),
    #020305;
}

.theater-preview-screen #theater-preview-backdrop {
  z-index: 0;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  opacity: 0;
  filter: blur(26px) saturate(1.25) contrast(1.08) brightness(0.58);
  transform: scale(1.08);
}

.theater-preview-screen #theater-preview-video,
.theater-preview-screen #theater-preview-poster {
  z-index: 2;
  object-fit: var(--preview-frame-fit);
}

.theater-preview.is-portrait,
.theater-preview.is-square {
  --preview-frame-fit: contain;
}

.theater-preview.is-portrait .theater-preview-screen,
.theater-preview.is-square .theater-preview-screen {
  box-shadow:
    0 38px 150px rgba(0, 0, 0, 0.66),
    inset 0 0 84px rgba(255, 52, 42, 0.08),
    inset 0 0 40px rgba(50, 214, 255, 0.08);
}

.theater-preview.is-portrait .theater-preview-screen #theater-preview-backdrop,
.theater-preview.is-square .theater-preview-screen #theater-preview-backdrop,
.theater-preview.is-playing.is-portrait .theater-preview-screen #theater-preview-backdrop,
.theater-preview.is-playing.is-square .theater-preview-screen #theater-preview-backdrop {
  opacity: 0.72;
}

.theater-preview.is-playing.is-portrait .theater-preview-screen #theater-preview-video,
.theater-preview.is-playing.is-square .theater-preview-screen #theater-preview-video {
  transform: scale(0.985);
}

.theater-preview.is-portrait .theater-preview-screen #theater-preview-poster,
.theater-preview.is-square .theater-preview-screen #theater-preview-poster {
  transform: scale(0.985);
}

.theater-preview-copy {
  min-width: 0;
  overflow: hidden;
}

.theater-preview-copy b {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.theater-preview.has-title-index .theater-preview-copy b {
  display: grid;
  align-content: start;
  gap: clamp(10px, 1.2vw, 16px);
}

.theater-title-main,
.theater-title-index {
  display: block;
}

.theater-title-main {
  max-width: 100%;
  color: #fff;
  font-size: clamp(42px, 4.2vw, 66px);
  font-weight: 950;
  line-height: 0.94;
  text-transform: none;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.82);
}

.theater-preview-copy b .theater-title-main {
  color: #fff;
  font-size: clamp(42px, 4.2vw, 66px);
  text-transform: none;
}

.theater-preview.has-title-index .theater-title-main,
.theater-preview.has-title-index .theater-preview-copy b .theater-title-main {
  max-width: 100%;
  font-size: clamp(38px, 3.7vw, 58px);
  white-space: nowrap;
}

.theater-preview:not(.has-title-index) .theater-preview-copy b {
  font-size: clamp(34px, 3.8vw, 64px);
  line-height: 0.96;
}

.theater-title-index {
  width: fit-content;
  padding: 8px 14px 10px;
  border: 1px solid rgba(50, 214, 255, 0.32);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(135deg, rgba(50, 214, 255, 0.14), rgba(255, 52, 42, 0.08)),
    rgba(0, 0, 0, 0.32);
  font-size: clamp(26px, 3vw, 48px);
  font-style: normal;
  line-height: 0.9;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 0 36px rgba(50, 214, 255, 0.12);
}

.theater-preview.has-long-title:not(.has-title-index) .theater-preview-copy b {
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1;
}

@media (min-width: 981px) {
  .theater-preview.is-portrait,
  .theater-preview.is-square {
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.4fr);
  }
}

@media (max-width: 980px) {
  .theater-preview.is-portrait .theater-preview-screen,
  .theater-preview.is-square .theater-preview-screen {
    aspect-ratio: 4 / 5;
    max-height: min(68vh, 620px);
  }

  .theater-preview-copy {
    align-content: start;
  }

  .theater-title-main {
    max-width: 100%;
    font-size: clamp(34px, 9vw, 58px);
  }
}

@media (max-width: 640px) {
  .theater-preview {
    padding: 10px;
  }

  .theater-preview-screen {
    min-height: 0;
  }

  .theater-preview-copy {
    gap: 10px;
    padding: 16px;
  }

  .theater-preview-copy p {
    font-size: 12px;
    line-height: 1.7;
  }

  .theater-title-main {
    font-size: clamp(32px, 11vw, 48px);
    line-height: 0.98;
  }

  .theater-title-index {
    padding: 6px 10px 8px;
    font-size: 26px;
  }
}

/* Playback mode: give modal video the GPU/decoder budget */
html.video-modal-open body::before,
html.video-modal-open body::after,
html.video-modal-open main,
html.video-modal-open #fx-canvas,
html.video-modal-open .director-rig,
html.video-modal-open .command-dock {
  opacity: 0;
  visibility: hidden;
}

html.video-modal-open .video-modal,
html.video-modal-open .video-modal * {
  visibility: visible;
}

html.video-modal-open main * {
  animation-play-state: paused !important;
}

html.video-modal-open .case-stage-fx,
html.video-modal-open .slice-deck,
html.video-modal-open .scan-hud,
html.video-modal-open .stream-reticle,
html.video-modal-open .stream-hud {
  opacity: 0 !important;
}

html.video-modal-open .video-modal.open {
  background: #000;
  transition: none;
}

html.video-modal-open .modal-screen {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.18);
  background: #000;
  box-shadow: none;
}

html.video-modal-open #modal-video {
  backface-visibility: hidden;
  contain: none;
  filter: none;
  transform: none;
  will-change: auto;
}

/* ===== Designer polish pass: sharpened hierarchy + poster-first video cards ===== */
.designer-statement {
  position: relative;
  max-width: 760px;
  margin: -12px 0 18px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 800;
  line-height: 1.58;
  letter-spacing: -0.02em;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.74);
}

.designer-statement::before {
  position: absolute;
  left: 0;
  top: 0.42em;
  bottom: 0.36em;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--cyan), rgba(255, 255, 255, 0.72), var(--red));
  box-shadow: 0 0 22px rgba(50, 214, 255, 0.38);
}

.brand b {
  text-transform: none;
}

.hero-sub {
  max-width: 720px;
  color: rgba(248, 251, 255, 0.66);
  font-size: clamp(16px, 1.16vw, 19px);
}

.reference-radar {
  margin-top: 20px;
}

.reference-radar small {
  min-width: 100%;
  letter-spacing: 0.16em;
}

.reference-radar b {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.video-head {
  max-width: 980px;
}

.agent-video-lab .video-head p:not(.kicker) {
  max-width: 820px;
  color: rgba(248, 251, 255, 0.72);
}

.theater-status {
  letter-spacing: 0.02em;
}

.theater-status span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  content: "";
  background: var(--green);
  box-shadow: 0 0 16px rgba(94, 255, 167, 0.72);
  vertical-align: 1px;
}

.theater-preview {
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.115), transparent 34%),
    radial-gradient(circle at 72% 18%, rgba(50, 214, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(50, 214, 255, 0.095), rgba(255, 52, 42, 0.07)),
    rgba(0, 0, 0, 0.5);
}

.theater-preview-screen {
  border-radius: 10px;
}

.poster-state {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 5;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.poster-state i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(50, 214, 255, 0.8);
}

.theater-preview.is-playing .poster-state {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.premiere-card img,
.clip-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.premiere-card img {
  filter: saturate(1.08) contrast(1.08) brightness(0.72);
  transform: scale(1.04);
  transition:
    opacity 0.28s ease,
    filter 0.28s ease,
    transform 0.5s ease;
}

.clip-card img {
  filter: saturate(1.04) contrast(1.06) brightness(0.74);
  transform: scale(1.01);
  transition:
    opacity 0.24s ease,
    filter 0.28s ease,
    transform 0.45s ease;
}

.premiere-card video,
.clip-card video {
  z-index: 1;
  opacity: 0;
}

.premiere-card img,
.clip-card img {
  z-index: 0;
  opacity: 1;
}

.premiere-card:hover img,
.premiere-card:focus-visible img {
  filter: saturate(1.18) contrast(1.12) brightness(0.86);
  transform: scale(1.08);
}

.clip-card:hover img,
.clip-card:focus-visible img {
  filter: saturate(1.16) contrast(1.1) brightness(0.88);
  transform: scale(1.05);
}

.premiere-card.is-previewing video,
.clip-card.is-previewing video {
  opacity: 1;
}

.premiere-card.is-previewing img,
.clip-card.is-previewing img {
  opacity: 0;
}

.premiere-card::before,
.clip-card::before {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.84)),
    radial-gradient(circle at 52% 42%, transparent 0 28%, rgba(0, 0, 0, 0.34) 74%),
    linear-gradient(110deg, rgba(50, 214, 255, 0.1), transparent 44%, rgba(255, 52, 42, 0.08));
}

.premiere-card::after,
.clip-card::after {
  z-index: 4;
  opacity: 0.88;
}

.premiere-card:hover::after,
.premiere-card:focus-visible::after,
.clip-card:hover::after,
.clip-card:focus-visible::after {
  filter: drop-shadow(0 0 30px rgba(50, 214, 255, 0.88));
  transform: translate(-38%, -50%) scale(1.12);
}

.premiere-card small {
  color: rgba(248, 251, 255, 0.76);
  letter-spacing: 0.06em;
}

.clip-card span {
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.video-cluster {
  border-radius: 14px;
}

@media (max-width: 640px) {
  .designer-statement {
    margin-top: -4px;
    font-size: 16px;
  }

  .poster-state {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
}

/* ===== Motion comfort pass: keep depth, remove project screen-rotation ===== */
.case-panel,
.case-media,
.case-showcase,
.dynamic-showcase,
.dynamic-showcase .showcase-main {
  transform-style: flat;
}

.case-panel::before {
  transform:
    scale(calc(1.035 + var(--inview) * 0.02))
    translate3d(0, calc((var(--travel) - 0.5) * -34px), 0);
}

.case-panel::after {
  opacity: calc(0.16 + var(--inview) * 0.5);
  transform: translate3d(calc((var(--travel) - 0.5) * 72px), 0, 0);
}

.case-text {
  transform:
    translate3d(0, calc((0.5 - var(--inview)) * 32px), 0)
    scale(calc(0.992 + var(--inview) * 0.008));
}

.case-media,
.case-showcase,
.dynamic-showcase {
  transform:
    translate3d(0, calc((0.5 - var(--inview)) * 28px), 0)
    scale(calc(0.988 + var(--inview) * 0.012));
}

.showcase-main,
.travel-showcase .showcase-main,
.dynamic-showcase .showcase-main {
  transform:
    translate3d(0, calc((0.5 - var(--travel)) * 18px), 0)
    scale(calc(0.992 + var(--case-enter, var(--inview)) * 0.012));
}

.showcase-evidence figure,
.travel-showcase .showcase-evidence figure {
  transform:
    translate3d(0, calc((0.5 - var(--inview)) * 10px), 0)
    scale(calc(0.99 + var(--inview) * 0.01));
}

.dynamic-showcase .showcase-evidence figure:hover,
.dynamic-showcase .showcase-evidence figure:focus-visible,
.dynamic-showcase .showcase-evidence figure.is-active {
  transform: translate3d(0, -8px, 0) scale(1.045);
}

.case-stage-fx .fx-grid {
  transform:
    translate3d(0, calc((0.5 - var(--travel)) * 28px), 0)
    skewX(-4deg);
}

.case-stage-fx .fx-ring,
.case-stage-fx .fx-ring-b {
  transform:
    translate(-50%, -50%)
    scale(calc(0.86 + var(--inview) * 0.2));
}

.case-stage-fx .fx-beam {
  transform:
    translate3d(calc((var(--travel) - 0.5) * 70px), 0, 0)
    skewX(-8deg);
}

@media (min-width: 1181px) {
  .case-panel.model .dynamic-showcase .showcase-main,
  .case-panel.ice .dynamic-showcase .showcase-main,
  .case-panel.ip .dynamic-showcase .showcase-main {
    transform:
      translate3d(0, calc((0.5 - var(--travel)) * 18px), 0)
      scale(calc(0.99 + var(--case-enter) * 0.012));
  }

  .case-panel.model .showcase-evidence figure,
  .case-panel.ice .showcase-evidence figure,
  .case-panel.ip .showcase-evidence figure {
    transform: translate3d(0, 0, 0);
  }

  .case-panel.model .showcase-evidence figure:hover,
  .case-panel.model .showcase-evidence figure:focus-visible,
  .case-panel.model .showcase-evidence figure.is-active,
  .case-panel.ice .showcase-evidence figure:hover,
  .case-panel.ice .showcase-evidence figure:focus-visible,
  .case-panel.ice .showcase-evidence figure.is-active,
  .case-panel.ip .showcase-evidence figure:hover,
  .case-panel.ip .showcase-evidence figure:focus-visible,
  .case-panel.ip .showcase-evidence figure.is-active {
    transform: translate3d(0, -7px, 0) scale(1.018);
  }
}

/* ===== Preview playback mode: prioritize smooth video over decorative layers ===== */
html.preview-video-playing body::after {
  animation: none;
  opacity: 0.12;
}

html.preview-video-playing #fx-canvas,
html.preview-video-playing .director-rig,
html.preview-video-playing .video-space {
  opacity: 0 !important;
  visibility: hidden;
}

html.preview-video-playing main * {
  animation-play-state: paused !important;
}

html.preview-video-playing .theater-preview-screen video {
  filter: none !important;
  transform: none !important;
  transition: opacity 0.14s linear !important;
  will-change: auto;
}

html.preview-video-playing .theater-preview-screen::before,
html.preview-video-playing .theater-preview-screen::after,
html.preview-video-playing .stream-reticle,
html.preview-video-playing .stream-hud {
  opacity: 0 !important;
}
