/* =========================================================
   幻想之喵 · hmcat.com｜Hello My Cat — studio site
   ink / paper / sky / star-gold, hand-drawn canvas
   ========================================================= */

:root {
  --ink: #121820;
  --ink-2: #1a2430;
  --night: #0a0f16;
  --paper: #f4efe6;
  --paper-2: #ece4d5;
  --paper-3: #e4dac8;
  --sky: #4f86c6;
  --sky-2: #9cc2e8;
  --sky-ink: #2f6aa4;
  --gold: #c9a96a;
  --gold-2: #e3cd9d;
  --gold-ink: #7d5f2b;
  --muted: #5d6873;
  --line: rgba(18, 24, 32, 0.14);
  --line-soft: rgba(18, 24, 32, 0.08);
  --rail: 88px;
  --pad: clamp(20px, 3.2vw, 58px);

  --sans: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Cormorant Garamond", "Merchant", "Times New Roman", "Kaiti SC", "KaiTi", "STKaiti", "Songti SC", "Noto Serif SC", "SimSun", serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Menlo", monospace;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}


body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
  background: var(--night);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol,
dl,
dd,
figure,
p,
h1,
h2,
h3 {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(79, 134, 198, 0.28);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip:focus {
  transform: none;
}

.wrap {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* 固定竖栏之外的页面内容统一右移，避免区块被竖栏遮住 */
main {
  margin-left: var(--rail);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.hand {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  width: calc(100% + 20px);
  z-index: 900;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--paper);
  transition: opacity 0.75s var(--ease), visibility 0.75s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s var(--ease) 0.14s, visibility 0.38s 0.14s;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.preloader__mark {
  width: clamp(30px, 3.2vw, 42px);
  height: clamp(30px, 3.2vw, 42px);
  color: var(--paper);
  animation: floaty 3.6s ease-in-out infinite;
}

.pl-draw {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: draw 1.35s var(--ease) forwards;
}

.pl-draw:nth-child(2) {
  animation-delay: 0.15s;
}

.pl-draw:nth-child(3) {
  animation-delay: 0.5s;
}

/* 预加载名牌：一行小字的气质 —— 逐字落位、灰蓝重影、字距 0.8s 由松到紧 */
.pl-type {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1.08em;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--paper);
}

.pl-word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: var(--pl-gap, 0.07em);
  clip-path: inset(-14% -6% -14% -6%);
  transition: gap 0.8s var(--ease), clip-path var(--wipe, 650ms) cubic-bezier(0.76, 0, 0.24, 1);
}

.pl-ch {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0.26em, 0.02em, 0);
  filter: blur(0.04em);
  transition: opacity 0.34s var(--ease-soft), transform 0.46s var(--ease),
    filter 0.34s ease, color 0.22s ease, -webkit-text-stroke-color 0.3s ease;
}

.pl-ch.is-ghost {
  color: rgba(156, 194, 232, 0.5);
}

.pl-ch.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.pl-ch.is-out {
  opacity: 0;
  transform: translate3d(-0.16em, 0, 0);
  filter: blur(0.04em);
}

.pl-ch.is-gold {
  color: var(--gold-2);
}

.pl-sub {
  font-size: 10px;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: rgba(244, 239, 230, 0.72);
  clip-path: inset(-60% -6% -60% -6%);
  transition: opacity 0.55s var(--ease-soft), letter-spacing 0.9s var(--ease),
    clip-path var(--wipe, 650ms) cubic-bezier(0.76, 0, 0.24, 1);
}

.pl-sub.is-wait {
  opacity: 0;
  letter-spacing: 0.76em;
}

.pl-sub.is-in {
  opacity: 0.78;
  letter-spacing: 0.52em;
}

.preloader.is-wiping .pl-word {
  clip-path: inset(-14% 0 -14% 100%);
}

.preloader.is-wiping .pl-sub {
  clip-path: inset(-60% 0 -60% 100%);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- fixed rail ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 120;
  width: var(--rail);
  padding: 26px 0 24px;
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid rgba(244, 239, 230, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.rail__mark {
  width: 34px;
  height: 34px;
  transition: transform 0.6s var(--ease);
}

.rail__brand:hover .rail__mark {
  transform: rotate(-8deg) scale(1.06);
}

.rail__name {
  font-size: 9px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  color: rgba(244, 239, 230, 0.62);
}

.rail__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 0.26em;
  line-height: 1.1;
  color: rgba(244, 239, 230, 0.52);
  text-transform: uppercase;
}

.rail__social {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
}

.rail__social a {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 230, 0.66);
  transition: color 0.3s ease, transform 0.3s var(--ease);
}

.rail__social a:hover {
  color: var(--gold-2);
  transform: translateY(-2px);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rail__clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(244, 239, 230, 0.55);
}

