/* ==========================================================================
   个人作品集 2022—2026 — style.css
   Design tokens: brown / cream / ink, editorial serif + grotesque labels.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #edeae3;
  --surface: #f4f0e9;
  --paper: #f1ece4;
  --ink: #14110e;
  --muted: #6f6459;
  --brown: #a07157;
  --brown-deep: #7c5340;
  --brown-soft: #c9a88f;
  --line: rgba(20, 17, 14, 0.14);
  --line-strong: rgba(20, 17, 14, 0.3);
  --hero-bg: #a07157;
  --hero-panel: #f3efe7;
  --contact-bg: #a07157;
  --contact-ink: #f6f1e9;
  --contact-muted: rgba(246, 241, 233, 0.68);
  --contact-line: rgba(246, 241, 233, 0.2);

  --font-serif-en: "Bodoni 72", "Bodoni Bd BT", "Bodoni Bk BT", "Bodoni MT", Didot,
    "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif-cn: "Songti SC", "STSong", STSong, "SimSun", serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-lg: clamp(24px, 3vw, 44px);
  --r-md: clamp(16px, 1.8vw, 24px);
  --maxw: 1440px;
  --pad: clamp(20px, 4.6vw, 72px);
  --header-h: 72px;
  --shadow: 0 30px 70px -34px rgba(40, 25, 14, 0.45);
}

[data-theme="dark"] {
  --bg: #14100d;
  --surface: #1c1611;
  --paper: #17120e;
  --ink: #f2ebe1;
  --muted: #a9998a;
  --brown: #c08d6c;
  --brown-deep: #e0b393;
  --brown-soft: #6b4a38;
  --line: rgba(242, 235, 225, 0.15);
  --line-strong: rgba(242, 235, 225, 0.32);
  --hero-bg: #241811;
  --hero-panel: #1d1712;
  --contact-bg: #241710;
  --contact-ink: #f6f1e9;
  --contact-muted: rgba(246, 241, 233, 0.68);
  --contact-line: rgba(246, 241, 233, 0.2);
  --shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.75);
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(20, 17, 14, 0.035) 1px, transparent 1.2px);
  background-size: 6px 6px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

[data-theme="dark"] body {
  background-image: radial-gradient(rgba(242, 235, 225, 0.04) 1px, transparent 1.2px);
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

figure,
h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brown);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- shared ---------- */
.section {
  padding: clamp(76px, 10vw, 144px) var(--pad);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 500;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.1em;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.btn-primary {
  background: var(--brown);
  color: #f8f3ec;
  box-shadow: 0 18px 34px -22px rgba(124, 83, 64, 0.9);
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.text-link {
  color: var(--ink);
  border-bottom: 1px solid var(--brown);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.text-link:hover {
  color: var(--brown-deep);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(237, 234, 227, 0.74);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

[data-theme="dark"] .site-header {
  background: rgba(20, 16, 13, 0.72);
}

.site-header.is-scrolled {
  background: rgba(237, 234, 227, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -28px rgba(20, 17, 14, 0.6);
}

[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(20, 16, 13, 0.9);
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--brown);
  color: var(--paper);
  font-family: var(--font-serif-cn);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.5s var(--ease), background 0.4s;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg);
  background: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-cn {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand-en {
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-link em {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--muted);
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--brown-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 36px) var(--pad) 36px;
  background: var(--brown);
  color: #f7f2ea;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 242, 234, 0.22);
  transition: padding-left 0.4s var(--ease);
}

.mobile-link:hover {
  padding-left: 10px;
}

.mobile-no {
  font-family: var(--font-serif-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  opacity: 0.6;
}

.mobile-cn {
  font-family: var(--font-serif-cn);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.1;
}

.mobile-link em {
  font-family: var(--font-serif-en);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.mobile-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  line-height: 1.8;
  opacity: 0.55;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(8px, 1.1vw, 16px);
  background: var(--hero-bg);
  transition: background 0.5s ease;
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - clamp(16px, 2.2vw, 32px));
  padding: calc(var(--header-h) + clamp(14px, 3vh, 34px)) var(--pad) clamp(20px, 3vh, 36px);
  border-radius: var(--r-lg);
  background: var(--hero-panel);
  overflow: hidden;
  transition: background 0.5s ease;
}

.hero-grid,
.hero-foot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  flex: 1;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 3vh, 34px);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--brown-deep);
  text-transform: uppercase;
  animation: fadeUp 0.9s 0.15s both var(--ease);
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brown);
}

.hero-title {
  position: relative;
  margin: 0;
}

