:root {
  color-scheme: dark;
  --bg: #030303;
  --text: #f5f0eb;
  --muted: #aaa39d;
  --dim: #6d6660;
  --orange: #ff6a00;
  --amber: #ff9a38;
  --line: rgba(255, 106, 0, 0.28);
  --panel: rgba(14, 13, 12, 0.68);
  --shadow: 0 20px 70px rgba(255, 92, 0, 0.16);
  --content-left: clamp(76px, 8.5vw, 128px);
  --scene-top: clamp(62px, 8vh, 88px);
  --copy-top: calc(var(--scene-top) + clamp(70px, 7.2vh, 92px));
  --font-zh-title: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-zh-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-en-title: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-number: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-family: var(--font-zh-body);
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #030303;
  color: var(--text);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

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

h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}

h1,
.scene-heading h2,
.principles h3 {
  font-family: var(--font-zh-body);
  font-weight: 400;
}

.eyebrow,
.chapter-name,
.project-card h3,
.closing-copy h2,
.scroll-hint,
.primary-btn,
.round-cta {
  font-family: var(--font-en-title);
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 clamp(22px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.78), rgba(3, 3, 3, 0));
  backdrop-filter: blur(10px);
}

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

.brand {
  gap: 12px;
  font-weight: 700;
  font-family: var(--font-zh-title);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--orange);
  background: rgba(255, 106, 0, 0.08);
  font-size: 13px;
}

.nav {
  gap: clamp(18px, 3vw, 36px);
  color: rgba(245, 240, 235, 0.72);
  font-size: 14px;
}

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

.scroll-cinema {
  position: relative;
  height: 400vh;
  height: 400dvh;
  background: #030303;
}

.sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  background: #020202;
}

.stage-backdrop,
.sequence-canvas,
.fallback-frame,
.grain {
  position: absolute;
  inset: 0;
}

.sequence-canvas,
.fallback-frame {
  width: 100%;
  height: 100%;
}

.sequence-canvas {
  z-index: 1;
  opacity: 0;
  transform: translate3d(calc(var(--parallax-x, 0) * -18px), calc(var(--parallax-y, 0) * -10px), 0);
  transition: opacity 260ms ease;
}

.sequence-canvas.is-ready {
  opacity: 1;
}

.fallback-frame {
  object-fit: cover;
  object-position: center;
  transform: scale(0.86);
}

.stage-backdrop::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 32%, transparent 67%, rgba(0, 0, 0, 0.64)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56));
  pointer-events: none;
}

.orbital-glow {
  position: absolute;
  z-index: 2;
  width: min(62vw, 860px);
  aspect-ratio: 1;
  left: 52%;
  top: 45%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 106, 0, 0.22), transparent 35%),
    repeating-radial-gradient(circle, rgba(255, 106, 0, 0.18) 0 1px, transparent 1px 22px);
  mix-blend-mode: screen;
  opacity: 0.18;
  transform: translate3d(calc(-50% + var(--parallax-x, 0) * 28px), calc(-50% + var(--parallax-y, 0) * 18px), 0) rotate(calc(var(--cinema-progress, 0) * 28deg));
  pointer-events: none;
}

.grain {
  z-index: 5;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  pointer-events: none;
}

.section-index {
  position: absolute;
  z-index: 12;
  left: calc(var(--content-left) - 10px);
  top: calc(var(--scene-top) + 18px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: end;
  color: var(--muted);
  pointer-events: none;
}

.chapter-number {
  font-family: var(--font-number);
  color: rgba(245, 240, 235, 0.68);
  font-size: clamp(44px, 4.6vw, 66px);
  line-height: 0.9;
  font-weight: 300;
}

.chapter-name {
  padding-top: 0;
  max-width: 220px;
  font-family: var(--font-number);
  font-size: 18.9px;
  line-height: 1.18;
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.68);
}

.chapter-name span {
  display: block;
  font-weight: 300;
}

.chapter-name [data-chapter-zh] {
  margin-top: 4px;
  font-family: var(--font-number);
  font-weight: 300;
  text-transform: none;
}

.scene {
  position: absolute;
  z-index: 10;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 220ms ease, transform 360ms ease;
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-size: clamp(16px, 1.28vw, 21px);
  line-height: 1.3;
}

.hero-copy {
  position: absolute;
  left: var(--content-left);
  top: calc(var(--copy-top) + 34px);
  width: min(420px, 38vw);
}

h1 {
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: 1.15;
  font-weight: 400;
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.28vw, 21px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 34px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 106, 0, 0.72);
  border-radius: 10px;
  color: var(--orange);
  background: rgba(255, 106, 0, 0.08);
  box-shadow: 0 0 28px rgba(255, 106, 0, 0.12);
  cursor: pointer;
}

