﻿/* ===========================================================================
   韩牧 · 视觉设计作品集
   One system, five rooms. Dark gallery surface, print-register detail,
   vermilion used as a signal only.
   Radii: display surfaces round (--r-tile 4px), controls stay sharp (--r).
   Shadows: tinted, never neutral black.
   =========================================================================== */

@font-face {
  font-family: "BDO Grotesk";
  src: url("assets/fonts/bdo-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Chinese is self-hosted too: one 154 KB subset carrying only the 620 glyphs
   this site uses, at the full 200-900 weight range. Regenerate with
   `node tools/fonts.cjs` after adding copy. */
@font-face {
  font-family: "Noto Sans SC Subset";
  src: url("assets/fonts/noto-sans-sc-subset.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0c;
  --bg-1: #0f1112;
  --bg-2: #151819;
  --bg-3: #1b1f21;

  --text: #f5f6f7;
  --text-2: #a7abaf;
  /* 5.8:1 on --bg, 5.3:1 on --bg-2: micro type clears WCAG AA */
  --text-3: #878c92;

  --line: rgb(255 255 255 / 0.11);
  --line-soft: rgb(255 255 255 / 0.055);
  --line-strong: rgb(255 255 255 / 0.24);

  /* one material only: black, grey, white and its polished edge */
  --white: #ffffff;
  --silver-1: #e3e6e9;
  --silver-2: #aeb3b8;
  --silver-3: #878c92;
  --metal: linear-gradient(
    104deg,
    #ffffff 0%,
    #e9ecef 18%,
    #9ba0a5 40%,
    #ffffff 54%,
    #868c92 72%,
    #f4f6f8 100%
  );

  --paper: #f2efe8;

  --font: "BDO Grotesk", "Noto Sans SC Subset", "PingFang SC",
    "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;

  --head-h: 62px;
  --gut: clamp(18px, 4.2vw, 58px);
  --shell: 1580px;
  /* two levels only: a display surface is round, a control is sharp */
  --r: 2px;
  --r-tile: 4px;
  /* the one electric note: current, playing, active. Never decoration. */
  --signal: #e2401b;
  --signal-soft: rgb(226 64 27 / 0.34);

  --s1: clamp(8px, 0.75vw, 13px);
  --s2: clamp(14px, 1.5vw, 24px);
  --s3: clamp(22px, 2.8vw, 42px);
  --s4: clamp(36px, 4.8vw, 76px);
  --s5: clamp(60px, 7.5vw, 124px);
  --s6: clamp(88px, 10vw, 168px);

  --t-display: clamp(64px, 7.2vw, 96px);
  --t-chapter: clamp(36px, 4.5vw, 64px);
  --t-zone: clamp(25px, 2.6vw, 38px);
  --t-lead: clamp(17px, 1.4vw, 22px);
  --t-body: clamp(15px, 1.1vw, 17px);
  --t-caption: 12px;
  --t-micro: 12px;
  --gallery-gap: clamp(16px, 1.8vw, 28px);

  --w-display: 800;
  --w-head: 700;
  --w-medium: 700;
  --w-body: 600;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #2a2e30 var(--bg);
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: var(--w-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
/* the reset above outranks the UA sheet, so [hidden] has to be restated:
   without this the viewer shows a failed video and its error line at once */
[hidden] {
  display: none !important;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  font-weight: var(--w-head);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-cn,
.chapter-title,
/* the first zone of a chapter opens on the project name, set as a spread
   title rather than a label: the reference's habit of letting type carry the
   page, applied to the work's own names */
.zone--lead .zone-title {
  font-size: clamp(38px, 5.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.026em;
}
.zone--lead .zone-title span {
  font-size: 11px;
  letter-spacing: 0.22em;
  vertical-align: 0.9em;
}
.zone-title {
  margin-left: -0.055em;
}
/* CJK line breaking: never start a line with closing punctuation, and trim the
   half-width of full-width marks where the engine supports it */
body {
  line-break: strict;
  text-spacing-trim: trim-start;
}
p,
.about-note,
.about-text,
.chapter-lede,
.hero-lede {
  text-wrap: pretty;
  hanging-punctuation: first allow-end;
}
/* Chinese display type tightens with proportional alternate widths ("palt"),
   which trims the built-in side bearings instead of overlapping the glyphs. */
.hero-cn,
.chapter-title,
.zone-title,
.idx-zh,
.zone-note,
.hero-lede,
.chapter-lede,
.book-title {
  font-feature-settings: "palt" 1;
  font-kerning: normal;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--silver-1);
  outline-offset: 3px;
}
::selection {
  background: var(--signal);
  color: #0a0b0c;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  stroke-width: 1.8;
  overflow: visible;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.1em;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: none;
}
.noscript-note {
  padding: var(--s4) var(--gut);
  color: var(--text-2);
  border-top: 1px solid var(--line);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- micro type ----------------------------------------------------------- */
.hero-kicker,
.hero-index-label,
.footer-kicker,
.zone-note,
.idx-count,
.chapter-en {
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: var(--w-head);
  line-height: 1.4;
}

/* --- header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--head-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s2);
  padding-inline: var(--gut);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid var(--line-soft);
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 17px;
  font-weight: var(--w-head);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark span {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-3);
  font-weight: var(--w-head);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.9vw, 30px);
  min-width: 0;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-block: 6px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.site-nav a span {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover {
  color: var(--text);
}
.site-nav a:hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}
.site-nav a[aria-current] {
  color: var(--text);
}
.site-nav a[aria-current] span {
  color: var(--white);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  white-space: nowrap;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.header-cta .icon {
  font-size: 14px;
  transition: transform 0.3s var(--ease);
}
.header-cta:hover {
  background: var(--white);
  border-color: var(--white);
  color: #0a0b0c;
}
.header-cta:hover .icon {
  transform: translate(2px, -2px);
}
.scroll-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, rgb(226 64 27 / 0), var(--signal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* --- hero: an open catalogue, with the work in the foreground ----------- */
.hero {
  max-width: var(--shell);
  margin-inline: auto;
  padding: calc(var(--head-h) + 48px) var(--gut) 36px;
  display: grid;
  gap: 40px;
}
.hero-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--s4);
}
.hero-name { display: flex; align-items: baseline; gap: 24px; }
.hero-cn {
  display: block;
  font-size: var(--t-display);
  font-weight: var(--w-display);
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.hero-en {
  font-size: 13px;
  font-weight: var(--w-head);
  letter-spacing: 0.18em;
  color: var(--text-2);
  white-space: nowrap;
}
.hero-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 4px; }
.hero-lede { max-width: 30ch; font-size: 14px; line-height: 1.85; color: var(--text-2); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 14px;
  min-height: 44px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero-cta:hover { color: var(--white); border-color: var(--white); }
.hero-cta .icon { transition: transform 0.3s var(--ease); }
.hero-cta:hover .icon { transform: translateY(3px); }
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(0, 0.7fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  height: clamp(380px, 51vh, 580px);
}
.hero-stage figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.hero-stage figure:first-child { grid-row: 1 / 3; }
.hero-work { display: block; position: relative; min-height: 0; overflow: hidden; border-radius: var(--r-tile); background: var(--bg-2); }
.hero-work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.75s var(--ease); }
.hero-work:hover img { transform: scale(1.025); }
.hero-work:focus-visible { outline-offset: 5px; }
.hero-stage [data-stage="xingchen"] .hero-work { background: #dce1da; }
.hero-stage [data-stage="xingchen"] img { object-fit: contain; padding: 10px; }
.stage-cap { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-top: 12px; }
.stage-cap-body { display: grid; gap: 5px; min-width: 0; }
.stage-cap-body b { font-size: 14px; line-height: 1.3; font-weight: var(--w-head); }
.stage-cap-body i { font-size: 11px; line-height: 1.3; letter-spacing: 0.08em; font-style: normal; color: var(--text-3); }
.stage-cap > .icon { margin-top: 2px; font-size: 16px; color: var(--text-3); }
.hero-stage figure:first-child .stage-cap-body { display: flex; align-items: baseline; gap: 16px; }
.hero-stage figure:first-child .stage-cap-body b { font-size: 17px; }

/* --- chapter: compact wall labels, generous space for the artwork ------- */
.chapter, .about { position: relative; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); scroll-margin-top: var(--head-h); }
.chapter { padding-top: clamp(64px, 7vw, 112px); }
.chapter::after, .about::after { content: none; }
.chapter-head { padding-block: 28px 12px; }
.chapter-slate { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.chapter-slate .chapter-title { margin: 0 0 0 -0.045em; font-size: var(--t-chapter); line-height: 1.1; font-weight: var(--w-display); letter-spacing: -0.025em; }
.chapter-record { display: grid; gap: 16px; min-width: 0; }
.chapter-spec { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.chapter-spec div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.chapter-spec dt { font-size: 12px; color: var(--text-3); }
.chapter-spec dd { font-size: 12px; line-height: 1.5; color: var(--text); margin: 0; font-variant-numeric: tabular-nums; }
.chapter-slate .chapter-lede { max-width: 50ch; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.chapter-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; padding: 0; list-style: none; font-size: 12px; line-height: 1.65; color: var(--text-3); }
.chapter-points li { padding-left: 12px; position: relative; }
.chapter-points li::before { content: ""; position: absolute; width: 3px; height: 3px; left: 0; top: 0.7em; border-radius: 50%; background: var(--text-3); }
.chapter-label { position: sticky; top: var(--head-h); z-index: 6; display: flex; align-items: center; gap: 14px; padding-block: 13px; background: var(--bg); border-top: 1px solid var(--line-strong); }
.chapter-num, .chapter-en, .chapter-meta { font-size: 12px; line-height: 1.5; letter-spacing: 0.08em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chapter-rule { flex: 1; }
.chapter-meta { margin-left: auto; }
.chapter-title { font-size: var(--t-chapter); line-height: 1.1; font-weight: var(--w-display); letter-spacing: -0.025em; }
.chapter-lede { max-width: 46ch; font-size: var(--t-lead); color: var(--text-2); line-height: 1.75; }

/* --- zone ----------------------------------------------------------------- */
.zone {
  padding-block: 32px clamp(48px, 5vw, 80px);
}
.zone--lead .zone-title { font-size: var(--t-zone); line-height: 1.15; }
.zone--lead .zone-title span { vertical-align: baseline; font-size: 11px; letter-spacing: 0.1em; }
.zone-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 18px;
  padding-bottom: clamp(14px, 1.6vw, 24px);
  margin-bottom: clamp(14px, 1.6vw, 26px);
  border-bottom: 1px solid var(--line-soft);
}
.zone-title {
  font-size: var(--t-zone);
  font-weight: var(--w-head);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.zone-title span {
  margin-left: 12px;
  font-size: 10px;
  font-weight: var(--w-head);
  letter-spacing: 0.18em;
  color: var(--text-3);
  text-transform: uppercase;
  vertical-align: 0.35em;
}
.zone-note {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.zone-block + .zone-block {
  margin-top: clamp(18px, 2.4vw, 40px);
}

/* full-bleed punctuation: the artwork reaches the viewport edge, captions stay inset */
.is-bleed {
  margin-inline: calc(var(--gut) * -1);
}

/* --- media base ----------------------------------------------------------- */
/* The picture is the object: no border, no panel, no shadow, no padding. The
   sampled two-stop tone holds the frame until the pixels are decoded. */
.art {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-tile);
  background-color: #0c0e0f;
  background-image: var(--ph, none);
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
  transition:
    filter 0.5s var(--ease),
    transform 0.7s var(--ease),
    opacity 0.65s var(--ease);
}
html.js .art img {
  opacity: 0;
}
html.js .art img.is-ready {
  opacity: 1;
}
.art:hover img {
  filter: brightness(1.07);
}
.art:focus-visible {
  outline-offset: 4px;
}
/* a missing derivative degrades to a hatched plate, never a broken glyph */
.art.is-missing,
.motion-frame.is-missing {
  background-image: repeating-linear-gradient(
    135deg,
    rgb(255 255 255 / 0.035) 0 10px,
    transparent 10px 20px
  );
}

/* --- plates --------------------------------------------------------------- */
/* The picture is the object. No frame, no shadow, no padded panel: the caption
   sits inside the picture on its own fade, so nothing is ever boxed in grey. */
.b {
  margin: 0;
}
.plate {
  position: relative;
  margin: 0;
  min-width: 0;
  break-inside: avoid;
}
.plate .art {
  box-shadow: none;
  background-color: #0c0e0f;
}
.plate-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; line-height: 1.5; }
.cap-title { font-size: 13px; font-weight: var(--w-medium); color: var(--text-2); line-height: 1.5; }
.cap-meta { flex: none; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.plate--full .cap-title { font-size: 14px; }
.plate-row--cols .cap-meta { display: none; }

/* one statement, then its companions */
/* a capped plate is inset on purpose: it is centred, not left hanging */
.b-lead .plate--full {
  width: 100%;
  max-width: min(100%, 1600px);
  margin-inline: auto;
}
.plate--wide {
  max-width: min(100%, var(--cap, 1120px));
  margin-inline: auto;
}
.b-lead .plate-row {
  margin-top: clamp(12px, 1.4vw, 20px);
}
.plate-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  align-items: start;
}
.plate-row > .plate,
.plate-row > figure {
  min-width: 0;
}

/* Image proportions set the rhythm; every authored row fills its width. */
.b-grid, .b-gallery { display: grid; gap: clamp(28px, 3vw, 48px); }
.plate-row--cols, .gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gallery-gap); align-items: start; }
.plate-row--cols > .plate, .gallery-grid > .gallery-item { grid-column: span var(--span, 4); min-width: 0; }
.b-grid.is-compact { gap: 28px; }
.b-grid.is-compact .plate-row--cols { gap: var(--gallery-gap); }
.b-grid.is-compact .cap-title { font-size: 12px; }
.b-gallery--mixed .gallery-grid { align-items: end; }
.b-gallery--pages { gap: clamp(32px, 4vw, 64px); }
.b-gallery--pages .gallery-grid { gap: clamp(24px, 2.6vw, 40px); }
.b-gallery--pages .cap-title { font-size: 12px; }
.gallery-grid .art { width: 100%; }

/* Long artwork keeps a clear full-image action below its preview. */
.b-fold { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px var(--gallery-gap); align-items: start; }
.b-fold > .plate:only-child { width: min(100%, 760px); justify-self: center; }
.plate--fold .art { max-height: min(62vh, 600px); }
.plate--fold .art img { height: auto; }
.plate--fold .plate-cap { flex-wrap: wrap; gap: 4px 16px; }
.plate--fold .cap-meta { color: var(--text-2); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }

/* All still-image galleries are static and keep their authored order. */

/* stage: a moving surface with one companion still */
.b-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 26px);
  align-items: end;
}
.b-stage[data-aside="false"] {
  grid-template-columns: minmax(0, 1fr);
}
.stage-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 18px);
}

/* clips: the player is the object too, so its name lives on the picture */
.motion {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: var(--r-tile);
  overflow: hidden;
}
.motion-label { display: flex; align-items: center; gap: 8px; padding-top: 12px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); pointer-events: none; }