.rail__clock i {
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.rail__lang {
  font-size: 8px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  color: rgba(244, 239, 230, 0.5);
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 22px;
  right: var(--pad);
  left: calc(var(--rail) + var(--pad));
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.topbar a,
.topbar button {
  pointer-events: auto;
}

.topbar__brand {
  display: none;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.topbar__brand svg {
  width: 27px;
  height: 27px;
}

.topbar__nav {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

.topbar__nav a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transition: opacity 0.3s ease;
}

.topbar__nav a i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.2em;
  opacity: 0.55;
}

.topbar__nav a:hover {
  opacity: 0.62;
}

.topbar__nav a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

/* 顶部 1px 进度线：只在滚动时短暂出现，不占内容宽度 */
.progress {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  z-index: 110;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.progress.is-active {
  opacity: 0.55;
}

.progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
  margin-left: 0;
}

.hero__canvas {
  position: absolute;
  inset: -2% -2% -2% -2%;
  width: 104%;
  height: 104%;
  z-index: 0;
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.78) 0%, rgba(8, 12, 18, 0.42) 38%, rgba(8, 12, 18, 0) 64%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.5) 0%, rgba(8, 12, 18, 0) 26%, rgba(8, 12, 18, 0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(244, 239, 230, 0.66);
  margin-bottom: clamp(28px, 5vh, 58px);
}

.hero__kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.14);
}

.hero__kicker i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 230, 0.55);
  border-left: 1px solid rgba(244, 239, 230, 0.18);
  padding-left: 12px;
}

.hero__title {
  max-width: 15.5em;
  font-size: clamp(50px, 8.1vw, 128px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 10px 70px rgba(0, 0, 0, 0.38);
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero__word,
.hero__title em {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  will-change: transform;
  transition: transform 1.15s var(--ease), opacity 0.9s var(--ease);
  transition-delay: calc(0.24s + var(--i) * 0.11s);
}

.hero__title em {
  position: relative;
  color: var(--gold-2);
  letter-spacing: 0.005em;
  padding-right: 0.04em;
}

.scribble {
  position: absolute;
  left: -0.02em;
  right: 0;
  bottom: -0.08em;
  width: 100%;
  height: 0.13em;
  overflow: visible;
  opacity: 0;
}

.scribble path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  vector-effect: non-scaling-stroke;
}

body.is-ready .hero__word,
body.is-ready .hero__title em {
  transform: translateY(0);
  opacity: 1;
}

body.is-ready .scribble {
  opacity: 0.85;
  transition: opacity 0.5s ease 1.35s;
}

body.is-ready .scribble path {
  animation: draw 1.4s var(--ease) 1.15s forwards;
}

.hero__sub {
  margin-top: clamp(24px, 3.6vh, 42px);
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  letter-spacing: 0.19em;
  line-height: 1.9;
  color: rgba(244, 239, 230, 0.58);
  text-transform: uppercase;
}

.hero__services {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(38px, 5vh, 58px);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 46px);
}

.service {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 230, 0.22);
  transition: border-color 0.4s ease;
}

.service:hover {
  border-color: rgba(244, 239, 230, 0.6);
}

.service__num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 230, 0.55);
  align-self: flex-start;
  padding-top: 4px;
}

.service__label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.service__label b {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.service__label i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.58);
}

.service__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, 0.34);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--paper);
  transition: background 0.45s var(--ease), color 0.45s ease, transform 0.45s var(--ease);
}

.service:hover .service__arrow {
  background: var(--paper);
  color: var(--ink);
  transform: translateX(4px);
}

.hero__tear {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 34px;
  fill: var(--paper);
  pointer-events: none;
}

/* ---------- labels / reveal ---------- */
.label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.label em {
  font-style: normal;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.label--light {
  color: rgba(244, 239, 230, 0.62);
}

.label--light em {
  color: rgba(244, 239, 230, 0.56);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- statement ---------- */
.statement {
  background: var(--paper);
  padding: clamp(96px, 12vw, 176px) 0 clamp(84px, 9vw, 130px);
}

.statement__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
}

.statement__grid > .label {
  grid-column: 1 / 4;
  padding-top: 12px;
}

.statement__body {
  grid-column: 4 / 13;
  max-width: 900px;
}

.statement__text {
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.78;
  letter-spacing: 0.005em;
  color: rgba(18, 24, 32, 0.92);
}

/* 宽屏按语义断行，窄屏交回自然折行 */
.br-wide {
  display: none;
}

@media (min-width: 1024px) {
  .br-wide {
    display: inline;
  }
}

/* 两处高亮统一为金色记号笔，底色严格贴住字形、不跨行拆分 */
.statement__text em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  color: inherit;
  padding: 0;
  margin: 0 0.02em;
  white-space: nowrap;
  background: linear-gradient(transparent 58%, rgba(201, 169, 106, 0.42) 58%);
}

.statement__note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: #46515c;
}

