:root {
  --ink: #040208;
  --ink-soft: #0a0611;
  --panel: #10091a;
  --panel-2: #181024;
  --line: rgba(185, 140, 255, 0.2);
  --muted: #968ca3;
  --paper: #f4efff;
  --acid: #b98cff;
  --signal-green: #a98be8;
}

html,
body {
  background: var(--ink);
}

::selection {
  color: #08040e;
  background: var(--acid);
}

.site-loader,
.loader-panel {
  background: #030106;
}

.pixel-wolf i {
  background: #d9ccff;
  box-shadow: 0 0 10px rgba(185, 140, 255, 0.28);
}

.pixel-wolf i.pixel-wolf__eye {
  background: #c89cff;
  box-shadow: 0 0 16px rgba(200, 156, 255, 0.9);
}

.wolf-mark,
.loader-vector,
.contact-wolf,
.nav__brand .wolf-mark {
  color: #d9ccff;
}

.wolf-mark__eye,
.nav__brand .wolf-mark__eye,
.loader-vector .wolf-mark__eye,
.contact-wolf .wolf-mark__eye {
  background: #c89cff !important;
  box-shadow: 0 0 13px rgba(200, 156, 255, 0.78);
}

.loader-name i,
.status-dot {
  background: var(--acid);
  box-shadow: 0 0 20px rgba(185, 140, 255, 0.8);
}

.hero-particle {
  background: rgba(228, 214, 255, 0.64);
  box-shadow: 0 0 12px rgba(185, 140, 255, 0.34);
}

.profile-row > span i {
  background: var(--signal-green);
  box-shadow: 0 0 12px rgba(185, 140, 255, 0.68);
}

.hero {
  background:
    radial-gradient(circle at 68% 48%, rgba(126, 78, 187, 0.18), transparent 35%),
    radial-gradient(circle at 18% 18%, rgba(185, 140, 255, 0.07), transparent 30%),
    #05030a;
}

.hero::after {
  background: linear-gradient(120deg, rgba(5, 3, 10, 0.35), rgba(5, 3, 10, 0.78));
}

.hero__grid {
  background-image:
    linear-gradient(rgba(203, 172, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 172, 255, 0.055) 1px, transparent 1px);
}

.hero__cursor-light {
  background: radial-gradient(
    circle 340px at var(--spot-x) var(--spot-y),
    rgba(185, 140, 255, 0.18),
    transparent 68%
  ) !important;
}

.faulty-terminal-wrap {
  display: none !important;
}

.nav::before {
  background: linear-gradient(rgba(5, 2, 10, 0.95), rgba(5, 2, 10, 0.78));
}

.case-nav::before,
.midea-detail__nav::before {
  background: rgba(5, 2, 10, 0.9);
}

.about,
.strengths {
  background: #07040d;
}

.projects {
  background: #090512;
}

.midea-case,
.project-card,
.strength-card {
  background: #10091a;
}

.midea-case__process figure,
.work-entry,
.work-filter,
.profile-stats article {
  background-color: #0b0711;
}

.work-filter button {
  z-index: 1;
  color: #968ca3;
  background: transparent;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.work-filter button span,
.work-filter button sup {
  color: inherit;
}

.work-filter button:hover {
  color: #ffffff;
  background: rgba(185, 140, 255, 0.12);
}

.work-filter button.is-active,
.work-filter button[aria-pressed="true"] {
  color: #ffffff;
  background: #6f42ad;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -3px 0 rgba(200, 156, 255, 0.7);
}

.work-filter {
  --filter-x: 0%;
  --filter-y: 0%;
  --filter-width: 25%;
  --filter-height: 100%;
  position: relative;
  isolation: isolate;
}

.work-filter::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--filter-width);
  height: var(--filter-height);
  background: #6f42ad;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -3px 0 rgba(200, 156, 255, 0.7);
  transform: translate3d(var(--filter-x), var(--filter-y), 0);
}