.motion-label .icon {
  font-size: 11px;
  color: #fff;
}
.plate--clip .motion {
  border-radius: var(--r-tile);
}


/* the player's own frame: same object rules as a plate */
.motion-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-tile);
  background: #0c0e0f;
}
.motion-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.motion-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgb(6 7 8 / 0.72) 0%, transparent 46%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.motion:hover .motion-veil {
  opacity: 1;
}

/* Artwork carries the palette; the surrounding gallery stays neutral. */
.chapter::before, .about::before, .tone-ip .b-stage::before { content: none; }
.tone-ip .zone-title { font-size: var(--t-zone); }
.tone-ip .zone-head { margin-bottom: 26px; }
.tone-press .zone-title span { letter-spacing: 0.1em; }

/* --- about: a printed CV page, same material as everything else -------- */
.about {
  padding-top: var(--s5);
}
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--s4) clamp(28px, 4vw, 72px);
  padding-top: var(--s2);
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.about-heading {
  font-size: var(--t-micro);
  font-weight: var(--w-head);
  letter-spacing: 0.42em;
  color: var(--silver-2);
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.about-rows {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s3);
}
.about-row {
  display: grid;
  grid-template-columns: 13ch minmax(0, 1fr);
  gap: clamp(10px, 1.4vw, 22px);
  padding-top: var(--s2);
  border-top: 1px solid var(--line-soft);
}
.about-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.about-period {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.about-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.about-org {
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: var(--w-medium);
  letter-spacing: -0.01em;
}
.about-role {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--silver-2);
}
.about-note {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 46ch;
}
.about-specs {
  display: grid;
  gap: var(--s3);
}
.about-chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.about-chips li {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-2);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
}
.about-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 40ch;
}
.about-text + .about-text {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .about-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .about-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .about-period {
    padding-top: 0;
  }
}