.scroll-hint {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.scroll-hint::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 28px;
  margin-right: 8px;
  background: url("./assets/scroll-down.png") center / contain no-repeat;
  opacity: 0.7;
  vertical-align: -8px;
}

.ability-stack {
  position: absolute;
  top: 12vh;
  right: clamp(420px, 43vw, 650px);
  display: grid;
  gap: 10px;
  width: 150px;
}

.ability-stack article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(12px);
}

.ability-stack span,
.card-icon,
.principles span {
  color: var(--orange);
}

.ability-stack p {
  color: rgba(245, 240, 235, 0.82);
  font-size: 11px;
  line-height: 1.35;
}

.quote-card {
  position: absolute;
  right: clamp(48px, 6vw, 92px);
  top: 22vh;
  width: min(340px, 28vw);
  min-height: 168px;
  padding: 28px 34px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  background: rgba(12, 9, 8, 0.6);
  box-shadow: var(--shadow);
}

.quote-mark {
  display: block;
  color: var(--orange);
  font-size: 32px;
  line-height: 1;
}

.quote-card p {
  margin-top: 10px;
  color: rgba(245, 240, 235, 0.78);
  line-height: 1.9;
}

.signature {
  display: block;
  margin-top: 18px;
  color: var(--orange);
  font-family: "Segoe Script", cursive;
  text-align: right;
}

.scene-heading {
  position: absolute;
  left: var(--content-left);
  top: var(--copy-top);
  width: min(360px, 28vw);
}

.scene-heading.compact {
  width: min(270px, 22vw);
}

.scene-02 .scene-heading,
.scene-03 .scene-heading,
.scene-04 .scene-heading {
  top: calc(var(--copy-top) + 62px);
}

.scene-04 .scene-heading {
  left: calc(var(--content-left) - 10px);
}

.scene-03 .scene-heading {
  width: min(620px, 48vw);
}

.scene-03 .scene-heading h2 {
  white-space: nowrap;
}

.scene-heading h2 {
  color: rgba(245, 240, 235, 0.8);
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.22;
  font-weight: 400;
}

.scene-heading span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 22px 0 18px;
  background: var(--orange);
}

.scene-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.scene-02 .scene-heading p {
  font-size: clamp(16px, 1.28vw, 21px);
}

.timeline-line {
  position: absolute;
  left: 40%;
  right: 8%;
  bottom: 25vh;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.34), rgba(255, 106, 0, 0.85));
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.45);
}

.timeline-cards {
  position: absolute;
  left: 49%;
  right: 6%;
  top: calc(21vh + 18px);
  display: grid;
  grid-template-columns: 140px 152px 210px;
  gap: 22px;
  align-items: start;
}

.timeline-cards article,
.project-card {
  border: 1px solid rgba(255, 106, 0, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
}

.timeline-cards article {
  min-height: 154px;
  padding: 22px 20px;
  border-radius: 10px;
}

.timeline-cards article:nth-child(2) {
  margin-top: 26px;
}

.timeline-cards article:nth-child(3) {
  margin-top: 54px;
}

.timeline-cards time {
  font-family: var(--font-number);
  display: block;
  margin-bottom: 15px;
  color: rgba(245, 240, 235, 0.86);
  font-size: 13px;
}

.timeline-cards h3,
.project-card h3,
.principles h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 520;
}

.timeline-cards article:nth-child(2) h3 {
  gap: 4px;
}

.timeline-cards h3 {
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  border-radius: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.brand-icon.weibo {
  border-radius: 8px;
}

.brand-icon.weibo img {
  transform-origin: left center;
  transform: scale(0.85);
}

.brand-icon.alibaba {
  width: 87px;
  height: 51px;
  flex-basis: 87px;
  border-radius: 0;
}

.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-icon.netease img {
  transform: translateY(3px) scale(0.95);
}

.brand-icon.alibaba img {
  object-fit: contain;
}

.timeline-cards p,
.project-card p,
.principles p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.project-grid {
  position: absolute;
  left: var(--content-left);
  top: calc(var(--copy-top) + 232px);
  width: min(760px, 56vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.project-card {
  min-height: 132px;
  padding: 14px 16px;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
  color: var(--orange);
}

.project-card h3 {
  min-width: 0;
  margin-bottom: 0;
  color: var(--orange);
  font-family: var(--font-number);
  font-size: clamp(21px, 1.5vw, 27px);
  font-weight: 300;
  line-height: 1.2;
}

.project-card:nth-child(3),
.project-card:nth-child(4) {
  transform: none;
}

.card-icon {
  display: inline-flex;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin-bottom: 0;
  line-height: 1;
}

.card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 106, 0, 0.5));
}

