:root {
  --bg: #0f0c14;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.72);
  --muted-soft: rgba(245, 241, 234, 0.42);
  --accent: #d8ff63;
  --accent-soft: rgba(216, 255, 99, 0.15);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
  --radius: 22px;
  --max: 1220px;
  --gutter: clamp(14px, 3vw, 28px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(110, 190, 255, 0.12), transparent 18%),
    radial-gradient(circle at 72% 82%, rgba(255, 138, 214, 0.08), transparent 20%),
    linear-gradient(180deg, #0b0910 0%, #0c0a12 46%, #0f0c15 100%);
  overflow-x: hidden;
}

.ambient-webgl-canvas,
.dot-grid-canvas,
.grid-scan-canvas,
.line-waves-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.56;
  mix-blend-mode: screen;
}

.ambient-webgl-canvas {
  opacity: 0.72;
  mix-blend-mode: plus-lighter;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(128deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(128deg, rgba(124, 198, 255, 0.035) 0 1px, transparent 1px 118px),
    repeating-linear-gradient(128deg, rgba(255, 159, 252, 0.035) 0 1px, transparent 1px 184px);
  filter: blur(0.45px);
  mask-image: radial-gradient(circle at center, black 26%, black 54%, transparent 90%);
}

.perf-lite .ambient-webgl-canvas,
.perf-lite .dot-grid-canvas,
.perf-lite .grid-scan-canvas,
.perf-lite .line-waves-canvas {
  opacity: 0.42;
  mix-blend-mode: normal;
}

.perf-lite body::before {
  opacity: 0.12;
  filter: none;
}

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

button {
  font: inherit;
}

video {
  display: block;
  width: 100%;
  height: 100%;
}

video:fullscreen,
.collection-media:fullscreen video,
.prompt-media:fullscreen video,
video:-webkit-full-screen,
.collection-media:-webkit-full-screen video,
.prompt-media:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #050505;
}

video::-webkit-media-controls-download-button,
video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

video::-webkit-media-controls-panel {
  -webkit-appearance: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, calc(var(--max) + var(--gutter) * 2));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(14px, 2.2vh, 28px) var(--gutter) 18px;
  display: flex;
  flex-direction: column;
}

.commercial-page .page {
  padding-top: clamp(24px, 3.5vh, 40px);
  padding-bottom: clamp(26px, 4vh, 44px);
}

.commercial-page .site-header,
.commercial-page .section-label,
.commercial-page .video-collection,
.commercial-page .footer {
  width: min(100%, 1040px);
  margin-left: auto;
  margin-right: auto;
}

.commercial-page .section-label {
  padding-top: clamp(18px, 3vh, 30px);
}

.commercial-page .video-collection {
  padding-top: clamp(14px, 2.5vh, 28px);
}

.commercial-page .collection-grid {
  gap: clamp(18px, 2vw, 24px);
}

.commercial-page .collection-card .glow-shell {
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
}

.commercial-page .prompt-shell {
  padding: clamp(16px, 2.2vw, 28px);
}

.site-header {
  padding: 8px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.site-header.compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
}

.brand {
  display: grid;
  gap: 5px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.site-title {
  font-family: "Instrument Serif", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 30rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  text-align: right;
}

.page-nav {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: visible;
}

.nav-pill,
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 241, 234, 0.88);
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
  flex: 0 0 auto;
}

.pill-fill {
  position: absolute;
  left: 50%;
  bottom: -120%;
  width: var(--pill-circle-size, 120px);
  height: var(--pill-circle-size, 120px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(216, 255, 99, 0.94), rgba(174, 217, 70, 0.82));
  transform: translateX(-50%) scale(0);
  transform-origin: 50% var(--pill-origin-y, 100%);
  z-index: 0;
  pointer-events: none;
}

.back-pill .pill-fill {
  left: auto;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 100% 50%;
}

.pill-label,
.pill-label-hover {
  position: relative;
  z-index: 1;
  display: block;
  will-change: transform, opacity;
}

.pill-label-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #11130f;
  opacity: 0;
  transform: translateY(130%);
}

.page-nav .nav-pill.is-current {
  border-color: rgba(216, 255, 99, 0.42);
  background: rgba(216, 255, 99, 0.12);
  color: var(--text);
}

.back-pill {
  border-color: rgba(216, 255, 99, 0.32);
  background: rgba(216, 255, 99, 0.1);
  color: var(--text);
}

.page-back {
  margin-top: 4px;
}