/* --- footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  max-width: var(--shell);
  margin: var(--s6) auto 0;
  padding: var(--s4) var(--gut) var(--s3);
  display: grid;
  gap: var(--s4);
  --room: 250 250 250;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal);
  opacity: 0.55;
}
.footer-lead {
  display: grid;
  gap: var(--s2);
}
.footer-lead-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
}
.footer-resume {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.footer-resume .icon {
  font-size: 13px;
}
.footer-resume:hover {
  color: var(--white);
}
.footer-mail {
  display: inline-block;
  font-size: clamp(26px, 5.2vw, 76px);
  font-weight: var(--w-display);
  letter-spacing: -0.022em;
  line-height: 1.04;
  overflow-wrap: anywhere;
  transition: color 0.3s var(--ease);
}
.footer-mail > span {
  position: relative;
  display: inline-block;
}
.footer-mail > span::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.06em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}
.footer-mail:hover {
  color: var(--white);
}
.footer-mail:hover > span::after {
  transform: scaleX(1);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  align-items: center;
}
.footer-meta a,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.footer-meta a .icon,
.text-button .icon {
  font-size: 13px;
}
.footer-meta a:hover,
.text-button:hover {
  color: var(--white);
}
.text-button[disabled] {
  opacity: 0.3;
  pointer-events: none;
}
#copy-status {
  font-size: 11px;
  color: var(--silver-1);
  letter-spacing: 0.08em;
  min-height: 1em;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s2);
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s var(--ease);
}
.footer-bottom a:hover {
  color: var(--text);
}
.footer-bottom .icon {
  font-size: 12px;
}

/* --- motion control ------------------------------------------------------- */
.motion-toggle {
  position: fixed;
  right: var(--gut);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.motion-toggle .icon {
  font-size: 13px;
}
.motion-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.motion-toggle[disabled] {
  opacity: 0.5;
  cursor: default;
}
.motion-toggle .icon-play {
  display: none;
}
html[data-motion="paused"] .motion-toggle .icon-pause {
  display: none;
}
html[data-motion="paused"] .motion-toggle .icon-play {
  display: block;
}

/* --- chapter switcher: stands in for the nav under 820px ------------------ */
.chapter-sheet {
  display: none;
  position: fixed;
  left: var(--gut);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 55;
}
.sheet-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.sheet-toggle .icon {
  font-size: 12px;
  transition: transform 0.3s var(--ease);
}
.sheet-toggle[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--line-strong);
}
.sheet-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.sheet-current {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sheet-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 208px;
  padding: 6px;
  display: grid;
  gap: 1px;
  background: color-mix(in srgb, var(--bg-1) 97%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.95);
}
.sheet-panel[hidden] {
  display: none;
}
.sheet-panel a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 11px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 1px;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.sheet-panel a span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.sheet-panel a:hover,
.sheet-panel a:focus-visible {
  background: rgb(255 255 255 / 0.06);
  color: var(--text);
}
.sheet-panel a[aria-current] {
  color: var(--white);
}
.sheet-panel a[aria-current] span {
  color: var(--silver-1);
}
/* the slate is a spread on a wide screen and a column on a narrow one */
@media (max-width: 960px) {
  .chapter-slate {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(16px, 3vw, 26px);
  }
  .chapter-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .chapter-sheet {
    display: block;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.4s var(--ease),
      transform 0.4s var(--ease);
  }
  .chapter-sheet.is-shown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }
}

