:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: rgba(18, 20, 24, 0.76);
  --panel-solid: #111318;
  --text: #f4f7fb;
  --muted: #9ca7b7;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #38f5ff;
  --green: #a8ff60;
  --coral: #ff6b57;
  --violet: #ad8cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 10%, rgba(56, 245, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(255, 107, 87, 0.11), transparent 26%),
    linear-gradient(135deg, #08090b 0%, #0e1012 48%, #08090b 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(56, 245, 255, 0.07) 46%, transparent 56%);
  opacity: 0.55;
  z-index: -1;
}

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

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

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

.site-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(56, 245, 255, 0.65);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 12px;
  box-shadow: inset 0 0 18px rgba(56, 245, 255, 0.14);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a,
.top-action,
.primary-btn,
.secondary-btn,
.filter-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a {
  padding: 0 13px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.top-action,
.primary-btn {
  border: 1px solid rgba(56, 245, 255, 0.55);
  background: linear-gradient(135deg, rgba(56, 245, 255, 0.18), rgba(168, 255, 96, 0.12));
  color: #eaffff;
  box-shadow: 0 0 26px rgba(56, 245, 255, 0.12);
}

.top-action {
  padding: 0 15px;
}

.section-panel {
  padding: 112px clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 42px;
  overflow: hidden;
  background: #050608;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg canvas,
.hero-bg__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg canvas {
  display: block;
  opacity: 0.96;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 245, 255, 0.28), transparent 20%),
    radial-gradient(circle at 78% 28%, rgba(255, 107, 87, 0.16), transparent 24%),
    radial-gradient(circle at 65% 72%, rgba(168, 255, 96, 0.11), transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(17, 121, 255, 0.08), transparent 42%);
  filter: blur(26px);
  animation: bg-float 18s ease-in-out infinite alternate;
  opacity: 0.95;
  pointer-events: none;
}

.hero-bg__veil {
  background:
    linear-gradient(180deg, rgba(3, 4, 6, 0.16) 0%, rgba(3, 4, 6, 0.54) 52%, rgba(3, 4, 6, 0.78) 100%),
    linear-gradient(120deg, rgba(56, 245, 255, 0.08) 0%, transparent 30%, transparent 70%, rgba(255, 107, 87, 0.1) 100%);
  mix-blend-mode: normal;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.hero-signature {
  position: absolute;
  top: 96px;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.38);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 28px rgba(56, 245, 255, 0.08);
  pointer-events: none;
}

.hero-signature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(56, 245, 255, 0.22), transparent);
  opacity: 0.55;
  animation: signature-sweep 6s linear infinite;
}

.signature-line {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 245, 255, 0), rgba(56, 245, 255, 0.9), rgba(255, 255, 255, 0));
}

.signature-text,
.signature-meta {
  position: relative;
  z-index: 1;
  color: #dffcff;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.signature-meta {
  color: rgba(244, 247, 251, 0.76);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.9;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

.hero-lede,
.section-head p,
.contact-copy p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
}

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

.primary-btn,
.secondary-btn {
  min-width: 128px;
  padding: 0 22px;
  font-weight: 700;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.scan-frame {
  position: relative;
  height: min(62vh, 620px);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(56, 245, 255, 0.12);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
}

.scan-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.05);
}

.scan-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56, 245, 255, 0.38);
  border-radius: inherit;
  pointer-events: none;
}

.scan-line {
  position: absolute;
  inset-inline: 0;
  top: -12%;
  height: 22%;
  background: linear-gradient(to bottom, transparent, rgba(56, 245, 255, 0.24), transparent);
  animation: scan 5s linear infinite;
}

.floating-stat {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(16px);
}