.work-filter.is-motion-ready::before {
  transition:
    width 0.46s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.46s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.46s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-filter.is-motion-ready button.is-active,
.work-filter.is-motion-ready button[aria-pressed="true"] {
  background: transparent;
  box-shadow: none;
}

.work-filter button.is-active sup,
.work-filter button[aria-pressed="true"] sup {
  opacity: 1;
}

.work-filter button:focus-visible {
  color: #ffffff;
  outline: 2px solid #d9ccff;
  outline-offset: -4px;
}

.work-index__intro a:focus-visible,
.nav__links a:focus-visible,
.text-link:focus-visible,
.profile-row a:focus-visible,
footer a:focus-visible {
  color: #ffffff;
}

.contact-section {
  background:
    radial-gradient(circle at 50% 45%, rgba(129, 82, 186, 0.2), transparent 35%),
    #05030a;
}

.archive-page,
.midea-detail {
  background: #05030a;
}

.archive-case--featured {
  background: #0c0713;
}

.archive-case__cover,
.midea-detail__cover {
  background: #08040e;
  border-color: rgba(185, 140, 255, 0.3);
}

.today-detail {
  background:
    radial-gradient(circle at 72% 18%, rgba(138, 87, 204, 0.18), transparent 27%),
    #040208;
}

.figma-case__shell {
  background: #08040e;
}

.figma-case__frame {
  cursor: auto !important;
  background:
    linear-gradient(135deg, rgba(185, 140, 255, 0.08), transparent 42%),
    #08040e;
}

.figma-case__frame iframe {
  cursor: auto !important;
  background: #10091a;
}

.figma-case__loading {
  color: var(--muted);
  background:
    radial-gradient(circle, rgba(185, 140, 255, 0.08), transparent 34%),
    #08040e;
}

.figma-case__loading span {
  border-color: rgba(185, 140, 255, 0.22);
  border-top-color: var(--acid);
}

.today-detail .figma-case__bar {
  display: none;
}

.today-detail .figma-case__frame {
  border-top: 1px solid var(--line);
}

.figma-spec {
  background-color: #0a0611;
  background-image:
    linear-gradient(rgba(185, 140, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 140, 255, 0.045) 1px, transparent 1px);
}

.midea-pdf-page img {
  background: #0a0710;
}

.midea-detail__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: auto !important;
  object-fit: contain;
}

.portfolio-detail--ok .midea-detail__cover {
  aspect-ratio: 9 / 4;
  overflow: hidden;
}

.portfolio-detail--ok .midea-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portfolio-detail--ok .portfolio-board img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  clip-path: none;
  margin: 0;
}

.portfolio-detail--wuzhen .portfolio-board img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  clip-path: none;
  margin: 0;
}

