/* =========================================================
   周权 · Portfolio 2025
   Standalone pages — Works archive / Resume
   ========================================================= */

:root {
  --ink: #08080b;
  --ink-soft: #111116;
  --paper: #f4f0e6;
  --paper-deep: #e9e4d7;
  --acid: #d9ff43;
  --coral: #ff5c3d;
  --blue: #3a45ff;
  --cyan: #3fe8ff;

  --gutter: clamp(24px, 4.3vw, 68px);
  --header-h: 84px;

  --sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --display: "Arial Black", "Archivo Black", "Impact", "HarmonyOS Sans SC",
    "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

body.works-page {
  --page-bg: #08080b;
  --text: #f4f0e6;
  --muted: rgba(244, 240, 230, 0.53);
  --line: rgba(244, 240, 230, 0.16);
  --line-strong: rgba(244, 240, 230, 0.3);
  --surface: #101016;
  --accent: var(--acid);
  --accent-ink: #08080b;
  --header-fg: #f4f0e6;
  --header-scrolled: rgba(8, 8, 11, 0.84);
  --header-border: rgba(244, 240, 230, 0.12);
}

body.resume-page {
  --page-bg: #f4f0e6;
  --text: #08080b;
  --muted: rgba(8, 8, 11, 0.52);
  --line: rgba(8, 8, 11, 0.16);
  --line-strong: rgba(8, 8, 11, 0.34);
  --surface: #0b0b0e;
  --accent: var(--blue);
  --accent-ink: #f4f0e6;
  --header-fg: #08080b;
  --header-scrolled: rgba(244, 240, 230, 0.88);
  --header-border: rgba(8, 8, 11, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.resume-page {
  background-image: radial-gradient(rgba(8, 8, 11, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.55px, transparent 0.75px);
  background-size: 3px 3px;
}

/* =========================================================
   Shared header
   ========================================================= */
.sub-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  color: var(--header-fg);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft),
    backdrop-filter 0.35s var(--ease-soft);
}

.sub-header.is-scrolled {
  background: var(--header-scrolled);
  border-color: var(--header-border);
  backdrop-filter: blur(18px);
}

.sub-brand {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 47px;
  height: 43px;
  flex: 0 0 47px;
  padding-top: 9px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
  text-decoration: none;
  background: var(--acid);
  border: 1px solid rgba(8, 8, 11, 0.2);
  box-shadow: 3px 3px 0 var(--coral);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sub-brand:hover {
  box-shadow: 5px 5px 0 var(--coral);
  transform: translate(-1px, -1px);
}

.sub-brand i {
  margin-top: 1px;
  margin-left: 2px;
  font-family: var(--sans);
  font-size: 5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.sub-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.45;
  letter-spacing: 0.16em;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.sub-label span:first-child {
  color: var(--text);
  font-weight: 700;
}

.sub-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.sub-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0.48;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.sub-nav a span {
  font-family: var(--mono);
  font-size: 6.5px;
  opacity: 0.45;
}

.sub-nav a:hover {
  opacity: 0.9;
}

.sub-nav a.is-active {
  opacity: 1;
}

.sub-nav a.is-active::after {
  position: absolute;
  right: 11px;
  bottom: 3px;
  left: 11px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.sub-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  margin-left: 10px;
  color: var(--text);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.sub-back:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

/* =========================================================
   Shared small pieces
   ========================================================= */
.sub-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
}

.sub-eyebrow b {
  display: grid;
  place-items: center;
  width: 29px;
  height: 20px;
  color: var(--ink);
  font-size: 8px;
  background: var(--acid);
}

.sub-eyebrow i {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.sub-eyebrow em {
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.sub-eyebrow--dark b {
  color: var(--paper);
  background: var(--ink);
}

.sub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  border-top: 1px solid var(--line);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-soft), transform 0.9s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   PAGE 04 — WORKS
   ========================================================= */
.works-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(var(--header-h) + 55px) var(--gutter) 62px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(8, 8, 11, 0.88) 0%, rgba(8, 8, 11, 0.64) 100%),
    radial-gradient(circle at 72% 35%, rgba(58, 69, 255, 0.2), transparent 32%),
    radial-gradient(circle at 13% 90%, rgba(217, 255, 67, 0.06), transparent 30%),
    url("../图片/bg-works.jpg") center / cover no-repeat;
}

.works-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 7.6vw 7.6vw;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 8%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 8%, transparent 78%);
}

.works-orb {
  position: absolute;
  top: 17%;
  right: 14%;
  width: 280px;
  height: 280px;
  background: rgba(255, 92, 61, 0.18);
  border-radius: 50%;
  filter: blur(95px);
  animation: float-orb 12s ease-in-out infinite alternate;
}

.works-ghost {
  position: absolute;
  top: 0;
  right: 4%;
  color: transparent;
  font-family: var(--display);
  font-size: 31vw;
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.14em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  user-select: none;
  pointer-events: none;
}

.works-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-bottom: 54px;
}