.statement__note span {
  font-family: var(--serif);
  font-size: 15.5px;
  color: #5f574a;
}

.statement__list {
  margin-top: clamp(36px, 4.4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #313c47;
}

.statement__list li {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.statement__list span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold-ink);
}

/* ---------- 宣言里的小动作 ----------
   手绘小画挂在词上，不改行盒与断行；进入视口演一次，悬停重播 */
.dood {
  position: relative;
}

.dood svg {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  max-width: none;
}

body.motion .statement__text:not(.in) .dood svg,
body.motion .statement__text:not(.in) .dood .cap {
  opacity: 0;
}

body.motion .statement__text.in .dood svg {
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.3, 1);
  animation-fill-mode: both;
  animation-delay: 0.9s;
}

body.motion .statement__text.in .dood[data-d="slip"] svg {
  animation-name: dood-slip;
}
body.motion .statement__text.in .dood[data-d="sun"] svg {
  animation-name: dood-sun;
}
body.motion .statement__text.in .dood[data-d="fish"] svg {
  animation-name: dood-fish;
}
body.motion .statement__text.in .dood[data-d="cloud"] svg {
  animation-name: dood-cloud;
}
body.motion .statement__text.in .dood[data-d="peek"] svg {
  animation-name: dood-peek;
}

/* 溜：字向右滑一下再回位，后面拖三道笔痕 */
body.motion .statement__text.in .dood[data-d="slip"] .ch {
  animation: ch-slip 1.2s cubic-bezier(0.22, 1, 0.3, 1) 0.9s both;
}

.dood[data-d="slip"] svg {
  left: -6px;
  top: calc(100% - 1px);
  width: 18px;
  height: 10px;
  color: var(--ink);
  opacity: 0.55;
}

.dood[data-d="sun"] svg {
  left: 50%;
  top: -21px;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  color: var(--gold-ink);
}

.dood[data-d="fish"] svg {
  left: 14%;
  top: calc(100% - 2px);
  width: 32px;
  height: 19px;
  color: var(--sky-ink);
  opacity: 0.92;
}

.dood[data-d="cloud"] svg {
  left: 50%;
  top: -20px;
  width: 30px;
  height: 17px;
  margin-left: -15px;
  color: var(--ink);
  opacity: 0.55;
}

/* 探出头来：容器底边压在行上，猫头从底线后面升出来 */
.dood[data-d="peek"] .cap {
  position: absolute;
  left: calc(100% + 3px);
  bottom: -3px;
  width: 36px;
  height: 32px;
  overflow: hidden;
}

.dood[data-d="peek"] .cap svg {
  position: static;
  display: block;
  width: 36px;
  height: 32px;
  color: var(--ink);
}

@keyframes ch-slip {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(8px);
  }
  55% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes dood-slip {
  0% {
    opacity: 0;
    transform: translateX(6px);
  }
  40% {
    opacity: 0.5;
    transform: translateX(-1px);
  }
  100% {
    opacity: 0.5;
    transform: translateX(0);
  }
}

@keyframes dood-sun {
  0% {
    opacity: 0;
    transform: scale(0.82) rotate(-14deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.05) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes dood-fish {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  30% {
    opacity: 0.9;
    transform: translateY(0);
  }
  46% {
    transform: translateY(0) rotate(-5deg);
  }
  62% {
    transform: translateY(0) rotate(5deg);
  }
  78% {
    transform: translateY(0) rotate(-3deg);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0) rotate(0);
  }
}

@keyframes dood-cloud {
  0% {
    opacity: 0;
    transform: translateX(-5px);
  }
  55% {
    opacity: 0.55;
    transform: translateX(9px);
  }
  100% {
    opacity: 0.55;
    transform: translateX(0);
  }
}

@keyframes dood-peek {
  0% {
    transform: translateY(100%);
  }
  58% {
    transform: translateY(-8%);
  }
  76% {
    transform: translateY(2%);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .dood[data-d="slip"] svg {
    left: -14px;
    width: 13px;
    height: 12px;
    margin-top: -6px;
  }
  .dood[data-d="sun"] svg {
    width: 24px;
    height: 24px;
    top: -18px;
    margin-left: -12px;
  }
  .dood[data-d="fish"] svg {
    width: 28px;
    height: 17px;
  }
  .dood[data-d="cloud"] svg {
    width: 26px;
    height: 15px;
    top: -17px;
    margin-left: -13px;
  }
  .dood[data-d="peek"] .cap {
    width: 30px;
    height: 28px;
  }
  .dood[data-d="peek"] .cap svg {
    width: 30px;
    height: 28px;
  }
}

/* ---------- brand band ---------- */
.brandband {
  position: relative;
  overflow: hidden;
  height: clamp(112px, 9vw, 146px);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(244, 239, 230, 0.08);
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}

.brandband__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brandband__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding-left: clamp(152px, 19vw, 268px);
  padding-right: var(--pad);
}

.brandband__copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.brandband__name {
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 40px);
  line-height: 1;
  letter-spacing: 0.06em;
}