/* --- viewer --------------------------------------------------------------- */
.viewer {
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.viewer::backdrop {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.viewer-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 var(--gut);
  cursor: zoom-out;
}
.viewer-head,
.viewer-foot {
  cursor: auto;
}
.viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s2);
  padding-block: clamp(14px, 2vh, 24px) clamp(10px, 1.6vh, 18px);
  border-bottom: 1px solid var(--line-soft);
}
.viewer-meta h2 {
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: var(--w-medium);
  letter-spacing: -0.01em;
}
.viewer-meta p {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.viewer-close {
  flex: none;
}
.viewer-body {
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
  cursor: zoom-out;
  display: grid;
  /* a definite row is what makes the still's max-height: 100% resolve; with an
     auto row a portrait piece used to run past the frame instead of fitting */
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding-block: clamp(12px, 2vh, 26px);
  scrollbar-width: thin;
}
.viewer-body img {
  display: block;
  margin: auto;
  max-width: min(100%, 1500px);
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-tile);
  box-shadow: 0 40px 90px -50px rgb(0 0 0 / 0.9);
}
.viewer.is-long .viewer-body,
.viewer.is-book .viewer-body {
  place-items: start center;
}
.viewer.is-long .viewer-body img {
  max-height: none;
  width: min(100%, 1020px);
}
.viewer-body video {
  max-width: min(100%, 1280px);
  max-height: 100%;
  border-radius: var(--r-tile);
  box-shadow: 0 40px 90px -50px rgb(0 0 0 / 0.9);
}
.viewer-loading {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
}
.viewer-error {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  gap: 8px;
  align-items: center;
}
.viewer-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-inline: auto;
}
.viewer-tools[hidden] {
  display: none;
}
.zoom-btn {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.zoom-btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: #0a0b0c;
}
.zoom-btn[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
}
.text-button[aria-disabled="true"],
.footer-meta a[aria-disabled="true"] {
  opacity: 0.28;
  pointer-events: none;
}
.zoom-btn.zoom-fit {
  font-size: 11px;
}
.zoom-level {
  min-width: 46px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.viewer-body img.is-zoomable {
  cursor: zoom-in;
}
.viewer-body img.is-zoomed {
  cursor: grab;
  transform-origin: center center;
  will-change: transform;
}
.viewer-body img.is-panning {
  cursor: grabbing;
}
.viewer-body {
  touch-action: pan-y;
}
.viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-block: clamp(10px, 1.6vh, 18px);
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
body.dialog-open {
  overflow: hidden;
}

/* --- pointer grammar -------------------------------------------------------
   One instrument that follows the pointer and names what the surface under it
   does. Fine pointers only, and never while motion is paused: a cursor that
   moves without easing is worse than the system one. */
html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #fff;
}
.cursor-ring {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgb(255 255 255 / 0.5);
}
/* the label sits outside the blended ring: difference text over busy artwork
   turns muddy, so it keeps its own solid tone and a shadow instead */
.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.65);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}
.cursor[data-state="action"] .cursor-label {
  opacity: 1;
}
.cursor[data-state="action"] .cursor-ring {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-color: rgb(255 255 255 / 0.72);
  background: rgb(255 255 255 / 0.06);
}
.cursor[data-state="action"] .cursor-dot {
  opacity: 0;
}
.cursor.is-down .cursor-ring {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
}
.cursor.is-idle .cursor-dot,
.cursor.is-idle .cursor-ring,
.cursor.is-idle .cursor-label {
  opacity: 0;
}
.cursor-dot,
.cursor-ring {
  transition-property: opacity, width, height, margin, border-color,
    background-color;
  transition-duration: 0.28s;
  transition-timing-function: var(--ease);
}

/* the artwork lifts off the page and lands in the viewer: same object, one
   continuous move, so opening a piece reads as a hand-off rather than a cut */
.morph-plate {
  position: fixed;
  z-index: 8;
  border-radius: var(--r-tile);
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
  box-shadow: 0 40px 90px -50px rgb(0 0 0 / 0.9);
}
.viewer-head,
.viewer-foot {
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.viewer.is-morphing .viewer-head,
.viewer.is-morphing .viewer-foot {
  opacity: 0;
  transform: translateY(8px);
}
.viewer[open]::backdrop {
  animation: viewer-veil 0.5s var(--ease) both;
}
@keyframes viewer-veil {
  from {
    opacity: 0;
  }
}

/* playback: the inline clip answers the pointer with its own position, and the
   hairline doubles as a scrub track. The viewer keeps the full controls. */
.motion-frame {
  position: relative;
}
.motion-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgb(255 255 255 / 0.16);
  opacity: 0;
  transition:
    opacity 0.3s var(--ease),
    height 0.3s var(--ease);
}
.motion-bar i {
  display: block;
  height: 100%;
  background: var(--white);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}
.motion:hover .motion-bar,
.motion:focus-visible .motion-bar,
.motion.is-seeking .motion-bar,
.plate--clip:hover .motion-bar {
  height: 3px;
  opacity: 1;
}
/* the clip is running: the one place a live signal belongs */
.motion.is-playing .motion-bar i,
.motion.is-playing .motion-bar i {
  background: var(--signal);
}

/* --- motion opt-outs ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .chapter-label {
    --draw: 1;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
:root[data-motion="paused"] .art img {
  transition: none;
}

/* --- hardening ------------------------------------------------------------ */
/* Windows High Contrast: the design leans on low-alpha hairlines and sampled
   gradients, neither of which survives forced colours. Draw real borders and
   drop the grain. */
@media (forced-colors: active) {
  .grain,
  .chapter::before,
  .chapter::after,
  .about::before,
  .about::after {
    display: none;
  }
  .art,
  .motion-frame,
  .reel-thumb,
  .sheet-panel,
  .zoom-btn,
  .motion-toggle,
  .sheet-toggle {
    border: 1px solid CanvasText;
    box-shadow: none;
  }
  .art {
    background-image: none;
  }
  .chapter-label::before,
  .site-footer::before {
    background: CanvasText;
    opacity: 1;
  }
  .art img,
  .hero-stage img {
    filter: none !important;
  }
  .scroll-progress {
    background: Highlight;
    forced-color-adjust: none;
  }
  .sheet-panel a[aria-current],
  .site-nav a[aria-current] {
    color: Highlight;
  }
}

