:root {
  --bg: #080808;
  --paper: #11110f;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.088);
  --ink: #f7f3e8;
  --muted: rgba(247, 243, 232, 0.62);
  --soft: rgba(247, 243, 232, 0.42);
  --line: rgba(255, 255, 255, 0.12);
  --dark: #080808;
  --dark-2: #11110f;
  --gold: #f6c84c;
  --mint: #70f0c2;
  --orange: #ff8a57;
  --purple: #b68cff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  cursor: default;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}

#app {
  position: relative;
  z-index: 1;
}

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

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

button {
  font: inherit;
}

.starfield {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.5;
  pointer-events: none;
}

.code-drift {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
}

.code-token {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: var(--token-color, rgba(247, 243, 232, 0.16));
  font-family: "SFMono-Regular", "Roboto Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: var(--size);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: var(--alpha);
  transform: translate3d(0, 0, 0) rotate(var(--rotate));
  animation: code-float var(--duration) linear infinite;
  animation-delay: var(--delay);
  text-shadow: 0 0 20px rgba(246, 200, 76, 0.08);
}

.cursor-follow {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(246, 200, 76, 0.38);
  border-radius: 50%;
  background: rgba(246, 200, 76, 0.08);
  color: var(--gold);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50px, -50px, 0);
  transition: opacity 180ms ease, width 180ms ease, height 180ms ease, background 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(8px);
}

.cursor-follow svg {
  position: absolute;
  left: 9px;
  top: 8px;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.cursor-follow.is-visible {
  opacity: 1;
}

.cursor-follow.is-hovering {
  width: 42px;
  height: 42px;
  background: rgba(246, 200, 76, 0.12);
  border-color: rgba(246, 200, 76, 0.62);
  color: var(--gold);
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 32px));
  height: 56px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.76);
  color: white;
  backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  transition: opacity 260ms ease, transform 260ms ease;
}

body.is-end-cover-active .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #050505;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 14px;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.nav-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-tabs a,
.lang-toggle,
.primary-link,
.ghost-link,
.back-link {
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-tabs a {
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.nav-tabs a:hover,
.nav-tabs a.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.lang-toggle {
  width: 44px;
  border: 0;
  cursor: pointer;
  color: #050505;
  background: white;
  font-weight: 800;
}

.section-dark {
  background: transparent;
  color: white;
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: block;
  padding: 86px max(26px, calc((100vw - 1320px) / 2)) 44px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 32%, rgba(246, 200, 76, 0.2), transparent 30%),
    radial-gradient(circle at 34% 78%, rgba(112, 240, 194, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.08), rgba(8, 8, 8, 0.88));
  pointer-events: none;
}

.hero-stage {
  position: absolute;
  inset: 74px max(18px, calc((100vw - 1320px) / 2)) 18px;
  z-index: 1;
  pointer-events: none;
  isolation: isolate;
}

.hero-asset {
  position: absolute;
  user-select: none;
  will-change: transform, opacity, filter;
  pointer-events: auto;
  opacity: 0;
  transform: var(--hero-from);
  animation: hero-layer-in 1600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-asset.is-motion-ready {
  animation: none;
  opacity: 1;
  transform: var(--hero-to);
  filter: var(--asset-filter, none);
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), filter 620ms ease;
}

.hero-asset.is-motion-ready:hover {
  transform: var(--hero-hover, var(--hero-to));
  filter: var(--asset-filter, none) brightness(1.06) saturate(1.05);
}

.hero-bg-panel {
  left: 50%;
  top: 13%;
  width: min(1280px, 98vw);
  height: min(50vw, 520px);
  object-fit: cover;
  border-radius: 28px;
  --hero-from: translate3d(-50%, 38px, 0) scale(0.98);
  --hero-to: translate3d(-50%, 0, 0) scale(1);
  --hero-hover: translate3d(-50%, -8px, 0) scale(1.015);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  animation-delay: 180ms;
}

.hero-title-art {
  left: 50%;
  top: 0;
  z-index: 4;
  width: min(1280px, 96vw);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
  --hero-from: translate3d(-50%, -28px, 0) scale(0.98);
  --hero-to: translate3d(-50%, 0, 0) scale(1);
  --hero-hover: translate3d(-50%, -8px, 0) scale(1.02);
  --asset-filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
  animation-delay: 560ms;
}

.hero-board-art {
  left: 1%;
  bottom: 4%;
  z-index: 2;
  width: min(860px, 65vw);
  --hero-from: translate3d(-54px, 46px, 0) rotate(-5deg) scale(0.92);
  --hero-to: translate3d(0, 0, 0) rotate(-5deg) scale(1);
  --hero-hover: translate3d(0, -14px, 0) rotate(-5deg) scale(1.035);
  --asset-filter: drop-shadow(0 36px 56px rgba(0, 0, 0, 0.3));
  filter: drop-shadow(0 36px 56px rgba(0, 0, 0, 0.3));
  animation-delay: 980ms;
}

.hero-contact-art {
  right: -2%;
  bottom: 6%;
  z-index: 4;
  width: min(520px, 38vw);
  --hero-from: translate3d(76px, 56px, 0) rotate(5deg) scale(0.9);
  --hero-to: translate3d(0, 0, 0) rotate(5deg) scale(1);
  --hero-hover: translate3d(-8px, -12px, 0) rotate(5deg) scale(1.045);
  --asset-filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.36));
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.36));
  animation-delay: 1360ms;
}

