:root {
  --background: 0 0% 10%;
  --foreground: 0 0% 96%;
  --primary: 119 99% 46%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 18%;
  --secondary-foreground: 0 0% 96%;
  --muted: 0 0% 16%;
  --muted-foreground: 0 0% 60%;
  --accent: 119 99% 46%;
  --accent-foreground: 0 0% 4%;
  --destructive: 0 84% 60%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 119 99% 46%;
  --nav-button: 0 0% 18%;
  --hero-bg: 0 0% 8%;
  --radius: .5rem;
  --page: min(1440px, calc(100vw - 48px));
  color-scheme: dark;
  font: 100%/1.5 "Sora", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Sora", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 4px;
}

::selection {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  min-height: 78px;
  padding: 20px clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, .76), transparent);
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}

.nav.scrolled {
  background: rgba(20, 20, 20, .74);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px) saturate(160%);
}

.brand,
.nav a {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.brand {
  width: max-content;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.035em;
}

.brand span {
  color: hsl(var(--primary));
}

.nav nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2.8vw, 44px);
}

.nav nav a {
  color: hsl(var(--muted-foreground));
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  transition: color .2s ease;
}

.nav nav a:hover {
  color: hsl(var(--foreground));
}

.nav-cta {
  justify-self: end;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: hsl(var(--nav-button));
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .13em;
  transition: background .2s ease, transform .12s ease;
}

.nav-cta:hover {
  background: hsl(0 0% 23%);
}

.nav-cta:active {
  transform: scale(.97);
}

.hero {
  --cx: 72%;
  --cy: 36%;
  --px: 0px;
  --py: 0px;
  position: relative;
  isolation: isolate;
  min-height: min(850px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: hsl(var(--hero-bg));
}

.spline-stage,
.spline-fallback,
.spline-stage spline-viewer,
.hero-shade,
.hero-light {
  position: absolute;
  inset: 0;
}

.spline-stage {
  z-index: 0;
}

.spline-fallback {
  background:
    radial-gradient(circle at 72% 22%, rgba(2, 235, 0, .2), transparent 30%),
    radial-gradient(circle at 56% 72%, rgba(70, 70, 70, .24), transparent 44%),
    linear-gradient(128deg, #0d0d0d 0%, #171717 52%, #0b0b0b 100%);
}

.spline-stage spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, .93) 0%, rgba(9, 9, 9, .72) 36%, rgba(9, 9, 9, .22) 72%, rgba(9, 9, 9, .38) 100%),
    linear-gradient(0deg, rgba(9, 9, 9, .9) 0%, transparent 34%, rgba(9, 9, 9, .2) 100%);
}

.hero-light {
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.light-orb,
.light-streak,
.light-grain,
.cursor-light {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}

.light-orb {
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(70px);
}

.light-orb-a {
  width: min(48vw, 760px);
  aspect-ratio: 1;
  top: -24%;
  right: -10%;
  opacity: .14;
  background: radial-gradient(circle, rgba(2, 235, 0, .75), transparent 67%);
  transform: translate3d(calc(var(--px) * .2), calc(var(--py) * .2), 0);
  animation: orb-a 18s ease-in-out infinite alternate;
}

.light-orb-b {
  width: min(38vw, 620px);
  aspect-ratio: 1;
  left: 14%;
  bottom: -32%;
  opacity: .1;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 68%);
  transform: translate3d(calc(var(--px) * -.12), calc(var(--py) * -.12), 0);
  animation: orb-b 23s ease-in-out infinite alternate;
}

.light-streak {
  width: 56vw;
  height: 16vw;
  top: 42%;
  right: -6vw;
  opacity: .09;
  background: linear-gradient(104deg, transparent 10%, rgba(184, 255, 183, .74) 49%, transparent 78%);
  filter: blur(30px);
  transform: translate3d(calc(var(--px) * .1), calc(var(--py) * .1), 0) rotate(-11deg);
  animation: streak 14s ease-in-out infinite alternate;
}

