:root {
  color-scheme: dark;
  --ink: #fff7e8;
  --muted: rgba(255, 247, 232, 0.68);
  --line: rgba(255, 255, 255, 0.18);
  --hot: #ff2d78;
  --cyan: #00e5ff;
  --lime: #c7ff2e;
  font-family:
    "Trebuchet MS", "Microsoft YaHei", "PingFang SC", "Noto Sans SC",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #04050a;
}

body.featured-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #04050a;
  color: var(--ink);
}

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

.fx-back {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 14, 0.68);
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.fx-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.fx-copy {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 40px;
}

.fx-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.fx-title {
  margin: 0;
  font-size: clamp(58px, 12vw, 180px);
  line-height: 0.85;
  letter-spacing: 0;
}

.fx-lead {
  max-width: 48ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 800;
  line-height: 1.55;
}

.distortion-stage {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.22), transparent 28%),
    #05050a;
}

.duality-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  width: min(1480px, calc(100% - 36px));
  margin: 30px auto 70px;
}

.duality-card {
  --split: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: clamp(360px, 52vw, 640px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 220ms ease-out;
}

.duality-side {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 20px;
  background:
    linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.76) 100%),
    var(--art);
  background-size: cover;
  background-position: center;
}

.duality-after {
  clip-path: polygon(var(--split) 0, 100% 0, 100% 100%, calc(var(--split) - 12%) 100%);
  filter: saturate(1.35) contrast(1.16);
}

.duality-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 3;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.34), transparent 10%),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255,255,255,0.12) 13px 14px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 180ms ease-out;
  pointer-events: none;
}

.duality-card:hover::before {
  opacity: 1;
}

.duality-side h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
}

.duality-side p {
  max-width: 24ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.cubic-page {
  min-height: 520vh;
  background: #07070b;
}

.cubic-sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  perspective: 1200px;
}

.cubic-gallery {
  position: relative;
  width: min(72vw, 860px);
  height: min(68vh, 640px);
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--cube-progress, 0) * -360deg))
    rotateY(calc(var(--cube-progress, 0) * 80deg - 28deg));
  transition: transform 80ms linear;
}

.cubic-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82)),
    var(--art);
  background-size: cover;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.44);
  transform: rotateX(calc(var(--i) * 72deg)) translateZ(min(38vw, 430px));
}

.cubic-panel h2,
.parallax-card h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 92px);
  line-height: 0.9;
}

.western-page {
  min-height: 420vh;
  background: #100904;
}

.western-track {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  gap: 4vw;
  align-items: center;
  padding: 0 8vw;
  transform: translateX(calc(var(--para-progress, 0) * -160vw));
}

.parallax-card {
  position: relative;
  flex: 0 0 min(58vw, 720px);
  height: min(70vh, 680px);
  display: grid;
  align-content: end;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 170, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, transparent, rgba(24, 10, 0, 0.88)),
    var(--art);
  background-size: 115%;
  background-position:
    calc(50% + var(--shift, 0px)) center;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.parallax-card p,
.cubic-panel p {
  max-width: 34ch;
  margin: 14px 0 0;
  color: rgba(255, 247, 232, 0.74);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.45;
}

.gta-stage {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 45, 120, 0.32), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(0, 229, 255, 0.28), transparent 32%),
    #05050d;
}

.gta-card {
  position: relative;
  width: min(980px, calc(100% - 36px));
  min-height: min(74vh, 720px);
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 70px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, transparent, rgba(5, 5, 13, 0.92)),
    linear-gradient(135deg, #ff2d78, #ffb000 32%, #00e5ff 66%, #3311aa);
  box-shadow: 0 45px 150px rgba(0, 0, 0, 0.52);
  transform: perspective(1100px) rotateY(var(--gta-ry, -8deg)) rotateX(var(--gta-rx, 4deg));
  transition: transform 180ms ease-out;
}

.gta-card::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.1) 0 1px, transparent 1px 74px);
  transform: translateZ(80px);
}

.gta-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(70px, 15vw, 190px);
  line-height: 0.8;
  text-shadow: 8px 8px #171028, 0 0 34px rgba(255, 255, 255, 0.32);
}

.gta-copy {
  position: relative;
  z-index: 2;
  max-width: 42ch;
  margin: 22px 0 0;
  color: rgba(255, 247, 232, 0.82);
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 950;
}

.dither-stage {
  min-height: 100vh;
  background: #050507;
}

.dither-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dither-panel {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  width: min(1120px, calc(100% - 38px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 92px 0 56px;
}

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

  .duality-card {
    min-height: 520px;
  }

  .western-track {
    padding: 0 5vw;
  }

  .parallax-card {
    flex-basis: 82vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cubic-gallery,
  .western-track,
  .gta-card {
    transition: none;
  }
}
