/* 黛诗科技 dayshi.com
   色：黛（青黑）为底，粉（纸）为面，胭脂只点一处。
   形：一笔眉形弧线。
   构：起 · 承 · 转 · 合。 */

:root {
  --dai: #15212a;
  --dai-2: #1c2b36;
  --dai-3: #2a3d4b;
  --mist: #93a3ae;
  --fen: #f3ece6;
  --fen-2: #eadfd7;
  --slate: #58666f;
  --yan: #b8324f;
  --yan-lit: #e5718b;

  --song: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --latin: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --mast-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

[data-tone="dark"] {
  --bg: var(--dai);
  --fg: var(--fen);
  --muted: var(--mist);
  --line: rgba(243, 236, 230, .16);
  --raise: var(--dai-2);
  --accent: var(--yan-lit);
}
[data-tone="light"] {
  --bg: var(--fen);
  --fg: var(--dai);
  --muted: var(--slate);
  --line: rgba(21, 33, 42, .16);
  --raise: var(--fen-2);
  --accent: var(--yan);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--dai);
  color: var(--fen);
  font-family: var(--song);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
i { font-style: normal; }
::selection { background: var(--yan); color: var(--fen); }
:focus-visible { outline: 2px solid var(--yan-lit); outline-offset: 4px; }

.mono { font-family: var(--mono); }
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 8px 16px; background: var(--fen); color: var(--dai);
}
.skip:focus { top: 12px; }

