:root {
  color-scheme: dark;
  --bg: #050506;
  --ink: #fffdf1;
  --soft: #b9b7ad;
  --dim: #77756f;
  --line: rgba(255, 253, 241, 0.16);
  --gold: #ead08a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
}

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

button {
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--soft);
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.56), transparent);
}

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

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 22px rgba(255, 253, 241, 0.65);
}

.site-nav {
  gap: clamp(12px, 2.8vw, 34px);
  font-size: 14px;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}

.site-nav a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.hero-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(115deg, rgba(255, 253, 241, 0.11), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(234, 208, 138, 0.17), transparent 25%),
    #050506;
}

.hero-page::after,
.works-page::after,
.info-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 253, 241, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 241, 0.034) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.motion-collage {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.92;
}

.projector-beam {
  position: absolute;
  top: 12%;
  right: -10%;
  z-index: -2;
  width: 72vw;
  height: 72vh;
  background:
    linear-gradient(100deg, transparent 0 28%, rgba(255, 253, 241, 0.13) 42%, transparent 76%),
    linear-gradient(96deg, transparent 0 38%, rgba(234, 208, 138, 0.12) 48%, transparent 66%);
  filter: blur(18px);
  transform-origin: right center;
  animation: beamSweep 8s ease-in-out infinite;
}

.grain-field {
  position: absolute;
  inset: -20%;
  z-index: -2;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: 13px 17px, 19px 23px;
  animation: grainMove 1.2s steps(3) infinite;
}

.film-strip {
  position: absolute;
  width: 46vw;
  min-width: 520px;
  height: 18vh;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 253, 241, 0.22) 0 34px,
      transparent 34px 64px
    ),
    linear-gradient(135deg, rgba(255, 253, 241, 0.06), rgba(234, 208, 138, 0.1));
  transform: rotate(-16deg);
  animation: drift 16s linear infinite;
}

.strip-one {
  top: 18%;
  right: -8%;
}

.strip-two {
  bottom: 16%;
  left: -12%;
  transform: rotate(14deg);
  animation-direction: reverse;
  opacity: 0.62;
}

.orbital-ring {
  position: absolute;
  border: 1px solid rgba(255, 253, 241, 0.22);
  border-radius: 50%;
  animation: rotateRing 24s linear infinite;
}

.ring-one {
  right: 12%;
  top: 18%;
  width: 28vw;
  height: 28vw;
}

.ring-two {
  left: 9%;
  bottom: 14%;
  width: 18vw;
  height: 18vw;
  animation-direction: reverse;
}

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

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

h1 {
  max-width: 1000px;
  margin-bottom: 48px;
  font-size: clamp(70px, 16vw, 190px);
  line-height: 0.86;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 253, 241, 0.72);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 7.6vw, 102px);
  line-height: 0.96;
  letter-spacing: 0;
}

.profile-title {
  max-width: 900px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.03;
}

.profile-title span {
  display: block;
  white-space: nowrap;
}

.hero-bottom {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-bottom span,
.tile-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--soft);
}

.hero-bottom span {
  padding: 8px 13px;
}

.info-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  background: #0b0d10;
}

.info-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.info-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 6, 0.46), transparent 42%);
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-line {
  max-width: 760px;
  margin: 30px 0;
  color: var(--soft);
  font-size: clamp(19px, 2.5vw, 30px);
  line-height: 1.38;
  word-break: keep-all;
  overflow-wrap: normal;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.info-list div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.info-list dt {
  margin-bottom: 4px;
  color: var(--dim);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: normal;
}

.works-page {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(30px, 5vw, 58px);
  background: #050506;
  overflow: visible;
  padding-left: clamp(72px, 13vw, 190px);
  padding-right: clamp(72px, 13vw, 190px);
}

.section-bg-video {
  position: absolute;
  inset: -7%;
  z-index: -2;
  width: 114%;
  height: 114%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(28px) saturate(1.18);
  transform: scale(1.08);
}

.works-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.88), rgba(5, 5, 6, 0.46) 45%, rgba(5, 5, 6, 0.9)),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.72), transparent 38%, rgba(5, 5, 6, 0.88));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.dynamic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-self: stretch;
  width: min(100%, 1040px);
  margin: 0 auto;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(280px, 46vh, 520px);
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform 280ms ease,
    border-color 280ms ease,
    filter 280ms ease;
}

