/* ==========================================================================
   CALDER — Personal Visual Archive
   Editorial · Contemporary · Restrained
   --------------------------------------------------------------------------
   Design tokens, base, masthead, sections, exhibition, miao, about.
   Motion reveals the work — it never competes with it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* surfaces */
  --paper:      #f4f1ea;   /* warm off-white */
  --paper-deep: #ece8df;
  --ink:        #151514;
  --charcoal:   #292823;
  --grey:       #7c766b;
  --grey-faint: #a39c8e;
  --hairline:   rgba(21, 21, 20, 0.16);
  --hairline-dark: rgba(244, 241, 234, 0.16);

  /* dark room */
  --room:       #1b1b19;
  --room-2:     #222220;
  --room-ink:   #f0ece2;

  /* type families */
  --serif-cn:  "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --serif-en:  "New York", "Didot", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:      -apple-system, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:      "SF Mono", "Menlo", "Cascadia Mono", "Consolas", monospace;

  /* rhythm */
  --gutter:    clamp(1.25rem, 4vw, 3.5rem);
  --pad-v:     clamp(5rem, 15vh, 12rem);
  --type-xxl:  clamp(3rem, 10.5vw, 8.5rem);
  --type-xl:   clamp(2.2rem, 6.5vw, 5rem);
  --type-l:    clamp(1.5rem, 3.4vw, 2.6rem);
  --type-m:    clamp(1.05rem, 1.6vw, 1.3rem);

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

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

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