/* ───────── 页眉：随身下那一章换色的半透明条（data-bar 由脚本按章节写到 html 上） ───────── */
:root, [data-bar="dark"] { --bar-fg: var(--fen); --bar-bg: rgba(21, 33, 42, .9); }
[data-bar="light"] { --bar-fg: var(--dai); --bar-bg: rgba(243, 236, 230, .92); }
.mast {
  position: fixed; z-index: 50;
  top: 0; left: 0; right: 0;
  height: var(--mast-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center;
  color: var(--bar-fg);
  background-color: var(--bar-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: color .5s var(--ease), background-color .5s var(--ease);
}
/* 停在卷首最顶端时不要底色，否则会在首屏渐变上压出一道接缝 */
.at-top .mast { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* 章节栏：差值混合，压在黛上是粉，压在粉上是黛，跨过分界线时一个字能两色 */
.rail {
  position: fixed; z-index: 51;
  color: #fff;
  mix-blend-mode: difference;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 14px; fill: currentColor; overflow: visible; margin-top: -6px; }
.logo-name { font-size: 21px; font-weight: 900; letter-spacing: .12em; }
.logo-latin { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 21px; opacity: .7; }

.rail {
  right: clamp(14px, 2.4vw, 36px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 20px;
}
.rail a {
  position: relative; display: block;
  width: 1.4em; text-align: center;
  font-size: 17px; line-height: 1.4;
  opacity: .42;
  transition: opacity .4s var(--ease);
}
.rail b { font-weight: 700; }
.rail span {
  position: absolute; right: calc(100% + 16px); top: 50%;
  transform: translate(8px, -50%);
  font-size: 12px; letter-spacing: .24em; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.rail a::before {
  content: ""; position: absolute; left: -9px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%) scale(0);
  transition: transform .4s var(--ease);
}
.rail a:hover, .rail a:focus-visible, .rail a.is-on { opacity: 1; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail a.is-on::before { transform: translateY(-50%) scale(1); }

/* ───────── 卷首 ───────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  padding: calc(var(--mast-h) + 2vh) var(--gutter) clamp(28px, 5vh, 56px);
  background:
    radial-gradient(90% 80% at 88% 0%, #24384680 0%, transparent 60%),
    var(--bg);
  color: var(--fg);
}
/* 纸纹：极淡的噪点，压住大面积纯色的数码感 */
.hero::after, .foot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
}
.hero-brow {
  position: absolute;
  left: -6vw; top: 24%;
  width: max(112vw, 860px); height: max(34vw, 280px);
  fill: var(--dai-3);
  opacity: .55;
}
.hero-verse {
  grid-column: 2; grid-row: 1 / span 2;
  align-self: center;
  margin-right: clamp(36px, 9vw, 150px);
  writing-mode: vertical-rl;
  position: relative; z-index: 1;
}
.hero-title {
  font-size: clamp(72px, min(17.5vh, 30vw), 230px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}
.hero-col { display: block; }
.hero-col + .hero-col { border-right: 1px solid var(--line); }
.hero-title i { display: inline-block; }
.hero-title .stop { color: var(--accent); }
.hero-sign {
  margin-right: clamp(14px, 1.6vw, 26px);
  padding-top: .5em;
  font-size: 13px; letter-spacing: .5em;
  color: var(--muted);
  text-align: end;
}
.hero-foot {
  grid-column: 1; grid-row: 2;
  max-width: 26em;
  position: relative; z-index: 1;
}
.hero-en {
  font-family: var(--latin); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 3.4vw, 50px); line-height: 1.12;
}
.hero-cn {
  margin-top: 1.3em;
  font-size: 15px; line-height: 2;
  color: var(--muted);
}
.hero-cue {
  position: absolute; z-index: 1;
  right: var(--gutter); bottom: clamp(28px, 5vh, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .4em;
  color: var(--muted);
  transition: color .4s var(--ease);
}
.hero-cue span { writing-mode: vertical-rl; }
.hero-cue i {
  width: 1px; height: 54px;
  background: linear-gradient(var(--fg), var(--fg)) 0 0 / 100% 40% no-repeat, var(--line);
  animation: cue 2.4s var(--ease) infinite;
}
.hero-cue:hover { color: var(--fg); }
@keyframes cue {
  from { background-position: 0 -40px; }
  to { background-position: 0 60px; }
}

/* 卷首入场：弧线自左而右画出，字逐个落定 */
.js .hero-brow { clip-path: inset(0 100% 0 0); }
.js .hero-title i { opacity: 0; transform: translateY(.3em); }
.js .hero-sign, .js .hero-foot, .js .hero-cue { opacity: 0; }
.js .is-ready .hero-brow {
  clip-path: inset(0 0 0 0);
  transition: clip-path 2s cubic-bezier(.5, 0, .1, 1) .1s;
}
.js .is-ready .hero-title i {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(.35s + var(--i) * .09s);
}
.js .is-ready .hero-sign,
.js .is-ready .hero-foot,
.js .is-ready .hero-cue { opacity: 1; transition: opacity 1.4s var(--ease) 1.3s; }

/* ───────── 四章共用骨架 ───────── */
.act {
  position: relative;
  padding: clamp(88px, 13vw, 190px) var(--gutter);
  background: var(--bg); color: var(--fg);
}
#cheng { padding-top: 0; }
.act-inner {
  max-width: 1320px; margin: 0 auto;
  padding-right: clamp(0px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(28px, 6vw, 96px);
}
.act-mark {
  position: sticky; top: 15vh;
  align-self: start;
  display: flex; align-items: flex-start; gap: clamp(10px, 1.4vw, 22px);
}
.act-char {
  font-size: clamp(150px, 24vw, 360px);
  font-weight: 900; line-height: .9;
  margin-left: -.05em;
}
.act-tag {
  writing-mode: vertical-rl;
  display: flex; gap: 1.4em;
  padding-top: .9em;
  font-size: 13px; font-weight: 400; letter-spacing: .42em; line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}
.act-tag span:first-child { color: var(--accent); }
.act-tag [lang="en"] { font-family: var(--latin); font-style: italic; font-size: 16px; letter-spacing: .08em; }
/* 转 / 合 两章下面有通栏内容，巨字不吸顶，免得压上去 */
.act--wide .act-mark { position: static; }
.js .act-char { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease); }
.js .act-mark.is-in .act-char { clip-path: inset(-10%); }

.act-body { padding-top: clamp(8px, 3vw, 44px); min-width: 0; }
.lede {
  font-size: clamp(23px, 2.9vw, 42px);
  font-weight: 600; line-height: 1.62; letter-spacing: .03em;
}
.prose {
  max-width: 33em;
  margin-top: clamp(28px, 3.4vw, 48px);
  color: var(--muted);
  text-align: justify;
}
h3 { font-weight: 900; letter-spacing: .06em; line-height: 1.3; }

/* 滚动显现 */
.js [data-r] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-r].is-in { opacity: 1; transform: none; }

/* ───────── 起：三则 ───────── */
.tenets {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
}
.tenets li { border-top: 1px solid var(--fg); padding-top: 20px; }
.tenet-no { display: block; font-size: 13px; letter-spacing: .3em; color: var(--accent); }
.tenets h3 { margin-top: 14px; font-size: clamp(26px, 2.5vw, 34px); }
.tenets p { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ───────── 承：目录 ───────── */
.index { margin-top: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.6em minmax(7em, 1fr) minmax(0, 1.7fr);
  column-gap: clamp(14px, 2vw, 30px);
  align-items: baseline;
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--line);
}
.index-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--fg);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .8s var(--ease);
}
.index-row:hover::before { transform: scaleX(1); }
.index-no { font-size: 13px; letter-spacing: .2em; color: var(--muted); transition: color .4s var(--ease); }
.index-row:hover .index-no { color: var(--accent); }
.index-row h3 { font-size: clamp(22px, 2.1vw, 30px); transition: transform .6s var(--ease); }
.index-row:hover h3 { transform: translateX(10px); }
.index-row p { font-size: 16px; line-height: 1.85; color: var(--muted); }
.tags {
  display: block; margin-top: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; line-height: 1.6;
  color: var(--muted); opacity: .8;
}

/* ───────── 转：会跳的一行字 + 精灵表 ───────── */
.play { grid-column: 1 / -1; margin-top: clamp(64px, 9vw, 132px); }
.play-line {
  font-size: clamp(44px, 8.2vw, 116px);
  font-weight: 900; line-height: 1.2; letter-spacing: .02em;
  user-select: none; -webkit-user-select: none;
}
.play-line > span { display: inline-block; white-space: nowrap; }
.play-line i { display: inline-block; transform-origin: 50% 92%; cursor: default; }
.play-line .stop { color: var(--accent); }
.play-line i.is-jump { animation: jump .58s cubic-bezier(.3, .6, .4, 1); }
/* 蓄力 → 腾空 → 滞空 → 落地压扁 → 回正 */
@keyframes jump {
  0% { transform: none; }
  14% { transform: scale(1.12, .84); }
  40% { transform: translateY(-.4em) scale(.94, 1.1); }
  54% { transform: translateY(-.46em); }
  80% { transform: scale(1.1, .88); }
  100% { transform: none; }
}
.play-note {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
  font-size: 13px; letter-spacing: .3em; color: var(--muted);
}
.play-note .mono { font-size: 11.5px; letter-spacing: .16em; opacity: .8; }

.sheet {
  grid-column: 1 / -1;
  margin-top: clamp(56px, 7vw, 104px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.sheet li {
  position: relative;
  min-height: clamp(200px, 19vw, 260px);
  padding: 20px clamp(18px, 2.2vw, 30px) 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background-color: transparent;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), background-color .5s var(--ease);
}
/* 格线交点的十字对位标，精灵表的切图参考线 */
.sheet li::before {
  content: ""; position: absolute; left: -6px; top: -6px;
  width: 11px; height: 11px;
  background:
    linear-gradient(var(--fg), var(--fg)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--fg), var(--fg)) 0 50% / 100% 1px no-repeat;
  opacity: .7;
}
.sheet li:hover { background-color: var(--raise); }
.cell-no { display: block; font-size: 11.5px; letter-spacing: .16em; color: var(--muted); transition: color .4s var(--ease); }
.sheet li:hover .cell-no { color: var(--accent); }
.sheet h3 { margin-top: clamp(36px, 4.4vw, 64px); font-size: clamp(22px, 2vw, 28px); }
.sheet p { margin-top: 10px; font-size: 15px; line-height: 1.85; color: var(--muted); }

/* ───────── 作品：一块「台」放图，台下落款 ───────── */
.works {
  max-width: 1320px;
  margin: clamp(80px, 11vw, 160px) auto 0;
  padding-right: clamp(0px, 3.4vw, 48px);
}
.works-head {
  display: flex; align-items: baseline; gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fg);
  font-size: 13px; font-weight: 400; letter-spacing: .42em;
  color: var(--muted);
}
.works-head [lang="en"] { font-family: var(--latin); font-style: italic; font-size: 17px; letter-spacing: .06em; }
.works-head b { margin-left: auto; font-weight: 400; letter-spacing: .3em; color: var(--accent); }
.works-grid {
  margin-top: clamp(28px, 3.4vw, 48px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(52px, 6.4vw, 92px) clamp(24px, 3vw, 44px);
}
.work--wide { grid-column: 1 / -1; }
.work-link { display: block; }
.work--wide .work-link {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  column-gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.stage {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dai);
}
.work--wide .stage { aspect-ratio: 16 / 10; }
[data-tone="dark"] .stage { background: var(--dai-2); }
.stage img { display: block; }
.shot {
  position: absolute; height: auto;
  transition: transform 1.1s var(--ease);
}
.work-link:hover .shot { transform: translateY(-3%); }
.work-link:hover .shot:nth-child(2) { transition-delay: .06s; }
.work-link:hover .shot:nth-child(3) { transition-delay: .12s; }

/* 桌面窗口：两扇错落，后一扇被台沿裁掉一截 */
.stage--win .shot { width: 42%; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .5)); }
.stage--win .shot:nth-child(1) { left: 48%; top: 26%; }
.stage--win .shot:nth-child(2) { left: 11%; top: 10%; }

