:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.4);
  --soft: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Space Mono", "PingFang SC", "Microsoft YaHei", monospace;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site {
  min-height: 100vh;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.site-ready .navbar {
  opacity: 1;
  pointer-events: auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-pill {
  height: 48px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  transition: background 0.25s, width 0.4s cubic-bezier(0.35, 0.28, 0.355, 1);
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-logo {
  padding: 0 20px;
  gap: 0.6rem;
  color: #fff;
  white-space: nowrap;
}

.logo-wrap {
  display: inline-flex;
}

.logo-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-logo-text {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-menu {
  width: 48px;
  overflow: hidden;
}

.nav-open .nav-menu {
  width: 290px;
}

.nav-burger {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 14px;
  display: block;
}

.nav-open .nav-burger {
  width: 36px;
  height: 36px;
  margin-left: 0.4rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.nav-burger span:nth-child(1) {
  top: calc(50% - 5px);
  transform: translateX(-50%);
}

.nav-burger span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-burger span:nth-child(3) {
  top: calc(50% + 5px);
  transform: translateX(-50%);
}

.nav-open .nav-burger span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-open .nav-burger span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.nav-open .nav-burger span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0 0.7rem;
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.35s 0.05s, transform 0.35s 0.05s;
  white-space: nowrap;
}

.nav-open .nav-links {
  opacity: 1;
  transform: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.download-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 24px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}

.download-pill:hover {
  background: #e2e2e6;
  transform: scale(1.03);
}

.download-pill i {
  font-size: 1rem;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.05;
  pointer-events: none;
}

.watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 50px));
  font-family: "Anton SC", sans-serif;
  font-size: clamp(120px, 30vw, 521px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -4px;
  opacity: 0.1;
  background: radial-gradient(circle, rgba(142, 127, 148, 0) 0%, #8e7f94 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5.5rem 1rem 2.5rem;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-h1 {
  font-size: clamp(40px, 10vw, 100px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-h1-right {
  text-align: left;
}

.hero-line {
  display: inline-block;
  min-width: 1ch;
}

.hero-desc {
  max-width: 22rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.7;
}

.hero-fade {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.site-ready .hero-fade {
  opacity: 1;
  transform: none;
}

.cinema {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background: #000;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(#010103, transparent);
  z-index: 2;
  pointer-events: none;
}

.cinema-inner {
  position: relative;
  z-index: 3;
  max-width: 960px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 400px;
  will-change: transform, opacity;
}

.cinema-text {
  max-width: 900px;
  font-size: clamp(22px, 5vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  user-select: none;
}

.metrics {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 8rem 1.5rem;
  text-align: center;
}

.section-kicker {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.metric-value {
  font-size: clamp(48px, 10vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-weight: 400;
}

.metric-label {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.works {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8rem 1.5rem 9rem;
  background: #000;
}

.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-title {
  font-size: clamp(36px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 400;
}

.works-count {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.works-jump {
  position: sticky;
  top: 80px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.8rem 0.5rem;
  margin: 0 -1rem 2rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.works-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.works-jump a:hover,
.works-jump a.active {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.work-section {
  scroll-margin-top: 130px;
  padding-top: 3rem;
}

.work-section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid #fff;
}

.work-section-title {
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 400;
  color: #fff;
}

.work-section-count {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: 2.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.work-row.visible {
  opacity: 1;
  transform: none;
}

.work-row--flip .work-media {
  order: 0;
}

.work-media {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.media-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
}

.slide.active {
  display: flex;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-counter {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  z-index: 3;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.nav-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s;
}

.nav-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.work-info {
  min-width: 0;
}

.work-index {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.work-title {
  margin: 0.7rem 0 0.8rem;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
}

.work-desc {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 1.75;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.work-tag {
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.tech {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
  display: flex;
}

.tech-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.tech-top {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.tech-copy {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.7;
}

.tech-spacer {
  flex: 1;
  min-height: 3rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.tech-card {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.tech-card h3 {
  margin-bottom: 0.6rem;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.tech-card p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  line-height: 1.6;
}

.arch {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 8rem 1.5rem;
}

.arch-inner {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.arch-head .section-title {
  margin-bottom: 2rem;
}

.arch-head p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  line-height: 1.8;
}

.layer-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 5rem;
}

.layer-card {
  width: min(420px, 100%);
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.layer-num {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.layer-card > span:last-child {
  font-size: 16px;
  color: #fff;
  font-weight: 400;
}

.footer {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
  background: #000;
  overflow: hidden;
}

.footer-video {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.footer-video .bg-video {
  position: absolute;
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.4rem;
}

.logo-small {
  width: 18px;
  height: 18px;
}

.footer-copy {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

.footer-download {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

@media (min-width: 640px) {
  .navbar {
    padding: 0 1.5rem;
  }

  .hero-content {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }

  .hero-h1-right {
    text-align: right;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
  }

  .work-row--flip .work-media {
    order: 2;
  }

  .tech-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

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

  .footer-video {
    min-height: auto;
  }

  .footer-info {
    padding: 4rem;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .navbar {
    height: 64px;
  }

  .nav-pill {
    height: 40px;
    border-radius: 10px;
  }

  .nav-menu {
    width: 44px;
  }

  .nav-open .nav-menu {
    width: 100%;
    max-width: calc(100vw - 2rem);
  }

  .nav-open .nav-logo {
    display: none;
  }

  .nav-logo {
    padding: 0 14px;
  }

  .nav-logo-text {
    font-size: 14px;
  }

  .nav-burger {
    width: 44px;
    height: 40px;
  }

  .nav-open .nav-burger {
    width: 34px;
    height: 34px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .download-pill {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .watermark {
    font-size: clamp(96px, 24vw, 180px);
  }

  .works-jump {
    top: 64px;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .work-media {
    gap: 0.4rem;
  }

  .nav-btn {
    width: 34px;
    height: 34px;
  }
}
