:root {
  --bg: #030303;
  --ink: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.14);
  --warm: #d6c0a0;
  --panel: rgba(3, 3, 3, 0.86);
  --header-height: 104px;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

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

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

body.detail-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 720px),
    var(--bg);
}

body.detail-open .site-shell {
  min-height: 0;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 28px;
  padding: 28px 54px 18px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

.topbar a {
  pointer-events: auto;
}

.brand-lockup {
  justify-self: center;
  display: block;
  text-align: center;
  pointer-events: auto;
}

.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 0.92;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 38px;
  padding-top: 15px;
}

.main-nav a,
.topbar-right {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.main-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.topbar-right a:hover,
.topbar-right a:focus-visible {
  color: var(--warm);
  transform: translateY(-1px);
}

.topbar-right {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 30px;
  padding-top: 15px;
  pointer-events: auto;
}

.topbar-right a {
  transition: color 180ms ease, transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 130px 54px 76px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-poster,
.hero-media video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background: #090807;
}

.hero-poster {
  z-index: -2;
  background-image: url("public/media/hero/hero-poster.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.72) contrast(1.06) brightness(0.68);
  transform: scale(1.02);
}

.hero-media video {
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}

.hero-media video.is-ready {
  opacity: 1;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.26) 46%, rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 34%, rgba(0, 0, 0, 0.38));
}

.hero-content {
  width: min(560px, calc(100% - 48px));
  padding-top: 0;
  text-align: center;
}

.eyebrow,
.detail-category {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.2;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.9vw, 50px);
  line-height: 0.96;
  font-weight: 600;
}

.hero-content p {
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-actions a {
  min-width: 130px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 12px 22px 11px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  text-align: center;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
  border-color: var(--warm);
  background: rgba(214, 192, 160, 0.12);
  color: #fff;
}

.hero-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 86px));
  gap: 10px;
  justify-content: center;
  margin-top: 76px;
}

.hero-progress span {
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-progress span:first-child {
  background: rgba(255, 255, 255, 0.95);
}

section {
  position: relative;
  padding: 132px 54px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.partners-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 72px;
  border-top: 1px solid var(--line);
}

.intro-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.about-media,
.about-shade,
.about-media video {
  position: absolute;
  inset: 0;
}

.about-media {
  z-index: -2;
  background: #090807;
}

.about-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.62);
}

.about-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.84));
}

.intro-copy,
.partners-copy,
.contact-copy {
  max-width: 980px;
}

.intro-copy h2,
.partners-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 700;
}

.intro-copy p,
.contact-copy p {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.work-section {
  border-top: 1px solid var(--line);
}

.category-directory {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.category-panel {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.category-panel:last-child {
  border-bottom: 0;
}

.category-button {
  width: 100%;
  min-height: 148px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) max-content;
  gap: 28px;
  align-items: end;
  border: 0;
  background: transparent;
  padding: 28px 30px;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.category-button:hover,
.category-button:focus-visible,
.category-panel.is-active .category-button {
  background: rgba(214, 192, 160, 0.14);
}

.category-button span {
  display: block;
}

.category-button .count {
  color: var(--soft);
  font-size: 13px;
  align-self: start;
  padding-top: 4px;
}

.category-copy {
  min-width: 0;
}

.category-button .category-label {
  font-size: clamp(34px, 5vw, 74px);
  line-height: 1.06;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.category-button .category-zh {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.45;
}

.category-state {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 70px);
  padding: clamp(22px, 4vw, 58px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 220px),
    rgba(0, 0, 0, 0.5);
}

.category-projects[hidden] {
  display: none;
}

.project-card {
  position: relative;
  width: 100%;
  min-width: 0;
  display: block;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
}

.project-card:nth-child(even) {
  margin-top: clamp(42px, 8vw, 140px);
}

.project-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 42%);
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.88);
  transform: scale(1.015);
  transition: filter 180ms ease, transform 260ms ease;
}

.project-card:hover .project-cover img,
.project-card:focus-visible .project-cover img {
  filter: saturate(1.04) contrast(1.06) brightness(1);
  transform: scale(1.035);
}

.project-card:hover .project-cover::after,
.project-card:focus-visible .project-cover::after {
  opacity: 0.64;
}

.project-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 6px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.62);
}

.project-card-caption span {
  display: block;
}

.project-card-kicker,
.project-card-meta {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.2;
}

.project-card-title {
  overflow-wrap: anywhere;
  font-size: clamp(24px, 3.3vw, 48px);
  font-weight: 780;
  line-height: 0.98;
}

.project-card-zh {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

.name-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.name-chip {
  border: 1px solid var(--line);
  padding: 12px 15px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}

.contact-section {
  min-height: 74vh;
  align-items: end;
}

.contact-line {
  display: inline-block;
  margin-top: 22px;
  color: var(--warm);
  font-size: 22px;
  line-height: 1.2;
}

.copyright {
  grid-column: 2;
  color: var(--soft);
  font-size: 13px;
}

.project-detail-page {
  min-height: 100vh;
  background: #030303;
}

body.detail-open .project-detail-page {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: auto;
}

.detail-shell {
  min-height: 100vh;
}

.detail-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 150px 54px 58px;
  overflow: hidden;
  isolation: isolate;
}

