:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #0b1220;
  --surface: #10182a;
  --surface-strong: #151f36;
  --line: rgba(182, 197, 224, 0.16);
  --line-strong: rgba(187, 157, 255, 0.34);
  --text: #f5f7fb;
  --muted: #9ba6bc;
  --muted-strong: #c4cada;
  --violet: #a974ff;
  --rose: #ff94ae;
  --cyan: #55d7d0;
  --gold: #f4be6a;
  --glass-bg: rgba(10, 17, 31, 0.64);
  --glass-bg-soft: rgba(12, 20, 36, 0.46);
  --glass-line: rgba(220, 228, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
  --sidebar: 232px;
  --radius: 8px;
  --content: 1480px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  background: var(--bg);
  scrollbar-color: #38425a var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100svh;
  min-width: 320px;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background-color: var(--bg);
  background:
    linear-gradient(135deg, rgba(169, 116, 255, 0.075), transparent 36%),
    linear-gradient(315deg, rgba(85, 215, 208, 0.045), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 64px;
  content: "";
  pointer-events: none;
}

.ambient-neon {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.neon-track {
  position: absolute;
  top: var(--neon-top, 30%);
  left: var(--neon-left, -12%);
  width: min(82vw, 1180px);
  height: 108px;
  opacity: var(--neon-opacity, 0.21);
  filter: blur(24px);
  mix-blend-mode: screen;
  transform-origin: center;
  animation: neon-drift var(--neon-duration, 12.9s) ease-in-out var(--neon-delay, 0s) infinite;
  will-change: transform, opacity;
}

.neon-track::before {
  position: absolute;
  inset: -10px 0;
  background: linear-gradient(90deg, transparent 22%, rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0.08) 62%, transparent 78%);
  background-position: 145% 0;
  background-size: 210% 100%;
  content: "";
  filter: blur(10px);
  opacity: 0.72;
  animation: neon-sweep var(--neon-sweep-duration, 7.1s) linear var(--neon-sweep-delay, 0s) infinite;
}

.neon-track::after {
  position: absolute;
  top: 50%;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  box-shadow: 0 0 18px var(--neon-core, rgba(169, 116, 255, 0.75));
  content: "";
  opacity: 0.56;
  transform: translateY(-50%);
}

.neon-track-violet {
  --neon-core: rgba(169, 116, 255, 0.82);
  --neon-top: 31%;
  --neon-left: -18%;
  background: linear-gradient(90deg, transparent, rgba(169, 116, 255, 0.9) 30%, rgba(255, 148, 174, 0.52) 62%, transparent);
}

.neon-track-cyan {
  --neon-core: rgba(85, 215, 208, 0.78);
  --neon-top: 59%;
  --neon-left: 30%;
  background: linear-gradient(90deg, transparent, rgba(85, 215, 208, 0.82) 34%, rgba(169, 116, 255, 0.48) 68%, transparent);
}

.neon-track-rose {
  --neon-core: rgba(255, 148, 174, 0.78);
  --neon-top: 84%;
  --neon-left: -8%;
  background: linear-gradient(90deg, transparent, rgba(255, 148, 174, 0.78) 28%, rgba(244, 190, 106, 0.42) 66%, transparent);
}

.neon-track-amber {
  --neon-core: rgba(244, 190, 106, 0.78);
  --neon-top: 75%;
  --neon-left: 28%;
  background: linear-gradient(90deg, transparent, rgba(244, 190, 106, 0.72) 30%, rgba(255, 148, 174, 0.52) 64%, transparent);
}

.neon-track-blue {
  --neon-core: rgba(96, 150, 255, 0.82);
  --neon-top: 89%;
  --neon-left: -4%;
  background: linear-gradient(90deg, transparent, rgba(96, 150, 255, 0.78) 28%, rgba(85, 215, 208, 0.5) 66%, transparent);
}

@keyframes neon-drift {
  0%,
  100% {
    opacity: 0.34;
    transform: translate3d(var(--neon-x-a, -8vw), var(--neon-y-a, -2vh), 0) rotate(var(--neon-angle, -10deg)) scaleX(0.94);
  }

  34% {
    opacity: var(--neon-opacity, 0.21);
    transform: translate3d(var(--neon-x-b, 12vw), var(--neon-y-b, 4vh), 0) rotate(var(--neon-angle, -10deg)) scaleX(1.08);
  }

  68% {
    opacity: 0.44;
    transform: translate3d(var(--neon-x-c, 3vw), var(--neon-y-c, 1vh), 0) rotate(var(--neon-angle, -10deg)) scaleX(1.01);
  }
}

@keyframes neon-sweep {
  0% {
    background-position: 145% 0;
  }

  100% {
    background-position: -45% 0;
  }
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  width: min(calc(100% - 32px), var(--content));
  height: calc(100svh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(169, 116, 255, 0.045), transparent 32%),
    rgba(7, 12, 23, 0.5);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 24px 72px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  backdrop-filter: blur(30px) saturate(145%);
}

@media (min-width: 1024px) {
  body {
    display: grid;
    height: 100svh;
    overflow: hidden;
    place-items: center;
  }

  .page-shell {
    margin: 0;
  }
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .page-shell,
  .stats,
  .work-card,
  .capability-list,
  .about-facts,
  .contact-profile {
    position: relative;
  }

  .page-shell::after,
  .stats::after,
  .work-card::after,
  .capability-list::after,
  .about-facts::after,
  .contact-profile::after {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 1px;
    border-radius: inherit;
    background:
      radial-gradient(
        circle var(--reflection-size, 170px) at var(--reflection-x, 0%) var(--reflection-y, 50%),
        rgb(255 255 255 / var(--reflection-alpha, 0.5)) 0%,
        rgb(196 169 255 / var(--reflection-violet-alpha, 0.3)) 28%,
        rgb(85 215 208 / var(--reflection-cyan-alpha, 0.16)) 50%,
        transparent 72%
      ),
      linear-gradient(
        132deg,
        rgba(255, 255, 255, 0.14),
        rgba(196, 169, 255, 0.08) 36%,
        rgba(85, 215, 208, 0.07) 72%,
        rgba(255, 255, 255, 0.12)
      );
    content: "";
    filter: drop-shadow(0 0 5px rgba(169, 116, 255, 0.12));
    pointer-events: none;
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
}

.sidebar {
  position: relative;
  z-index: 20;
  display: flex;
  align-self: stretch;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 30px 18px 22px;
  border: 0;
  border-right: 1px solid var(--glass-line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 30%),
    rgba(9, 16, 30, 0.58);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    18px 0 48px rgba(0, 0, 0, 0.18);
}

.profile {
  display: grid;
  justify-items: center;
  margin-bottom: 30px;
}

.profile img {
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
  border: 2px solid rgba(169, 116, 255, 0.5);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 7px rgba(169, 116, 255, 0.06);
}

.profile strong {
  font-size: 16px;
  font-weight: 650;
}

.profile span {
  margin-top: 2px;
  color: var(--violet);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-link::after {
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  content: "";
  opacity: 0;
  transform: scale(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  border-color: rgba(196, 169, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(169, 116, 255, 0.2), rgba(85, 215, 208, 0.06)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scale(1);
}

.sidebar-footer {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 16px 12px 0;
  border-top: 1px solid var(--line);
}

.sidebar-footer a {
  color: var(--muted);
  font-size: 11px;
}

.mobile-header,
.close-menu,
.menu-scrim {
  display: none;
}

main {
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #46526d rgba(7, 11, 20, 0.42);
  scrollbar-gutter: stable;
}

.section-anchor {
  scroll-margin-top: 24px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100%;
  max-height: none;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -3;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(0.88) contrast(1.04);
  transform: scale(1.015);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 9, 18, 0.96) 0%, rgba(5, 9, 18, 0.82) 34%, rgba(5, 9, 18, 0.25) 70%, rgba(5, 9, 18, 0.4) 100%),
    linear-gradient(0deg, rgba(5, 9, 18, 0.88) 0%, transparent 38%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(169, 116, 255, 0.06), transparent 42%, rgba(85, 215, 208, 0.04));
  content: "";
}

.hero-content {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 18px;
  align-self: center;
  max-width: 800px;
  margin: -66px 7vw 80px;
}

.section-index {
  margin: 0 0 16px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
}

.hero-signature {
  width: 220px;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 6px 16px rgba(161, 97, 251, 0.2));
}

.hero-intro {
  display: grid;
  gap: 14px;
}

.hero h1 {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-size: 76px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-title-accent {
  display: inline-flex;
}

.hero-title-accent > span:nth-child(1) {
  color: rgb(217, 187, 255);
}

.hero-title-accent > span:nth-child(2) {
  color: rgb(189, 142, 253);
}

.hero-title-accent > span:nth-child(3) {
  color: rgb(161, 97, 251);
}

.hero-role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 32px;
  font-weight: 650;
  line-height: 1.25;
}

.hero-role span {
  color: var(--muted-strong);
  white-space: nowrap;
}

.hero-role span + span::before {
  margin-right: 10px;
  color: var(--muted);
  content: "·";
}

.hero-role span:nth-child(2) {
  color: var(--rose);
}

.hero-role span:nth-child(3) {
  color: var(--cyan);
}

.hero-summary {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    transform 520ms cubic-bezier(.16, 1, .3, 1),
    border-color 360ms ease,
    background 360ms ease,
    box-shadow 420ms ease,
    color 360ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) scale(1.025);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  border: 0;
  background-color: #7443dc;
  background-image: linear-gradient(110deg, #7443dc, #a25cf3 58%, #dd78c3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 12px 34px rgba(128, 72, 225, 0.26);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 16px 40px rgba(128, 72, 225, 0.34);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(10, 16, 29, 0.7);
  color: var(--muted-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--violet);
  color: var(--text);
}

.stats {
  position: absolute;
  right: auto;
  bottom: 34px;
  left: 7vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(960px, calc(100% - 7vw - 24px));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(169, 116, 255, 0.2), transparent 38%),
    linear-gradient(315deg, rgba(85, 215, 208, 0.11), transparent 34%),
    rgba(8, 14, 27, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 20px 52px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
}

.stats div {
  padding: 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stats div:last-child {
  border-right: 0;
}

.stats dt {
  color: var(--rose);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
}

.stats div:nth-child(1) dt,
.stats div:nth-child(2) dt {
  color: var(--violet);
}

.stats sup {
  font-size: 13px;
}

.stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.section {
  padding: 110px clamp(28px, 5vw, 82px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.section-heading h2,
.about-copy h2,
.contact-section h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading > p {
  max-width: 360px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-width: 64px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(15, 24, 42, 0.34);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    transform 420ms cubic-bezier(.16, 1, .3, 1),
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease,
    color 320ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(169, 116, 255, 0.22), rgba(85, 215, 208, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-1px) scale(1.025);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-grid.is-recommended {
  gap: 16px;
  /* Compensate for the two row gaps so all four cards stay 16:9 and align. */
  grid-template-columns: minmax(0, calc(75% + 2.222px)) minmax(0, calc(25% - 18.222px));
  grid-template-rows: repeat(3, auto);
  align-items: start;
  height: auto;
}

.work-grid.is-recommended .work-card {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.work-grid.is-recommended .work-card-lead {
  grid-column: 1;
  grid-row: 1 / 4;
  order: -1;
}

.work-grid.is-recommended .work-card:not(.work-card-lead) {
  grid-column: 2;
}

.work-grid.is-recommended .work-open {
  height: 100%;
  aspect-ratio: auto;
}

.work-grid.is-recommended .work-card-lead .work-open img,
.work-grid.is-recommended .work-card:not(.work-card-lead) .work-open img {
  object-fit: contain;
}

.work-grid.is-recommended .work-card:not(.work-card-lead) {
  background: var(--surface);
}

.work-grid.is-recommended .work-card:not(.work-card-lead) .work-open::before {
  inset: -18px;
  width: auto;
}

.work-grid.is-recommended .work-card:not(.work-card-lead) .work-open img {
  right: 0;
  width: 100%;
  background: rgba(3, 6, 12, 0.28);
}

.work-grid.is-recommended .work-card:not(.work-card-lead) .work-overlay {
  right: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(4, 8, 16, 0.92), rgba(4, 8, 16, 0.02) 76%);
}

.work-grid.is-recommended .work-card:not(.work-card-lead) .work-meta {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 16px;
  transform: none;
}

.work-grid.is-recommended .work-card:not(.work-card-lead) .work-meta small {
  margin-bottom: 3px;
  font-size: 8px;
}

.work-grid.is-recommended .work-card:not(.work-card-lead) .work-meta strong {
  font-size: 16px;
}

.work-grid.is-recommended .work-card:not(.work-card-lead) .work-meta em {
  font-size: 10px;
}

.work-grid.is-recommended .work-card:not(.work-card-lead) .play-mark {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  transform: none;
}

.work-grid.is-portrait {
  grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
  justify-content: center;
}

.work-grid.is-portrait.has-single-work {
  grid-template-columns: repeat(2, minmax(0, 230px));
  justify-content: center;
}

@media (min-width: 761px) {
  .work-grid.is-portrait,
  .work-grid.is-portrait.has-single-work {
    justify-content: start;
  }
}

.work-grid.is-portrait .work-open {
  aspect-ratio: 9 / 16;
}

.work-grid.is-portrait .work-open img {
  object-fit: contain;
}

.tool-logo-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 44px));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(460px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-logo-row li {
  display: grid;
  min-width: 0;
  place-items: center;
}

.tool-logo-row img {
  width: min(44px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: saturate(0.92) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  opacity: 0.86;
}

.work-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.work-card[hidden] {
  display: none;
}

.work-open {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.work-open::before {
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-image: var(--work-cover);
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(18px) saturate(0.9);
  opacity: 0.62;
  transform: scale(1.08);
}

.work-open img,
.work-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-open img {
  z-index: 1;
  background: rgba(3, 6, 12, 0.34);
  object-fit: cover;
  transition:
    transform 720ms cubic-bezier(.16, 1, .3, 1),
    filter 420ms ease;
}

.work-overlay {
  z-index: 2;
  background: linear-gradient(0deg, rgba(4, 8, 16, 0.94), rgba(4, 8, 16, 0.04) 72%);
}

.work-open img[width="900"] {
  object-fit: contain;
}

.work-open:hover img,
.work-open:focus-visible img {
  filter: saturate(1.15);
  transform: scale(1.045);
}

.work-open:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: -3px;
}

.work-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  padding: 22px;
}

.work-meta small {
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
}

.work-meta strong {
  font-size: 21px;
  font-style: normal;
}

.work-meta em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.play-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(5, 9, 18, 0.52);
  place-items: center;
  backdrop-filter: blur(8px);
}

.play-mark svg {
  width: 18px;
  height: 18px;
}

.skills-section {
  background: linear-gradient(110deg, rgba(15, 24, 42, 0.72), rgba(7, 11, 20, 0));
}

.skill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(38px, 7vw, 110px);
}

.skill-list {
  display: grid;
  align-content: center;
  gap: 28px;
}

.skill-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  font-size: 13px;
}

.skill-item strong {
  color: var(--violet);
  font-size: 12px;
}

.skill-item i {
  position: relative;
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  background: #20293a;
}

.skill-item i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  background: linear-gradient(90deg, var(--violet), var(--rose), var(--cyan));
  content: "";
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(169, 116, 255, 0.09), transparent 44%),
    var(--glass-bg-soft);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.capability-list article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  min-height: 170px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 55%);
  transition: background 180ms ease;
}