.nav-pill:hover,
.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 255, 99, 0.26);
  background: rgba(216, 255, 99, 0.08);
}

.section-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 14px;
}

.section-label h2 {
  font-family: "Instrument Serif", "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.section-label p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

.home-masonry {
  height: clamp(620px, calc(100vh - 118px), 760px);
  min-height: 0;
  width: 100%;
  margin: clamp(18px, 3vh, 34px) auto 0;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr 0.98fr;
  grid-template-rows: minmax(0, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "about commercial right"
    "motion commercial right";
  gap: clamp(10px, 1.2vw, 14px);
  align-items: stretch;
  padding: 2px 0 14px;
}

.masonry-card {
  min-height: 0;
  animation-delay: var(--delay, 0ms);
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --magic-intensity: 0;
  --magic-color: 216, 255, 99;
}

.masonry-card .glow-shell {
  height: 100%;
}

.about-tile {
  grid-area: about;
}

.profile-tile {
  --profile-pointer-x: 50%;
  --profile-pointer-y: 50%;
  --profile-opacity: 0;
}

.commercial-tile {
  grid-area: commercial;
}

.motion-tile {
  grid-area: motion;
}

.right-stack {
  grid-area: right;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}

.right-stack .masonry-card {
  min-height: 0;
}

.right-stack .glow-shell {
  justify-content: space-between;
}

.right-stack .category-tile .tile-content {
  flex: 0;
  margin-top: auto;
  padding-top: 8px;
  align-content: end;
}

.character-tile {
  --magic-color: 255, 122, 167;
}

.experiment-tile {
  --magic-color: 190, 142, 255;
}

.about-tile {
  --magic-color: 216, 255, 99;
}

.commercial-tile {
  --magic-color: 216, 255, 99;
}

.motion-tile {
  --magic-color: 105, 184, 255;
}

.tile-content {
  padding: clamp(10px, 1vw, 13px);
  display: grid;
  gap: 6px;
}

.category-tile .glow-shell {
  display: flex;
  flex-direction: column;
}

.category-tile .tile-content {
  flex: 1;
  align-content: start;
}

.about-content {
  height: 100%;
  align-content: space-between;
}

.profile-card-wrapper {
  position: relative;
  height: 100%;
  perspective: 700px;
  touch-action: none;
  border-radius: inherit;
}

.profile-behind {
  position: absolute;
  inset: -18px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--profile-pointer-x) var(--profile-pointer-y),
      rgba(125, 190, 255, 0.5),
      rgba(216, 255, 99, 0.18) 34%,
      transparent 62%
    );
  filter: blur(28px) saturate(1.12);
  opacity: calc(0.7 * var(--profile-opacity));
  transition: opacity 240ms ease;
}

.perf-lite .profile-behind {
  inset: -10px;
  filter: none;
  opacity: calc(0.3 * var(--profile-opacity));
}

.profile-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
  will-change: transform;
}

.profile-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(8px, 1vw, 12px);
  padding: clamp(14px, 1.6vw, 20px);
  align-content: stretch;
  justify-items: center;
  background:
    radial-gradient(circle at var(--profile-pointer-x) var(--profile-pointer-y), rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(22, 19, 33, 0.98), rgba(43, 43, 84, 0.88) 42%, rgba(13, 12, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 56px rgba(0, 0, 0, 0.32);
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.profile-card::before {
  background:
    radial-gradient(circle at 22% 28%, rgba(125, 190, 255, 0.12), transparent 18%),
    radial-gradient(circle at 78% 48%, rgba(125, 190, 255, 0.08), transparent 16%),
    radial-gradient(circle at 38% 76%, rgba(216, 255, 99, 0.08), transparent 18%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 22px);
  opacity: 0.38;
  mix-blend-mode: screen;
}

.perf-lite .profile-card::before {
  opacity: 0.24;
  mix-blend-mode: normal;
}

.profile-card::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(circle at 50% 55%, transparent 0 48%, rgba(0, 0, 0, 0.14) 100%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 6px);
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

.perf-lite .profile-card::after {
  opacity: 0.12;
  mix-blend-mode: normal;
}

.profile-shine,
.profile-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.profile-shine {
  opacity: calc(0.16 + var(--profile-opacity) * 0.46);
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 7%,
      rgba(255, 255, 255, 0.09) 8% 9%,
      transparent 10% 16%
    ),
    radial-gradient(circle at var(--profile-pointer-x) var(--profile-pointer-y), rgba(216, 255, 99, 0.34), transparent 28%);
  mix-blend-mode: color-dodge;
}

.perf-lite .profile-shine {
  opacity: calc(0.1 + var(--profile-opacity) * 0.28);
  mix-blend-mode: screen;
}

.profile-glare {
  opacity: calc(0.2 + var(--profile-opacity) * 0.38);
  background: radial-gradient(
    circle at var(--profile-pointer-x) var(--profile-pointer-y),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.06) 20%,
    transparent 42%
  );
  mix-blend-mode: screen;
}