figure, blockquote, p { margin: 0; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* focus */
a:focus-visible, button:focus-visible {
  outline: 1px solid var(--grey);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. Typography helpers
   -------------------------------------------------------------------------- */
.cn  { font-family: var(--serif-cn); }
.en  { font-family: var(--serif-en); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

.meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   3. Masthead / navigation
   -------------------------------------------------------------------------- */
.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: rgba(244, 241, 234, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand .dot { color: var(--grey-faint); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }

.nav a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  gap: 0.45rem;
  align-items: baseline;
  transition: color 0.3s var(--ease);
}
.nav a sup { font-size: 0.55rem; color: var(--grey-faint); }
.nav a:hover { color: var(--ink); }
.nav a.is-current { color: var(--ink); }
.nav a.is-current sup { color: var(--ink); }

.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* mobile full-screen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  padding: calc(3.5rem + var(--gutter)) var(--gutter) var(--gutter);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.menu.is-open { display: flex; }
.menu a {
  font-family: var(--serif-cn);
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1.15;
  border-bottom: 1px solid var(--hairline);
  padding: 0.6rem 0;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.menu a .no { font-family: var(--mono); font-size: 0.7rem; color: var(--grey); }
.menu .menu-close {
  position: absolute;
  top: 1rem; right: var(--gutter);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--pad-v); position: relative; }

.hairline-top { border-top: 1px solid var(--hairline); }
.hairline-bot { border-bottom: 1px solid var(--hairline); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

/* reveal — only hidden when JS is available (html.js), so content never
   disappears if scripts fail to load */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
html.js [data-reveal].is-inview { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   5. Home — hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero .hero-tag {
  position: absolute;
  top: 5.5rem;
  left: var(--gutter);
  display: flex;
  gap: 2.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero-title {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: var(--type-xxl);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}
.hero-title .cn {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.3em;
  color: var(--grey);
  margin-top: 1rem;
}

.hero .hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.hero .hero-foot .lead {
  max-width: 34rem;
  font-family: var(--serif-cn);
  font-size: var(--type-m);
  color: var(--charcoal);
}

/* --------------------------------------------------------------------------
   6. Section headers (editorial index)
   -------------------------------------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  margin-bottom: clamp(3rem, 8vh, 6rem);
}
.sec-head .t {
  font-family: var(--serif-en);
  font-size: var(--type-l);
  letter-spacing: 0.02em;
}
.sec-head .t .cn {
  font-size: 0.55em;
  color: var(--grey);
  margin-left: 0.8em;
  letter-spacing: 0.14em;
}
.sec-head .no { font-family: var(--mono); font-size: 0.68rem; color: var(--grey); letter-spacing: 0.14em; }

/* --------------------------------------------------------------------------
   7. Home — project entries
   -------------------------------------------------------------------------- */
.entry-24 {
  position: relative;
}
.entry-24 .intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: clamp(3rem, 9vh, 7rem);
}
.entry-24 .intro .big {
  grid-column: 1 / 9;
}
.entry-24 .intro .side {
  grid-column: 9 / 13;
  align-self: end;
}
.entry-24 .big-title {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  margin: 0;
}
.entry-24 .big-title .row { display: block; }
.entry-24 .big-title .row .cn {
  font-family: var(--serif-cn);
  font-size: 0.4em;
  letter-spacing: 0.22em;
  color: var(--grey);
  display: block;
  margin-top: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
}
.feat {
  grid-column: span 6;
}
.feat.n2 { grid-column: 4 / 11; margin-top: clamp(2rem, 10vh, 8rem); }
.feat.n3 { grid-column: 1 / 9; margin-top: clamp(2rem, 10vh, 8rem); }

/* video figure */
.video-figure { position: relative; }
.video-figure video {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-deep);
}
.video-figure .frame {
  position: absolute; inset: 0;
  border: 1px solid var(--hairline);
  pointer-events: none;
}
.video-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.entry-link {
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.35rem;
  transition: gap 0.35s var(--ease), color 0.3s var(--ease);
}
.entry-link .arr { transition: transform 0.35s var(--ease); }
.entry-link:hover { gap: 1.5rem; }
.entry-link:hover .arr { transform: translateX(4px); }

/* compact video grid — home */
.vids-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}
.vids-grid .v { margin: 0; }
.vids-grid .video-figure video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-deep);
}
.vids-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.vids-grid figcaption i.cn {
  font-style: normal;
  color: var(--charcoal);
  letter-spacing: 0.12em;
  font-family: var(--serif-cn);
}

/* pdf preview strip — home, horizontally scrollable */
.pdf-strip {
  margin-top: 2.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 150px);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pdf-strip a { display: block; scroll-snap-align: start; }
.pdf-strip img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  object-position: top;
}
.room .pdf-strip {
  background: rgba(244, 241, 234, 0.12);
  border-color: var(--hairline-dark);
}
.room .pdf-cta { border-color: var(--hairline-dark); }
.room .pdf-cta .info { color: #9c958a; }

/* miao entry — dark room */
.room {
  background: var(--room);
  color: var(--room-ink);
}
.room .sec-head { border-color: var(--hairline-dark); }
.room .meta, .room .kicker { color: #b9b2a4; }
.room .sec-head .no { color: #9c958a; }

.entry-miao {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.entry-miao .text { grid-column: 1 / 7; }
.entry-miao .text .big-title {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.92;
  margin: 1.2rem 0;
}
.entry-miao .text .big-title .cn {
  font-family: var(--serif-cn);
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.24em;
  color: #b9b2a4;
  margin-top: 0.9rem;
}
.entry-miao .text p {
  font-family: var(--serif-cn);
  color: #d8d2c6;
  max-width: 30rem;
  margin-bottom: 2rem;
}
.entry-miao .cover {
  grid-column: 8 / 13;
  position: relative;
}
.entry-miao .cover img {
  width: 100%;
  border: 1px solid var(--hairline-dark);
  filter: saturate(0.92) contrast(1.02);
}
.entry-miao .cover .pdf-label {
  position: absolute;
  bottom: -0.9rem; right: 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--room);
  padding: 0.35rem 0.7rem;
  color: #b9b2a4;
  border: 1px solid var(--hairline-dark);
}

.room .entry-link { color: var(--room-ink); border-color: var(--room-ink); }

/* home — miao case blocks (dark room) */
.case-block { margin-top: clamp(3.5rem, 9vh, 5.5rem); }
.case-block .kicker { display: block; margin-bottom: 1.6rem; }
.case-lead {
  font-family: var(--serif-cn);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.9;
  color: #d8d2c6;
  max-width: 40rem;
}
.case-note {
  font-family: var(--serif-cn);
  font-size: 1rem;
  color: #b9b2a4;
  line-height: 1.8;
  max-width: 36rem;
  margin-bottom: 0.4rem;
}
.room .quote {
  color: #d8d2c6;
  border-left-color: var(--hairline-dark);
  margin-top: 2.2rem;
}
.room .system-grid { background: rgba(244, 241, 234, 0.12); border-color: var(--hairline-dark); }
.room .system-grid .cell { background: var(--room-2); }
.room .system-grid .cell .k { color: #9c958a; }
.room .system-grid .cell h3 .en { color: #9c958a; }
.room .system-grid .cell p { color: #b9b2a4; }
.room .flow .step { border-color: var(--hairline-dark); color: #d8d2c6; }
.room .flow .step.acc { border-color: var(--room-ink); color: var(--room-ink); }
.room .flow .arrow { color: #9c958a; }
.case-cta {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* about strip */
.about-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start;
}
.about-strip .big {
  grid-column: 1 / 9;
  font-family: var(--serif-cn);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.35;
}
.about-strip .side {
  grid-column: 9 / 13;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tags span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.75rem;
  color: var(--grey);
}

/* footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer .to-top { color: var(--ink); }

/* --------------------------------------------------------------------------
   8. Solar Terms — horizontal film exhibition
   -------------------------------------------------------------------------- */
.exhibit-head {
  padding-top: clamp(3rem, 6vh, 4rem);
}
.exhibit-head .title-block {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.exhibit-head .title-block h1 {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 0.9;
  margin: 0;
}
.exhibit-head .title-block h1 .cn {
  font-family: var(--serif-cn);
  display: block;
  font-size: 0.4em;
  letter-spacing: 0.28em;
  color: var(--grey);
  margin-top: 0.8rem;
}

/* stage + track — one horizontal scroll band, snap to centre */
.film {
  /* width capped by both viewport width and the room left under the head,
     so the whole unit (head → film → info) fits one screen */
  --film-w: min(clamp(280px, 36vw, 440px), calc((60svh - 1rem) * 0.75));
  padding-top: clamp(0.5rem, 1.5vh, 1rem);
  position: relative;
}
.film-stage {
  position: relative;
  max-width: 1020px;
  margin-inline: auto;
}

/* home variant — the film band sits inside the works section */
.film-home { margin-top: clamp(2.5rem, 7vh, 4.5rem); }

.film-track {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 2rem);
  height: 60vh;
  height: clamp(50svh, 60svh, 66svh);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-inline: calc((100% - var(--film-w)) / 2);
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  user-select: none;
}
.film-track::-webkit-scrollbar { display: none; }
.film-track.is-dragging,
.film-track.no-snap { scroll-snap-type: none; }
.film-track.is-dragging { cursor: grabbing; }

.film-item {
  position: relative;
  flex: 0 0 auto;
  width: var(--film-w);
  scroll-snap-align: center;
  transform-origin: center;
  will-change: transform, opacity;
  opacity: 0.4;
  z-index: 1;
  cursor: pointer;
}
.film-item.is-active { z-index: 2; }

.film-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-deep);
}
.film-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.film-media .frame {
  position: absolute; inset: 0;
  border: 1px solid var(--hairline);
  pointer-events: none;
}
.film-media .film-tag {
  position: absolute;
  right: 0.7rem; bottom: 0.7rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: rgba(21, 21, 20, 0.5);
  padding: 0.28rem 0.55rem;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* thin progress line under the track */
.film-progress {
  position: relative;
  height: 1px;
  max-width: 1020px;
  margin: clamp(1rem, 2.5vh, 1.6rem) auto 0;
  background: var(--hairline);
}
.film-progress .bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--ink);
}

/* info panel — editorial, not cards */
.film-info {
  margin-top: clamp(0.5rem, 1.2vh, 0.8rem);
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}
.film-info .film-index {
  font-size: 0.72rem;
  color: var(--grey);
  padding-bottom: 0.3rem;
}
.film-info .film-index .cur { color: var(--ink); }
.film-info .film-title h2 {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1;
  margin: 0;
}
.film-info .film-title .film-en {
  font-family: var(--serif-en);
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 0.4rem;
}
.film-info .film-title .film-meta {
  margin-top: 0.9rem;
  font-size: 0.6rem;
  color: var(--grey);
}
.film-info .film-note {
  font-family: var(--serif-cn);
  font-size: 0.95rem;
  color: var(--grey);
  max-width: 22rem;
}
.film-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.film-nav button {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.15rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s var(--ease);
}
.film-nav button:hover { opacity: 0.55; }
.film-nav button:disabled { opacity: 0.2; cursor: default; }
.film-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.film-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grey-faint);
  opacity: 0.45;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.film-dots .dot.is-on {
  background: var(--ink);
  opacity: 1;
  transform: scale(1.5);
}

.film-hint {
  margin-top: 1.6rem;
  font-size: 0.6rem;
  color: var(--grey-faint);
}

/* production note */
.prod-note {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--pad-v);
}
.prod-note h2 {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 4rem);
  margin: 1rem 0 2rem;
}
.prod-note .seq {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  max-width: 48rem;
  line-height: 2;
}
.prod-note .seq .ok { color: var(--charcoal); }
.prod-note .seq .wa { color: var(--grey-faint); }

/* --------------------------------------------------------------------------
   9. Miao — case study page
   -------------------------------------------------------------------------- */
.page-head {
  padding-top: 5.5rem;
}
.page-head .title-block {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-head h1 {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 0.9;
  margin: 0;
}
.page-head h1 .cn {
  font-family: var(--serif-cn);
  display: block;
  font-size: 0.4em;
  letter-spacing: 0.28em;
  color: var(--grey);
  margin-top: 0.8rem;
}

/* numbered chapter */
.chapter {
  padding-block: clamp(3rem, 9vh, 6rem);
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.chapter-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start;
}
.chapter-inner .no {
  grid-column: 1 / 3;
  font-family: var(--serif-en);
  font-size: 2.6rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(21,21,20,0.22);
}
.chapter-inner .body { grid-column: 3 / 13; }
.chapter .body h2 {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: var(--type-l);
  margin: 0 0 1.4rem;
}
.chapter .body h2 .en {
  font-family: var(--serif-en);
  display: block;
  font-size: 0.48em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.5rem;
}
.chapter .body p {
  font-family: var(--serif-cn);
  max-width: 44rem;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}
.chapter .body .quote {
  font-family: var(--serif-cn);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding-left: 1.4rem;
  max-width: 36rem;
  margin: 2rem 0;
}

/* three-part system (底衣/绣片/共创) */
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 2rem;
}
.system-grid .cell {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.system-grid .cell .k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.system-grid .cell h3 {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.8rem;
}
.system-grid .cell h3 .en {
  font-family: var(--serif-en);
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.4rem;
}
.system-grid .cell p { font-size: 0.9rem; color: var(--grey); line-height: 1.7; }

/* flow line for model */
.flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.6rem;
}
.flow .step {
  border: 1px solid var(--hairline);
  padding: 0.6rem 1rem;
  color: var(--charcoal);
}
.flow .arrow { color: var(--grey-faint); }
.flow .step.acc { border-color: var(--ink); color: var(--ink); }

/* dark system chapter */
.chapter.room {
  border-top: 1px solid var(--hairline-dark);
  color: var(--room-ink);
}
.chapter.room .no { -webkit-text-stroke-color: rgba(240,236,226,0.2); }
.chapter.room .body p { color: #d8d2c6; }
.chapter.room .body h2 .en { color: #9c958a; }

/* blockchain three roles */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(244,241,234,0.12);
  border: 1px solid rgba(244,241,234,0.14);
  margin-top: 2rem;
}
.roles .cell {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--room-2);
}
.roles .cell .n {
  font-family: var(--serif-en);
  font-size: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,236,226,0.3);
}
.roles .cell h3 {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0.8rem 0;
}
.roles .cell h3 .en {
  font-family: var(--serif-en);
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c958a;
  margin-top: 0.4rem;
}
.roles .cell p { font-size: 0.85rem; color: #b9b2a4; line-height: 1.7; }

/* pdf preview strip */
.pdf-preview {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.pdf-preview figure { position: relative; background: var(--paper); }
.pdf-preview img {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.9) contrast(1.01);
  transition: transform 0.6s var(--ease);
}
.pdf-preview figure:hover img { transform: scale(1.02); }
.pdf-preview figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(21,21,20,0.65));
}