.capability-list article:hover {
  background: linear-gradient(135deg, rgba(169, 116, 255, 0.1), rgba(85, 215, 208, 0.035));
}

.capability-list article:nth-child(2n) {
  border-right: 0;
}

.capability-list article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.capability-list article > svg {
  color: var(--rose);
}

.capability-list article:nth-child(2n) > svg {
  color: var(--cyan);
}

.capability-list h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.capability-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(60px, 9vw, 140px);
}

.about-copy > p:not(.section-index) {
  max-width: 650px;
  color: var(--muted-strong);
  font-size: 15px;
}

.about-copy h2 {
  margin-bottom: 30px;
  text-wrap: balance;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 650;
}

.text-link svg {
  width: 17px;
}

.about-facts {
  align-self: center;
  margin: 0;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 148, 174, 0.065), transparent 48%),
    var(--glass-bg-soft);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.about-facts div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.about-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.about-facts dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 60px;
  min-height: 0;
  padding-top: 72px;
  padding-bottom: 72px;
  background:
    linear-gradient(120deg, rgba(169, 116, 255, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(85, 215, 208, 0.07), transparent 38%);
}

.contact-section h2 {
  max-width: 790px;
  font-size: 74px;
}

.contact-intro {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
}

.contact-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 28px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(169, 116, 255, 0.11), transparent 46%),
    var(--glass-bg-soft);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  appearance: none;
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 420ms cubic-bezier(.16, 1, .3, 1),
    color 320ms ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  transform: translateX(3px);
}