.card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: var(--orange);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 106, 0, 0.45));
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--orange);
  font-size: 13px;
}

.project-more img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.principles {
  position: absolute;
  left: clamp(22px, 4vw, 70px);
  bottom: calc(14vh - 18px);
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 18px;
  width: min(660px, 48vw);
}

.principles article {
  min-height: 132px;
  padding: 20px 18px;
  border-right: 1px solid rgba(255, 106, 0, 0.18);
  background: rgba(0, 0, 0, 0.12);
}

.principles span {
  display: block;
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1;
}

.principles h3 {
  color: var(--orange);
  font-size: 14px;
}

.principles p {
  font-size: 12px;
}

.closing-copy {
  position: absolute;
  right: clamp(28px, 4vw, 72px);
  top: calc(20vh + 18px);
  width: min(330px, 24vw);
}

.closing-copy h2 {
  font-family: var(--font-number);
  color: var(--orange);
  font-size: clamp(32px, 2.8vw, 46px);
  line-height: 1.12;
  font-weight: 300;
}

.closing-copy p {
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
}

.contact-trigger {
  margin-top: 24px;
  border: 1px solid rgba(255, 106, 0, 0.72);
  font: inherit;
  font-family: var(--font-en-title);
}

.contact-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  z-index: 18;
  width: max-content;
  min-width: 326px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 106, 0, 0.34);
  border-radius: 10px;
  color: rgba(245, 240, 235, 0.86);
  background: rgba(10, 8, 7, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.32), 0 0 24px rgba(255, 106, 0, 0.12);
}

.contact-popover p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.85;
  white-space: nowrap;
}

.contact-popover p + p {
  margin-top: 2px;
}

.copy-btn {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 106, 0, 0.42);
  border-radius: 6px;
  color: var(--orange);
  background: rgba(255, 106, 0, 0.08);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tool-credits {
  position: absolute;
  right: clamp(28px, 4vw, 72px);
  bottom: clamp(64px, 8vh, 92px);
  z-index: 11;
  display: grid;
  gap: 8px;
  color: rgba(245, 240, 235, 0.56);
  font-family: var(--font-en-title);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.tool-credits p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
}

.tool-credits strong {
  color: rgba(245, 240, 235, 0.82);
  font-weight: 500;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 18px;
  overflow: hidden;
  opacity: 1;
}

.tool-icon img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.progress-rail {
  position: absolute;
  z-index: 14;
  right: 24px;
  top: 50%;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.progress-dot.is-active {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.85);
}

@media (max-width: 1100px) {
  .ability-stack,
  .quote-card {
    display: none;
  }

  .hero-copy,
  .scene-heading,
  .project-grid,
  .principles,
  .closing-copy,
  .timeline-cards {
    left: 24px;
    right: 24px;
    width: auto;
  }

  .timeline-cards {
    top: auto;
    bottom: 12vh;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid {
    top: 34vh;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card:nth-child(3),
  .project-card:nth-child(4) {
    transform: none;
  }

  .closing-copy {
    top: auto;
    bottom: 13vh;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 58px;
    padding: 0 18px;
  }

  .nav {
    display: none;
  }

  .sticky-stage {
    min-height: 660px;
  }

  .section-index {
    top: 76px;
    left: 18px;
    gap: 12px;
  }

  .hero-copy,
  .scene-heading {
    left: 18px;
    top: 144px;
  }

  .chapter-number {
    font-size: 38px;
  }

  h1,
  .scene-heading h2,
  .closing-copy h2 {
    font-size: 32px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .timeline-cards,
  .project-grid,
  .principles {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-cards {
    bottom: 7vh;
  }

  .timeline-cards article {
    min-height: auto;
    padding: 14px 16px;
  }

  .timeline-cards article:nth-child(n) {
    margin-top: 0;
  }

  .project-grid {
    top: 32vh;
  }

  .project-card {
    min-height: 126px;
    padding: 16px;
  }

  .project-card:nth-child(4) {
    display: none;
  }

  .card-icon {
    margin-bottom: 8px;
    font-size: 26px;
  }

  .project-card a {
    margin-top: 8px;
  }

  .principles {
    bottom: 8vh;
  }

  .principles article {
    min-height: auto;
    padding: 12px 0;
  }

  .closing-copy {
    bottom: 12vh;
  }

  .progress-rail {
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
