:root {
  --bg: #0c0c0c;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(215, 226, 234, 0.18);
  --ink: #ffffff;
  --accent: #1eb7ff;
  --cyan: #55d7ff;
  --orange: #ffd34d;
  --radius-xl: 46px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

.grainient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 159, 252, 0.32), transparent 30vw),
    radial-gradient(circle at 72% 24%, rgba(82, 39, 255, 0.36), transparent 31vw),
    radial-gradient(circle at 52% 84%, rgba(180, 151, 207, 0.24), transparent 34vw),
    linear-gradient(135deg, #231339 0%, #19102b 40%, #08080d 100%);
}

#grainient-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  background: transparent;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 26px clamp(22px, 4vw, 56px) 36px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.3) 0%, rgba(5, 5, 8, 0.02) 42%, rgba(5, 5, 8, 0.42) 100%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.05), transparent 48%);
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text);
  font-size: clamp(0.82rem, 1.45vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav a {
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover {
  opacity: 0.62;
  transform: translateY(-2px);
}

.hero-heading-wrap {
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.hero-heading,
.gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.hero-heading {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #fff;
  color: #fff;
  width: 100%;
  white-space: nowrap;
  font-size: clamp(2.7rem, 9vw, 10.5rem);
  font-family:
    "ZCOOL KuaiLe", "Ma Shan Zheng", "优设标题黑", "YouYuan",
    "PingFang SC", "Microsoft YaHei", cursive, sans-serif;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 0 26px rgba(255, 255, 255, 0.34),
    0 0 70px rgba(225, 0, 255, 0.24);
}

.hero-bottom {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero-bottom p {
  max-width: 330px;
  color: #fff;
  font-size: clamp(0.86rem, 1.45vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
}

.contact-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  outline: 2px solid rgba(255, 255, 255, 0.18);
  outline-offset: -6px;
  background: linear-gradient(123deg, #071a25 7%, #19b7ff 37%, #5877ff 72%, #ffd34d 100%);
  box-shadow: 0 4px 18px rgba(25, 183, 255, 0.35), 4px 4px 12px rgba(88, 119, 255, 0.55) inset;
  color: white;
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 14px 34px;
  transition: transform 180ms ease, filter 180ms ease;
}

.contact-button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.marquee-section {
  padding: clamp(72px, 11vw, 140px) 0 72px;
}

.marquee-row {
  overflow: hidden;
}

.marquee-row + .marquee-row {
  margin-top: 14px;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  will-change: transform;
}

.work-tile {
  position: relative;
  width: clamp(230px, 31vw, 430px);
  height: clamp(148px, 19vw, 270px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: #151515;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.06);
}

.work-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.2), transparent 12%);
}

.work-tile::after {
  content: none;
}

.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.work-tile span {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  font-size: clamp(1rem, 1.8vw, 1.7rem);
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.section-dark {
  position: relative;
  background: transparent;
}

.about {
  display: grid;
  min-height: 92vh;
  place-items: center;
  overflow: hidden;
  padding: 110px 24px;
  text-align: center;
}

.section-heading {
  font-size: clamp(3.2rem, 11vw, 10rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
}

.about-copy {
  max-width: 730px;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.85;
}

.decor {
  position: absolute;
  width: clamp(120px, 16vw, 230px);
  aspect-ratio: 1;
  border-radius: 34% 66% 44% 56%;
  opacity: 0.75;
  filter: blur(0.2px);
}

.decor-left {
  left: clamp(16px, 6vw, 92px);
  top: 13%;
  background: radial-gradient(circle at 38% 32%, #fff, #5bdcff 26%, #15222f 70%);
}

.decor-right {
  right: clamp(16px, 7vw, 120px);
  bottom: 12%;
  background: radial-gradient(circle at 38% 32%, #fff, #ff71d8 26%, #241024 70%);
}

.services {
  border-radius: clamp(34px, 5vw, 64px) clamp(34px, 5vw, 64px) 0 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  backdrop-filter: blur(12px);
  padding: clamp(80px, 11vw, 140px) clamp(22px, 5vw, 72px);
}

.service-list {
  max-width: 1050px;
  margin: clamp(56px, 7vw, 92px) auto 0;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(90px, 0.32fr) 1fr;
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: clamp(26px, 4vw, 48px) 0;
}

.service-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-item strong,
.project-meta strong {
  font-size: clamp(3rem, 9vw, 8.4rem);
  font-weight: 950;
  line-height: 0.9;
}

.service-item h3 {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.service-item p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.96rem, 1.45vw, 1.25rem);
  font-weight: 400;
  line-height: 1.75;
}

.projects {
  z-index: 2;
  margin-top: -42px;
  border-radius: clamp(34px, 5vw, 64px) clamp(34px, 5vw, 64px) 0 0;
  padding: clamp(86px, 12vw, 150px) clamp(20px, 5vw, 70px) 90px;
}

.project-stack {
  display: grid;
  gap: 24px;
  max-width: 1180px;
  margin: clamp(54px, 7vw, 92px) auto 0;
}

.project-card {
  position: sticky;
  top: 28px;
  display: grid;
  min-height: 520px;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: var(--radius-xl);
  background: #0c0c0c;
  padding: clamp(18px, 2.5vw, 34px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.card-spotlight {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.card-spotlight::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    560px circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-color),
    transparent 72%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.card-spotlight:hover::before,
.card-spotlight.is-spotlit::before,
.card-spotlight:focus-within::before {
  opacity: 0.72;
}

.card-spotlight > * {
  position: relative;
  z-index: 1;
}

.project-card:nth-child(2) {
  top: 58px;
}

.project-card:nth-child(3) {
  top: 88px;
}

.project-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.project-meta h3 {
  max-width: 430px;
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  font-weight: 950;
  line-height: 1.05;
}

.project-art {
  min-height: 440px;
  border-radius: calc(var(--radius-xl) - 12px);
  background-color: #151515;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.08);
}

.project-gallery {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
}

.project-gallery img,
.project-gallery video {
  width: 100%;
  height: 100%;
  min-height: 410px;
  border-radius: calc(var(--radius-xl) - 22px);
  object-fit: cover;
  object-position: center;
}

.project-gallery img:nth-child(2),
.project-gallery video:nth-child(2) {
  min-height: 410px;
}

.contact {
  padding: 84px clamp(22px, 5vw, 70px) 36px;
}

.contact-title {
  max-width: 1050px;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 950;
  line-height: 0.98;
}

.contact-card {
  display: grid;
  max-width: 760px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(6, 6, 10, 0.58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  margin-top: 54px;
  padding: clamp(20px, 4vw, 34px);
}

.contact-copy {
  display: grid;
  gap: 12px;
}

.contact-copy span {
  color: var(--muted);
  font-size: clamp(0.86rem, 1.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.contact-copy strong {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.contact-card img {
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
  background: #fff;
  justify-self: end;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 58px;
  padding-top: 26px;
  color: var(--muted);
  font-weight: 700;
}

.split-text {
  overflow: hidden;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.65em, 0) rotateX(-24deg);
  transform-origin: 50% 100%;
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--split-delay, 0ms);
  will-change: transform, opacity;
}

.split-text.is-split-visible .split-char {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0);
}

.split-text.is-split-complete .split-char {
  will-change: auto;
}

.split-text-compact .split-char {
  transition-duration: 480ms;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms cubic-bezier(0.25, 0.1, 0.25, 1), transform 520ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .split-char {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 92vh;
  }

  .hero-heading {
    white-space: normal;
  }

  .hero-bottom,
  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card img {
    justify-self: start;
  }

  .service-item,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
    position: relative;
    top: auto !important;
  }

  .project-meta {
    gap: 26px;
  }

  .project-art {
    min-height: 290px;
  }

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

  .project-gallery img,
  .project-gallery video,
  .project-gallery img:nth-child(2),
  .project-gallery video:nth-child(2) {
    min-height: 250px;
  }
}

@media (max-width: 520px) {
  .nav {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .contact-button {
    width: 100%;
  }

  .work-tile {
    border-radius: 18px;
  }
}

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

  .grainient-backdrop {
    display: none;
  }
}