.contact-item > span,
.wechat-contact figcaption span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.contact-item strong {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.contact-item svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-item .copy-icon {
  flex: 0 0 auto;
  color: var(--muted);
}

.contact-item:hover strong,
.contact-item:focus-visible strong {
  color: var(--text);
}

.contact-item:focus-visible {
  outline: 1px solid var(--violet);
  outline-offset: 8px;
}

.contact-item.is-copied .contact-label,
.contact-item.is-copied .copy-icon {
  color: var(--aqua);
}

.wechat-contact {
  width: 132px;
  margin: 0;
}

.wechat-placeholder {
  display: grid;
  width: 132px;
  height: 132px;
  aspect-ratio: 1;
  padding: 6px;
  background: #fff;
  color: #070b14;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  place-items: center;
  text-align: center;
}

.wechat-contact img {
  display: block;
  width: 100%;
  height: auto;
  padding: 6px;
  background: #fff;
  object-fit: contain;
}

.wechat-contact figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.4;
}

.wechat-contact figcaption strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(28px, 5vw, 82px) 44px;
  color: #737e94;
  font-size: 9px;
}

.project-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(169, 116, 255, 0.1), transparent 42%),
    rgba(10, 18, 32, 0.82);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 28px 90px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  color: var(--text);
}