/* 手机截屏：三张高低错开 */
.stage--phones .shot {
  width: 29%;
  border-radius: clamp(8px, 1.1vw, 15px);
  box-shadow: 0 0 0 1px rgba(243, 236, 230, .13), 0 22px 44px rgba(0, 0, 0, .5);
}
.stage--phones .shot:nth-child(1) { left: 5%; top: 14%; }
.stage--phones .shot:nth-child(2) { left: 35.5%; top: 6%; }
.stage--phones .shot:nth-child(3) { left: 66%; top: 24%; }

/* 透明图：台面一半黛一半粉，同一批图压在两种底色上，肥皂泡正好骑在分界线上 */
.stage--alpha {
  background: linear-gradient(90deg, var(--dai) 50%, var(--fen-2) 50%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage--alpha img { position: absolute; height: auto; transition: transform 1.1s var(--ease); }
.stage--alpha .a1 { left: 7%; top: 13%; width: 36%; }
.stage--alpha .a2 { left: 34%; top: 21%; width: 32%; }
.stage--alpha .a3 { left: 49%; top: 42%; width: 46%; }
.work-link:hover .stage--alpha .a2 { transform: translateY(-5%); }

/* 序列帧：左边整格在动，右边四格是抽出来的静帧，沿用「转」章精灵表的格线 */
.stage--frames {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.stage--frames > * {
  position: relative; min-width: 0; min-height: 0;
  box-shadow: inset -1px -1px 0 rgba(243, 236, 230, .14);
}
.stage--frames .live { grid-row: 1 / span 2; }
.stage--frames img {
  position: absolute; inset: 9%;
  width: 82%; height: 82%;
  object-fit: contain;
}
.stage--frames figcaption {
  position: absolute; left: 10px; top: 7px;
  font-size: 10.5px; letter-spacing: .14em; line-height: 1.6;
  color: var(--mist);
}

.work-text { padding-top: 24px; }
.work--wide .work-text { padding: 0 0 4px; }
.work-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: .14em;
  color: var(--muted);
}
.work-meta img { width: 40px; height: 40px; border-radius: 10px; }
.work h4 {
  margin-top: 14px;
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 900; line-height: 1.25; letter-spacing: .04em;
}
.work h4 small {
  margin-left: .7em;
  font-size: .46em; font-weight: 600; letter-spacing: .16em;
  color: var(--muted);
  white-space: nowrap;
}
.work-line { margin-top: 10px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: .04em; }
.work-desc { margin-top: 10px; max-width: 30em; font-size: 15px; line-height: 1.85; color: var(--muted); }
.work-go {
  display: inline-flex; align-items: center; gap: .5em;
  margin-top: 18px;
  font-size: 13px; letter-spacing: .3em;
  color: var(--accent);
}
.work-go svg { width: 1em; height: 1em; transition: transform .6s var(--ease); }
.work-link:hover .work-go svg { transform: translate(.2em, -.2em); }

/* ───────── 合：四步 + 邀约 ───────── */
.steps {
  grid-column: 1 / -1;
  margin-top: clamp(64px, 9vw, 132px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--fg);
}
.steps li { position: relative; padding: 30px clamp(18px, 2.4vw, 36px) 0 0; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--fg);
}
.steps li:first-child::before { background: var(--accent); border-color: var(--accent); }
.step-char { display: block; font-size: clamp(56px, 6.4vw, 92px); font-weight: 900; line-height: 1.1; }
.steps p { margin-top: 14px; max-width: 15em; font-size: 15px; line-height: 1.85; color: var(--muted); }

.invite { grid-column: 1 / -1; margin-top: clamp(96px, 14vw, 210px); }
.invite-line {
  font-size: clamp(34px, 6vw, 88px);
  font-weight: 900; line-height: 1.25; letter-spacing: .02em;
}
.invite-mail {
  position: relative;
  display: inline-flex; align-items: center; gap: .3em;
  margin-top: clamp(18px, 2.4vw, 34px);
  padding-bottom: .08em;
  font-family: var(--latin); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 5.2vw, 76px); line-height: 1.2;
  color: var(--accent);
}
.invite-mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform-origin: 100% 50%;
  transition: transform .7s var(--ease);
}
.invite-mail:hover::after { transform: scaleX(0); }
.invite-mail svg { width: .62em; height: .62em; transition: transform .6s var(--ease); }
.invite-mail:hover svg { transform: translate(.12em, -.12em); }
.invite-note { margin-top: 26px; font-size: 15px; color: var(--muted); }