.works-title {
  position: relative;
  width: fit-content;
  margin: 30px 0 auto;
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(7rem, 18.5vw, 18rem);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.09em;
  text-shadow: 0.045em 0.045em 0 var(--coral);
  user-select: none;
}

.works-title::before {
  position: absolute;
  top: -0.055em;
  left: -0.04em;
  z-index: -1;
  color: transparent;
  content: "WORKS";
  font: inherit;
  letter-spacing: inherit;
  -webkit-text-stroke: 1px rgba(244, 240, 230, 0.3);
}

.works-title-cn {
  position: absolute;
  right: -12px;
  bottom: -44px;
  padding: 8px 11px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-shadow: none;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--blue);
  transform: rotate(-3deg);
}

.works-hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  padding-top: 22px;
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.works-intro {
  max-width: 510px;
  margin: 0;
  color: rgba(244, 240, 230, 0.67);
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.8;
  letter-spacing: 0.015em;
}

.works-stats {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
}

.works-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.works-stats b {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--acid);
}

.works-stats span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.5;
  letter-spacing: 0.11em;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  color: var(--paper);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}

.scroll-link i {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: var(--ink);
  font-size: 15px;
  font-style: normal;
  background: var(--acid);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

.scroll-link:hover i {
  transform: translateY(4px);
}

.works-tape {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 40px;
  overflow: hidden;
  color: var(--ink);
  background: var(--acid);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.works-stamp {
  position: absolute;
  right: 10%;
  bottom: 26%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(108px, 10vw, 142px);
  height: clamp(108px, 10vw, 142px);
  color: var(--ink);
  background: var(--coral);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 6px 6px 0 var(--acid);
  transform: rotate(-7deg);
}

.works-stamp svg {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  animation: spin-slow 26s linear infinite;
}

.works-stamp text {
  fill: currentColor;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.works-stamp b {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.tape-track {
  display: flex;
  align-items: center;
  gap: 25px;
  width: max-content;
  height: 100%;
  padding-right: 25px;
  white-space: nowrap;
  animation: tape-scroll 36s linear infinite;
}

.tape-track span {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.tape-track b {
  font-size: 10px;
}

/* archive --------------------------------------------------- */
.archive {
  position: relative;
  z-index: 3;
  padding: 74px var(--gutter) 0;
  background: var(--ink);
  scroll-margin-top: var(--header-h);
}

.archive-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 13px 0;
  background: rgba(8, 8, 11, 0.86);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.archive-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 135px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.archive-title span:first-child {
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.filter-btn span {
  font-family: var(--mono);
  font-size: 6.5px;
  opacity: 0.55;
}

.filter-btn:hover {
  color: var(--paper);
  border-color: rgba(244, 240, 230, 0.55);
}

.filter-btn.is-active {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

.archive-note {
  min-width: 110px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-align: right;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 0 0;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, 0.84fr);
  min-height: 430px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 125px);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.project-card:hover {
  border-color: rgba(217, 255, 67, 0.62);
  box-shadow: 8px 8px 0 rgba(217, 255, 67, 0.14);
  transform: translate(-3px, -3px);
}

.project-card.is-hidden {
  display: none;
}

.project-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.project-num {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 5;
  color: currentColor;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.visual-label {
  position: absolute;
  bottom: 20px;
  left: 22px;
  z-index: 5;
  color: currentColor;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.68;
}

/* project visual 01 */
.project-visual--brand {
  color: var(--ink);
  background: var(--acid);
}

.project-visual--brand::before {
  position: absolute;
  top: -90px;
  right: -68px;
  width: 330px;
  height: 330px;
  content: "";
  background: var(--ink);
  border-radius: 50%;
}

.project-visual--brand::after {
  position: absolute;
  right: -35px;
  bottom: -75px;
  width: 230px;
  height: 230px;
  content: "";
  border: 1px solid rgba(8, 8, 11, 0.45);
  border-radius: 50%;
}

.visual-brand-word {
  position: absolute;
  bottom: 11%;
  left: 6%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  font-family: var(--display);
  font-size: clamp(8.5rem, 15vw, 15.5rem);
  font-weight: 900;
  line-height: 0.62;
  letter-spacing: -0.09em;
  transition: transform 0.5s var(--ease);
}

.visual-brand-word span {
  margin-bottom: 0.13em;
  font-family: var(--serif);
  font-size: 0.36em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.project-card:hover .visual-brand-word {
  transform: translateY(-5px);
}

.visual-brand-circle {
  position: absolute;
  top: 28%;
  right: 16%;
  width: 46px;
  height: 46px;
  border: 2px solid var(--coral);
  border-radius: 50%;
}

.visual-cross {
  position: absolute;
  top: 23%;
  left: 50%;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
}

/* project visual 02 */
.project-visual--editorial {
  color: var(--ink);
  background: var(--coral);
}

.project-visual--editorial::before {
  position: absolute;
  top: 50%;
  right: -20%;
  width: 135%;
  height: 1px;
  content: "";
  background: rgba(8, 8, 11, 0.5);
  transform: rotate(-29deg);
}

.project-visual--editorial::after {
  position: absolute;
  inset: 20px;
  content: "";
  border: 1px solid rgba(8, 8, 11, 0.24);
  pointer-events: none;
}

.visual-editorial-word {
  position: absolute;
  bottom: 8%;
  left: 6%;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(9rem, 15vw, 15rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.62;
  letter-spacing: -0.13em;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .visual-editorial-word {
  transform: translateY(-5px);
}

.visual-editorial-lines {
  position: absolute;
  top: 18%;
  right: 9%;
  width: 38%;
  height: 37%;
  background: repeating-linear-gradient(
    0deg,
    rgba(8, 8, 11, 0.4) 0 1px,
    transparent 1px 17px
  );
}

.visual-editorial-box {
  position: absolute;
  top: 11%;
  right: 8%;
  z-index: 3;
  padding: 9px 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.12em;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

/* project visual 03 */
.project-visual--ui {
  color: var(--ink);
  background: var(--paper);
}

.visual-ui-window {
  position: absolute;
  inset: 12% 11% 15%;
  display: grid;
  grid-template-columns: 27% 1fr;
  grid-template-rows: 11% 1fr 0.72fr 0.32fr;
  gap: 3px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--blue);
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease);
}

.project-card:hover .visual-ui-window {
  transform: rotate(-1.5deg) translateY(-4px);
}

.visual-ui-window i {
  display: block;
}

.ui-bar {
  grid-column: 1 / -1;
  background: var(--ink);
}

.ui-side {
  grid-row: 2 / 4;
  background: rgba(58, 69, 255, 0.16);
  border-right: 1px solid rgba(58, 69, 255, 0.36);
}

.ui-hero {
  background: var(--blue);
}

.ui-card--one {
  background: var(--acid);
}

.ui-card--two {
  grid-column: 1 / -1;
  grid-row: 4;
  background: rgba(8, 8, 11, 0.12);
}

.visual-ui-dot {
  position: absolute;
  right: 9%;
  bottom: 9%;
  width: 62px;
  height: 62px;
  background: var(--coral);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
}

/* project info --------------------------------------------- */
.project-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 3.2vw, 46px);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.project-meta span:last-child {
  color: var(--muted);
}

.project-info h2 {
  margin: 20px 0 14px;
  color: var(--paper);
  font-size: clamp(1.9rem, 2.95vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.project-info > p {
  margin: 0;
  color: rgba(244, 240, 230, 0.58);
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.015em;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

.project-tags li {
  padding: 5px 9px;
  color: rgba(244, 240, 230, 0.65);
  font-size: 8px;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 17px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.project-foot > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.project-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--paper);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-open b {
  color: var(--acid);
  font-size: 12px;
  font-weight: 400;
  transition: color 0.25s var(--ease);
}

.project-open:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  transform: translateY(-2px);
}

.project-open:hover b {
  color: var(--ink);
}

/* next page ------------------------------------------------- */
.works-next {
  position: relative;
  padding: 58px var(--gutter) 64px;
  overflow: hidden;
  color: var(--ink);
  background: var(--acid);
}

.works-next::before {
  position: absolute;
  top: -40%;
  right: -8%;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(8, 8, 11, 0.28);
  border-radius: 50%;
}

.next-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 11px;
  color: rgba(8, 8, 11, 0.52);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  border-top: 1px solid rgba(8, 8, 11, 0.32);
}

.next-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0 34px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.next-title {
  display: block;
  font-size: clamp(4.2rem, 9.4vw, 8.9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.next-title em {
  color: var(--blue);
  font-style: normal;
}

.next-arrow {
  display: grid;
  place-items: center;
  width: clamp(74px, 8vw, 122px);
  height: clamp(74px, 8vw, 122px);
  flex: 0 0 auto;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 300;
  line-height: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.next-link:hover .next-arrow {
  color: var(--acid);
  background: var(--ink);
  transform: rotate(-45deg);
}

.next-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 17px;
}

.next-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid rgba(8, 8, 11, 0.35);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.next-links a span {
  font-size: 11px;
}

.next-links a:hover {
  color: var(--acid);
  background: var(--ink);
}

/* case dialog ---------------------------------------------- */
.case-dialog {
  width: min(880px, calc(100vw - 48px));
  max-height: 88vh;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  overflow: visible;
}

.case-dialog::backdrop {
  background: rgba(4, 4, 8, 0.78);
  backdrop-filter: blur(10px);
}

.case-shell {
  --case-accent: var(--acid);
  max-height: 88vh;
  padding: clamp(24px, 3.5vw, 44px);
  overflow-y: auto;
  background: #101016;
  border: 1px solid rgba(244, 240, 230, 0.23);
  border-top: 7px solid var(--case-accent);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.45);
}

.case-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 240, 230, 0.16);
}

.case-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 25px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  background: var(--case-accent);
}

.case-category {
  color: rgba(244, 240, 230, 0.55);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
}

.case-close {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  margin-left: auto;
  color: var(--paper);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  background: transparent;
  border: 1px solid rgba(244, 240, 230, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.case-close:hover {
  color: var(--ink);
  background: var(--acid);
  transform: rotate(90deg);
}

.case-title {
  margin: 22px 0 11px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.case-intro {
  max-width: 680px;
  margin: 0;
  color: rgba(244, 240, 230, 0.63);
  font-size: 13px;
  line-height: 1.8;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0;
  margin-top: 18px;
  border-top: 1px solid rgba(244, 240, 230, 0.14);
  border-bottom: 1px solid rgba(244, 240, 230, 0.14);
}

.case-facts div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-facts span {
  color: rgba(244, 240, 230, 0.36);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.case-facts b {
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
}

.case-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 0 8px;
}

.case-section h3 {
  margin: 0 0 8px;
  color: var(--case-accent);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.case-section p {
  margin: 0;
  color: rgba(244, 240, 230, 0.53);
  font-size: 10.5px;
  line-height: 1.75;
}

.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  margin-top: 15px;
  border-top: 1px solid rgba(244, 240, 230, 0.14);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  color: rgba(244, 240, 230, 0.34);
}

.case-foot a {
  color: var(--acid);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.case-foot a:hover {
  text-decoration: underline;
}

/* =========================================================
   animation
   ========================================================= */
@keyframes tape-scroll {
  to {
    transform: translateX(-50%);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-orb {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 5%, 0) scale(1.12);
  }
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1220px) {
  .sub-label {
    display: none;
  }

  .works-title {
    font-size: clamp(7rem, 18vw, 14rem);
  }

  .project-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  }

  .resume-name {
    font-size: clamp(7rem, 13vw, 11rem);
  }

  .resume-name-en {
    font-size: clamp(1.5rem, 2.7vw, 2.6rem);
  }

  .resume-name-note {
    display: none;
  }
}

@media (max-width: 980px) {
  .sub-header {
    height: 74px;
    gap: 12px;
  }

  .sub-nav a {
    padding: 8px 8px;
    font-size: 8.5px;
  }

  .sub-nav a span {
    display: none;
  }

  .sub-back {
    display: none;
  }

  .works-hero {
    padding-top: 120px;
  }

  .works-title {
    font-size: 19vw;
  }

  .works-hero-bottom {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .works-stats {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .scroll-link {
    grid-column: 2;
    grid-row: 1;
  }

  .archive-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .archive-title {
    min-width: auto;
  }

  .filter-group {
    margin-left: 0;
  }

  .archive-note {
    display: none;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 350px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-info {
    min-height: 300px;
  }

  .resume-wrap {
    padding-top: 112px;
  }

  .resume-hero-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .resume-grid {
    grid-template-columns: 1fr;
  }

  .resume-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .resume-card--ink {
    grid-row: span 2;
  }

  .resume-footer-cta {
    grid-template-columns: 1fr 1fr;
  }

  .resume-print-card {
    grid-column: 1 / -1;
  }

  .case-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .sub-header {
    flex-wrap: nowrap;
    height: 66px;
  }

  .sub-brand {
    width: 42px;
    height: 39px;
    flex-basis: 42px;
    padding-top: 8px;
    font-size: 18px;
  }

  .sub-nav {
    gap: 0;
  }

  .sub-nav a {
    padding: 7px 6px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .sub-nav a.is-active::after {
    right: 5px;
    left: 5px;
  }

  .works-hero {
    min-height: 88svh;
    padding-top: 102px;
    padding-bottom: 52px;
  }

  .works-hero-inner {
    padding-bottom: 35px;
  }

  .works-title {
    margin-top: 24px;
    font-size: 20vw;
  }

  .works-title-cn {
    right: 0;
    bottom: -38px;
    font-size: 6.5px;
  }

  .works-hero-bottom {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .works-stats {
    grid-column: auto;
    grid-row: auto;
  }

  .scroll-link {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .works-hero-bottom {
    gap: 20px;
  }

  .works-tape {
    height: 35px;
  }

  .archive {
    padding-top: 52px;
  }

  .archive-bar {
    top: 66px;
  }

  .filter-btn {
    padding: 7px 10px;
    font-size: 8px;
  }

  .project-visual {
    min-height: 290px;
  }

  .project-info {
    padding: 22px 18px;
  }

  .project-info h2 {
    margin-top: 16px;
    font-size: 2rem;
  }

  .project-card {
    min-height: 0;
  }

  .works-next {
    padding: 42px 20px 46px;
  }

  .next-link {
    gap: 12px;
    padding: 18px 0 24px;
  }

  .next-title {
    font-size: 14vw;
  }

  .next-arrow {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .next-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sub-footer {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 6.5px;
  }

  .case-dialog {
    width: calc(100vw - 24px);
  }

  .case-shell {
    padding: 20px;
  }

  .case-facts {
    grid-template-columns: 1fr 1fr;
  }

  .case-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .resume-wrap {
    padding-top: 94px;
  }

  .resume-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .resume-name-row {
    align-items: flex-end;
  }

  .resume-name {
    font-size: 31vw;
  }

  .resume-name-en {
    display: none;
  }

  .resume-badge {
    width: 78px;
    height: 78px;
    margin-bottom: 4px;
  }

  .resume-badge b {
    font-size: 21px;
  }

  .resume-hero-bottom {
    margin-top: 22px;
  }

  .resume-quick-meta {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .resume-quick-meta div {
    padding-left: 0;
    border-left: 0;
  }

  .profile-copy {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .edu-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 13px;
  }

  .edu-main {
    flex: 1;
    min-width: 180px;
  }

  .edu-tag {
    width: 38px;
    height: 38px;
    font-size: 10px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .focus-card,
  .focus-card:first-child {
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .resume-side {
    grid-template-columns: 1fr;
  }

  .resume-card--ink {
    grid-row: auto;
  }

  .resume-footer-cta {
    grid-template-columns: 1fr;
  }

  .resume-print-card {
    grid-column: auto;
  }

  .resume-actions .mini-link {
    display: none;
  }

  .print-btn {
    padding: 8px 11px;
    font-size: 7.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   project illustration covers
   ========================================================= */
.project-visual.project-visual--brand {
  background: var(--acid) url("../图片/work-brand.jpg") center bottom / cover no-repeat;
}

.project-visual.project-visual--editorial {
  background: var(--coral) url("../图片/work-editorial.jpg") center bottom / cover no-repeat;
}

.project-visual.project-visual--ui {
  background: var(--paper) url("../图片/work-ui.jpg") center center / cover no-repeat;
}

.project-visual--brand::before,
.project-visual--brand::after,
.project-visual--brand .visual-brand-word,
.project-visual--brand .visual-brand-circle,
.project-visual--brand .visual-cross,
.project-visual--editorial::before,
.project-visual--editorial::after,
.project-visual--editorial .visual-editorial-word,
.project-visual--editorial .visual-editorial-lines,
.project-visual--editorial .visual-editorial-box,
.project-visual--ui::before,
.project-visual--ui .visual-ui-window,
.project-visual--ui .visual-ui-dot {
  display: none;
}

.project-visual .project-num,
.project-visual .visual-label {
  display: none;
}