.project-dialog.is-portrait {
  width: min(520px, calc(100% - 32px));
}

.project-dialog::backdrop {
  background: rgba(2, 5, 11, 0.82);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 11, 20, 0.7);
  color: var(--muted-strong);
  cursor: pointer;
  place-items: center;
  transition:
    transform 420ms cubic-bezier(.16, 1, .3, 1),
    border-color 320ms ease,
    background 320ms ease,
    color 320ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--violet);
  color: var(--text);
  transform: translateY(-1px) scale(1.045);
}

.sidebar .close-menu {
  display: none;
}

.dialog-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #03060c;
  place-items: center;
}

.project-dialog.is-portrait .dialog-media {
  width: 100%;
  height: min(58svh, 640px);
  margin-inline: auto;
  aspect-ratio: auto;
  max-height: none;
}

.project-dialog.is-portrait .dialog-media video {
  position: absolute;
  inset: 0;
}

@media (min-width: 900px) {
  .project-dialog.is-portrait {
    display: grid;
    width: min(860px, calc(100% - 32px));
    height: min(720px, calc(100svh - 32px));
    grid-template-columns: minmax(300px, 405px) minmax(0, 1fr);
    overflow: hidden;
  }

  .project-dialog.is-portrait .dialog-media {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .project-dialog.is-portrait .dialog-copy {
    align-self: center;
    max-height: 100%;
    overflow: auto;
  }
}

.dialog-media video {
  width: 100%;
  height: 100%;
  background: #03060c;
  object-fit: contain;
}

.dialog-video-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #03060c;
  color: #fff;
  cursor: pointer;
  place-items: center;
}