.light-grain {
  inset: 0;
  opacity: .11;
  background-image: radial-gradient(rgba(255, 255, 255, .44) .55px, transparent .7px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 78%, transparent);
}

.cursor-light {
  z-index: 2;
  left: var(--cx);
  top: var(--cy);
  width: clamp(320px, 35vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .12;
  background: radial-gradient(circle, rgba(218, 255, 217, .34), rgba(2, 235, 0, .16) 24%, rgba(2, 235, 0, .05) 45%, transparent 68%);
  filter: blur(20px);
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0) scale(.8);
  transition: opacity .28s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}

.hero.pointer-active .cursor-light {
  opacity: .62;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

@keyframes orb-a {
  to {
    transform: translate3d(calc(var(--px) * .2 - 5vw), calc(var(--py) * .2 + 7vh), 0) scale(1.08);
  }
}

@keyframes orb-b {
  to {
    transform: translate3d(calc(var(--px) * -.12 + 6vw), calc(var(--py) * -.12 - 5vh), 0) scale(.94);
  }
}

@keyframes streak {
  to {
    opacity: .15;
    transform: translate3d(calc(var(--px) * .1 - 5vw), calc(var(--py) * .1 + 3vh), 0) rotate(-7deg);
  }
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(700px, 58vw);
  padding: 150px clamp(24px, 4vw, 64px) clamp(54px, 7vh, 82px);
  pointer-events: none;
}

.hero-feature { position: absolute; z-index: 3; right: 4vw; top: 33%; width: 42%; color: #bbb; text-decoration: none; }
.hero-feature img { width: 100%; display: block; border: 1px solid #363636; border-radius: 6px; }
.hero-feature span { display: block; margin-top: 16px; font-size: .875rem; letter-spacing: .08em; }
@media (max-width: 900px) { .hero-feature { display: none; } }

.eyebrow,
.section-kicker,
.section-label {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
}

.hero h1 {
  margin: clamp(30px, 6vh, 64px) 0 0;
  color: hsl(var(--foreground));
  font-size: clamp(3.8rem, 8.25vw, 8.6rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.hero h1 > span {
  display: block;
}

.hero-accent,
.hero-dot {
  color: hsl(var(--primary));
}

.hero-line {
  margin: clamp(22px, 3.8vh, 42px) 0 0;
  color: rgba(245, 245, 245, .86);
  font-size: clamp(1.25rem, 2.1vw, 1.95rem);
  font-weight: 300;
  letter-spacing: -.035em;
}

.hero-description {
  margin: 15px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(.86rem, 1.25vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  pointer-events: auto;
}

.button {
  min-height: 48px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  text-decoration: none;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  transition: filter .2s ease, transform .12s ease;
}

.button:hover {
  filter: brightness(1.1);
}

.button:active {
  transform: scale(.97);
}

.button-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.button-light {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.hero-trust {
  margin: 22px 0 0;
  color: rgba(153, 153, 153, .62);
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .1em;
}

.fade-up {
  opacity: 0;
  animation: fade-up .7s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-scroll {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(54px, 7vh, 82px);
  display: flex;
  align-items: center;
  gap: 16px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: .58rem;
  letter-spacing: .18em;
}

.hero-scroll i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  color: hsl(var(--foreground));
  font-size: 1.1rem;
  font-style: normal;
  transition: color .2s ease, background .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.hero-scroll:hover i {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(4px);
}

.marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  font-size: .61rem;
  letter-spacing: .2em;
}

.marquee span {
  display: block;
  width: max-content;
  animation: roll 28s linear infinite;
}

@keyframes roll {
  to {
    transform: translateX(-50%);
  }
}

.work {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(100px, 12vw, 180px) 0 70px;
}

.section-head {
  margin-bottom: clamp(76px, 10vw, 140px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-head h2 {
  margin: 24px 0 0;
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.065em;
}

.filters {
  max-width: 540px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filters button {
  padding: 9px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 99px;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: .67rem;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .12s ease;
}

.filters button:hover {
  color: hsl(var(--foreground));
  border-color: hsl(0 0% 34%);
}

.filters button:active {
  transform: scale(.96);
}

.filters button.active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.work-group {
  padding-bottom: clamp(90px, 12vw, 170px);
}

.work-group[hidden] {
  display: none;
}

.group-head {
  margin-bottom: 30px;
  padding: 0 0 21px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: baseline;
  border-bottom: 1px solid hsl(var(--border));
}

.group-head span {
  color: hsl(var(--primary));
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.group-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}

.group-head p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: .62rem;
  letter-spacing: .16em;
}

.category-grid {
  columns: 2;
  column-gap: clamp(18px, 2.2vw, 34px);
}

.card,
.card.portrait {
  width: 100%;
  margin: 0 0 clamp(46px, 5vw, 80px);
  display: inline-block;
  break-inside: avoid;
  vertical-align: top;
}

.work-group[data-kind="design"] .category-grid {
  columns: 1;
}

.work-group[data-kind="design"] .card {
  max-width: min(720px, 100%);
}

.thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: #0d0d0d;
  cursor: pointer;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), border-color .25s ease, box-shadow .42s ease;
}

.thumb img,
.thumb video {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  background: #0b0b0b;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .35s ease;
}

.thumb::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .58), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.thumb::after {
  content: attr(data-no);
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  background: rgba(10, 10, 10, .72);
  color: white;
  font-size: .57rem;
  backdrop-filter: blur(12px);
}

.thumb:hover {
  border-color: rgba(2, 235, 0, .54);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42), 0 0 0 1px rgba(2, 235, 0, .08);
  transform: translateY(-6px);
}

.thumb:hover::before {
  opacity: 1;
}

.thumb:hover img,
.thumb:hover video {
  filter: brightness(.82) saturate(.9);
  transform: scale(1.015);
}

.thumb:active {
  transform: scale(.99);
}

.play-label {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  padding: 9px 11px;
  border-radius: 3px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  opacity: 0;
  transform: translateY(8px);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .1em;
  transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
}

.thumb:hover .play-label,
.thumb:focus .play-label,
.thumb:focus-visible .play-label {
  opacity: 1;
  transform: translateY(0);
}

.card-meta {
  padding: 16px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.card p {
  margin: 6px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: .69rem;
  font-weight: 300;
}

.open-film {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: 1rem;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .25s ease;
}

.open-film:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translate(2px, -2px);
}

.about {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(100px, 12vw, 180px) 0;
  display: grid;
  grid-template-columns: minmax(90px, .8fr) minmax(0, 4fr) minmax(190px, 1.25fr);
  gap: clamp(28px, 5vw, 84px);
  border-top: 1px solid hsl(var(--border));
}

.about-copy h2 {
  margin: 0 0 48px;
  font-size: clamp(3.5rem, 7.4vw, 8rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.07em;
}

.about-copy h2 span {
  color: hsl(var(--primary));
}

.about .lead {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 300;
  letter-spacing: -.025em;
}

.about-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: .93rem;
  font-weight: 300;
  line-height: 1.9;
}

.stats {
  display: flex;
  flex-direction: column;
}

.stats span {
  padding: 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid hsl(var(--border));
}

.stats b {
  color: hsl(var(--foreground));
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}

.stats small {
  color: hsl(var(--muted-foreground));
  font-size: .65rem;
}

.contact {
  padding: clamp(100px, 12vw, 180px) max(24px, calc((100vw - min(1440px, calc(100vw - 48px))) / 2));
  border-top: 1px solid hsl(var(--border));
  background:
    radial-gradient(circle at 76% 18%, rgba(2, 235, 0, .12), transparent 28%),
    hsl(var(--hero-bg));
  color: hsl(var(--foreground));
}

.contact h2 {
  max-width: 1250px;
  margin: clamp(56px, 8vw, 110px) 0 28px;
  font-size: clamp(3.8rem, 9.2vw, 10rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.075em;
}

.contact h2 em {
  color: hsl(var(--primary));
  font-style: normal;
}

.contact-intro {
  max-width: 680px;
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 300;
}

.contact-details {
  margin-top: clamp(68px, 8vw, 110px);
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(200px, .55fr);
  align-items: end;
  gap: clamp(36px, 7vw, 110px);
  border-top: 1px solid hsl(var(--border));
}

.contact-links {
  display: grid;
}

.contact-links button {
  width: 100%;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid hsl(var(--border));
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.contact-links button:hover {
  color: hsl(var(--primary));
  transform: translateX(6px);
}

.contact-links button:active {
  transform: scale(.985);
}

.contact-links span,
.wechat-card span {
  color: hsl(var(--muted-foreground));
  font-size: .61rem;
  letter-spacing: .16em;
}

.contact-links strong {
  font-size: clamp(1.05rem, 2.2vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -.035em;
}

.contact-links i {
  min-width: 3.5em;
  color: hsl(var(--muted-foreground));
  font-size: .67rem;
  font-style: normal;
  letter-spacing: .08em;
  text-align: right;
}

.contact-links button.copied i {
  color: hsl(var(--primary));
}

.wechat-card {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(160px, 220px);
  justify-content: end;
  gap: 12px;
}

.wechat-card img {
  width: 100%;
  height: auto;
  display: block;
  padding: 10px;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.wechat-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.wechat-card strong {
  font-size: .74rem;
  font-weight: 500;
}

footer {
  padding: 25px max(24px, calc((100vw - min(1440px, calc(100vw - 48px))) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: .58rem;
  letter-spacing: .1em;
}

footer a {
  justify-self: end;
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: hsl(var(--primary));
}

.viewer {
  position: fixed;
  inset: 2vh 2vw;
  width: 96vw;
  height: 96vh;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: auto;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: #0b0b0b;
  color: hsl(var(--foreground));
  box-shadow: 0 60px 180px rgba(0, 0, 0, .78);
}

.viewer::backdrop {
  background: rgba(0, 0, 0, .9);
}

.viewer-close {
  position: fixed;
  z-index: 4;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(24, 24, 24, .82);
  color: white;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transition: color .2s ease, background .2s ease, transform .12s ease;
}

.viewer-close:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.viewer-close:active {
  transform: scale(.92);
}

.viewer-stage {
  min-height: 74vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #000;
}

.viewer-stage iframe,
.full-player {
  width: 100%;
  height: 74vh;
  display: block;
  border: 0;
  background: #000;
  object-fit: contain;
}

.viewer-stage [hidden],
.gallery-stage[hidden] {
  display: none;
}

.full-player {
  contain: paint;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.viewer-copy {
  padding: 30px 34px 42px;
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  align-items: start;
  gap: 32px;
}

.viewer-copy p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.viewer-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}

.viewer-link {
  color: hsl(var(--primary));
  text-decoration: none;
}

.gallery-stage {
  width: 100%;
  max-height: 74vh;
  padding: 76px 24px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  overflow: auto;
  background: #111;
}

.gallery-stage img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: #090909;
}

.viewer-open .hero-light *,
.viewer-open .marquee span {
  animation-play-state: paused !important;
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 36px);
  }

  .nav {
    min-height: 64px;
    padding: 16px 18px;
    grid-template-columns: 1fr auto;
  }

  .nav nav,
  .nav-cta {
    display: none;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 9, 9, .92), rgba(9, 9, 9, .55)),
      linear-gradient(0deg, rgba(9, 9, 9, .92), transparent 54%);
  }

  .hero-copy {
    width: 100%;
    padding: 124px 18px 58px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 6.5rem);
    line-height: .92;
  }

  .hero-line {
    font-size: clamp(1.12rem, 5vw, 1.45rem);
  }

  .hero-description br {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .hero-actions {
    width: min(100%, 420px);
  }

  .button {
    flex: 1 1 180px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2 {
    font-size: clamp(3.1rem, 14vw, 5.4rem);
  }

  .filters {
    max-width: none;
    justify-content: flex-start;
  }

  .group-head {
    grid-template-columns: 34px 1fr;
  }

  .group-head p {
    display: none;
  }

  .category-grid {
    columns: 1;
  }

  .card,
  .card.portrait {
    margin-bottom: 50px;
  }

  .play-label {
    opacity: 1;
    transform: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-copy h2 {
    font-size: clamp(3.4rem, 15vw, 6rem);
  }

  .stats {
    margin-top: 20px;
  }

  .contact {
    padding-inline: 18px;
  }

  .contact h2 {
    font-size: clamp(3.3rem, 14vw, 6rem);
    line-height: .9;
  }

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

  .contact-links button {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .contact-links strong {
    font-size: 1rem;
    word-break: break-all;
  }

  .wechat-card {
    grid-template-columns: minmax(180px, 70vw);
    justify-content: start;
  }

  footer {
    padding-inline: 18px;
    grid-template-columns: 1fr auto;
  }

  footer span:nth-child(2) {
    display: none;
  }

  .viewer {
    inset: 0;
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .viewer-stage {
    min-height: 68vh;
    border-radius: 0;
  }

  .viewer-stage iframe,
  .full-player {
    height: 68vh;
  }

  .viewer-copy {
    padding: 24px 18px max(40px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
  }

  .gallery-stage {
    max-height: 75vh;
    padding: 68px 10px 16px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-trust {
    max-width: 290px;
    line-height: 1.7;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section-head h2 {
    font-size: 16vw;
  }

  .group-head h2 {
    font-size: 10vw;
  }

  .contact-links button {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .contact-links i {
    display: none;
  }
}

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

  .fade-up {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .spline-stage spline-viewer {
    display: none;
  }

  .cursor-light {
    left: 72% !important;
    top: 36% !important;
    opacity: .12 !important;
    transform: translate3d(-50%, -50%, 0) !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled,
  .thumb::after {
    background: #171717;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .nav.scrolled,
  .thumb,
  .viewer {
    border-color: white;
  }
}

/* Editorial hierarchy: selected cases first, a compact categorized library second. */
.nav nav a, .nav-cta, .eyebrow, .section-kicker, .section-label, .button, .hero-trust { font-size: .875rem; }
.hero h1 { font-size: clamp(3.5rem, 6.8vw, 7.2rem); line-height: 1.02; }
.hero-description { font-size: 1rem; }
.hero-trust { color: #aaa; }
.work { padding: clamp(64px, 7vw, 100px) 0; scroll-margin-top: 88px; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin: 16px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.3; letter-spacing: -.04em; }
.section-intro { color: #aaa; font-size: 1rem; line-height: 1.85; margin: 0; }
.featured-case { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: 40px 0; border-top: 1px solid hsl(var(--border)); align-items: center; }
.case-image { position: relative; width: 100%; height: 360px; border: 1px solid #333; border-radius: 6px; background: #0b0b0b; padding: 0; cursor: pointer; overflow: hidden; }
.case-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.case-image span { position: absolute; bottom: 16px; left: 16px; padding: 10px 14px; font-size: .875rem; background: #101010e8; color: white; border: 1px solid #555; border-radius: 3px; }
.case-image:hover { border-color: hsl(var(--primary)); }
.case-kicker { margin: 0; color: hsl(var(--primary)); font-size: .875rem; letter-spacing: .08em; }
.case-copy h3 { margin: 16px 0; font-size: clamp(1.6rem, 2.5vw, 2.6rem); line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.case-description { color: #bbb; font-size: 1rem; line-height: 1.85; max-width: 38em; }
.case-copy dl { margin: 24px 0; font-size: .875rem; }
.case-copy dl div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid #303030; }
.case-copy dt { color: #999; }
.case-copy dd { margin: 0; color: #ddd; }
.case-play, .archive-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #555; border-radius: 3px; background: transparent; color: #eee; font-size: .875rem; text-decoration: none; cursor: pointer; }
.case-play:hover, .archive-link:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.archive-link { margin-top: 20px; }
.archive { border-top: 1px solid hsl(var(--border)); }
.archive-toolbar { position: sticky; top: 78px; z-index: 8; background: #1a1a1a; padding: 16px 0; margin-bottom: 32px; border-block: 1px solid #333; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
#library-status { flex-shrink: 0; margin: 0; font-size: .875rem; color: #aaa; }
.filters { max-width: none; justify-content: flex-start; }
.filters button { min-height: 44px; font-size: .875rem; }
.work-group { padding-bottom: 40px; }
.group-head { align-items: start; }
.group-head span { font-size: .875rem; }
.group-head h3 { margin: 0; font-size: 1.75rem; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; }
.group-head p { font-size: .875rem; letter-spacing: 0; }
.group-head .group-description { display: block; margin-top: 10px; font-size: 1rem; line-height: 1.7; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; columns: auto; }
.card, .card.portrait { display: block; margin: 0; }
.thumb { aspect-ratio: 16 / 10; }
.thumb img, .thumb video { height: 100%; }
.thumb::after, .card .card-type { font-size: .75rem; }
.play-label, .card p { font-size: .875rem; }
.card .card-type { margin: 0 0 7px; color: #aaa; }
.card-meta > div { min-width: 0; }
.card h3 { overflow-wrap: anywhere; }
.work-group[data-kind="drama"] .thumb, .work-group[data-kind="microfilm"] .thumb, .work-group[data-kind="design"] .thumb { aspect-ratio: 3 / 4; }
.work-group[data-kind="design"] .category-grid { grid-template-columns: minmax(0, 420px); }
.open-film { width: auto; min-width: 48px; height: 44px; border-radius: 3px; font-size: .875rem; }
.about { padding: clamp(64px, 7vw, 100px) 0; scroll-margin-top: 88px; }
.about-copy h2 { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.3; letter-spacing: -.04em; }
.about-copy > p:not(.lead) { color: #aaa; font-size: 1rem; line-height: 1.9; }
.practice { margin-top: 32px; }
.practice p { margin: 0; padding: 14px 0; border-top: 1px solid #333; font-size: 1rem; color: #aaa; }
.practice span { display: inline-block; color: #eee; margin-right: 20px; }
.stats small { font-size: .875rem; }
.contact { padding-block: clamp(64px, 7vw, 100px); scroll-margin-top: 78px; }
.contact h2 { margin: 28px 0; font-size: clamp(2rem, 4.5vw, 4.5rem); line-height: 1.3; letter-spacing: -.04em; }
.contact-details { margin-top: 40px; }
.contact-links span, .wechat-card span, .contact-links i, .wechat-card strong { font-size: .875rem; }
footer { font-size: .75rem; }
.viewer-title { line-height: 1.3; }
@media (max-width: 900px) {
  .nav nav { display: flex; gap: 14px; }
  .nav nav a { font-size: .875rem; letter-spacing: 0; }
  .nav nav a[href="#about"] { display: none; }
  .hero h1 { font-size: clamp(3.25rem, 14vw, 6.5rem); line-height: 1.02; }
  .hero-trust { max-width: none; line-height: 1.7; }
  .featured-case { grid-template-columns: 1fr; gap: 24px; }
  .case-image { height: clamp(240px, 55vw, 380px); }
  .archive-toolbar { top: 64px; align-items: flex-start; flex-direction: column; }
  .section-head { gap: 20px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { flex-direction: row; gap: 24px; flex-wrap: wrap; }
  .stats span { flex: 1 1 160px; gap: 12px; }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
  .practice span { display: block; margin-bottom: 6px; }
}