.brandband__en {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: rgba(244, 239, 230, 0.55);
}

.brandband__note {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.22em;
  text-align: right;
  color: rgba(244, 239, 230, 0.52);
}

/* ---------- works ---------- */
.works {
  background: var(--paper);
  padding: clamp(82px, 10vw, 136px) 0 clamp(90px, 11vw, 150px);
}

.works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: clamp(34px, 4.6vw, 62px);
}

.works__head h2 {
  margin-top: 18px;
  font-size: clamp(42px, 5.8vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-align: left;
  flex-shrink: 0;
}

.linkbtn__dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: background 0.45s var(--ease), color 0.4s ease, transform 0.5s var(--ease), border-color 0.4s ease;
}

.linkbtn:hover .linkbtn__dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: rotate(-45deg);
}

.linkbtn__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.linkbtn__text em {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.linkbtn--light {
  color: var(--paper);
}

.linkbtn--light .linkbtn__dot {
  border-color: rgba(244, 239, 230, 0.34);
}

.linkbtn--light:hover .linkbtn__dot {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.linkbtn--light .linkbtn__text em {
  color: rgba(244, 239, 230, 0.56);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(26px, 3vw, 46px) clamp(18px, 2.2vw, 32px);
}

.work {
  outline-offset: 6px;
  cursor: pointer;
}

.work--wide {
  grid-column: span 12;
}

.work--l {
  grid-column: span 7;
}

.work--s {
  grid-column: span 5;
}

.work--wide2 {
  grid-column: span 12;
  margin-top: clamp(10px, 2.4vw, 38px);
}

.work__media {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink-2);
  box-shadow: 0 24px 60px -46px rgba(18, 24, 32, 0.55);
}

.work--wide .work__media {
  aspect-ratio: 16 / 7.1;
}

.work--l .work__media,
.work--s .work__media {
  aspect-ratio: auto;
  height: clamp(340px, 37vw, 560px);
}

.work--wide2 .work__media {
  aspect-ratio: 21 / 8;
}

.work__media canvas {
  width: 100%;
  height: 100%;
  transition: transform 1.2s var(--ease);
}

.work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.1);
  border-radius: 3px;
}

.work:hover .work__media canvas {
  transform: scale(1.035);
}

.work__tag {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.86);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.work__cap {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

.work__idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.work__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work__title b {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.35s ease;
}

.work__title i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.work__arrow {
  font-size: 15px;
  color: var(--muted);
  transition: transform 0.5s var(--ease), color 0.35s ease;
}

.work:hover .work__title b {
  color: var(--sky-ink);
}

.work:hover .work__arrow {
  transform: translate(4px, -4px);
  color: var(--ink);
}

/* ---------- about ---------- */
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(96px, 13vw, 168px) var(--pad);
}

.about__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.about__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(9, 13, 19, 0.18) 0%, rgba(9, 13, 19, 0.62) 72%),
    linear-gradient(180deg, rgba(9, 13, 19, 0.5) 0%, rgba(9, 13, 19, 0) 26%, rgba(9, 13, 19, 0.55) 100%);
}

.about__content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about__content > .label {
  align-items: center;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.about__title {
  font-size: clamp(60px, 9.2vw, 128px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
}

.about__cn {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold-2);
}

/* 第一句用衬线做引子，与下方事实段拉开层级 */
.about__lede {
  margin: clamp(24px, 3.2vw, 38px) auto 0;
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 25px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 230, 0.94);
}

.about__text {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: clamp(14px, 1.2vw, 16.5px);
  font-weight: 300;
  line-height: 2.05;
  letter-spacing: 0.05em;
  color: rgba(244, 239, 230, 0.66);
}

.stats {
  margin: clamp(44px, 6vw, 70px) auto clamp(38px, 4.6vw, 58px);
  max-width: 820px;
  padding: 26px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
  border-bottom: 1px solid rgba(244, 239, 230, 0.16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats b {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stats span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.58);
}

.about .linkbtn {
  margin: 0 auto;
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  background: var(--paper);
  padding-top: clamp(72px, 9vw, 116px);
  overflow: hidden;
}

.footer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: clamp(34px, 4.4vw, 58px);
  border-bottom: 1px solid var(--line);
}

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-align: left;
}

.footer__cta i {
  font-style: normal;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sky-ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease;
}