.dialog-video-start[hidden] {
  display: none;
}

.dialog-video-start img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dialog-video-start::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 5, 11, 0.04), rgba(2, 5, 11, 0.28));
  content: "";
}

.dialog-start-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(5, 9, 18, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 30px rgba(0, 0, 0, 0.32);
  place-items: center;
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.dialog-start-icon svg {
  width: 30px;
  height: 30px;
}

.dialog-video-start.is-loading {
  cursor: progress;
}

.dialog-video-start.is-loading img {
  filter: brightness(0.68) saturate(0.88);
}

.dialog-video-start.is-loading .dialog-start-icon svg {
  opacity: 0;
}

.dialog-video-start.is-loading .dialog-start-icon::after {
  position: absolute;
  width: 27px;
  height: 27px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dialog-loading-spin 760ms linear infinite;
  content: "";
}

@keyframes dialog-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.dialog-copy {
  padding: 30px 34px 36px;
}

.dialog-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.dialog-copy h2 {
  margin: 0;
  font-size: 34px;
}

.dialog-description {
  max-width: 640px;
  color: var(--muted-strong);
  font-size: 14px;
}

.dialog-copy dl {
  display: flex;
  gap: 48px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dialog-copy dt {
  color: var(--muted);
  font-size: 10px;
}

.dialog-copy dd {
  margin: 3px 0 0;
  font-size: 13px;
}

.reveal-enabled .reveal-target {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms cubic-bezier(.2, .7, .2, 1),
    transform 700ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-enabled .reveal-target.is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.reveal-enabled .work-card.reveal-target .work-open img {
  transform: scale(1.02);
}

.reveal-enabled .work-card.reveal-target.is-revealed .work-open img {
  transform: scale(1);
}

.reveal-enabled .work-card.reveal-target.is-revealed .work-open:hover img,
.reveal-enabled .work-card.reveal-target.is-revealed .work-open:focus-visible img {
  transform: scale(1.045);
}

.reveal-enabled .skill-item.reveal-target i::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--reveal-delay, 0ms) + 120ms);
}