#aigc .work-card {
  min-height: clamp(300px, 48vh, 540px);
}

.work-card:hover,
.work-card.is-active {
  border-color: rgba(255, 253, 241, 0.52);
  filter: brightness(1.12);
  transform: translateY(-4px);
}

.poster-image,
.poster-gif,
.poster-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.poster-canvas {
  background: #050506;
}

.poster-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 253, 241, 0.42);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 56%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 30%);
}

.tile-role {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  left: clamp(22px, 4vw, 42px);
  color: rgba(255, 253, 241, 0.64);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.play-mark {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  right: clamp(22px, 4vw, 42px);
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 253, 241, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  color: var(--ink);
}

.tile-title {
  max-width: 880px;
  margin: 0 0 14px;
  font-size: clamp(32px, 5.5vw, 76px);
  line-height: 1.05;
  word-break: keep-all;
  overflow-wrap: normal;
}

.edge-motion {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: clamp(42px, 7vw, 96px);
  opacity: 0.7;
  pointer-events: none;
}

.left-edge {
  left: clamp(14px, 3vw, 42px);
}

.right-edge {
  right: clamp(14px, 3vw, 42px);
}

.edge-motion::before,
.edge-motion::after {
  content: "";
  position: absolute;
  inset: 8% 50% 8% auto;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 253, 241, 0.34),
    transparent
  );
}

.edge-motion::after {
  inset: 0;
  width: 100%;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 253, 241, 0.22) 0 2px,
      transparent 2px 34px
    ),
    linear-gradient(to bottom, transparent, rgba(234, 208, 138, 0.1), transparent);
  animation: edgeScroll 7s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.right-edge::after {
  animation-direction: reverse;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tile-tags span {
  padding: 5px 9px;
  font-size: 12px;
}

dialog {
  width: min(1080px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: #090a0c;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

#dialog-video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}

.dialog-copy {
  padding: 22px;
}

.dialog-copy h2 {
  font-size: clamp(32px, 6vw, 72px);
}

#dialog-tags {
  margin: 16px 0 0;
  color: var(--soft);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.54);
  color: var(--ink);
  cursor: pointer;
}

@keyframes drift {
  0% {
    translate: 0 0;
  }

  50% {
    translate: -8% 12%;
  }

  100% {
    translate: 0 0;
  }
}

@keyframes rotateRing {
  to {
    rotate: 360deg;
  }
}

@keyframes beamSweep {
  0%,
  100% {
    rotate: -8deg;
    opacity: 0.42;
  }

  50% {
    rotate: 4deg;
    opacity: 0.72;
  }
}

@keyframes grainMove {
  to {
    transform: translate3d(-2%, 2%, 0);
  }
}

@keyframes edgeScroll {
  to {
    transform: translateY(34px);
  }
}

@media (max-width: 980px) {
  .info-page,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .info-page,
  .section-heading {
    display: grid;
  }

  .works-page {
    padding-left: clamp(34px, 7vw, 72px);
    padding-right: clamp(34px, 7vw, 72px);
  }

  .work-card,
  .work-card:nth-child(n),
  #aigc .work-card {
    min-height: 360px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 {
    font-size: 76px;
  }

  h2 {
    font-size: 50px;
  }

  .page {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 54px;
  }

  .hero-page {
    min-height: 100vh;
  }

  .info-list,
  .dynamic-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  #aigc .work-card {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .tile-title {
    font-size: 40px;
  }

  .profile-title {
    font-size: 42px;
  }

  .profile-title span {
    white-space: normal;
  }

  .edge-motion {
    display: none;
  }
}