.footer__cta:hover i {
  border-color: var(--sky-ink);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding-top: clamp(46px, 5.4vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer__col--brand {
  padding-right: clamp(10px, 2vw, 30px);
}

.footer__seal {
  display: block;
  width: 44px;
  height: 44px;
}

.footer__brandname {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.footer__domain {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer__tagline {
  margin-top: 12px;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}

.footer__col h3 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.footer__col h3 em {
  font-style: normal;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.footer__col ul {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer__col li {
  font-size: 12.5px;
  line-height: 1.8;
  color: #4f5a65;
}

.footer__col a {
  transition: color 0.3s ease;
}

.footer__col a:hover {
  color: var(--sky-ink);
}

/* 底栏内的品牌名：与左侧版权同一行、水平居中、循环演出 */
.footer__word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  min-height: 1.1em;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-transform: none;
  color: var(--ink);
  user-select: none;
  pointer-events: none;
}

.footer__word .pl-word {
  gap: var(--pl-gap, 0em);
  transition: gap 0.8s var(--ease);
}

.footer__word .pl-ch:not(:first-child) {
  margin-left: -0.02em;
}

.footer__word .pl-ch {
  color: inherit;
  transition: opacity 0.45s var(--ease-soft), transform 0.55s var(--ease), filter 0.45s ease;
}

.footer__word .pl-ch.is-ghost {
  color: var(--sky-ink);
}

.footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(20px, 2.6vw, 34px);
  padding-top: 13px;
  padding-bottom: 15px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 窄屏放不下三样东西，品牌名单独占一行居中，底栏仍保持紧凑 */
@media (max-width: 780px) {
  .footer__bottom {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .footer__word {
    position: static;
    transform: none;
    width: 100%;
    order: 3;
    margin-top: 2px;
  }
}

.footer__bottom p span {
  margin: 0 6px;
  opacity: 0.5;
}

.footer__bottom-links {
  display: flex;
  gap: 22px;
}

.footer__bottom-links a {
  transition: color 0.3s ease;
}

.footer__bottom-links a:hover {
  color: var(--ink);
}

/* ---------- project dialog ---------- */
.project {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.project::backdrop {
  background: rgba(6, 9, 13, 0.62);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.project[open] {
  display: flex;
  flex-direction: column;
  animation: dialogIn 0.55s var(--ease);
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.project__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad);
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
  flex-shrink: 0;
}

.project__index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 239, 230, 0.6);
}

.project__close {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 230, 0.72);
  transition: color 0.3s ease;
}

/* 视觉尺寸保持不变，把可点击/触摸热区补到 44px */
.project__close::after {
  content: "";
  position: absolute;
  inset: -13px -12px;
}

.project__close:hover {
  color: var(--paper);
}

.project__close i {
  font-style: normal;
  font-size: 22px;
  line-height: 0.6;
}

.project__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
}

.project__media {
  position: relative;
  background: #0b1016;
  overflow: hidden;
  min-height: 0;
}

.project__media canvas {
  width: 100%;
  height: 100%;
}

.project__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(26px, 3.6vw, 56px);
  border-left: 1px solid rgba(244, 239, 230, 0.1);
  overflow-y: auto;
}

.project__type {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.project__info h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.project__en {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.56);
}

.project__desc {
  margin-top: clamp(20px, 2.6vw, 34px);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(244, 239, 230, 0.74);
}

.project__meta {
  margin-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

.project__meta > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}

.project__meta dt {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.56);
  padding-top: 2px;
}

.project__meta dd {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 230, 0.8);
}

.project__nav {
  display: flex;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 40px);
}

.project__nav button {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(244, 239, 230, 0.22);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.78);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.project__nav button:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* ---------- index panel ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(10, 15, 22, 0.44);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.index-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 140;
  height: 100%;
  width: min(560px, 100%);
  padding: 34px var(--pad) 30px;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transform: translateX(103%);
  transition: transform 0.68s var(--ease);
  box-shadow: -40px 0 90px rgba(10, 15, 22, 0.2);
}

.index-panel.is-open {
  transform: none;
}

.index-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.index-panel__head button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  transition: background 0.35s ease, color 0.35s ease;
}

.index-panel__head button:hover {
  background: var(--ink);
  color: var(--paper);
}

.index-panel__list {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
}

.index-panel__list li {
  border-bottom: 1px solid var(--line);
}

.index-panel__list button {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 21px 0;
  text-align: left;
  transition: padding 0.4s var(--ease), color 0.3s ease;
}

.index-panel__list button:hover {
  padding-left: 8px;
  color: var(--sky-ink);
}