.hero-title-cn {
  display: block;
  font-family: var(--font-serif-cn);
  font-size: clamp(3.7rem, 10.4vw, 9.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.title-line > span {
  display: block;
  transform: translateY(112%);
  animation: titleUp 1.15s var(--ease-out) forwards;
}

.title-line:nth-child(2) > span {
  animation-delay: 0.09s;
}

.hero-title-en {
  display: block;
  margin-top: 0.06em;
  font-family: var(--font-serif-en);
  font-size: clamp(2.5rem, 6.4vw, 6.1rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--brown);
  white-space: nowrap;
  animation: fadeUp 1.1s 0.5s both var(--ease);
}

.hero-sub {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-size: clamp(12.5px, 1.15vw, 14.5px);
  letter-spacing: 0.16em;
  color: var(--muted);
  animation: fadeUp 0.9s 0.58s both var(--ease);
}

.hero-desc {
  margin-top: 14px;
  max-width: 46ch;
  font-size: clamp(14px, 1.15vw, 15.5px);
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.78;
  animation: fadeUp 0.9s 0.66s both var(--ease);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vh, 36px);
  animation: fadeUp 0.9s 0.76s both var(--ease);
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
}

.hero-dot-b {
  width: 12px;
  height: 12px;
  right: 42%;
  top: 16%;
  background: var(--brown);
}

.hero-dot-c {
  width: 7px;
  height: 7px;
  right: 12%;
  bottom: 30%;
  background: var(--brown);
}

.hero-stamp {
  position: absolute;
  top: calc(var(--header-h) + 18px);
  right: var(--pad);
  z-index: 3;
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: clamp(11px, 1.1vw, 13px);
  line-height: 1.5;
  letter-spacing: 0.32em;
  text-align: right;
  color: var(--brown);
  opacity: 0.85;
}

.hero-visual {
  position: relative;
  min-height: clamp(340px, 50vh, 560px);
}

.hero-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  opacity: 0;
  animation: fadeIn 1.4s 0.5s forwards var(--ease);
}

.art-card {
  position: absolute;
  margin: 0;
  padding: 8px 8px 9px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  will-change: transform;
}

.art-card img {
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.art-card figcaption {
  padding-top: 7px;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d6c5d;
}

.art-card-a {
  top: 2%;
  left: 0;
  z-index: 2;
  width: 58%;
  transform: translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 12px), 0) rotate(-7deg);
}

.art-card-b {
  top: 29%;
  right: 0;
  z-index: 3;
  width: 53%;
  transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px), 0) rotate(5deg);
}

.art-card-c {
  bottom: 0;
  left: 13%;
  z-index: 1;
  width: 47%;
  transform: translate3d(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 18px), 0) rotate(-3deg);
}

.art-badge {
  position: absolute;
  top: -3%;
  right: 2%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(84px, 8.6vw, 116px);
  height: clamp(84px, 8.6vw, 116px);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 36px -24px rgba(20, 17, 14, 0.8);
}

.art-badge-ring {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  animation: spin 26s linear infinite;
}