.pdf-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.pdf-cta .info { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }

/* --------------------------------------------------------------------------
   10. About page
   -------------------------------------------------------------------------- */
.about-lead {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--pad-v);
}
.about-lead .big {
  font-family: var(--serif-cn);
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  line-height: 1.45;
  max-width: 46rem;
  margin: 2rem 0 3rem;
}
.about-lead .big em { font-style: normal; border-bottom: 1px solid var(--grey); }

.about-list {
  border-top: 1px solid var(--hairline);
}
.about-list .row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.about-list .row .k {
  grid-column: 1 / 4;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.about-list .row .v {
  grid-column: 4 / 13;
  font-family: var(--serif-cn);
  font-size: 1.15rem;
  color: var(--charcoal);
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav .nav-links { display: none; }
  .nav-toggle { display: block; }

  .feat { grid-column: 1 / -1; }
  .feat.n2, .feat.n3 { grid-column: 1 / -1; margin-top: 0; }
  .vids-grid { grid-template-columns: repeat(2, 1fr); }
  .vids-grid figcaption { font-size: 0.54rem; flex-direction: column; gap: 0.15rem; }
  .entry-miao .text, .entry-miao .cover { grid-column: 1 / -1; }
  .entry-24 .intro .big { grid-column: 1 / -1; }
  .entry-24 .intro .side { grid-column: 1 / -1; }
  .about-strip .big, .about-strip .side { grid-column: 1 / -1; }

  .film {
    --film-w: min(clamp(190px, 62vw, 300px), calc((54svh - 1rem) * 0.75));
    padding-top: 0.5rem;
  }
  .film-stage { max-width: none; margin-inline: 0; }
  .film-track {
    height: 56vh;
    height: clamp(46svh, 56svh, 60svh);
  }
  .film-progress { max-width: none; }
  .film-info {
    grid-template-columns: auto 1fr;
    gap: 0.6rem 1rem;
    align-items: end;
  }
  .film-info .film-index { grid-column: 1; grid-row: 1; padding-bottom: 0.35rem; }
  .film-info .film-title { grid-column: 2; grid-row: 1; }
  .film-info .film-title h2 { font-size: 1.6rem; }
  .film-info .film-meta { display: none; }
  .film-info .film-copy  { grid-column: 1 / -1; grid-row: 2; }
  .film-info .film-nav   { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; }
  .film-info .film-note  { max-width: none; }
  .film-hint { display: none; }

  .chapter-inner .no { display: none; }
  .chapter-inner .body { grid-column: 1 / -1; }
  .system-grid, .roles { grid-template-columns: 1fr; }
  .pdf-preview { grid-template-columns: repeat(2, 1fr); }
  .about-list .row .k { grid-column: 1 / -1; }
  .about-list .row .v { grid-column: 1 / -1; }

  .hero .hero-tag { gap: 1.2rem; }
}