.reveal-enabled .skill-item.reveal-target.is-revealed i::after {
  transform: scaleX(1);
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 208px;
  }

  .sidebar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-content {
    margin-left: 5vw;
  }

  .stats {
    left: 5vw;
    width: min(960px, calc(100% - 5vw - 20px));
  }

  .hero h1 {
    font-size: 64px;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 48px;
  }

  .contact-section h2 {
    font-size: 62px;
  }

  .skill-layout,
  .about-section {
    gap: 48px;
  }

}

@media (max-width: 1023px) {
  body.menu-open {
    overflow: hidden;
  }

  .mobile-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    height: 68px;
    padding: 0 16px;
    border-bottom: 1px solid var(--glass-line);
    background:
      linear-gradient(90deg, rgba(169, 116, 255, 0.08), rgba(85, 215, 208, 0.035)),
      rgba(7, 11, 20, 0.72);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.035);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
    backdrop-filter: blur(26px) saturate(145%);
  }

  .mobile-brand {
    display: grid;
    justify-items: center;
    line-height: 1;
  }

  .mobile-brand span {
    font-size: 15px;
    font-weight: 750;
  }

  .mobile-brand small {
    margin-top: 5px;
    color: var(--violet);
    font-size: 7px;
  }

  .page-shell {
    position: static;
    z-index: auto;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding-top: 68px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .page-shell::after {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: min(330px, 86vw);
    height: 100svh;
    min-height: 0;
    padding: 66px 22px 24px;
    border: 0;
    border-right: 1px solid var(--line-strong);
    border-radius: 0;
    background:
      linear-gradient(145deg, rgba(169, 116, 255, 0.13), transparent 42%),
      rgba(7, 12, 24, 0.74);
    box-shadow: 20px 0 54px rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
    transform: translateX(-105%);
  }

  .sidebar-ready .sidebar {
    transition: transform 240ms cubic-bezier(.4, 0, 1, 1);
    will-change: transform;
  }

  main {
    position: relative;
    z-index: 1;
    height: auto;
    overflow: visible;
    overscroll-behavior-y: none;
    scrollbar-gutter: auto;
  }

  .menu-open .sidebar {
    transform: translateX(0);
    transition-duration: 360ms;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1);
  }

  .close-menu {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
  }

  .sidebar .close-menu {
    display: grid;
  }

  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    border: 0;
    background: rgba(2, 5, 11, 0.7);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease-in;
  }

  .menu-open .menu-scrim {
    opacity: 1;
    pointer-events: auto;
    transition-duration: 320ms;
    transition-timing-function: ease-out;
  }

  .hero {
    min-height: calc(100svh - 68px);
    max-height: none;
  }

  .hero-content {
    margin-left: clamp(24px, 7vw, 64px);
  }

  .section-anchor {
    scroll-margin-top: 68px;
  }
}