.midea-chapter-nav.is-precision-nav a {
  position: relative;
  transition:
    color 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.midea-chapter-nav.is-precision-nav a::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.midea-chapter-nav.is-precision-nav a[aria-current="true"] {
  color: #ffffff;
  background: rgba(111, 66, 173, 0.18);
}

.midea-chapter-nav.is-precision-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.portfolio-scale-enabled .midea-document__pages {
  justify-items: center;
}

.portfolio-scale-enabled .midea-pdf-page {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  transition:
    width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  will-change: width;
}

.portfolio-scale-enabled .midea-pdf-page:hover {
  border-color: rgba(200, 156, 255, 0.42);
  box-shadow: 0 24px 70px rgba(5, 2, 10, 0.34);
}

.portfolio-scale-control {
  position: fixed;
  z-index: 9000;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  min-height: 48px;
  padding: 5px;
  border: 1px solid rgba(185, 140, 255, 0.34);
  border-radius: 999px;
  align-items: center;
  gap: 3px;
  display: flex;
  color: #f4efff;
  background: rgba(8, 4, 14, 0.88);
  box-shadow:
    0 14px 46px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

.portfolio-scale-control__hint {
  padding: 0 13px 0 11px;
  color: #a99eb5;
  font-family: var(--font-english);
  letter-spacing: 0.1em;
  font-size: 7px;
  white-space: nowrap;
}

.portfolio-scale-control button {
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #f4efff;
  background: transparent;
  font-family: var(--font-body);
  font-size: 18px;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.portfolio-scale-control button:hover,
.portfolio-scale-control button:focus-visible {
  color: #08040e;
  background: var(--acid);
}

.portfolio-scale-control button:active {
  transform: scale(0.92);
}

.portfolio-scale-control button:disabled {
  color: #665d70;
  cursor: default;
  background: transparent;
}

.portfolio-scale-control__value {
  width: 58px !important;
  border: 1px solid rgba(185, 140, 255, 0.25) !important;
  font-family: var(--font-english) !important;
  letter-spacing: 0.04em;
  font-size: 8px !important;
}

.portfolio-scale-control.is-changing .portfolio-scale-control__value {
  color: #08040e;
  background: var(--acid);
}

.today-detail__cover-stage {
  margin-top: 0;
  margin-bottom: 138px;
}

.today-detail__cover {
  aspect-ratio: 16 / 9;
}

.today-detail__cover > img,
.portfolio-detail__cover--wuzhen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-cover-mosaic {
  overflow: visible !important;
  isolation: isolate;
}

.case-cover-mosaic > img {
  position: relative;
  z-index: 1;
  transition: opacity 0.34s ease;
}

.case-cover-mosaic.is-mosaic-playing > img {
  opacity: 0;
}

.case-cover-mosaic.is-mosaic-resolving > img,
.case-cover-mosaic.is-mosaic-resolved > img {
  opacity: 1;
}

.case-cover-mosaic figcaption {
  z-index: 6;
}

.case-cover-mosaic__canvas {
  position: absolute;
  z-index: 5;
  max-width: none;
  pointer-events: none;
  image-rendering: pixelated;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.project-pager {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) 152px minmax(0, 1fr);
  margin-top: 132px;
  display: grid;
  overflow: hidden;
}

.project-pager__link {
  min-width: 0;
  min-height: 190px;
  padding: 34px 42px;
  align-items: center;
  display: flex;
  background: #08040e;
  transition:
    background-color 0.24s ease,
    color 0.24s ease;
}

.project-pager__link--previous {
  border-right: 1px solid var(--line);
}

.project-pager__link--next {
  border-left: 1px solid var(--line);
  justify-content: flex-end;
  text-align: right;
}

.project-pager__link:hover,
.project-pager__link:focus-visible {
  color: #ffffff;
  background: rgba(111, 66, 173, 0.3);
}

.project-pager__link:focus-visible {
  outline-offset: -5px;
}

.project-pager__magnet {
  position: relative;
  max-width: min(100%, 440px);
  align-items: flex-start;
  gap: 12px;
  display: inline-flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.project-pager__link--next .project-pager__magnet {
  align-items: flex-end;
}

.project-pager__magnet small,
.project-pager__current small {
  color: var(--acid);
  font-family: var(--font-english);
  letter-spacing: 0.14em;
  font-size: 8px;
  line-height: 1.4;
}

.project-pager__magnet strong {
  max-width: 100%;
  font-family: var(--font-title);
  font-size: clamp(21px, 2.1vw, 36px);
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.project-pager__magnet i {
  color: #d9ccff;
  font-size: 22px;
  font-style: normal;
}

.project-pager__current {
  color: #d9ccff;
  background: #0b0711;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
  display: grid;
}

.project-pager__current b {
  font-family: var(--font-english);
  font-size: 34px;
  font-weight: 400;
}

.archive-case__cover > a:hover + figcaption span:last-child,
.archive-case__cover > a:focus-visible + figcaption span:last-child {
  color: var(--acid);
}

.archive-case__cover > a:focus-visible::after {
  outline-color: var(--acid);
}

.ghost-wolf-cursor {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.target-cursor-wrapper {
  position: fixed;
  z-index: 20000;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
  transition: opacity 0.16s ease;
}

.target-cursor-wrapper.is-visible {
  opacity: 1;
}

html.target-cursor-enabled:has(.figma-case__frame:hover) .target-cursor-wrapper {
  opacity: 0 !important;
}

.target-cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4efff;
  box-shadow: 0 0 10px rgba(185, 140, 255, 0.48);
  transform: translate(-50%, -50%);
  transition: background-color 0.15s ease, transform 0.2s ease;
}

.target-cursor-corner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid #f4efff;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.15s ease;
}

main h1 {
  font-family: var(--font-english) !important;
  font-weight: 400 !important;
}

main h2 {
  font-family: var(--font-title) !important;
  font-weight: 700 !important;
}

#about .about-overview__title h2,
#projects .work-index__header h2,
#strengths .section-heading h2 {
  font-size: clamp(56px, 6vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.target-cursor-corner.corner-tl {
  border-right: 0;
  border-bottom: 0;
}

.target-cursor-corner.corner-tr {
  border-left: 0;
  border-bottom: 0;
}

.target-cursor-corner.corner-br {
  border-top: 0;
  border-left: 0;
}

.target-cursor-corner.corner-bl {
  border-top: 0;
  border-right: 0;
}

.target-cursor-wrapper.is-targeting .target-cursor-corner {
  border-color: #c89cff;
}

.target-cursor-wrapper.is-targeting .target-cursor-dot {
  background: #c89cff;
  box-shadow: 0 0 14px rgba(200, 156, 255, 0.9);
}

.target-cursor-wrapper.is-pressed .target-cursor-dot {
  transform: translate(-50%, -50%) scale(0.7);
}

@media (hover: hover) and (pointer: fine) {
  html.target-cursor-enabled,
  html.target-cursor-enabled body,
  html.target-cursor-enabled a,
  html.target-cursor-enabled button,
  html.target-cursor-enabled [role="button"] {
    cursor: none !important;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  #about .about-overview__title h2,
  #projects .work-index__header h2,
  #strengths .section-heading h2 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .target-cursor-wrapper {
    display: none;
  }

  .ghost-wolf-cursor {
    opacity: 0.76;
  }

  .today-detail__cover-stage {
    margin-bottom: 84px;
  }

  .portfolio-scale-control {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .portfolio-scale-control__hint {
    display: none;
  }

  .portfolio-scale-control button {
    width: 42px;
    height: 42px;
  }

  .project-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 84px;
  }

  .project-pager__current {
    display: none;
  }

  .project-pager__link {
    min-height: 132px;
    padding: 24px 18px;
  }

  .project-pager__link--previous {
    border-right: 1px solid var(--line);
  }

  .project-pager__link--next {
    border-left: 0;
  }

  .project-pager__magnet strong {
    font-size: clamp(17px, 5.5vw, 24px);
  }
}

@media (max-width: 480px) {
  #about .about-overview__title h2,
  #projects .work-index__header h2,
  #strengths .section-heading h2 {
    font-size: 41px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .target-cursor-wrapper {
    display: none;
  }

  .work-filter::before,
  .project-pager__magnet,
  .portfolio-scale-enabled .midea-pdf-page,
  .midea-chapter-nav.is-precision-nav a::after {
    transition: none;
  }

  .case-cover-mosaic__canvas {
    display: none;
  }
}