.hero-character-art {
  left: 32%;
  bottom: 0;
  z-index: 5;
  width: min(470px, 32vw);
  --hero-from: translate3d(-50%, 90px, 0) scale(0.88);
  --hero-to: translate3d(-50%, 0, 0) scale(1);
  --hero-hover: translate3d(-50%, -14px, 0) scale(1.045);
  --asset-filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.34));
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.34));
  animation-delay: 1760ms;
}

.hero-content {
  position: absolute;
  z-index: 6;
  left: max(24px, calc((100vw - 1320px) / 2));
  bottom: 56px;
  width: min(330px, calc(100vw - 52px));
  padding: 0;
}

.hero-intro-card {
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(8, 8, 8, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  animation: hero-copy-in 1200ms cubic-bezier(0.16, 1, 0.3, 1) 2260ms both;
}

.hero-content.reveal {
  opacity: 1;
  transform: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.25;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.38;
}

.hero-content p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.project-hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-link,
.ghost-link,
.back-link {
  padding: 0 18px;
  font-weight: 800;
  font-size: 14px;
}

.primary-link {
  background: var(--gold);
  color: #0b0903;
}

.ghost-link,
.back-link {
  border: 1px solid var(--line);
  color: white;
}

.primary-link:hover,
.ghost-link:hover,
.back-link:hover,
.project-card:hover {
  transform: translateY(-3px);
}

.page-band {
  padding: 86px max(24px, calc((100vw - 1120px) / 2));
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 28px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.intro-panel,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.intro-panel {
  padding: 24px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  align-content: space-between;
  overflow: hidden;
}

.profile-media {
  min-width: 0;
}

.portrait-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-2);
  aspect-ratio: 4 / 4.55;
  border: 1px solid var(--line);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 52%;
}

.intro-content {
  min-width: 0;
  overflow: hidden;
}

.role {
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
}