/* ───────── 页脚 ───────── */
.foot {
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 150px) var(--gutter) 30px;
  background: var(--bg); color: var(--fg);
}
/* 卷首那一笔的镜像：一对眉，开卷一笔，收卷一笔 */
.foot-brow {
  position: absolute; right: -22vw; top: 4%;
  width: max(112vw, 860px); height: max(34vw, 280px);
  transform: scaleX(-1);
  fill: var(--dai-3); opacity: .4;
}
.foot-inner, .foot-base {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
}
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 40px clamp(28px, 6vw, 96px);
}
.foot-name { font-size: clamp(26px, 3vw, 42px); font-weight: 900; letter-spacing: .1em; line-height: 1.3; }
.foot-latin { margin-top: 6px; font-family: var(--latin); font-style: italic; font-size: 22px; color: var(--muted); }
.foot-nav a, .foot-links a { display: inline-block; padding: 4px 0; color: var(--muted); transition: color .4s var(--ease); }
.foot-nav a:hover, .foot-links a:hover { color: var(--fg); }
.foot-nav { font-size: 15px; }
.foot-nav b { display: inline-block; width: 2em; font-weight: 900; color: var(--fg); }
.foot-links { font-family: var(--latin); font-style: italic; font-size: 21px; line-height: 1.5; }
.foot-base {
  margin-top: clamp(64px, 9vw, 130px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px;
  font-size: 13px; letter-spacing: .08em; color: var(--muted);
}
.foot-base a { transition: color .4s var(--ease); }
.foot-base a:hover { color: var(--fg); }
.foot-base a:last-child { margin-left: auto; }

/* ───────── 窄屏 ───────── */
@media (max-width: 880px) {
  :root { --mast-h: 60px; }
  body { font-size: 16px; }
  .logo-latin { display: none; }

  .rail {
    top: 0; right: calc(var(--gutter) - 10px);
    height: var(--mast-h);
    transform: none;
    flex-direction: row; align-items: center; gap: 0;
    color: var(--bar-fg); mix-blend-mode: normal;
    transition: color .5s var(--ease);
  }
  .rail a { width: auto; padding: 14px 10px; opacity: .5; }
  .rail span { display: none; }
  .rail a::before { left: 50%; top: auto; bottom: 8px; transform: translateX(-50%) scale(0); }
  .rail a.is-on::before { transform: translateX(-50%) scale(1); }

  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 36px; }
  .hero-verse { grid-column: 1; grid-row: 1; justify-self: end; margin-right: 0; }
  .hero-foot { grid-row: 2; align-self: end; padding-right: 15%; }
  .hero-brow { top: 34%; }
  .hero-cue { display: none; }

  .act-inner { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .act-mark { position: static; }
  .act-char { font-size: clamp(132px, 42vw, 240px); }
  .act-body { padding-top: 36px; }
  #cheng { padding-top: 0; }

  .tenets { grid-template-columns: 1fr; gap: 28px; }
  .index-row { grid-template-columns: 3em minmax(0, 1fr); row-gap: 8px; }
  .index-row > div { grid-column: 2; }
  .index-row:hover h3 { transform: none; }
  .sheet { grid-template-columns: repeat(2, 1fr); }
  .sheet li { min-height: 0; padding: 16px 16px 26px; }
  .sheet h3 { margin-top: 26px; }
  .works { padding-right: 0; }
  .works-grid { grid-template-columns: minmax(0, 1fr); }
  .work--wide .work-link { display: block; }
  .work--wide .stage { aspect-ratio: 4 / 3; }
  .work--wide .work-text { padding: 24px 0 0; }
  .stage--win .shot { width: 46%; }
  .stage--win .shot:nth-child(1) { left: 49%; top: 22%; }
  .stage--win .shot:nth-child(2) { left: 6%; top: 8%; }
  .steps { grid-template-columns: repeat(2, 1fr); border-top: 0; row-gap: 40px; }
  .steps li { border-top: 1px solid var(--fg); }
  .foot-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-brow, .js .act-char { clip-path: none; }
  .js .hero-title i, .js .hero-sign, .js .hero-foot, .js .hero-cue, .js [data-r] { opacity: 1; transform: none; }
}