.floating-stat span {
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.floating-stat strong {
  color: var(--text);
}

.stat-one {
  left: -26px;
  bottom: 54px;
}

.stat-two {
  right: -18px;
  top: 52px;
}

.profile-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.profile-strip div {
  padding: 22px;
  background: rgba(14, 16, 19, 0.82);
}

.profile-strip span,
.contact-list span,
.time-node span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.profile-strip strong {
  font-size: 16px;
}

.section-head {
  margin-bottom: 34px;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ability-item,
.time-node,
.contact-list a,
.contact-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.ability-item {
  min-height: 220px;
  padding: 24px;
}

.ability-item span {
  color: var(--green);
  font-family: Consolas, "SFMono-Regular", monospace;
}

.ability-item p,
.time-node p {
  margin-bottom: 0;
  color: var(--muted);
}

.filter-bar {
  position: sticky;
  top: 90px;
  z-index: 10;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(18px);
}

.filter-btn {
  flex: 0 0 auto;
  border: 1px solid transparent;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(56, 245, 255, 0.5);
  background: rgba(56, 245, 255, 0.13);
  color: var(--text);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.work-card {
  grid-column: span 4;
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.work-card.is-hidden {
  display: none;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: rgba(56, 245, 255, 0.6);
  outline: none;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(56, 245, 255, 0.28), transparent 30%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.work-card:hover::before {
  opacity: 1;
}

.work-media {
  position: absolute;
  inset: 0;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.work-card:hover .work-media img {
  transform: scale(1.08);
  filter: brightness(0.75) saturate(1.12);
}

.work-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 88px 22px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  transform: translateZ(42px);
}

.work-info span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(8, 9, 11, 0.62);
  color: var(--cyan);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.work-info h3 {
  margin-bottom: 8px;
}

.work-info p {
  margin: 0;
  color: #c8d1dc;
  font-size: 14px;
}

.drift-wall {
  position: relative;
  width: 100%;
  height: clamp(480px, 62vh, 680px);
  overflow: hidden;
  perspective: var(--dw-perspective, 1200px);
  perspective-origin: 50% 50%;
  contain: layout paint;
  --dw-tile-w: 230px;
  --dw-tile-h: 154px;
  --dw-gap: 18px;
  --dw-radius: 8px;
  --dw-lift: 64px;
  --dw-dim: 0.55;
  --dw-gray: 0;
  --dw-overlay: #05070d;
  --dw-edge: 38%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(56, 245, 255, 0.13), transparent 28%),
    radial-gradient(circle at 76% 64%, rgba(168, 255, 96, 0.08), transparent 24%),
    rgba(3, 4, 8, 0.72);
  -webkit-mask-image:
    radial-gradient(ellipse 82% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%),
    linear-gradient(to top, #000 var(--dw-edge), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 82% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%),
    linear-gradient(to top, #000 var(--dw-edge), transparent 100%);
  mask-composite: intersect;
}

.drift-wall__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: row;
  transform-style: preserve-3d;
  cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}

.drift-wall__col {
  position: relative;
  width: calc(var(--dw-tile-w) + var(--dw-gap));
  transform-style: preserve-3d;
}

.drift-wall__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.drift-wall__tile {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--dw-tile-h) + var(--dw-gap));
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
  transform-style: preserve-3d;
  cursor: pointer;
}

.drift-wall__inner {
  position: absolute;
  inset: calc(var(--dw-gap) / 2);
  display: block;
  border-radius: var(--dw-radius);
  overflow: hidden;
  background: #0b0b12;
  opacity: var(--dw-dim);
  transform: translateZ(0);
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.drift-wall__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(var(--dw-gray)) saturate(0.92);
  transition: filter 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.drift-wall__overlay {
  position: absolute;
  inset: 0;
  background: var(--dw-overlay);
  opacity: 0.42;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.drift-wall__caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.drift-wall__tile.is-active .drift-wall__inner,
.drift-wall__tile:focus-visible .drift-wall__inner {
  opacity: 1;
  transform: translateZ(var(--dw-lift));
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(56, 245, 255, 0.42);
}

.drift-wall__tile.is-active img,
.drift-wall__tile:focus-visible img {
  filter: grayscale(0) saturate(1.08);
  transform: scale(1.04);
}

.drift-wall__tile.is-active .drift-wall__overlay,
.drift-wall__tile:focus-visible .drift-wall__overlay {
  opacity: 0;
}

.drift-wall__tile.is-active .drift-wall__caption,
.drift-wall__tile:focus-visible .drift-wall__caption {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .drift-wall__plane,
  .drift-wall__track {
    will-change: auto;
  }
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.foldcraft-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  background: #000;
  font-family: "Geist", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.foldcraft-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0.48;
  pointer-events: none;
}

.foldcraft-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.foldcraft-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  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: 82px 82px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 88%);
  pointer-events: none;
}

.foldcraft-stage .section-head,
.foldcraft-stage .resume-layout {
  position: relative;
  z-index: 1;
}

.foldcraft-stage .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-family: "Geist", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 400;
  text-transform: none;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

.foldcraft-stage h2 {
  max-width: 900px;
  color: #fff;
  font-size: clamp(58px, 10vw, 132px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  animation: fadeSlideUp 0.8s ease 0.4s both;
}

.foldcraft-stage .time-node,
.foldcraft-stage .tool-cloud {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 9, 11, 0.46);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 30px 80px rgba(0, 0, 0, 0.28);
}

.foldcraft-stage .time-node:nth-child(1) {
  animation: fadeSlideUp 0.8s ease 0.7s both;
}

.foldcraft-stage .time-node:nth-child(2) {
  animation: fadeSlideUp 0.8s ease 0.85s both;
}

.foldcraft-stage .tool-cloud {
  min-height: 318px;
  align-content: flex-start;
  animation: fadeSlideUp 0.8s ease 1s both;
}

.foldcraft-stage .tool-cloud span {
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  animation: fadeSlideUp 0.7s ease both;
}

.foldcraft-stage .tool-cloud span:nth-child(1) { animation-delay: 1.08s; }
.foldcraft-stage .tool-cloud span:nth-child(2) { animation-delay: 1.14s; }
.foldcraft-stage .tool-cloud span:nth-child(3) { animation-delay: 1.2s; }
.foldcraft-stage .tool-cloud span:nth-child(4) { animation-delay: 1.26s; }
.foldcraft-stage .tool-cloud span:nth-child(5) { animation-delay: 1.32s; }
.foldcraft-stage .tool-cloud span:nth-child(6) { animation-delay: 1.38s; }
.foldcraft-stage .tool-cloud span:nth-child(7) { animation-delay: 1.44s; }
.foldcraft-stage .tool-cloud span:nth-child(8) { animation-delay: 1.5s; }

.foldcraft-stage .tool-cloud span:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
}

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

.time-node {
  padding: 24px;
}

.time-node h3 {
  margin-bottom: 8px;
}

.tool-cloud {
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.56);
}

.tool-cloud span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  padding: 0 14px;
  color: #dfe8f2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 54px;
}