.bio {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  max-width: 52em;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-list a,
.contact-list span {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.contact-list a span,
.contact-list span span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: rgba(247, 243, 232, 0.9);
}

.info-stack {
  display: grid;
  gap: 22px;
}

.info-panel {
  padding: 22px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline div {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid rgba(246, 200, 76, 0.24);
}

.timeline time,
.timeline strong,
.timeline span {
  display: block;
}

.timeline time {
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
}

.timeline strong {
  margin-top: 6px;
}

.timeline span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tools-section {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tools-heading {
  margin-bottom: 14px;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}

.tools-heading .eyebrow,
.tools-heading h3 {
  margin-bottom: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tool-card {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  display: grid;
  place-items: center;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 10px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 200, 76, 0.5);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.tool-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

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

.tool-name {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-align: left;
}

.projects-section {
  padding: 86px max(24px, calc((100vw - 1320px) / 2)) 104px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.project-card {
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
}

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

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

.project-card:nth-child(4) {
  margin-top: 56px;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: rgba(246, 200, 76, 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.project-card-cover {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.project-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 220ms ease;
}

.project-card:hover .project-card-cover img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.project-card-copy {
  padding: 16px;
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.project-number {
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
}

.project-card h3 {
  margin: 10px 0 10px;
  color: white;
  font-size: 16px;
  line-height: 1.35;
}

.project-card-type {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.project-arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 800;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.project-card:hover .project-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.end-cover {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #030303;
}

.end-cover::before {
  content: none;
}

.end-cover::after {
  content: none;
}

.end-cover-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  isolation: isolate;
}

.end-asset {
  position: absolute;
  user-select: none;
  pointer-events: auto;
  will-change: transform, opacity, filter;
  opacity: 0;
  transform: var(--hero-from);
}

.end-cover.is-visible .end-asset {
  animation: hero-layer-in 1600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.end-asset.is-motion-ready {
  animation: none;
  opacity: 1;
  transform: var(--hero-to);
  filter: var(--asset-filter, none);
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), filter 620ms ease;
}

.end-asset.is-motion-ready:hover {
  transform: var(--hero-hover, var(--hero-to));
  filter: var(--asset-filter, none) brightness(1.08) saturate(1.04);
}

.end-ui-design {
  left: 50%;
  top: 75%;
  z-index: 1;
  width: min(580px, 28vw);
  --hero-from: translate3d(-50%, -28px, 0) scale(0.98);
  --hero-to: translate3d(-50%, 0, 0) scale(1);
  --hero-hover: translate3d(-50%, -8px, 0) scale(1.015);
  --asset-filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.36));
  animation-delay: 1480ms;
}

.end-thanks-en {
  left: 4.4%;
  top: 6.2%;
  z-index: 6;
  width: min(220px, 13vw);
  opacity: 0.52;
  --hero-from: translate3d(-28px, -14px, 0) scale(0.96);
  --hero-to: translate3d(0, 0, 0) scale(1);
  --hero-hover: translate3d(4px, -6px, 0) scale(1.02);
  --asset-filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
  animation-delay: 460ms;
}

.end-orbit {
  left: 50%;
  top: 60%;
  z-index: 4;
  width: min(1080px, 54vw);
  --hero-from: translate3d(-50%, 28px, 0) rotate(-5deg) scale(0.94);
  --hero-to: translate3d(-50%, 0, 0) rotate(-5deg) scale(1);
  --hero-hover: translate3d(-50%, -8px, 0) rotate(-5deg) scale(1.02);
  --asset-filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.12));
  animation-delay: 1180ms;
}

.end-board {
  left: 50%;
  top: 4%;
  z-index: 3;
  width: min(720px, 36vw);
  --hero-from: translate3d(-50%, -28px, 0) rotate(-4deg) scale(0.88);
  --hero-to: translate3d(-50%, 0, 0) rotate(-4deg) scale(1);
  --hero-hover: translate3d(-50%, -12px, 0) rotate(-4deg) scale(1.03);
  --asset-filter: drop-shadow(0 36px 62px rgba(0, 0, 0, 0.36));
  animation-delay: 820ms;
}

.end-thanks-zh {
  left: 50%;
  top: 61.5%;
  z-index: 6;
  width: min(620px, 32vw);
  --hero-from: translate3d(-50%, 28px, 0) scale(0.94);
  --hero-to: translate3d(-50%, 0, 0) scale(1);
  --hero-hover: translate3d(-50%, -10px, 0) scale(1.02);
  --asset-filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.45));
  animation-delay: 1360ms;
}

.end-summary {
  left: 4.4%;
  bottom: 7.2%;
  z-index: 6;
  width: min(460px, 22vw);
  --hero-from: translate3d(-38px, 26px, 0) scale(0.96);
  --hero-to: translate3d(0, 0, 0) scale(1);
  --hero-hover: translate3d(4px, -8px, 0) scale(1.02);
  --asset-filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
  animation-delay: 1820ms;
}

.end-years {
  right: 4.6%;
  bottom: 4.2%;
  z-index: 7;
  width: min(92px, 5.5vw);
  opacity: 0.52;
  --hero-from: translate3d(40px, 30px, 0) scale(0.9);
  --hero-to: translate3d(0, 0, 0) scale(1);
  --hero-hover: translate3d(-6px, -8px, 0) scale(1.04);
  --asset-filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
  animation-delay: 1940ms;
}

.end-continued {
  right: 4.8%;
  top: 6.2%;
  z-index: 7;
  width: min(92px, 5.5vw);
  opacity: 0.52;
  --hero-from: translate3d(38px, -14px, 0) scale(0.92);
  --hero-to: translate3d(0, 0, 0) scale(1);
  --hero-hover: translate3d(-4px, -6px, 0) scale(1.035);
  --asset-filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
  animation-delay: 2180ms;
}

.project-view {
  min-height: 100vh;
  background: transparent;
}

.project-hero {
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: 128px max(24px, calc((100vw - 1120px) / 2)) 68px;
}

.project-hero-copy h1 {
  font-size: 24px;
  line-height: 1.32;
  word-break: keep-all;
}

.project-hero-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.project-stats span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  font-size: 14px;
}

.project-page-toolbar {
  position: sticky;
  top: 18px;
  z-index: 24;
  width: min(1120px, calc(100vw - 32px));
  height: 56px;
  margin: 0 auto 22px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.page-rail {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  align-items: center;
}

.page-rail button {
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.page-rail button:hover,
.page-rail button.is-visible {
  color: #080808;
  background: var(--gold);
}

.project-pages {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 96px;
  display: grid;
  gap: 24px;
}

.project-actions {
  position: fixed;
  z-index: 18;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}

.project-action-button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-action-button:hover {
  transform: translateY(-2px);
  color: #080808;
  border-color: rgba(246, 200, 76, 0.8);
  background: var(--gold);
}

.portfolio-page {
  scroll-margin-top: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.portfolio-page img {
  width: 100%;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes hero-layer-in {
  0% {
    opacity: 0;
    transform: var(--hero-from);
    filter: blur(10px) saturate(0.9);
  }

  62% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: var(--hero-to);
    filter: var(--asset-filter, none);
  }
}

@keyframes hero-copy-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes code-float {
  0% {
    transform: translate3d(0, 14vh, 0) rotate(var(--rotate));
  }

  100% {
    transform: translate3d(var(--drift), -112vh, 0) rotate(calc(var(--rotate) + 8deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-asset,
  .end-cover.is-visible .end-asset,
  .hero-intro-card {
    animation: none;
    opacity: 1;
  }

  .hero-asset,
  .end-asset {
    transform: var(--hero-to);
    filter: var(--asset-filter, none);
  }

  .code-token {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card:nth-child(2),
  .project-card:nth-child(4) {
    margin-top: 32px;
  }

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

@media (max-width: 900px) {
  .topbar {
    top: 10px;
    width: calc(100vw - 18px);
  }

  .brand small {
    display: none;
  }

  .nav-tabs a {
    padding: 0 12px;
    font-size: 14px;
  }

  .profile-grid,
  .intro-panel,
  .tools-section,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    width: min(200px, 100%);
  }

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

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

  .project-card-copy {
    min-height: 0;
  }

  .hero {
    min-height: 720px;
    padding-top: 96px;
  }

  .hero-stage {
    inset: 86px 16px 170px;
  }

  .hero-bg-panel {
    top: 9%;
    width: 100%;
    height: 360px;
  }

  .hero-title-art {
    top: 0;
    width: 112vw;
  }

  .hero-board-art {
    left: -9%;
    bottom: 0;
    width: 104vw;
  }

  .hero-contact-art {
    right: -16%;
    bottom: 11%;
    width: 54vw;
  }

  .hero-character-art {
    left: 36%;
    bottom: 0;
    width: 46vw;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 28px;
    width: auto;
  }

  .end-cover {
    min-height: 760px;
  }

  .end-cover-stage {
    inset: 0 16px;
  }

  .end-ui-design {
    top: 73%;
    width: 46vw;
  }

  .end-thanks-en {
    left: 4%;
    top: 8%;
    width: 22vw;
  }

  .end-orbit {
    top: 60%;
    width: 76vw;
  }

  .end-board {
    top: 8%;
    width: 60vw;
  }

  .end-thanks-zh {
    top: 60%;
    width: 46vw;
  }

  .end-summary {
    left: 4%;
    bottom: 6%;
    width: 30vw;
  }

  .end-years {
    right: 4%;
    bottom: 6%;
    width: 8vw;
  }

  .end-continued {
    right: 4%;
    left: auto;
    top: 8%;
    bottom: auto;
    width: 9vw;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: auto;
    border-radius: 22px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    width: calc(100% - 58px);
  }

  .nav-tabs {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero,
  .page-band,
  .projects-section,
  .project-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-stage {
    inset: 98px 12px 246px;
  }

  .hero-bg-panel {
    top: 22px;
    height: 310px;
    border-radius: 22px;
  }

  .hero-title-art {
    top: 0;
    width: 140vw;
  }

  .hero-board-art {
    left: -26%;
    bottom: -2%;
    width: 132vw;
  }

  .hero-contact-art {
    right: -36%;
    bottom: 8%;
    width: 78vw;
  }

  .hero-character-art {
    left: 42%;
    bottom: -4%;
    width: 68vw;
  }

  .end-cover {
    min-height: 700px;
  }

  .end-cover-stage {
    inset: 0 12px;
  }

  .end-ui-design {
    top: 75%;
    width: 66vw;
  }

  .end-thanks-en {
    left: 2%;
    top: 9%;
    width: 30vw;
  }

  .end-orbit {
    top: 61%;
    width: 104vw;
  }

  .end-board {
    top: 13%;
    width: 88vw;
  }

  .end-thanks-zh {
    top: 61%;
    width: 62vw;
  }

  .end-summary {
    left: 2%;
    bottom: 7%;
    width: 46vw;
  }

  .end-years {
    right: 2%;
    bottom: 15%;
    width: 14vw;
  }

  .end-continued {
    right: 2%;
    left: auto;
    top: 9%;
    bottom: auto;
    width: 17vw;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-list {
    display: grid;
  }

  .project-page-toolbar {
    top: 10px;
    width: calc(100vw - 18px);
    height: auto;
    min-height: 56px;
    padding: 8px;
  }

  .page-rail {
    padding: 0;
  }

  .portfolio-page {
    scroll-margin-top: 82px;
  }

  .project-actions {
    top: auto;
    right: 14px;
    bottom: 14px;
    transform: none;
  }

  .project-action-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }
}

@media (pointer: coarse) {
  .cursor-follow {
    display: none;
  }
}