.detail-hero-image,
.detail-hero-shade {
  position: absolute;
  inset: 0;
}

.detail-hero-image {
  z-index: -2;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(0.86) contrast(1.08) brightness(0.7);
  transform: scale(1.04);
}

.detail-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.26) 56%, rgba(0, 0, 0, 0.7)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 38%, rgba(0, 0, 0, 0.9));
}

.detail-topline {
  position: absolute;
  left: 54px;
  right: 54px;
  top: 118px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.2;
}

.detail-topline a,
.detail-bottom-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.detail-topline a:hover,
.detail-topline a:focus-visible,
.detail-bottom-nav a:hover,
.detail-bottom-nav a:focus-visible {
  color: var(--warm);
}

.detail-copy {
  width: min(860px, 100%);
}

.detail-copy h1 {
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(25px, 4vw, 58px);
  font-weight: 780;
  line-height: 0.92;
}

.detail-zh {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.3;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 18px;
  margin: 34px 0 0;
}

.detail-meta div {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.detail-meta dt {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.2;
}

.detail-meta dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.detail-video-section {
  width: min(980px, calc(100% - 108px));
  margin: 0 auto clamp(34px, 6vw, 80px);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.46);
  aspect-ratio: 16 / 9;
}

.detail-video-section video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-still-flow {
  display: grid;
  gap: clamp(18px, 3vw, 42px);
  width: min(1180px, calc(100% - 108px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 112px) 0;
}

.detail-still {
  margin: 0;
}

.detail-still:nth-child(even) {
  width: 78%;
  margin-left: auto;
}

.detail-still img {
  display: block;
  width: 100%;
  background: #111;
}

.detail-bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 54px 40px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.detail-bottom-nav a:nth-child(2) {
  text-align: center;
}

.detail-bottom-nav a:nth-child(3) {
  text-align: right;
}

@media (max-width: 1100px) {
  .topbar {
    padding: 24px 30px 18px;
    gap: 20px;
  }

  .main-nav {
    gap: 22px;
  }

  .topbar-right {
    gap: 20px;
  }

  .hero,
  section {
    padding-left: 30px;
    padding-right: 30px;
  }

  .category-projects {
    gap: 30px;
  }

  .project-card:nth-child(even) {
    margin-top: 54px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 146px;
  }

  .topbar {
    min-height: var(--header-height);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 18px 12px;
  }

  .brand-lockup {
    order: 2;
    justify-self: center;
  }

  .brand-name {
    font-size: 30px;
  }

  .main-nav {
    order: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 0;
  }

  .main-nav a,
  .topbar-right {
    text-align: center;
    font-size: 12px;
  }

  .topbar-right {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding-top: 0;
  }

  .hero {
    min-height: 100svh;
    padding: 170px 18px 34px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content p {
    margin: 12px auto 24px;
    max-width: 310px;
    font-size: 13px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions a {
    min-width: 120px;
    padding: 11px 18px 10px;
  }

  .hero-progress {
    grid-template-columns: repeat(4, minmax(52px, 72px));
    margin-top: 58px;
  }

  section {
    padding: 78px 18px;
  }

  .partners-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .copyright {
    grid-column: auto;
  }

  .intro-copy h2,
  .partners-copy h2,
  .contact-copy h2 {
    font-size: 30px;
  }

  .intro-copy p,
  .contact-copy p {
    font-size: 16px;
  }

  .category-directory {
    grid-template-columns: 1fr;
  }

  .category-button {
    min-height: 126px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 20px;
    gap: 14px;
  }

  .category-button .category-label {
    font-size: 32px;
    line-height: 1.02;
  }

  .category-button .category-zh {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.28;
  }

  .category-state {
    grid-column: 2;
    font-size: 11px;
  }

  .category-projects {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px;
  }

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-cover {
    aspect-ratio: 3 / 4.15;
  }

  .project-card-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .project-card-title {
    font-size: 30px;
  }

  .project-card-meta {
    display: none;
  }

  .detail-hero {
    padding: 156px 18px 34px;
  }

  .detail-topline {
    left: 18px;
    right: 18px;
    top: 148px;
  }

  .detail-copy h1 {
    font-size: 22px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .detail-still-flow {
    width: calc(100% - 36px);
    padding: 36px 0;
  }

  .detail-still:nth-child(even) {
    width: 100%;
  }

  .detail-video-section {
    width: calc(100% - 36px);
    margin-bottom: 28px;
  }

  .detail-bottom-nav {
    grid-template-columns: 1fr;
    padding: 22px 18px 34px;
  }

  .detail-bottom-nav a,
  .detail-bottom-nav a:nth-child(2),
  .detail-bottom-nav a:nth-child(3) {
    text-align: left;
  }
}