.contact-copy h2 {
  max-width: 820px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a,
.contact-list div {
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 255, 96, 0.45);
}

.contact-list strong {
  font-size: clamp(17px, 2vw, 22px);
  word-break: break-word;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 24px;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: min(1120px, 100%);
  height: min(92vh, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #0b0c0f;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 9, 11, 0.86);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.modal-info {
  position: relative;
  padding: 22px 70px 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-info span {
  color: var(--green);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.modal-info h3 {
  margin: 6px 0;
}

.modal-info p {
  margin: 0;
  color: var(--muted);
}

.modal-size-toggle {
  position: absolute;
  top: 18px;
  right: 70px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(56, 245, 255, 0.36);
  border-radius: 6px;
  background: rgba(56, 245, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.modal-size-toggle:hover,
.modal-size-toggle[aria-pressed="true"] {
  border-color: rgba(56, 245, 255, 0.7);
  background: rgba(56, 245, 255, 0.16);
}

.modal-body {
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    #07080a;
  background-size: 24px 24px;
}

.modal-body img {
  width: auto;
  max-width: min(100%, 1400px);
  height: auto;
  margin: 0 auto;
  image-rendering: auto;
  cursor: zoom-in;
}

.modal.is-native-size .modal-body {
  display: block;
}

.modal.is-native-size .modal-body img {
  max-width: none;
  min-width: 0;
  cursor: zoom-out;
}

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

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

@keyframes scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(620%);
  }
}

@keyframes bg-float {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.06);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signature-sweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@media (min-width: 1120px) {
  .work-card:nth-child(7n + 1),
  .work-card:nth-child(7n + 5) {
    grid-column: span 5;
  }

  .work-card:nth-child(7n + 2),
  .work-card:nth-child(7n + 6) {
    grid-column: span 3;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .resume-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .profile-strip,
  .ability-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 10px;
    height: auto;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 10px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    padding: 0 8px;
  }

  .top-action {
    min-width: 84px;
  }

  .section-panel {
    padding: 88px 16px;
  }

  .hero {
    padding-top: 148px;
  }

  .hero-signature {
    top: 84px;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 0;
    padding: 12px 14px;
  }

  .signature-line {
    width: 100%;
  }

  .signature-meta {
    display: none;
  }

  .scan-frame {
    min-height: 320px;
    height: min(76vw, 380px);
    transform: none;
  }

  .floating-stat {
    position: relative;
    inset: auto;
    margin-top: 12px;
    min-width: 0;
  }

  .filter-bar {
    top: 112px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .work-card {
    grid-column: span 12;
    min-height: 360px;
  }

  .modal {
    padding: 10px;
  }

  .modal-panel {
    height: 94vh;
  }

  .modal-info {
    padding-right: 22px;
    padding-bottom: 64px;
  }

  .modal-size-toggle {
    top: auto;
    right: 22px;
    bottom: 16px;
  }

  .modal-body {
    padding: 14px;
  }
}

.topbar.foldcraft-nav {
  z-index: 30;
  width: min(1440px, calc(100% - 48px));
  height: auto;
  padding: 18px 18px;
  gap: 18px;
  align-items: center;
  background: rgba(6, 7, 10, 0.68);
  backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.1);
}

.foldcraft-brand {
  color: #fff;
  font-family: "Geist", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.desktop-links {
  display: none;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}

.desktop-links a {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Geist", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.desktop-talk,
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  color: #050608;
  font-family: "Geist", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.desktop-talk {
  padding: 10px 20px;
}

.menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:active {
  transform: scale(0.9);
}

.menu-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.3s ease, opacity 0.3s ease, scale 0.3s ease;
}

.icon-menu {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.menu-toggle.is-open .icon-menu {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.menu-toggle.is-open .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(24px);
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
  height: 100vh;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__inner {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s;
}

.mobile-menu.is-open .mobile-menu__inner {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__inner a {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Geist", "Microsoft YaHei", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mobile-cta {
  width: fit-content;
  margin-top: 8px;
  padding: 14px 26px;
  font-size: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.foldcraft-stage.section-panel {
  padding: 0;
}

.foldcraft-stage {
  min-height: 100vh;
  padding-top: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #000;
  isolation: isolate;
  font-family: "Geist", "Microsoft YaHei", sans-serif;
}

.foldcraft-stage::before,
.foldcraft-stage::after {
  content: none;
}

.galaxy-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#galaxyCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.foldcraft-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.foldcraft-stage__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100vh - 92px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px clamp(24px, 4vw, 64px) 40px;
}

.foldcraft-copy {
  max-width: 54rem;
}

.foldcraft-badge {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: 400;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

.foldcraft-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: fadeSlideUp 0.8s ease 0.4s both;
}

.foldcraft-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 40rem;
}

.foldcraft-bottom p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  animation: fadeSlideUp 0.8s ease 0.7s both;
}

.foldcraft-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: #050608;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease;
  animation: fadeSlideUp 0.8s ease 0.9s both;
}

.foldcraft-cta svg {
  width: 16px;
  height: 16px;
}

.foldcraft-cta:hover,
.desktop-talk:hover,
.mobile-cta:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .desktop-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .topbar.foldcraft-nav {
    width: calc(100% - 24px);
    padding: 14px 14px;
  }

  .desktop-talk {
    display: none;
  }

  .foldcraft-stage {
    padding-top: 86px;
  }

  .foldcraft-stage__inner {
    height: calc(100vh - 86px);
    padding: 28px 18px 28px;
  }

  .foldcraft-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .foldcraft-bottom {
    max-width: 100%;
  }

  .foldcraft-bottom p {
    max-width: 100%;
  }
}

.hero-bg.galaxy-bg::before {
  content: none;
}

.hero-bg.galaxy-bg .hero-bg__veil {
  background:
    linear-gradient(180deg, rgba(3, 4, 6, 0.12) 0%, rgba(3, 4, 6, 0.38) 52%, rgba(3, 4, 6, 0.72) 100%),
    linear-gradient(120deg, rgba(56, 245, 255, 0.08) 0%, transparent 32%, transparent 68%, rgba(255, 107, 87, 0.08) 100%);
}

.resume.foldcraft-stage.section-panel {
  padding: 112px clamp(18px, 5vw, 72px);
}

.resume.foldcraft-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  background: #000;
  font-family: "Geist", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.resume.foldcraft-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.resume.foldcraft-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  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: 82px 82px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 88%);
  pointer-events: none;
}

.resume.foldcraft-stage .section-head,
.resume.foldcraft-stage .resume-layout {
  position: relative;
  z-index: 1;
}