/* --- about--intro: lightweight intro block after the hero ------------------ */
.about--intro {
  padding-top: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line-soft);
}
.about--intro .chapter-head {
  padding-block: 0 20px;
}
.about--intro .chapter-label {
  position: static;
  border-top: none;
  padding-block: 0 14px;
  background: none;
}
.about--intro .chapter-title {
  font-size: clamp(28px, 3.4vw, 52px);
  margin-bottom: 12px;
}
.about-body--intro {
  border-top: none;
  padding-top: 0;
  grid-template-columns: 1fr;
}
.about-specs--intro {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) clamp(32px, 5vw, 80px);
}

/* ============================================================
   POSTER-STRIP & MARQUEE SCROLL — auto-scroll gallery rows
   Used for: 人物海报 (joy-people), 中国故事 (ev-china)
   Long images: hover-scroll within a capped frame
   ============================================================ */

/* Container: one long horizontal band, faded at both edges so it reads as
   a window onto a larger wall rather than a cropped box. */
.poster-strip {
  position: relative;
  overflow: hidden;
  margin-block: 4px 20px;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

/* The scrolling track. Two identical copies sit side by side; because every
   item carries its own trailing margin, one copy is exactly half the track
   and translateX(-50%) lands on a pixel-identical frame — no seam. */
.poster-strip__track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  animation: poster-scroll linear infinite;
  animation-duration: var(--marquee, 46s);
  will-change: transform;
}

@keyframes poster-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Slow down rather than stop: the wall never sits dead still, and the visitor
   still gets a stable frame to look at. */
.poster-strip:hover .poster-strip__track,
.poster-strip:focus-within .poster-strip__track {
  animation-duration: calc(var(--marquee, 46s) * 3.2);
}
:root[data-motion="paused"] .poster-strip__track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .poster-strip__track { animation: none; }
  .poster-strip { overflow-x: auto; scrollbar-width: none; }
  .poster-strip::-webkit-scrollbar { display: none; }
}

/* One frame height, widths follow each poster's own aspect ratio: a genuine
   filmstrip instead of a row of identically cropped tiles. Oversized frames
   stagger slightly so the band has rhythm rather than a hard top edge. */
.poster-strip .plate {
  flex: none;
  margin-right: clamp(10px, 1.1vw, 18px);
  width: auto;
  --h: clamp(240px, 26vw, 340px);
}
.poster-strip .plate:nth-child(3n + 2) {
  --h: clamp(206px, 22vw, 290px);
  padding-top: clamp(16px, 2vw, 34px);
}
.poster-strip .plate:nth-child(3n) {
  --h: clamp(224px, 24vw, 314px);
}

.poster-strip .art {
  height: var(--h);
  width: auto;
  overflow: hidden;
}
.poster-strip .art img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}
.poster-strip .art:hover img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

/* Captions stay: a portfolio strip with unnamed posters reads as wallpaper.
   They are clipped to the frame width so widths stay driven by the image. */
.poster-strip .plate-cap {
  padding-top: 10px;
  max-width: var(--h);
  overflow: hidden;
}
.poster-strip .cap-title {
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--text-3);
}

/* Landscape band (中国故事): same system, wider frames. */
.poster-strip--landscape .plate { --h: clamp(180px, 17vw, 260px); }
.poster-strip--landscape .plate:nth-child(3n + 2) { --h: clamp(150px, 14vw, 210px); padding-top: clamp(14px, 1.6vw, 26px); }
.poster-strip--landscape .plate:nth-child(3n) { --h: clamp(165px, 15.5vw, 232px); }
.poster-strip--landscape .plate-cap { display: none; }

/* Handbook pages: portrait leaves read best as a fairly tall band, so the
   spread can be read across without hunting for a next-page arrow. */
.poster-strip--pages .plate { --h: clamp(210px, 21vw, 300px); }
.poster-strip--pages .plate:nth-child(3n + 2) { --h: clamp(178px, 18vw, 254px); }
.poster-strip--pages .plate:nth-child(3n) { --h: clamp(194px, 19.5vw, 276px); }
.poster-strip--pages .plate-cap { display: none; }

/* Case infographics mix tall explainers with wide process diagrams; one frame
   height keeps the band even while each image keeps its own width. */
.poster-strip--mixed .plate { --h: clamp(190px, 19vw, 286px); }
.poster-strip--mixed .plate:nth-child(3n + 2) { --h: clamp(158px, 16vw, 238px); padding-top: clamp(12px, 1.4vw, 24px); }
.poster-strip--mixed .plate:nth-child(3n) { --h: clamp(176px, 17.5vw, 262px); }
.poster-strip--mixed .plate-cap { display: none; }

/* Speed variants */
.poster-strip[data-speed="fast"] .poster-strip__track { animation-duration: 34s; }
.poster-strip[data-speed="slow"] .poster-strip__track { animation-duration: 60s; }

/* ---- Long reports: a sheet lifted off the page ---------------------------
   Both report walls (长图战报 + 工会比赛) share the 400px window set here; each
   sheet is clipped to it, so the page never unrolls a whole report into the
   layout. The pointer turns the card in depth and walks the picture inside the
   window; the glare is the light that travels over the paper, never a wash. */
.plate--fold {
  /* One number for both walls, overridden per zone below. */
  --fold-h: 400px;
  perspective: 1800px;
  perspective-origin: 50% 42%;
}
.plate--fold:hover {
  z-index: 2;
}
.plate--fold .art {
  height: var(--fold-h);
  max-height: none;
  overflow: hidden;
  transition:
    box-shadow 0.45s var(--ease),
    filter 0.45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .plate--fold .art:hover { will-change: transform; }
}
.plate--fold .art--depth:hover,
.plate--fold .art--depth:focus-visible {
  box-shadow: 0 30px 64px -34px rgb(0 0 0 / 0.85);
}
.plate--fold .depth-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.plate--fold .depth-stage img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: top center;
  /* The picture must never be the pointer's target: its own box moves as it
     scrolls, which would feed the read position back into itself. */
  pointer-events: none;
  /* The transform is driven frame-by-frame in JS; a CSS transition here would
     fight that loop and smear the read. */
  transition: filter 0.5s var(--ease), opacity 0.65s var(--ease);
  will-change: transform;
}
/* 无忧长图战报与工会比赛：四列、400px 窗口，整幅图宽完整显示，长方向滚动预览。
   图不足 400 高时，空出来的地方保持黑底，不拉伸、不铺满。 */