@media (max-width: 760px) {
  .neon-track {
    width: 125vw;
    height: 56px;
    filter: blur(28px);
  }

  .neon-track-rose,
  .neon-track-amber {
    display: none;
  }

  .reveal-enabled .reveal-target {
    transform: translateY(12px);
    transition-duration: 560ms;
  }

  .reveal-enabled .reveal-target.is-revealed {
    transform: translateY(0);
  }

  .hero {
    display: block;
    width: 100%;
    height: auto;
    min-height: 560px;
    max-height: none;
    padding-bottom: 20px;
  }

  .hero-media {
    height: 53%;
    object-position: 62% center;
    opacity: 0.78;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 20, 0.96) 42%, rgba(7, 11, 20, 0.2) 78%),
      linear-gradient(90deg, rgba(7, 11, 20, 0.78), transparent);
  }

  .hero-content {
    position: relative;
    z-index: 1;
    gap: 14px;
    max-width: none;
    margin: 0;
    padding: 238px 24px 0;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-signature {
    width: 168px;
    margin-bottom: 0;
  }

  .hero-role {
    gap: 3px 8px;
    font-size: 20px;
  }

  .hero-role span + span::before {
    margin-right: 8px;
  }

  .hero-summary {
    max-width: 420px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 0;
  }

  .stats {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: repeat(2, 1fr);
    width: auto;
    margin: 20px 20px 0;
  }

  .stats div {
    padding: 12px 14px;
  }

  .stats div:nth-child(2) {
    border-right: 0;
  }

  .stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stats dt {
    font-size: 21px;
  }

  .section {
    padding: 78px 20px;
  }

  .works-section {
    padding-top: 30px;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading > p {
    margin-top: 13px;
    text-align: left;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 36px;
  }

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }

  .filter-button {
    flex: 0 0 auto;
    width: auto;
    padding-right: 12px;
    padding-left: 12px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid.is-portrait {
    grid-template-columns: repeat(2, minmax(0, 230px));
    justify-content: center;
  }

  .work-grid.is-recommended {
    gap: 14px;
    grid-template-columns: 1fr;
    grid-template-rows: auto repeat(3, 126px);
    align-items: stretch;
    height: auto;
  }

  .work-grid.is-recommended .work-card {
    aspect-ratio: auto;
  }

  .work-grid.is-recommended .work-card-lead,
  .work-grid.is-recommended .work-card:not(.work-card-lead) {
    grid-column: auto;
    grid-row: auto;
  }

  .work-grid.is-recommended .work-card-lead .work-open {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) .work-open {
    height: 126px;
    aspect-ratio: auto;
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) {
    background: rgba(8, 13, 24, 0.82);
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) .work-open::before {
    inset: -22px;
    width: auto;
    background-position: center;
    filter: blur(22px) saturate(1.15) brightness(0.55);
    opacity: 0.96;
    transform: scale(1.08);
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) .work-open img {
    right: auto;
    width: 224px;
    border-right: 0;
    object-fit: contain;
    object-position: left center;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) .work-overlay {
    left: calc(43% - 48px);
    right: 0;
    width: auto;
    background: linear-gradient(90deg, transparent, rgba(5, 9, 18, 0.26) 32%, rgba(5, 9, 18, 0.58) 66%, rgba(5, 9, 18, 0.74));
    -webkit-backdrop-filter: blur(12px) saturate(112%);
    backdrop-filter: blur(12px) saturate(112%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 100%);
    mask-image: linear-gradient(90deg, transparent, #000 24%, #000 100%);
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) .work-meta {
    top: 50%;
    right: 50px;
    bottom: auto;
    left: 47%;
    padding: 0;
    transform: translateY(-50%);
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) .play-mark {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }

  .work-grid .work-open img,
  .work-grid .work-open:hover img,
  .work-grid .work-open:focus-visible img {
    transform: none !important;
  }

  .tool-logo-row {
    grid-template-columns: repeat(7, minmax(0, 32px));
    gap: 8px;
    margin-top: 0;
  }

  .tool-logo-row img {
    width: min(32px, 100%);
  }

  .skill-layout,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .skill-layout {
    gap: 54px;
  }

  .capability-list article {
    min-height: 150px;
    padding: 20px 16px;
  }

  .about-section,
  .contact-section {
    gap: 50px;
  }

  .contact-section {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 56px;
    align-content: center;
  }

  .contact-section h2 {
    font-size: 48px;
  }

  .contact-intro {
    font-size: 24px;
  }

  footer {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 440px) {
  .work-grid.is-recommended {
    grid-template-rows: auto repeat(3, 112px);
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) .work-open {
    height: 112px;
  }

  .work-grid.is-recommended .work-card:not(.work-card-lead) .work-open img {
    width: 199px;
  }

  .hero-content {
    padding-top: 218px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-role {
    font-size: 20px;
  }

  .hero-actions .button {
    flex: 1 1 0;
    padding: 0 14px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  /* 桌面端 2 列布局里对"最后 2 个"去掉了 border-bottom，
     单列布局要恢复分隔线，仅保留 :last-child 不显示分隔 */
  .capability-list article:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .capability-list article:last-child {
    border-bottom: 0;
  }

  .contact-section h2 {
    font-size: 42px;
  }

  .contact-intro {
    font-size: 22px;
  }

  .contact-profile {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wechat-contact,
  .wechat-placeholder {
    width: 156px;
  }

  .wechat-placeholder {
    height: 156px;
  }

  .dialog-copy {
    padding: 24px 20px 28px;
  }

  .dialog-copy h2 {
    font-size: 27px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-role {
    gap: 3px 6px;
    font-size: 18px;
  }

  .hero-role span + span::before {
    margin-right: 6px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero-content {
    padding-top: 92px;
  }

  .hero-summary {
    max-width: 340px;
  }

  .stats div {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .neon-track,
  .neon-track::before {
    animation: none !important;
  }

  .reveal-enabled .reveal-target,
  .reveal-enabled .reveal-target.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .reveal-enabled .skill-item.reveal-target i::after,
  .reveal-enabled .skill-item.reveal-target.is-revealed i::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }
}

.motion-preview.reveal-enabled .reveal-target {
  opacity: 0 !important;
  transform: translateY(16px) !important;
  transition:
    opacity 700ms cubic-bezier(.2, .7, .2, 1),
    transform 700ms cubic-bezier(.2, .7, .2, 1) !important;
  transition-delay: var(--reveal-delay, 0ms) !important;
}

.motion-preview .neon-track {
  animation: neon-drift var(--neon-duration, 12.9s) ease-in-out var(--neon-delay, 0s) infinite !important;
}

.motion-preview .neon-track::before {
  animation: neon-sweep var(--neon-sweep-duration, 7.1s) linear var(--neon-sweep-delay, 0s) infinite !important;
}

.motion-preview .work-open img {
  transition:
    transform 720ms cubic-bezier(.16, 1, .3, 1),
    filter 420ms ease !important;
}

.motion-preview .button {
  transition-duration: 520ms, 360ms, 360ms, 420ms, 360ms !important;
}

.motion-preview .filter-button {
  transition-duration: 420ms, 320ms, 320ms, 320ms, 320ms !important;
}

.motion-preview .contact-item {
  transition-duration: 420ms, 320ms !important;
}

.motion-preview .icon-button {
  transition-duration: 420ms, 320ms, 320ms, 320ms !important;
}

@media (max-width: 1023px) {
  .motion-preview .sidebar {
    transition-duration: 240ms !important;
    transition-timing-function: cubic-bezier(.4, 0, 1, 1) !important;
  }

  .motion-preview.menu-open .sidebar {
    transition-duration: 360ms !important;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1) !important;
  }

  .motion-preview .menu-scrim {
    transition-duration: 220ms !important;
    transition-timing-function: ease-in !important;
  }

  .motion-preview.menu-open .menu-scrim {
    transition-duration: 320ms !important;
    transition-timing-function: ease-out !important;
  }
}

.motion-preview.reveal-enabled .reveal-target.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.motion-preview.reveal-enabled .skill-item.reveal-target i::after {
  transform: scaleX(0) !important;
  transition: transform 900ms cubic-bezier(.2, .7, .2, 1) !important;
  transition-delay: calc(var(--reveal-delay, 0ms) + 120ms) !important;
}

.motion-preview.reveal-enabled .skill-item.reveal-target.is-revealed i::after {
  transform: scaleX(1) !important;
}

@media (max-width: 760px) {
  .motion-preview.reveal-enabled .reveal-target {
    transform: translateY(12px) !important;
    transition-duration: 560ms !important;
  }

  .motion-preview.reveal-enabled .reveal-target.is-revealed {
    transform: translateY(0) !important;
  }
}

/* DevTools 侦测提示横幅 —— 由 app.js 在检测到 DevTools 时注入到 body 末尾。
   点击整块即关闭；与页面其他 UI 完全分离。 */
.devtools-warning-overlay {
  position: fixed;
  inset: 16px;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 11, 20, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  animation: devtools-warning-in 280ms cubic-bezier(.16, 1, .3, 1);
}

.devtools-warning-panel {
  max-width: 440px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.devtools-warning-panel .devtools-warning {
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.devtools-warning-panel p {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@keyframes devtools-warning-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