.art-badge-core {
  position: relative;
  font-family: var(--font-serif-cn);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(18px, 2.8vh, 38px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  animation: fadeUp 1s 0.9s both var(--ease);
}

.hero-meta {
  display: flex;
  gap: clamp(24px, 3.4vw, 56px);
}

.hero-meta dt {
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.hero-meta dd {
  margin-top: 4px;
  font-family: var(--font-serif-en);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-cue-line {
  position: relative;
  display: block;
  width: clamp(42px, 6vw, 80px);
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brown);
  animation: scrollLine 2.4s var(--ease) infinite;
}

.hero-note {
  font-family: var(--font-serif-en);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.18em;
  text-align: right;
  color: var(--brown);
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  z-index: 3;
  padding: 15px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  border-block: 1px solid var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3.6vw, 60px);
  padding-right: clamp(26px, 3.6vw, 60px);
}

.marquee-group > span {
  font-family: var(--font-serif-en);
  font-size: clamp(19px, 2.4vw, 32px);
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee-star {
  font-family: var(--font-sans);
  font-size: 0.55em;
  color: var(--brown);
}

/* ---------- section heading ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: clamp(38px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
}

.section-no {
  font-family: var(--font-serif-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--brown);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-serif-cn);
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
}

.section-title-en {
  font-family: var(--font-serif-en);
  font-size: 0.34em;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-4px);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.about-lead {
  margin-bottom: clamp(30px, 4vw, 48px);
  font-family: var(--font-serif-cn);
  font-size: clamp(1.9rem, 3.7vw, 3.35rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.015em;
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 34px;
  color: var(--muted);
  font-size: clamp(13.5px, 1.05vw, 15px);
  line-height: 1.95;
}

.about-copy p:first-child {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
}

.about-side {
  position: relative;
}

.about-collage {
  position: relative;
  height: clamp(340px, 40vw, 510px);
}

.collage-img {
  position: absolute;
  margin: 0;
  padding: 7px;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.7s var(--ease);
}

.collage-img img {
  width: 100%;
  height: auto;
  border-radius: 7px;
}

.collage-img-1 {
  top: 0;
  right: 0;
  z-index: 2;
  width: 76%;
  transform: rotate(3deg);
}

.collage-img-2 {
  bottom: 8%;
  left: -3%;
  z-index: 3;
  width: 46%;
  transform: rotate(-7deg);
}

.collage-img-3 {
  right: 2%;
  bottom: 0;
  z-index: 1;
  width: 40%;
  transform: rotate(5deg);
}

.about-side:hover .collage-img-1 {
  transform: rotate(1.5deg) translateY(-4px);
}

.about-side:hover .collage-img-2 {
  transform: rotate(-4deg) translateY(-6px);
}

.about-side:hover .collage-img-3 {
  transform: rotate(2.5deg) translateY(-3px);
}

.about-caption {
  margin-top: 20px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-align: right;
  color: var(--muted);
  text-transform: uppercase;
}

/* services */
.services {
  margin-top: clamp(58px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  padding: 21px 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    padding 0.45s var(--ease), border-color 0.45s;
}

.service:hover {
  padding-inline: 20px;
  background: var(--brown);
  color: #f8f3ec;
  border-color: transparent;
}

.service-no {
  font-family: var(--font-serif-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.3s;
}

.service-name {
  font-family: var(--font-serif-cn);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  letter-spacing: 0.02em;
}

.service-en {
  justify-self: start;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
  transition: color 0.3s;
}

.service-arrow {
  justify-self: end;
  font-size: 17px;
  transition: transform 0.4s var(--ease);
}

.service:hover .service-no,
.service:hover .service-en {
  color: rgba(248, 243, 236, 0.68);
}

.service:hover .service-arrow {
  transform: translate(4px, -4px);
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(58px, 8vw, 100px);
  padding-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-family: var(--font-serif-en);
  font-size: clamp(2.9rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat-value-text {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  letter-spacing: 0.02em;
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ---------- works ---------- */
.works {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s ease;
}

.works-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: clamp(44px, 6vw, 78px);
}

.works-lead {
  font-family: var(--font-serif-cn);
  font-size: clamp(1.95rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.015em;
}

.works-sub {
  max-width: 44ch;
  margin: 0 0 6px auto;
  color: var(--muted);
  font-size: clamp(13.5px, 1.05vw, 15px);
  line-height: 1.9;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(30px, 4.4vw, 64px) clamp(18px, 2.4vw, 38px);
  align-items: start;
}

.work-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  border-radius: var(--r-md);
}

.work-card:first-child {
  grid-column: 1 / -1;
}

.work-card:first-child .work-media {
  aspect-ratio: 21 / 9;
}

.work-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
  isolation: isolate;
}

.work-card:nth-child(even) .work-media {
  aspect-ratio: 4 / 3;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s;
}

.work-card:hover .work-media img {
  transform: scale(1.045);
}

.work-no {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(246, 242, 235, 0.92);
  color: #14110e;
  font-family: var(--font-serif-en);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(4px);
}

.work-open {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.work-open svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-card:hover .work-open,
.work-card:focus-visible .work-open {
  opacity: 1;
  transform: none;
}

.work-body {
  padding: 18px 4px 0;
}

.work-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 10px 0 8px;
  font-family: var(--font-serif-cn);
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.work-title-en {
  font-family: var(--font-serif-en);
  font-size: 0.46em;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--brown);
  text-transform: uppercase;
}

.work-desc {
  max-width: 52ch;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.work-tags li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
  transition: border-color 0.35s, color 0.35s;
}

.work-card:hover .work-tags li {
  border-color: var(--brown-soft);
  color: var(--brown-deep);
}

.works-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- contact ---------- */
.contact.section {
  padding: clamp(10px, 1.6vw, 22px) var(--pad) clamp(18px, 3vw, 34px);
  background: transparent;
}

.contact-panel {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) var(--pad) clamp(26px, 3.4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--contact-bg);
  color: var(--contact-ink);
  overflow: hidden;
  transition: background 0.5s ease;
}

.contact-panel > * {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.contact-watermark {
  position: absolute;
  top: 2%;
  right: -1.5%;
  z-index: 1;
  font-family: var(--font-serif-en);
  font-size: clamp(5.5rem, 17vw, 17rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  color: rgba(246, 241, 233, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.contact-top {
  max-width: 760px !important;
  margin-left: 0 !important;
}

.contact-kicker {
  margin-bottom: 20px;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--contact-muted);
  text-transform: uppercase;
}

.contact-title {
  margin-bottom: 22px;
  font-family: var(--font-serif-cn);
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--contact-ink);
}

.contact-sub {
  color: var(--contact-muted);
  font-size: clamp(13.5px, 1.1vw, 15px);
  line-height: 1.95;
}

.contact-rows {
  margin-top: clamp(42px, 6vw, 78px);
  border-top: 1px solid var(--contact-line);
}

.contact-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 27px) 0;
  border-bottom: 1px solid var(--contact-line);
  color: inherit;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}

a.contact-row:hover {
  padding-inline: 18px;
  background: rgba(20, 17, 14, 0.1);
}

.contact-label {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--contact-muted);
}

.contact-value {
  font-family: var(--font-serif-en);
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  letter-spacing: 0.045em;
  line-height: 1.3;
}

.contact-arrow {
  justify-self: end;
  font-size: 19px;
  transition: transform 0.4s var(--ease);
}

a.contact-row:hover .contact-arrow {
  transform: translate(4px, -4px);
}

.contact-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 46px);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--contact-muted);
  text-transform: uppercase;
}