#wuyou [data-zone="joy-long"] .plate--fold,
#wuyou [data-zone="joy-guild"] .plate--fold {
  --fold-h: 400px;
}
#wuyou [data-zone="joy-long"] .plate--fold .art,
#wuyou [data-zone="joy-guild"] .plate--fold .art {
  background-color: #000;
  background-image: none;
}
/* The light sits on the surface: soft-light keeps the paper's own colour. */
.plate--fold .depth-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 220px at var(--mx, 50%) var(--my, 50%),
    rgb(255 255 255 / 0.34),
    rgb(255 255 255 / 0.08) 40%,
    transparent 68%
  );
  mix-blend-mode: soft-light;
  transition: opacity 0.4s var(--ease);
}
.plate--fold .art--depth:hover .depth-glare,
.plate--fold .art--depth:focus-visible .depth-glare {
  opacity: 1;
}
/* A phone has no pointer to slide the light with, and a reader who asked for
   less motion gets the still sheet. */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .plate--fold .depth-glare {
    display: none;
  }
}
/* A hairline of silver on the edge comes from .art::after in the gallery sheet;
   this block only adds the light that travels over the paper. */
/* Only a genuinely tall sheet shows the scan cursor and the read gauge. */
.plate--fold .art.is-long { cursor: ns-resize; }
.plate--fold .art:not(.is-long) { cursor: zoom-in; }
/* strip cap-meta "长图·点开看全幅" — hide the text, keep the role hint via cursor */
.plate--fold .cap-meta {
  display: none;
}

/* Frosted panels need a solid stand-in when the visitor asks for less blur. */
@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .motion-toggle,
  .sheet-toggle,
  .sheet-panel,
  .viewer::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
}

/* More contrast: lift the dim tier rather than inventing new colours. */
@media (prefers-contrast: more) {
  :root {
    --text-2: #c6cacd;
    --text-3: #a9adb2;
    --line: rgb(255 255 255 / 0.24);
    --line-soft: rgb(255 255 255 / 0.16);
    --line-strong: rgb(255 255 255 / 0.42);
  }
  figcaption,
  .about-text,
  .about-note {
    color: var(--text-2);
  }
}

/* Print: a portfolio gets printed. Ink-friendly, no chrome, one chapter a page. */
@page {
  margin: 14mm;
}
@media print {
  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }
  .grain,
  .site-header,
  .scroll-progress,
  .motion-toggle,
  .chapter-sheet,
  .viewer,
  .hero-stage,
  .hero-cta,
  .footer-resume,
  .chapter::before,
  .chapter::after,
  .about::before,
  .about::after {
    display: none !important;
  }
  .hero,
  .chapter,
  .about,
  .site-footer {
    padding-top: 0 !important;
    margin-top: 0 !important;
    max-width: none !important;
  }
  .chapter {
    break-before: page;
  }
  .hero {
    min-height: 0 !important;
  }
  .art,
  .motion-frame {
    box-shadow: none !important;
    border: 1px solid #d4d4d4;
    background-image: none !important;
  }
  html.js .art img {
    opacity: 1 !important;
  }
  .hero-cn em {
    background: none !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
  }
  .hero-kicker,
  .hero-lede,
  .chapter-lede,
  .chapter-spec dt,
  .chapter-points,
  .zone-note,
  figcaption,
  .cap-title,
  .cap-meta,
  .about-heading,
  .about-text,
  .about-note,
  .chapter-meta,
  .idx-en,
  .idx-count {
    color: #444444 !important;
  }
  /* the slate rules are white-on-black in the film; on paper they have to be ink */
  .chapter-slate,
  .chapter-spec,
  .chapter-spec div {
    border-color: #d8d8d8 !important;
  }
  .chapter-points li::before {
    background: #999999 !important;
  }
  .b-lead,
  .plate-row,
  .b-fold {
    break-inside: avoid;
  }
  /* every artwork becomes the same specimen height: the print run reads as a
     catalogue and the embedded image data stays small */
  .art,
  .motion-frame {
    height: 165px !important;
    overflow: hidden;
  }
  .art img,
  .motion-frame video {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    box-shadow: none !important;
  }
  .plate--fold .art {
    max-height: 300px !important;
  }
  .plate--fold .art,
  .plate--fold .depth-stage img {
    transform: none !important;
  }
  .plate--fold .depth-glare {
    display: none !important;
  }
  a {
    color: #111111 !important;
    text-decoration: none !important;
  }
  .site-footer {
    border-top: 1px solid #d4d4d4;
  }
  .site-footer::before {
    display: none !important;
  }
}

/* --- responsive ------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav a span { display: none; }
  .hero-intro { gap: 20px; }
  .hero-lede { font-size: 13px; }
  .hero-name { gap: 18px; }
}
@media (max-width: 960px) {
  .hero-top { grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
  .hero-intro { display: grid; gap: 12px; justify-items: start; }
  .hero-stage { grid-template-columns: 1.4fr 0.7fr 0.7fr; height: 420px; gap: 24px 16px; }
  .stage-cap-body i { display: none; }
  .chapter-slate { grid-template-columns: 0.75fr 1.25fr; gap: 32px; }
  .chapter-spec { gap: 6px 20px; }
  .chapter-points { grid-template-columns: 1fr; }
  .b-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .b-grid.is-compact .plate-row--cols { display: contents; }
  .b-grid.is-compact .plate-row--cols > .plate { grid-column: auto; }
  .b-grid.is-compact > .plate-row--cols:last-child > .plate:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .b-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .b-gallery .gallery-grid { display: contents; }
  .b-gallery .gallery-grid > .gallery-item { grid-column: auto; }
  .b-stage { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { padding-top: calc(var(--head-h) + 32px); gap: 28px; }
  .hero-top { grid-template-columns: 1fr; gap: 20px; }
  .hero-intro { display: flex; align-items: center; gap: 32px; }
  .hero-lede { max-width: 38ch; }
  .chapter-slate { grid-template-columns: 1fr; gap: 24px; }
  .chapter-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-slate .chapter-title { font-size: clamp(36px, 6vw, 48px); }
  .plate-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .plate-row--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate-row--cols > .plate { grid-column: auto; }
  .plate-row--cols > .plate:only-child, .plate-row--cols > .plate:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .plate-row--mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate-row--mixed > .plate:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-bottom { justify-content: flex-start; }
}
@media (max-width: 620px) {
  :root { --t-display: 64px; --t-zone: 25px; --gallery-gap: 16px; }
  .hero { padding-bottom: 16px; }
  .hero-name { gap: 20px; }
  .hero-en { font-size: 12px; }
  .hero-intro { align-items: start; gap: 16px; }
  .hero-lede { max-width: 25ch; font-size: 13px; }
  .hero-cta { font-size: 12px; gap: 6px; min-height: 40px; }
  .hero-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; height: auto; gap: 24px 16px; }
  .hero-stage figure:first-child { grid-row: auto; grid-column: 1 / -1; }
  .hero-work { aspect-ratio: 1.35; }
  .hero-stage figure:first-child .hero-work { aspect-ratio: 16 / 9; }
  .hero-stage figure:first-child .stage-cap-body b { font-size: 15px; }
  .stage-cap { padding-top: 10px; gap: 6px; }
  .stage-cap-body b { font-size: 13px; }
  .chapter { padding-top: 64px; }
  .chapter-head { padding-block: 20px 8px; }
  .chapter-slate { gap: 20px; }
  .chapter-spec { display: grid; gap: 5px; }
  .chapter-points { grid-template-columns: 1fr; }
  .chapter-meta { flex-basis: 100%; }
  .chapter-label { flex-wrap: wrap; gap: 6px 12px; }
  .zone { padding-block: 24px 48px; }
  .zone-head { align-items: start; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; }
  .zone-title span { display: block; margin: 8px 0 0; font-size: 11px; }
  .zone-note { font-size: 12px; line-height: 1.5; max-width: 16ch; }
  .plate-row--cols, .plate-row--mixed, .b-grid.is-compact { grid-template-columns: minmax(0, 1fr); }
  .plate-row--cols > .plate, .b-grid.is-compact .plate-row--cols > .plate { grid-column: 1 / -1; }
  .b-gallery { gap: 24px 16px; }
  .b-gallery--mixed { grid-template-columns: minmax(0, 1fr); }
  .b-gallery--pages .cap-title, .b-gallery--posters .cap-title { font-size: 12px; }
  .b-stage { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .b-fold { grid-template-columns: minmax(0, 1fr); }
  .plate-cap { gap: 8px; padding-top: 10px; }
  .cap-title { font-size: 12px; }
  .motion-toggle span { display: none; }
  .motion-toggle { padding: 10px; }
  .viewer-shell { padding-inline: 14px; }
}

/* ============================================================
   CONTINUOUS LAYER — reading instruments
   The page is 29 screens of pictures. These two rules turn the
   pinned chapter label and the long-report frame into gauges, so
   position is always readable without adding a single new panel.
   ============================================================ */