.perf-lite .profile-glare {
  opacity: calc(0.12 + var(--profile-opacity) * 0.2);
  mix-blend-mode: normal;
}

.profile-copy,
.profile-user-info {
  position: relative;
  z-index: 2;
}

.profile-copy {
  order: 1;
}

.profile-copy {
  align-self: center;
  width: 100%;
  text-align: center;
  padding-top: 2px;
}

.profile-copy h1 {
  margin-top: 2px;
  font-family: "Instrument Serif", "Noto Serif SC", serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 400;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.profile-copy p {
  margin-top: 4px;
  color: rgba(245, 241, 234, 0.8);
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.profile-user-info {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 16, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

.perf-lite .profile-user-info {
  background: rgba(10, 10, 16, 0.48);
  backdrop-filter: none;
}

.profile-user-details {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-handle {
  color: rgba(245, 241, 234, 0.92);
  font-size: 11px;
  line-height: 1.1;
}

.profile-status {
  color: var(--muted-soft);
  font-size: 10px;
  line-height: 1.2;
}

.profile-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}

.profile-contact {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(245, 241, 234, 0.9);
  color: #11130f;
  font-size: 11px;
  font-weight: 700;
  pointer-events: auto;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.profile-contact:hover {
  transform: translateY(-1px);
  background: var(--accent);
}

.profile-contact:focus-visible,
.resume-link:focus-visible,
.resume-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.about-content h1 {
  margin-top: 6px;
  font-family: "Instrument Serif", "Noto Serif SC", serif;
  font-size: clamp(28px, 3.1vw, 36px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 400;
}

.compact-avatar {
  width: clamp(50px, 5.6vw, 66px);
  aspect-ratio: 1;
  border-radius: 18px;
  font-size: 25px;
}

.tile-media {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    color-mix(in srgb, var(--accent) 16%, #151019);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.commercial-tile .tile-media {
  height: auto;
}

.landscape-preview {
  height: auto;
  aspect-ratio: 16 / 9;
}

.square-preview {
  width: min(64%, 230px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: clamp(10px, 1.3vw, 16px) auto 0;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.experiment-tile .landscape-preview {
  width: min(92%, 360px);
  aspect-ratio: 16 / 9;
  margin: clamp(10px, 1.3vw, 16px) auto 0;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.right-stack .square-preview {
  width: min(92%, 360px);
  aspect-ratio: 16 / 9;
}

.vertical-preview {
  width: min(56%, 260px);
  aspect-ratio: 9 / 16;
  margin: clamp(10px, 1.3vw, 16px) auto 0;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.commercial-tile .vertical-preview {
  width: min(74%, 380px);
}

.motion-tile .vertical-preview {
  width: min(68%, 300px);
  background: #dbeeff;
}

.motion-tile .vertical-preview video {
  object-fit: contain;
  transform: scale(1);
}

.tile-media video {
  object-fit: contain;
  object-position: center;
  background: transparent;
  transform: scale(1);
  transition: filter 520ms ease;
}

.right-stack .tile-media video {
  object-fit: contain;
}

.masonry-card h3 {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 700;
}

.masonry-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  max-width: 26em;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid.home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.single-grid {
  grid-template-columns: minmax(0, 1fr);
}

.glow-card {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
}

.glow-card::before,
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glow-card::before {
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0.16));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
}

.glow-card::after {
  inset: -14px;
  opacity: 0.42;
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), var(--glow-color, rgba(216, 255, 99, 0.22)), transparent 58%);
  filter: blur(18px);
  z-index: -1;
}

.perf-lite .glow-card::after {
  inset: -6px;
  opacity: 0.22;
  filter: none;
}

.glow-shell {
  position: relative;
  border-radius: inherit;
  overflow: hidden;
  background: var(--card-bg, rgba(20, 16, 26, 0.94));
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}

.perf-lite .glow-shell {
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.masonry-card .glow-shell::before,
.masonry-card .glow-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--magic-intensity);
  transition: opacity 220ms ease;
}

.masonry-card .glow-shell::before {
  background:
    radial-gradient(
      circle 220px at var(--spotlight-x) var(--spotlight-y),
      rgba(var(--magic-color), 0.2),
      rgba(var(--magic-color), 0.08) 26%,
      transparent 68%
  );
  mix-blend-mode: screen;
  z-index: 3;
}

.perf-lite .masonry-card .glow-shell::before {
  opacity: calc(var(--magic-intensity) * 0.7);
  mix-blend-mode: normal;
}

.masonry-card .glow-shell::after {
  padding: 1px;
  background:
    radial-gradient(
      circle 160px at var(--spotlight-x) var(--spotlight-y),
      rgba(var(--magic-color), 0.98),
      rgba(var(--magic-color), 0.32) 38%,
      transparent 72%
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 4;
}

.perf-lite .masonry-card .glow-shell::after {
  opacity: calc(var(--magic-intensity) * 0.7);
}

.masonry-card .tile-content,
.masonry-card .tile-media {
  position: relative;
  z-index: 2;
}

.intro-card {
  padding: 22px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.avatar {
  aspect-ratio: 1 / 1.15;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(105, 184, 255, 0.72), rgba(42, 52, 85, 0.92));
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", serif;
  font-size: 48px;
  letter-spacing: 0;
  color: #fff;
}

.intro-copy {
  display: grid;
  gap: 12px;
}

.intro-copy h1,
.page-hero h1 {
  font-family: "Instrument Serif", "Noto Serif SC", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.intro-copy h1 {
  font-size: 64px;
  line-height: 0.94;
}

.intro-copy p,
.page-hero p,
.card-copy p,
.footer-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.mini-note {
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.category-card .media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #050505;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-card .media video,
.collection-media video,
.hero-media video {
  object-fit: contain;
  background: #050505;
}

.card-copy {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.card-copy h3 {
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(245, 241, 234, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}

.card-preview {
  color: rgba(245, 241, 234, 0.76);
  font-size: 11px;
  line-height: 1.35;
}

.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: rgba(216, 255, 99, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  align-self: end;
  margin-top: auto;
}

.card-meta::after {
  content: "->";
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.card-link {
  cursor: pointer;
  transform-origin: center;
  will-change: transform;
  transition: filter 240ms ease;
}

.perf-lite .card-link {
  will-change: auto;
  transition: transform 180ms ease;
}

.card-link:hover {
  transform: translateY(-5px) scale(1.018);
  filter: saturate(1.12);
}

.perf-lite .card-link:hover {
  transform: translateY(-3px) scale(1.008);
  filter: none;
}

.card-link:hover .glow-shell {
  border-color: transparent;
}

.card-link:hover .tile-media video {
  filter: saturate(1.12) contrast(1.04);
}

.perf-lite .card-link:hover .tile-media video {
  filter: none;
}

.card-link:hover .card-meta::after {
  transform: translate(4px, -1px);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 14px;
  align-items: stretch;
  padding-top: 4px;
}

.page-hero-panel {
  padding: 22px;
}

.page-hero h1 {
  font-size: 64px;
  line-height: 0.96;
  margin-bottom: 10px;
}

.page-hero .page-hero-panel p {
  max-width: 36rem;
}

.page-stats {
  display: grid;
  gap: 12px;
  align-content: start;
}

.stat-block {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-block b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0;
}

.video-collection {
  padding-top: clamp(12px, 2vw, 24px);
}

.collection-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.prompt-collection {
  padding-top: 4px;
}

.commercial-stack {
  grid-template-columns: minmax(0, 1fr);
}

.collection-card .glow-shell {
  display: grid;
  align-content: start;
  height: 100%;
}

.collection-card.wide {
  grid-column: span 2;
}

.collection-card.wide .glow-shell {
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  align-items: stretch;
}

.collection-media {
  position: relative;
  background: #050505;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  width: min(100%, 360px);
  max-height: min(72vh, 700px);
  justify-self: center;
  align-self: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-card {
  display: grid;
  grid-template-rows: auto;
}

.prompt-shell {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2vw, 24px);
}

.prompt-copy {
  display: grid;
  gap: 8px;
  padding: 0;
}

.prompt-copy .meta {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prompt-copy h3 {
  font-size: clamp(22px, 2vw, 30px);
}

.prompt-copy p {
  max-width: 56rem;
  color: rgba(245, 241, 234, 0.76);
  font-size: 13px;
  line-height: 1.7;
  font-family: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
}

.prompt-media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.prompt-media-grid.three-up {
  justify-content: center;
}

.prompt-media {
  flex: 0 0 clamp(210px, 20.5vw, 276px);
  width: clamp(210px, 20.5vw, 276px);
  max-height: none;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius) - 6px);
  margin: 0;
}

.prompt-media video {
  object-fit: cover;
}

.video-shell {
  display: grid;
  place-items: center;
}

.video-shell video,
.video-shell::before,
.video-poster {
  grid-area: 1 / 1;
}

[data-deferred-video-shell]:not(.is-loaded) video {
  opacity: 0;
}

.video-shell:not(.is-loaded):not([data-deferred-video-shell]) video {
  opacity: 0.08;
}

.video-shell::before {
  content: "";
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 34%, rgba(216, 255, 99, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
  pointer-events: none;
}

.video-poster {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-shell[data-deferred-video-shell]::before {
  display: none;
}

.video-shell[data-deferred-video-shell]::after {
  display: none;
}

.video-shell.is-loaded::before {
  display: none;
}

.video-shell.is-loaded::after {
  display: none;
}

.video-shell.is-loaded .video-poster {
  display: none;
}

[data-deferred-video-shell] {
  cursor: pointer;
}

.collection-media.landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(68vh, 620px);
}

.workflow-section {
  padding-top: clamp(28px, 4vw, 48px);
}

.workflow-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 18px;
}

.workflow-heading h2 {
  font-family: "Instrument Serif", "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: 0;
}

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

.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 18px 8px 10px;
  scrollbar-width: thin;
  isolation: isolate;
}

.workflow-track::before,
.workflow-track::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 34px;
  height: 1px;
  pointer-events: none;
}

.workflow-track::before {
  background: linear-gradient(90deg, rgba(216, 255, 99, 0.62), rgba(105, 184, 255, 0.46), rgba(255, 122, 167, 0.38));
  z-index: 0;
}

.workflow-track::after {
  width: min(210px, 28%);
  right: auto;
  background: linear-gradient(90deg, transparent, rgba(216, 255, 99, 0.12), rgba(105, 184, 255, 0.95), rgba(255, 255, 255, 0.82), transparent);
  filter: blur(0.3px) drop-shadow(0 0 10px rgba(105, 184, 255, 0.58));
  transform: translateX(-110%);
  animation: workflow-flow 4.8s linear infinite;
  z-index: 1;
}

.workflow-node {
  position: relative;
  z-index: 2;
  min-width: 150px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 38px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 30% 0%, rgba(216, 255, 99, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  transform-origin: center;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.workflow-node:hover {
  z-index: 3;
  transform: translateY(-5px) scale(1.045) translateZ(0);
  border-color: rgba(216, 255, 99, 0.36);
  background:
    radial-gradient(circle at 30% 0%, rgba(216, 255, 99, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(216, 255, 99, 0.08);
}

.workflow-index {
  position: absolute;
  top: 9px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(216, 255, 99, 0.92);
  color: #11130f;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(216, 255, 99, 0.18);
}

.workflow-tag {
  color: rgba(216, 255, 99, 0.72);
  font-size: 10px;
  line-height: 1.2;
}

.workflow-node h3 {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.workflow-node p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}

@keyframes workflow-flow {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(calc(100vw + 110%));
  }
}

.youtube-card .glow-shell {
  grid-template-columns: 1fr;
  align-items: start;
}

.youtube-card {
  width: min(100%, 980px);
  margin: 0 auto;
}

.youtube-card .collection-media.landscape {
  width: 100%;
  max-height: min(64vh, 620px);
  justify-self: stretch;
}

.youtube-card .collection-copy {
  max-width: none;
  align-content: start;
  padding: clamp(14px, 1.8vw, 22px) clamp(16px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px);
}

.youtube-card .collection-copy h3 {
  font-size: clamp(24px, 2.1vw, 32px);
}

.youtube-card .collection-copy p {
  max-width: 44rem;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
}

.collection-copy {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.collection-copy h3 {
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 700;
}

.collection-copy .meta {
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer {
  padding: 16px 0 8px;
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-soft);
  font-size: 12px;
  letter-spacing: 0;
}

.footer-contact {
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 14px;
}

.contact-list li span:last-child {
  color: var(--text);
  text-align: right;
}

.js-animations .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
}

.reveal,
.js-animations .reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.resume-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.resume-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 8, 0.74);
  backdrop-filter: blur(18px);
}

.resume-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  height: min(92vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 16% 0%, rgba(216, 255, 99, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(25, 22, 31, 0.96), rgba(11, 9, 14, 0.96));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

.resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-header h2 {
  margin-top: 2px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
}

.resume-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resume-link,
.resume-close {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.resume-close {
  background: rgba(245, 241, 234, 0.92);
  color: #11130f;
}

.resume-preview {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: clamp(10px, 2vw, 18px);
  background: #f7f4ef;
  display: grid;
  gap: 14px;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

.resume-preview img {
  width: min(100%, 860px);
  height: auto;
  justify-self: center;
  display: block;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  transform: translate(-50%, 18px);
  opacity: 0;
  visibility: hidden;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 241, 234, 0.94);
  color: #11130f;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
  .site-header,
  .page-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-header {
    display: flex;
    flex-direction: column;
  }

  .site-header.compact {
    display: flex;
  }

  .page-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .lede,
  .section-label p {
    text-align: left;
  }

  .card-grid.home-grid,
  .card-grid.collection-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .home-masonry {
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "about commercial"
      "motion commercial"
      "right right";
  }

  .right-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .collection-card.wide {
    grid-column: span 1;
  }

  .collection-card.wide .glow-shell {
    grid-template-columns: 1fr;
  }

  .prompt-media-grid,
  .prompt-media-grid.three-up {
    align-items: center;
  }

  .vertical-preview {
    width: min(66%, 300px);
  }

  .commercial-tile .vertical-preview {
    width: min(72%, 340px);
  }

  .motion-tile .vertical-preview {
    width: min(70%, 300px);
  }

  .right-stack .square-preview,
  .experiment-tile .landscape-preview {
    width: min(90%, 360px);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 0 12px 18px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .home-masonry {
    grid-template-columns: 1fr;
    grid-template-areas:
      "about"
      "commercial"
      "motion"
      "right";
  }

  .right-stack {
    grid-template-columns: 1fr;
  }

  .tile-media,
  .commercial-tile .tile-media,
  .landscape-preview,
  .square-preview {
    height: auto;
  }

  .vertical-preview {
    width: min(74%, 260px);
  }

  .commercial-tile .vertical-preview,
  .motion-tile .vertical-preview {
    width: min(76%, 280px);
  }

  .right-stack .square-preview,
  .experiment-tile .landscape-preview {
    width: min(92%, 340px);
  }

  .site-title {
    font-size: 30px;
  }

  .card-copy h3,
  .collection-copy h3 {
    font-size: 22px;
  }

  .prompt-media {
    flex-basis: 100%;
    width: 100%;
  }

  .workflow-track {
    grid-template-columns: 1fr;
    overflow-x: visible;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .workflow-track::before {
    top: 14px;
    bottom: 4px;
    left: 16px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(216, 255, 99, 0.62), rgba(105, 184, 255, 0.46), rgba(255, 122, 167, 0.38));
  }

  .workflow-track::after {
    top: 0;
    bottom: auto;
    left: 16px;
    right: auto;
    width: 1px;
    height: 124px;
    background: linear-gradient(180deg, transparent, rgba(216, 255, 99, 0.12), rgba(105, 184, 255, 0.95), rgba(255, 255, 255, 0.82), transparent);
    transform: translateY(-110%);
    animation-name: workflow-flow-vertical;
  }

  .workflow-node {
    min-width: 0;
    padding: 12px 12px 12px 48px;
  }

  .workflow-index {
    left: 2px;
  }

  .profile-user-info,
  .resume-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-actions,
  .resume-actions {
    width: 100%;
  }

  .profile-contact {
    flex: 1;
  }

  .profile-copy h1 {
    font-size: clamp(24px, 7.2vw, 32px);
  }

  .profile-user-info {
    gap: 6px;
    padding: 8px;
  }

  .profile-actions {
    gap: 4px;
  }

  .profile-contact {
    min-height: 30px;
    padding: 0 10px;
  }

  .resume-dialog {
    height: 88vh;
    border-radius: 22px;
  }
}

@keyframes workflow-flow-vertical {
  from {
    transform: translateY(-110%);
  }

  to {
    transform: translateY(calc(100% + 110%));
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-track::after {
    animation: none;
    opacity: 0.28;
    transform: none;
  }

  .workflow-node,
  .workflow-node:hover {
    transition: none;
    transform: none;
  }
}

/* Click-to-play fallback only. Baseline visual styles above are unchanged. */
.tile-media.preview-needs-play {
  position: relative;
}

.tile-media.preview-needs-play::after {
  content: "▶ 点击播放";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