.contact-top-link {
  color: inherit;
  transition: color 0.3s;
}

.contact-top-link:hover {
  color: var(--contact-ink);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 26px var(--pad) 34px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif-cn);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.footer-brand span {
  font-family: var(--font-serif-en);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.footer-nav a {
  color: var(--muted);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------- project modal ---------- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 28px);
}

.project-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 4, 0.6);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.project-modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  height: min(92svh, 100%);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.project-modal.is-open .modal-panel {
  opacity: 1;
  transform: none;
}

.modal-bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px clamp(16px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
  background: rgba(237, 234, 227, 0.88);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .modal-bar {
  background: rgba(20, 16, 13, 0.88);
}

.modal-index {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.modal-controls {
  display: flex;
  gap: 8px;
}

.modal-nav svg,
.modal-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(26px, 4.4vw, 60px) clamp(20px, 4.6vw, 68px) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.modal-head {
  max-width: 900px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s 0.08s var(--ease), transform 0.6s 0.08s var(--ease);
}

.project-modal.is-open .modal-head {
  opacity: 1;
  transform: none;
}

.modal-kicker {
  margin-bottom: 14px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--brown);
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-serif-cn);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.015em;
}

.modal-title-en {
  margin: 10px 0 24px;
  font-family: var(--font-serif-en);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.modal-desc {
  max-width: 68ch;
  margin-bottom: 22px;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.95;
  color: var(--ink);
  opacity: 0.8;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 34px);
  margin-top: clamp(30px, 4.4vw, 56px);
}

.modal-item {
  margin: 0;
  cursor: zoom-in;
}

.modal-item img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  background: var(--surface);
  transition: opacity 0.35s var(--ease);
}

.modal-item:hover img {
  opacity: 0.92;
}

.modal-item figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.modal-item figcaption::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

.modal-foot {
  padding: clamp(32px, 5vw, 62px) 0 clamp(28px, 4vw, 52px);
}

.modal-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  text-align: left;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.modal-next:hover {
  background: var(--brown);
  color: #fff;
  transform: translateY(-2px);
}

.modal-next-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.modal-next-name {
  font-family: var(--font-serif-cn);
  font-style: normal;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  text-align: right;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 42px);
  background: rgba(8, 6, 4, 0.94);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-figure img {
  width: auto;
  max-width: min(92vw, 1600px);
  max-height: 82svh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.lightbox-figure figcaption {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: rgba(246, 241, 233, 0.66);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(246, 241, 233, 0.24);
  border-radius: 50%;
  background: rgba(246, 241, 233, 0.06);
  color: #f6f1e9;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(246, 241, 233, 0.16);
}

.lightbox-close {
  top: clamp(12px, 2vw, 26px);
  right: clamp(12px, 2vw, 26px);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: clamp(8px, 2vw, 30px);
}

.lightbox-next {
  right: clamp(8px, 2vw, 30px);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

html.has-cursor .cursor.is-visible {
  opacity: 1;
}

html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor .work-card,
html.has-cursor .modal-item {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  mix-blend-mode: difference;
}

/* JS 只写 --dx/--dy（点）与 --rx/--ry（环），单位 px；CSS 负责居中 */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transform: translate3d(var(--dx, -80px), var(--dy, -80px), 0) translate(-50%, -50%);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transform: translate3d(var(--rx, -80px), var(--ry, -80px), 0) translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    background 0.35s var(--ease);
}

.cursor.is-hover .cursor-ring {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--pad);
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}