/* The pinned chapter label already draws its top hairline on arrival.
   A second 1px line at its bottom edge fills left-to-right with the
   chapter, so the label reads as a ruler rather than a header. */
.chapter-label {
  background-image: linear-gradient(90deg, var(--text-3), var(--text-3));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: calc(var(--read, 0) * 100%) 1px;
  background-color: var(--bg);
}

/* Long reports are walked by the pointer; this 1px gauge on the right
   edge is the only thing that says "there is more sheet below". */
.fold-read {
  position: absolute;
  top: 10px;
  right: 7px;
  bottom: 10px;
  width: 1px;
  z-index: 4;
  background: rgb(255 255 255 / 0.16);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  pointer-events: none;
}
.fold-read i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--white);
  transform: scaleY(var(--fold, 0));
  transform-origin: center top;
}
.plate--fold .art.is-long:hover .fold-read,
.plate--fold .art.is-long:focus-visible .fold-read {
  opacity: 1;
}

/* Bands arrive as one sheet: the mask is set by script, this only keeps the
   painted edge clean while it opens. */
@media (prefers-reduced-motion: reduce) {
  .fold-read { display: none; }
}

/* ============================================================
   AMBIENCE — one weather per chapter
   A fixed layer behind the work. Only the chapter holding the
   middle of the viewport is lit, so two climates never mix. The
   giant name travels with the reading position; the motif comes
   from that chapter's own material (signal dots, IP bubbles, a
   starfield, a measuring grid, stage light). Nothing here sits
   over a picture, so no artwork is ever tinted.
   ============================================================ */
.chapter { position: relative; }
.chapter-head,
.chapter-body { position: relative; z-index: 1; }

.amb {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.amb.is-live { opacity: 1; }

.amb__word {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  white-space: nowrap;
  font-family: "BDO Grotesk", sans-serif;
  font-size: clamp(110px, 21vw, 310px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: rgb(255 255 255 / 0.05);
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.14);
  transform: translateY(-50%);
  will-change: transform;
}

.amb__motif { position: absolute; }

/* 01 · signal dots — the studio wall, drifting */
.amb__motif--dots {
  inset: -18%;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.5) 0.9px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.16;
  animation: amb-drift 56s linear infinite alternate;
}

/* 02 · IP bubbles — soft rings breathing */
.amb__motif--rings { inset: 0; }
.amb__motif--rings i {
  position: absolute;
  display: block;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: 50%;
  animation: amb-breathe 21s ease-in-out infinite alternate;
}
.amb__motif--rings i:nth-child(1) { left: -9vw; top: 6%; width: 46vw; height: 46vw; }
.amb__motif--rings i:nth-child(2) { right: 3vw; top: 42%; width: 25vw; height: 25vw; animation-delay: -6s; }
.amb__motif--rings i:nth-child(3) { left: 36%; bottom: 2%; width: 13vw; height: 13vw; animation-delay: -12s; }

/* 03 · starfield — twinkling silver */
.amb__motif--stars { inset: 0; }
.amb__motif--stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #eef0f4;
  opacity: 0.1;
  animation: amb-twinkle var(--rate) ease-in-out var(--delay) infinite;
}
/* every eleventh star is a four-point sparkle rather than a dot */
.amb__motif--stars i:nth-child(17n) {
  border-radius: 0;
  background: transparent;
}
.amb__motif--stars i:nth-child(17n)::before,
.amb__motif--stars i:nth-child(17n)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #f4f6f9;
  transform: translate(-50%, -50%);
}
.amb__motif--stars i:nth-child(17n)::before { width: 11px; height: 1px; }
.amb__motif--stars i:nth-child(17n)::after { width: 1px; height: 11px; }

/* 04 · measuring rules — a dieline drifting left */
.amb__motif--rules {
  inset: -6% 0;
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.1) 0 1px, transparent 1px 128px);
  animation: amb-slide 72s linear infinite;
}

/* 05 · stage light — two cones swaying from above */
.amb__motif--beams {
  inset: -30% -12%;
  background:
    conic-gradient(from 124deg at 10% -14%, transparent 0deg, rgb(255 255 255 / 0.14) 8deg, transparent 21deg),
    conic-gradient(from 230deg at 90% -14%, transparent 0deg, rgb(255 255 255 / 0.11) 7deg, transparent 20deg);
  transform-origin: 50% 0;
  animation: amb-sway 26s ease-in-out infinite alternate;
}

@keyframes amb-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-156px, -98px, 0); }
}
@keyframes amb-breathe {
  from { transform: scale(0.97); opacity: 0.55; }
  to { transform: scale(1.05); opacity: 1; }
}
@keyframes amb-twinkle {
  0%, 100% { opacity: 0.08; transform: scale(0.78); }
  50% { opacity: var(--peak, 0.55); transform: scale(1); }
}
@keyframes amb-slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-128px, 0, 0); }
}
@keyframes amb-sway {
  from { transform: rotate(-3.4deg); }
  to { transform: rotate(3.4deg); }
}

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