.index-panel__list .idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.index-panel__list .ttl {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.index-panel__list .ttl i {
  font-style: normal;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-panel__list .yr {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.index-panel__foot {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) and (min-width: 961px) {
  .hero__title {
    font-size: 7.2vw;
  }
}

@media (max-width: 1080px) {
  :root {
    --rail: 74px;
  }

  .rail__meta {
    display: none;
  }

  .topbar__nav {
    gap: 24px;
  }
}

@media (max-width: 960px) {
  :root {
    --rail: 0px;
  }

  .rail {
    display: none;
  }

  .hero {
    margin-left: 0;
  }

  .topbar {
    top: 15px;
    left: var(--pad);
    right: var(--pad);
    align-items: center;
    justify-content: space-between;
  }

  .topbar__brand {
    display: flex;
    padding: 9px;
    margin: -9px;
  }

  .topbar__nav {
    gap: 6px;
  }

  .topbar__nav a {
    align-items: flex-end;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 6px;
    font-size: 12px;
  }

  .topbar__nav a i {
    display: none;
  }

  .progress {
    display: none;
  }

  .hero__inner {
    justify-content: flex-end;
    padding-bottom: 240px;
  }

  .hero__kicker {
    margin-top: 0;
  }

  .statement__grid > .label,
  .statement__body {
    grid-column: 1 / 13;
  }

  .statement__grid > .label {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding-top: 0;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 38px 24px;
  }

  .project__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh 1fr;
    overflow-y: auto;
  }

  .project__info {
    border-left: 0;
    border-top: 1px solid rgba(244, 239, 230, 0.1);
    overflow: visible;
  }
}

@media (max-width: 780px) {
  .hero {
    min-height: 480px;
  }

  .hero__title {
    font-size: clamp(43px, 10.4vw, 72px);
    line-height: 1.02;
  }

  .hero__sub {
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  .hero__services {
    grid-template-columns: 1fr;
    gap: 0;
    bottom: 26px;
  }

  .service {
    padding: 11px 0;
    gap: 12px;
  }

  .service__num {
    width: 22px;
    padding-top: 2px;
  }

  .service__label {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .service__label b {
    font-size: 14px;
  }

  .service__label i {
    font-size: 8px;
  }

  .service__arrow {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .hero__tear {
    height: 22px;
  }

  .works__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .work--wide,
  .work--l,
  .work--s,
  .work--wide2 {
    grid-column: span 12;
    margin-top: 0;
  }

  .work--wide .work__media,
  .work--l .work__media,
  .work--s .work__media {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .work--wide2 .work__media {
    aspect-ratio: 16 / 10;
  }

  .work__cap {
    grid-template-columns: 30px 1fr auto;
  }

  .about__text {
    font-size: 14px;
    line-height: 1.95;
  }

  .br-desktop {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
    padding: 24px 0;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
  }

  .footer__col--brand {
    grid-column: 1 / 3;
    padding-right: 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer__word {
    width: 100%;
    font-size: clamp(12px, 3.6vw, 15px);
  }

  .index-panel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .topbar__nav {
    gap: 4px;
  }

  .topbar__nav a {
    padding: 0 6px;
    font-size: 11px;
  }

  .topbar__brand span {
    display: none;
  }

  .hero__kicker {
    flex-wrap: wrap;
    font-size: 9px;
    letter-spacing: 0.12em;
    gap: 8px;
  }

  .hero__kicker i {
    display: none;
  }

  .hero__title {
    font-size: clamp(38px, 11.4vw, 54px);
  }

  .hero__inner {
    padding-bottom: 220px;
  }

  .statement__list {
    gap: 12px 24px;
  }

  .footer__cols {
    grid-template-columns: 1fr;
  }

  .footer__col--brand {
    grid-column: auto;
  }
}

/* ---------- 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__word,
  .hero__title em {
    transform: none;
    opacity: 1;
  }

  .scribble {
    opacity: 0.85;
  }
}

/* =========================================================
   MOTION LAYER — 连贯动效 / 转场 / 视差 / 磁性
   仅使用 transform / opacity / clip-path，保持合成层性能
   ========================================================= */

html {
  scrollbar-gutter: stable;
}

/* ---------- 预加载：幕布上滑 ---------- */
.preloader {
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.preloader.is-done {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: translate3d(0, -101%, 0);
}

.preloader.is-done .preloader__inner {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.34s ease, transform 0.34s var(--ease);
}

/* ---------- 首屏：滚动视差 ---------- */
.hero__inner {
  will-change: transform, opacity;
}

/* 首屏文字：更明显的入场 */
.hero__word,
.hero__title em {
  transform: translateY(122%) rotate(2.5deg);
  transition-duration: 1.05s, 1.15s;
  transition-delay: calc(0.42s + var(--i) * 0.12s);
}

body.motion .hero__kicker,
body.motion .hero__sub,
body.motion .service {
  opacity: 0;
  transform: translateY(16px);
}

body.is-ready .hero__kicker {
  animation: riseIn 0.9s var(--ease) 0.52s both;
}

body.is-ready .hero__sub {
  animation: riseIn 0.95s var(--ease) 0.82s both;
}

body.is-ready .service {
  animation: riseIn 0.9s var(--ease) both;
}

body.is-ready .service:nth-child(1) {
  animation-delay: 0.94s;
}

body.is-ready .service:nth-child(2) {
  animation-delay: 1.02s;
}

body.is-ready .service:nth-child(3) {
  animation-delay: 1.1s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 导航 / 按钮：下划线扫过 ---------- */
.topbar__nav a {
  position: relative;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.topbar__nav a:hover::after,
.topbar__nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.topbar__nav a[aria-current="true"] {
  text-decoration: none;
}

.linkbtn__dot {
  position: relative;
  overflow: hidden;
}

.linkbtn__dot i {
  position: relative;
  z-index: 1;
  display: block;
  font-style: normal;
  transition: transform 0.5s var(--ease);
}

.linkbtn__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0.24);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.35s ease;
}

.linkbtn:hover .linkbtn__dot::before {
  transform: scale(1);
  opacity: 1;
}

.linkbtn:hover .linkbtn__dot i {
  transform: translateX(2px);
}

.linkbtn--light .linkbtn__dot::before {
  background: var(--paper);
}

.service__label b {
  position: relative;
}

.service__label b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.service:hover .service__label b::after {
  transform: scaleX(1);
}

/* ---------- 宣言：逐字墨迹浮现 ---------- */
body.motion .statement__text .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.44em) rotate(0.8deg);
  transition: opacity 0.65s ease, transform 0.85s var(--ease);
  transition-delay: calc(var(--i) * 10ms);
}

body.motion .statement__text.in .ch {
  opacity: 1;
  transform: none;
}

body.motion .statement__note,
body.motion .statement__list {
  transition-delay: 0.18s;
}

/* ---------- 作品：裁切揭示 + 视差 + 聚光 ---------- */
.work__par {
  position: absolute;
  inset: -5% 0;
  z-index: 0;
}

.work__par canvas {
  width: 100%;
  height: 100%;
}

body.motion .work[data-work-reveal] {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: var(--d, 0s);
}

body.motion .work[data-work-reveal].is-in {
  opacity: 1;
}

body.motion .work__media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s var(--ease);
  transition-delay: var(--d, 0s);
}

body.motion .work__par canvas {
  opacity: 0.35;
  transform: scale(1.12);
  transition: transform 1.15s var(--ease), opacity 0.8s ease;
  transition-delay: var(--d, 0s);
}

body.motion .work__cap > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
}

body.motion .work__cap > *:nth-child(1) {
  transition-delay: calc(var(--d, 0s) + 0.32s);
}

body.motion .work__cap > *:nth-child(2) {
  transition-delay: calc(var(--d, 0s) + 0.39s);
}

body.motion .work__cap > *:nth-child(3) {
  transition-delay: calc(var(--d, 0s) + 0.46s);
}

.work[data-work-reveal].is-in .work__media {
  clip-path: inset(0);
}

.work[data-work-reveal].is-in .work__par canvas {
  opacity: 1;
  transform: scale(1);
}

.work[data-work-reveal].is-in .work__cap > * {
  opacity: 1;
  transform: none;
}

.work:hover .work__par canvas {
  transform: scale(1.045);
}

.work[data-work-reveal].is-in:hover .work__par canvas {
  transform: scale(1.045);
  transition: transform 1.2s var(--ease);
  transition-delay: 0s;
}

.work__arrow {
  transition: transform 0.55s var(--ease), color 0.35s ease;
}

.work:hover .work__arrow {
  transform: translate(5px, -5px) rotate(6deg);
}

@supports (animation-timeline: view()) {
  .work__par {
    animation: workShift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  @keyframes workShift {
    from {
      transform: translate3d(0, -2.4%, 0);
    }
    to {
      transform: translate3d(0, 2.4%, 0);
    }
  }
}

/* ---------- 作品区标题线 ---------- */
.works__head h2 {
  position: relative;
}

.works__head h2::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -16px;
  width: 132px;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.15s;
}

.works.is-in .works__head h2::after {
  transform: scaleX(1);
}

/* ---------- 关于：背景视差 + 数据入场 ---------- */
.about__bg {
  position: absolute;
  inset: -4% 0;
  z-index: 0;
}

.about__bg .about__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.motion .about__canvas {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.1s ease, transform 1.7s var(--ease);
}

.about.is-in .about__canvas {
  opacity: 1;
  transform: none;
}

body.motion .stats li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
}

.about.is-in .stats li {
  opacity: 1;
  transform: none;
}

.about.is-in .stats li:nth-child(2) {
  transition-delay: 0.08s;
}

.about.is-in .stats li:nth-child(3) {
  transition-delay: 0.16s;
}

.about.is-in .stats li:nth-child(4) {
  transition-delay: 0.24s;
}

@supports (animation-timeline: view()) {
  .about__bg {
    animation: aboutShift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  @keyframes aboutShift {
    from {
      transform: translate3d(0, -2.6%, 0);
    }
    to {
      transform: translate3d(0, 2.6%, 0);
    }
  }
}

/* ---------- 页脚：大字揭开 + 栏目错峰 ---------- */
body.motion .footer__col {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.9s var(--ease);
}

.footer.is-in .footer__col {
  opacity: 1;
  transform: none;
}

.footer.is-in .footer__col:nth-child(2) {
  transition-delay: 0.08s;
}

.footer.is-in .footer__col:nth-child(3) {
  transition-delay: 0.16s;
}

.footer.is-in .footer__col:nth-child(4) {
  transition-delay: 0.24s;
}

/* 底部大字改为逐字落位（见 .footer__word .pl-ch），不再整块裁切reveal */

/* ---------- 详情弹层：从卡片位置圆形展开 ---------- */
.project {
  clip-path: circle(0px at var(--ox, 50vw) var(--oy, 50vh));
  transition: clip-path 0.8s var(--ease);
  animation: none;
}

.project[open] {
  animation: none;
}

.project.is-open {
  clip-path: circle(150vmax at var(--ox, 50vw) var(--oy, 50vh));
}

.project.is-closing {
  clip-path: circle(0px at var(--ox, 50vw) var(--oy, 50vh));
  transition-duration: 0.44s;
  pointer-events: none;
}

.project::backdrop {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project.is-open::backdrop {
  opacity: 1;
}

.project.is-closing::backdrop {
  opacity: 0;
}

.project__info {
  transition: opacity 0.4s ease;
}

body.motion .project__info > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
}

.project.is-open .project__info > * {
  opacity: 1;
  transform: none;
}

.project.is-open .project__info > *:nth-child(2) {
  transition-delay: 0.06s;
}

.project.is-open .project__info > *:nth-child(3) {
  transition-delay: 0.12s;
}

.project.is-open .project__info > *:nth-child(4) {
  transition-delay: 0.18s;
}

.project.is-open .project__info > *:nth-child(5) {
  transition-delay: 0.24s;
}

.project.is-open .project__info > *:nth-child(6) {
  transition-delay: 0.3s;
}

body.motion .project__media canvas {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.85s ease 0.12s, transform 1.25s var(--ease) 0.12s;
}

.project.is-open .project__media canvas {
  opacity: 1;
  transform: none;
}

.project.is-switching .project__media canvas {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.project.is-switching .project__info {
  opacity: 0.15;
  transition: opacity 0.18s ease;
}

.project.is-closing .project__info > *,
.project.is-closing .project__media canvas {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

/* ---------- 作品索引抽屉 ---------- */
.scrim {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.scrim.is-on {
  opacity: 1;
}

.index-panel {
  transition: transform 0.85s var(--ease);
}

body.motion .index-panel__list li {
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.55s ease, transform 0.75s var(--ease);
}

.index-panel.is-open .index-panel__list li {
  opacity: 1;
  transform: none;
}

.index-panel.is-open .index-panel__list li:nth-child(1) {
  transition-delay: 0.1s;
}

.index-panel.is-open .index-panel__list li:nth-child(2) {
  transition-delay: 0.17s;
}

.index-panel.is-open .index-panel__list li:nth-child(3) {
  transition-delay: 0.24s;
}

.index-panel.is-open .index-panel__list li:nth-child(4) {
  transition-delay: 0.31s;
}

.index-panel__head button {
  transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--ease);
}

.index-panel__head button:hover {
  transform: rotate(90deg);
}

/* ---------- 滚动进度 ---------- */
.progress i {
  will-change: transform;
}

/* ---------- 移动端 / 触屏降级 ---------- */
@media (max-width: 780px) {
  .brandband__note {
    display: none;
  }

  .work__par {
    inset: 0;
    animation: none !important;
    transform: none !important;
  }

  /* 弹层关闭：视觉尺寸不变，触控高度补到 44px */
  .project__bar {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .project__close {
    min-height: 44px;
    padding: 0 4px;
  }

  .project__index {
    align-self: center;
  }

  .about__bg {
    inset: 0;
    animation: none !important;
    transform: none !important;
  }

  .project::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .project {
    transition-duration: 0.55s;
  }
}

/* ---------- 动效层 reduced motion 兜底 ---------- */
@media (prefers-reduced-motion: reduce) {
  .preloader {
    transition-property: opacity !important;
    transition-duration: 0.4s !important;
  }

  .preloader.is-done {
    display: grid !important;
    opacity: 0;
    visibility: hidden;
    transform: none !important;
    transition-duration: 0.4s !important;
  }

  body.motion .work[data-work-reveal],
  body.motion .work__cap > *,
  body.motion .statement__text .ch,
  body.motion .about__canvas,
  body.motion .stats li,
  body.motion .footer__col,
  body.motion .project__info > *,
  body.motion .project__media canvas,
  body.motion .index-panel__list li {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .work__media,
  .footer__word,
  .project {
    clip-path: none !important;
  }

  .work__par,
  .about__bg {
    animation: none !important;
    transform: none !important;
  }
}