.error-inner {
  max-width: 620px;
}

.error-code {
  font-family: var(--font-serif-en);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.9;
  color: var(--brown);
}

.error-title {
  margin: 14px 0 16px;
  font-family: var(--font-serif-cn);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
}

.error-text {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- reveal / keyframes ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-delay="1"] {
  transition-delay: 0.09s;
}

[data-delay="2"] {
  transition-delay: 0.18s;
}

[data-delay="3"] {
  transition-delay: 0.27s;
}

[data-delay="4"] {
  transition-delay: 0.36s;
}

@keyframes titleUp {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .hero-title-cn {
    font-size: clamp(3.6rem, 10.8vw, 8.4rem);
  }

  .hero-title-en {
    font-size: clamp(2.4rem, 6.6vw, 5.2rem);
  }

  .art-card-a {
    width: 60%;
  }

  .art-card-b {
    width: 55%;
  }
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-side {
    order: 2;
  }

  .about-collage {
    height: min(56vw, 440px);
    max-width: 620px;
    margin-left: auto;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .works-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .works-sub {
    margin-left: 0;
  }

  .contact-value {
    font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-panel {
    padding-top: calc(var(--header-h) + 30px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 8px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    min-height: clamp(300px, 46vw, 420px);
    margin-top: 12px;
  }

  .art-badge {
    top: -6%;
    right: 4%;
  }

  .hero-foot {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .hero-note {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .hero-meta {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card:first-child {
    grid-column: 1 / -1;
  }

  .work-card:first-child .work-media,
  .work-card .work-media {
    aspect-ratio: 16 / 10;
  }

  .work-card:nth-child(even) .work-media {
    aspect-ratio: 16 / 10;
  }

  .work-open {
    opacity: 1;
    transform: none;
  }

  .service {
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    padding: 18px 4px;
  }

  .service-en {
    display: none;
  }

  .service-no {
    grid-column: 1;
  }

  .contact-row {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
  }

  .project-modal {
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .modal-scroll {
    padding-bottom: 0;
  }

  .modal-head {
    max-width: none;
  }

  .footer-inner {
    justify-content: flex-start;
  }

  .footer-copy {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 0;
  }

  .hero-panel {
    border-radius: 0;
    min-height: 100svh;
    padding-left: clamp(18px, 6vw, 28px);
    padding-right: clamp(18px, 6vw, 28px);
    padding-bottom: 24px;
  }

  .hero-title-cn {
    font-size: clamp(3.4rem, 16.5vw, 5.4rem);
  }

  .hero-title-en {
    font-size: clamp(2.1rem, 11.4vw, 3.6rem);
  }

  .hero-stamp {
    display: none;
  }

  .hero-desc br {
    display: none;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    height: 50px;
    padding: 0 22px;
    font-size: 12px;
  }

  .hero-visual {
    min-height: 46vw;
    max-height: 340px;
  }

  .art-card {
    padding: 5px 5px 6px;
    border-radius: 11px;
  }

  .art-card figcaption {
    display: none;
  }

  .art-badge {
    width: 74px;
    height: 74px;
  }

  .hero-meta dd {
    font-size: 21px;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .section-title-en {
    display: none;
  }

  .about-copy {
    grid-template-columns: 1fr;
  }

  .services {
    margin-top: 46px;
  }

  .service-name {
    font-size: 1.15rem;
  }

  .stats {
    margin-top: 46px;
  }

  .works-lead {
    font-size: clamp(1.8rem, 7.6vw, 2.4rem);
  }

  .work-title {
    font-size: 1.35rem;
  }

  .contact-panel {
    border-radius: 26px;
    padding-top: 48px;
  }

  .contact-title {
    font-size: clamp(2.2rem, 10.6vw, 3rem);
  }

  .contact-value {
    font-size: 1rem;
    letter-spacing: 0.02em;
    word-break: break-word;
  }

  .contact-foot {
    flex-direction: column;
    gap: 10px;
  }

  .error-inner .btn {
    width: 100%;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track,
  .art-badge-ring,
  .scroll-cue-line::after {
    animation: none !important;
  }

  .title-line > span {
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-art {
    opacity: 1;
  }

  .art-card {
    transform: rotate(-3deg);
  }
}

/* ---------- print ---------- */
@media print {
  .site-header,
  .scroll-progress,
  .cursor,
  .hero-visual,
  .marquee {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

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