/* ========================================================================== */
/* 03 · 星辰 信息案例说明图 —— 分层视差卡片                                   */
/* 18 张说明图按数量分成三圈：越往后的圈越远、越小、越淡，指针移动时整组轻转，  */
/* 靠近指针的卡片被轻微吸住；点一次把卡片推到台前，再点一次在原图查看器里打开。 */
/* 无 JS 时退化为等高缩略图矩阵，全部图片仍然可见。                            */
/* ========================================================================== */
.px-stage {
  --px-w: clamp(148px, 17vw, 246px);
  --px-h: calc(var(--px-w) * 1.3);
  position: relative;
  height: clamp(560px, 66vh, 700px);
  margin-block: 6px clamp(26px, 3vw, 44px);
  perspective: 2500px;
  perspective-origin: 50% 48%;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
}

/* Fallback: a plain, readable index of the same pieces. JS turns the field
   into an absolutely positioned 3D cloud by adding .is-live. */
.px-stage__field {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 14px);
  padding: clamp(22px, 4vw, 52px);
}
.px-stage:not(.is-live) .px-stage__field {
  overflow-y: auto;
  align-content: flex-start;
  scrollbar-width: none;
}
.px-stage:not(.is-live) .px-stage__field::-webkit-scrollbar { display: none; }

.px-stage.is-live .px-stage__field {
  display: block;
  padding: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.px-card {
  position: relative;
  width: var(--px-w);
  height: var(--px-h);
  margin: 0;
  transform-style: preserve-3d;
}
.px-stage.is-live .px-card {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: calc(var(--px-h) / -2) 0 0 calc(var(--px-w) / -2);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.px-card__surface {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-tile);
  overflow: hidden;
  background-color: #0a0c0d;
  background-image: none;
  cursor: pointer;
  box-shadow:
    0 26px 54px -22px rgb(0 0 0 / 0.9),
    0 0 0 1px rgb(255 255 255 / 0.07);
  transition:
    box-shadow 0.5s var(--ease),
    background-color 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.px-card__surface img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    filter 0.5s var(--ease),
    opacity 0.65s var(--ease);
}
.px-card__surface:hover img {
  filter: brightness(1.06);
}
.px-card__surface:hover,
.px-card.is-hover .px-card__surface {
  box-shadow:
    0 34px 68px -24px rgb(0 0 0 / 0.95),
    0 0 0 1px rgb(255 255 255 / 0.18);
}
.px-card.is-hover .px-card__surface img { filter: brightness(1.06); }
.px-card.is-focused .px-card__surface {
  box-shadow:
    0 44px 100px -30px rgb(0 0 0 / 0.98),
    0 0 0 1px rgb(238 236 231 / 0.7);
  cursor: zoom-in;
}
.px-card__surface:focus-visible {
  outline: 1px solid rgb(238 236 231 / 0.85);
  outline-offset: 3px;
}

.px-stage__readout {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 1.8vw, 20px);
  margin: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  pointer-events: none;
  z-index: 4000;
  transition: opacity 0.45s var(--ease);
}
.px-stage.is-focused .px-stage__readout { opacity: 1; }

@media (max-width: 960px) {
  .px-stage { --px-w: clamp(126px, 19vw, 196px); height: clamp(520px, 66vh, 640px); }
}

@media (max-width: 620px) {
  .px-stage {
    --px-w: clamp(96px, 26vw, 124px);
    height: clamp(430px, 112vw, 540px);
    margin-block: 2px 30px;
  }
  .px-card__surface { box-shadow: 0 16px 32px -14px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .px-card__surface,
  .px-card__surface img,
  .px-stage__readout { transition: none; }
}

/* ========================================================================== */
/* 03 · 星辰 英国求职手册 —— 倾斜纸墙                                          */
/* 16 页按栏循环滚动，整面墙后仰、侧转、再斜切；每块纸片用自身宽高比做框，       */
/* background-size: cover 正好铺满，不拉伸也不裁切。                            */
/* ========================================================================== */
.tilt-stage {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  height: clamp(440px, 52vh, 540px);
  margin-block: clamp(4px, 1vw, 10px) clamp(18px, 2.4vw, 34px);
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  background: #000;
  isolation: isolate;
  contain: layout paint;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgb(0 0 0 / 0.02) 3.4%,
    rgb(0 0 0 / 0.035) 3.8%,
    rgb(0 0 0 / 0.075) 5.4%,
    rgb(0 0 0 / 0.15) 7.7%,
    rgb(0 0 0 / 0.3) 11%,
    #000 22%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgb(0 0 0 / 0.02) 3.4%,
    rgb(0 0 0 / 0.035) 3.8%,
    rgb(0 0 0 / 0.075) 5.4%,
    rgb(0 0 0 / 0.15) 7.7%,
    rgb(0 0 0 / 0.3) 11%,
    #000 22%
  );
}

.tilt-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  height: 280%;
  display: grid;
  column-gap: 8px;
  transform: translate(-50%, -50%) rotateX(22deg) rotateY(9deg) rotate(-20deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-col {
  padding-top: calc(var(--lead, 0) * 100%);
  min-width: 0;
}

.tilt-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: tilt-rise var(--dur, 28s) linear infinite;
  will-change: transform;
}
.tilt-col:nth-child(even) .tilt-strip { animation-name: tilt-fall; }
.tilt-stage.is-live:not(.is-running) .tilt-strip { animation-play-state: paused; }

@keyframes tilt-rise {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}
@keyframes tilt-fall {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.tilt-tile {
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 0.461);
  padding: 0;
  border: 0;
  border-radius: 2px;
  background-color: #0b0d0e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tilt-tile:hover {
  filter: brightness(1.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
}
.tilt-tile:focus-visible {
  outline: 1px solid rgb(238 236 231 / 0.85);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .tilt-stage { height: clamp(420px, 52vh, 500px); }
}

@media (max-width: 620px) {
  .tilt-stage { height: clamp(370px, 102vw, 470px); margin-block: 2px 26px; }
  .tilt-plane { width: 320%; height: 320%; column-gap: 6px; }
  .tilt-strip { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-strip { animation: none; }
  .tilt-tile { transition: none; }
}

/* 01 · 恋爱单选题：投流、商城与歌封收窄，给上线横幅让出尺度 */
.arrangement-row--tight {
  max-width: 54%;
  margin-inline: auto;
}

@media (max-width: 820px) {
  .arrangement-row--tight { max-width: 86%; }
}

@media (max-width: 620px) {
  .arrangement-row--joy-top > .plate:nth-child(2) {
    width: 56%;
    margin-inline: auto;
  }
}
