/* =============================================================
   KERUO YANG — base + design tokens
   Near-black editorial system. Photography is the only colour.
   ============================================================= */

:root {
  /* type scale */
  --text-xs: clamp(0.6875rem, 0.66rem + 0.14vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --text-3xl: clamp(2.75rem, 1rem + 5.4vw, 6rem);
  --text-hero: clamp(3rem, 0.4rem + 8.4vw, 9rem);

  /* spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;    --space-10: 2.5rem;
  --space-12: 3rem;   --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;   --space-40: 10rem;

  /* colour — monochrome only */
  --color-bg: #0e0e0e;
  --color-bg-deep: #080808;
  --color-surface: #141413;
  --color-text: #efe9e1;
  --color-text-muted: #948d84;
  --color-text-faint: #5e5a55;
  --color-line: rgba(239, 233, 225, 0.13);
  --color-line-strong: rgba(239, 233, 225, 0.28);

  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-display-zh: 'Noto Serif SC', 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, 'Helvetica Neue', sans-serif;

  --page-x: clamp(1.25rem, 5vw, 5rem);
  --content-narrow: 62ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 220ms var(--ease);
  --t-slow: 1200ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
body[lang="zh-Hans"] { letter-spacing: 0.01em; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgba(239, 233, 225, 0.2); }
:focus-visible { outline: 1px solid var(--color-line-strong); outline-offset: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- shared type helpers ---------- */
.display { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; }
[lang="zh-Hans"] .display,
.display--zh { font-family: var(--font-display-zh); font-weight: 300; letter-spacing: 0.01em; }

.kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
[lang="zh-Hans"] .kicker { letter-spacing: 0.18em; }

.lede {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 46ch;
  font-weight: 300;
}

.prose p { max-width: var(--content-narrow); color: #cfc8c0; margin-bottom: var(--space-5); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) var(--page-x);
  transition: background 400ms var(--ease), backdrop-filter 400ms var(--ease),
              border-color 400ms var(--ease), padding 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
/* legibility scrim behind the header while it floats over bright photography */
.header::before {
  content: ''; position: absolute; inset: -1px 0 -2.5rem 0;
  pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.78) 0%, rgba(6, 10, 18, 0.42) 45%, rgba(6, 10, 18, 0) 100%);
  transition: opacity 400ms var(--ease);
}
.header--scrolled::before { opacity: 0; }
.header--scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--color-line);
  padding-block: var(--space-3);
}

.brand { display: flex; align-items: center; }
.brand__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__link {
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-block: 2px;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 520ms var(--ease);
}
.nav__link:hover { color: var(--color-text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current='page'] { color: var(--color-text); }
.nav__link[aria-current='page']::after { transform: scaleX(1); background: var(--color-line-strong); }

.nav__sep { width: 1px; height: 14px; background: var(--color-line); }

.lang {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-faint);
}
.lang a { transition: color var(--t-fast); }
.lang a:hover { color: var(--color-text); }
.lang .is-active { color: var(--color-text); }

.burger { display: none; width: 28px; height: 28px; background: none; border: 0; cursor: pointer; color: var(--color-text); }
.burger span { display: block; height: 1px; background: currentColor; margin: 7px 0; transition: transform 300ms var(--ease), opacity 200ms; }
.is-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; position: relative; z-index: 95; }
  /* the open overlay must not sit inside a backdrop-filtered ancestor,
     or `position: fixed` would resolve against the header box */
  body.is-open .header { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
  .nav {
    position: fixed; inset: 0; z-index: 90;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: var(--space-5);
    padding: var(--space-24) var(--page-x) var(--space-16);
    overflow-y: auto;
    background: var(--color-bg-deep);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 320ms;
  }
  body.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__link { font-size: var(--text-xl); font-family: var(--font-display); color: var(--color-text); }
  .nav__sep { display: none; }
  .nav .lang { font-size: var(--text-sm); margin-top: var(--space-4); }
  body.is-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; width: 100%; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero--diptych { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--color-bg-deep); }
.hero__pane { position: relative; overflow: hidden; }
.hero--diptych .hero__img { object-position: center 46%; }
.hero__pane--b .hero__img { animation-delay: 0.4s; object-position: center 52%; }
@media (min-width: 901px) {
  /* quiet frame sits under the title; the action frame stays unobstructed on the right */
  .hero--diptych .hero__pane { order: 2; }
  .hero--diptych .hero__pane--b { order: 1; }
}
@media (max-width: 900px) {
  .hero--diptych { grid-template-columns: 1fr; gap: 0; }
  .hero__pane--b { display: none; }
}
/* single contained hero — the frame floats, the words stand beside it */
.hero--single {
  background: var(--color-bg-deep);
  display: block;
  padding: 0;
}
.hero__scroll {
  position: absolute; left: var(--page-x); bottom: clamp(2rem, 5vh, 3.5rem); z-index: 3;
}
.hero--single::before, .hero--single::after { display: none; }
.hero--single .hero__plate {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.hero--single .hero__frame {
  position: relative; display: block; margin: 0; line-height: 0;
  animation: heroFade 1.6s var(--ease) both;
}
.hero--single .hero__img {
  position: static; display: block; width: auto; height: auto;
  max-height: calc(100svh - 27vh);
  max-width: calc(100vw - 2 * var(--page-x));
  object-fit: contain; transform: none; animation: none;
  filter: saturate(0.92) contrast(1.03);
}
.hero--single .hero__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: #16233a; mix-blend-mode: lighten; opacity: 0.35;
}
@keyframes heroFade { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero--single .hero__img { max-height: calc(100svh - 30vh); }
}
@media (prefers-reduced-motion: reduce) { .hero--single .hero__frame { animation: none; } }

.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,8,8,0.62) 0%, rgba(8,8,8,0.12) 30%, rgba(8,8,8,0.46) 64%, rgba(8,8,8,0.92) 100%);
}
.hero__inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--page-x) clamp(3rem, 8vh, 6rem);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
[lang="zh-Hans"] .hero__title { font-family: var(--font-display-zh); letter-spacing: 0.02em; line-height: 1.02; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
  align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--color-line); padding-top: var(--space-4);
}
.hero__sub {
  font-size: var(--text-sm); max-width: 44ch;
  color: rgba(238, 240, 244, 0.86);
  text-shadow: 0 1px 14px rgba(4, 8, 14, 0.85);
}
.hero .scroll-hint { color: rgba(238, 240, 244, 0.7); text-shadow: 0 1px 14px rgba(4, 8, 14, 0.85); }
.hero__meta { border-top-color: rgba(238, 240, 244, 0.28); }
.scroll-hint {
  font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-text-faint); display: flex; align-items: center; gap: var(--space-3);
}
.scroll-hint::after {
  content: ''; width: 42px; height: 1px; background: currentColor;
  transform-origin: left; animation: pulseLine 3.2s var(--ease) infinite;
}
@keyframes pulseLine { 0%,100% { transform: scaleX(0.3); opacity: 0.5 } 50% { transform: scaleX(1); opacity: 1 } }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 11vw, 10rem) var(--page-x); }
.section--tight { padding-block: clamp(3rem, 7vw, 6rem); }
.section__head {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-10);
  align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: var(--space-4); margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; }
[lang="zh-Hans"] .section__title { font-family: var(--font-display-zh); }

/* page header (interior pages) */
.pagehead { padding: clamp(8rem, 16vh, 12rem) var(--page-x) clamp(2.5rem, 6vw, 5rem); }
.pagehead__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--text-3xl); letter-spacing: -0.03em; margin-top: var(--space-4);
}
[lang="zh-Hans"] .pagehead__title { font-family: var(--font-display-zh); letter-spacing: 0.02em; }
.pagehead__intro { margin-top: var(--space-8); max-width: 58ch; color: var(--color-text-muted); font-size: var(--text-base); }
.pagehead--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-10); align-items: end; }
@media (max-width: 800px) { .pagehead--split { grid-template-columns: 1fr; } }
.pagehead__note { max-width: 46ch; margin: 0; align-self: end; color: var(--ink-soft, #9aa6b4); font-size: var(--text-sm, .875rem); line-height: 1.75; letter-spacing: .01em; }
@media (max-width: 800px) { .pagehead__note { margin-top: var(--space-5, 1.25rem); } }

/* ---------- figure / image behaviour ---------- */
.fig { position: relative; margin: 0; }
.fig__frame {
  position: relative; overflow: hidden; background: #151513;
  background-size: cover; background-position: center;
}
.fig__frame img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.015);
  transition: opacity 900ms var(--ease), transform var(--t-slow);
}
.fig__frame img.is-loaded { opacity: 1; transform: scale(1); }
a.fig__frame:hover img, .fig__frame:hover img.is-loaded { transform: scale(1.03); }
.fig__cap {
  display: flex; gap: var(--space-4); justify-content: space-between; align-items: baseline;
  margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-text-faint);
  letter-spacing: 0.04em;
}
.fig__cap b { font-weight: 400; color: var(--color-text-muted); }
.fig__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(239,233,225,0.17);
}
/* 单张收尾/独立大图：加一圈离开画面的法式衬线 */
.grid .solo-p > .fig, .grid .solo-l > .fig { padding: 14px; }
.grid .solo-p .fig__frame, .grid .solo-l .fig__frame {
  outline: 1px solid rgba(239,233,225,0.15); outline-offset: 13px;
}
@media (max-width: 620px) {
  .grid .solo-p > .fig, .grid .solo-l > .fig { padding: 9px; }
  .grid .solo-p .fig__frame, .grid .solo-l .fig__frame { outline-offset: 8px; }
}

/* ---------- editorial gallery grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2.4vw, 2.5rem);
  row-gap: clamp(3rem, 9vw, 8rem);
  align-items: end;
}
.grid .fig { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .grid .g0 { grid-column: 1 / 9; }
  .grid .g1 { grid-column: 9 / 13; margin-bottom: clamp(2rem, 6vw, 6rem); }
  .grid .g2 { grid-column: 2 / 7; }
  .grid .g3 { grid-column: 7 / 13; margin-top: clamp(2rem, 5vw, 5rem); }
  .grid .g4 { grid-column: 3 / 11; }
  .grid .g5 { grid-column: 1 / 5; }
  .grid .g6 { grid-column: 6 / 13; }
  .grid .g7 { grid-column: 2 / 10; }
}

/* ---------- home: featured stream ---------- */
.stream { display: flex; flex-direction: column; gap: clamp(4rem, 11vw, 10rem); }
.stream__item { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-6); align-items: end; }
.stream__item .fig { grid-column: 1 / 10; }
.stream__item .stream__text { grid-column: 10 / 13; padding-bottom: var(--space-2); }
.stream__item:nth-child(even) .fig { grid-column: 4 / 13; order: 2; }
.stream__item:nth-child(even) .stream__text { grid-column: 1 / 4; order: 1; }
.stream__text h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 300; margin-bottom: var(--space-2); }
[lang="zh-Hans"] .stream__text h3 { font-family: var(--font-display-zh); }
.stream__text p { font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.06em; }
@media (max-width: 860px) {
  .stream__item, .stream__item:nth-child(even) { grid-template-columns: 1fr; }
  .stream__item .fig, .stream__item:nth-child(even) .fig { grid-column: 1; order: 1; }
  .stream__item .stream__text, .stream__item:nth-child(even) .stream__text { grid-column: 1; order: 2; }
}

/* ---------- category entries ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.5rem); }
@media (max-width: 800px) { .cats { grid-template-columns: 1fr; gap: var(--space-10); } }
.cat { display: block; }
.cat .fig__frame { aspect-ratio: 4 / 5; }
.cat__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-line);
  transition: border-color 500ms var(--ease);
}
.cat:hover .cat__row { border-color: var(--color-line-strong); }
.cat__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 300; }
[lang="zh-Hans"] .cat__name { font-family: var(--font-display-zh); }
.cat__n { font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.16em; }

/* ---------- statement ---------- */
.statement { border-top: 1px solid var(--color-line); }
.statement blockquote {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--text-2xl); line-height: 1.28; letter-spacing: -0.02em;
  max-width: 22ch;
}
[lang="zh-Hans"] .statement blockquote { font-family: var(--font-display-zh); letter-spacing: 0.02em; max-width: 16em; line-height: 1.4; }
.statement footer { margin-top: var(--space-6); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-faint); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.facts { border-top: 1px solid var(--color-line); margin-top: var(--space-10); }
.facts dl { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr; }
.facts dt, .facts dd {
  padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line);
  font-size: var(--text-sm);
}
.facts dt { color: var(--color-text-faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--text-xs); padding-top: calc(var(--space-4) + 2px); }
.facts dd { color: var(--color-text-muted); }

.rule { border: 0; border-top: 1px solid var(--color-line); margin: clamp(3rem, 8vw, 7rem) 0; }

/* ---------- commissions ---------- */
.services { display: grid; gap: 0; border-top: 1px solid var(--color-line); }
.service {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: var(--space-6);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--color-line);
  transition: background 600ms var(--ease);
}
.service:hover { background: rgba(255,255,255,0.015); }
.service__n { font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.2em; }
.service h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; margin-bottom: var(--space-4); }
[lang="zh-Hans"] .service h3 { font-family: var(--font-display-zh); }
.service p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 52ch; }
.service ul { list-style: none; font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.05em; }
.service li { padding: var(--space-1) 0; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.mailto {
  display: inline-block; font-family: var(--font-display); font-weight: 300;
  font-size: var(--text-xl); letter-spacing: -0.01em;
  border-bottom: 1px solid var(--color-line-strong); padding-bottom: 4px;
  transition: border-color var(--t-fast), color var(--t-fast);
  word-break: break-all;
}
.mailto:hover { border-color: var(--color-text); }
.form { display: grid; gap: var(--space-5); margin-top: var(--space-8); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-faint); }
.field input, .field textarea, .field select {
  background: transparent; border: 0; border-bottom: 1px solid var(--color-line);
  color: var(--color-text); font: inherit; font-size: var(--text-sm);
  padding: var(--space-3) 0; border-radius: 0;
  transition: border-color var(--t-fast);
}
.field select option { background: #141413; color: var(--color-text); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--color-text); }
.field textarea { resize: vertical; min-height: 110px; }
.btn {
  justify-self: start; margin-top: var(--space-2);
  background: transparent; border: 1px solid var(--color-line-strong); color: var(--color-text);
  font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase;
  padding: var(--space-4) var(--space-8); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { background: var(--color-text); color: #0b0b0b; border-color: var(--color-text); }
.form__note { font-size: var(--text-xs); color: var(--color-text-faint); }
.channels { list-style: none; border-top: 1px solid var(--color-line); }
.channels li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); }
.channels span:first-child { color: var(--color-text-faint); font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; }
.channels a { color: var(--color-text-muted); transition: color var(--t-fast); }
.channels a:hover { color: var(--color-text); }

/* ---------- next-page link ---------- */
.next {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-6);
  padding: clamp(3rem, 8vw, 6rem) var(--page-x);
  border-top: 1px solid var(--color-line);
}
.next__label { font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-faint); }
.next__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; transition: opacity var(--t-fast); }
[lang="zh-Hans"] .next__title { font-family: var(--font-display-zh); }
.next:hover .next__title { opacity: 0.6; }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
  align-items: center; justify-content: space-between;
  padding: var(--space-8) var(--page-x) var(--space-10);
  border-top: 1px solid var(--color-line);
  font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.08em;
}
.footer a { transition: color var(--t-fast); }
.footer a:hover { color: var(--color-text); }
.footer__links { display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 1100ms var(--ease), transform 1100ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .hero__img { animation: none; transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6, 6, 6, 0.985);
  backdrop-filter: blur(18px) saturate(0.6);
  opacity: 0; transition: opacity 320ms var(--ease);
}
.lb.is-open { display: block; }
.lb.is-visible { opacity: 1; }
.lb__stage { position: absolute; inset: clamp(3.5rem, 9vh, 6rem) clamp(1rem, 7vw, 7rem); display: flex; align-items: center; justify-content: center; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb__bar {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) clamp(1rem, 7vw, 7rem);
  font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.08em;
  pointer-events: none;
}
.lb__bar b { font-weight: 400; color: var(--color-text-muted); }
.lb__close {
  position: absolute; top: clamp(0.75rem, 2vh, 1.5rem); right: clamp(1rem, 4vw, 3rem);
  width: 44px; height: 44px; color: var(--color-text-muted); background: none; border: 0; cursor: pointer;
  transition: color var(--t-fast);
}
.lb__close:hover { color: var(--color-text); }
.lb__nav {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; background: none; border: 0; cursor: pointer;
  color: var(--color-text-faint); transition: color var(--t-fast);
}
.lb__nav:hover { color: var(--color-text); }
.lb__nav--prev { left: clamp(0.25rem, 2vw, 2rem); }
.lb__nav--next { right: clamp(0.25rem, 2vw, 2rem); }
@media (max-width: 700px) {
  .lb__stage { inset: 3.5rem 0.75rem 6.5rem; }
  .lb__nav { top: auto; bottom: 0.6rem; transform: none; width: 44px; height: 44px; }
  .lb__nav--prev { left: 0.5rem; } .lb__nav--next { left: 3.6rem; right: auto; }
  .lb__bar { padding: 0 0.9rem 1.4rem; justify-content: flex-end; align-items: flex-end; flex-direction: column; gap: 0.25rem; }
  .lb__bar .lb__meta { text-align: right; }
}

/* ---------- long-term project: video placeholder ---------- */
.facts--flush { margin-top: 0; }
.videobox { position: relative; margin: 0; max-width: 900px; }
.videobox__el {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
  background: #101010 center / cover no-repeat;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  filter: saturate(0.9) brightness(0.72);
}
.videobox__badge {
  position: absolute; top: var(--space-4); left: var(--space-4);
  font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(8,8,8,0.72); border: 1px solid var(--color-line);
  padding: var(--space-2) var(--space-4);
  backdrop-filter: blur(6px);
}
.videobox .fig__cap { margin-top: var(--space-4); }

/* project title EN sub + epigraph */
.pagehead__sub {
  display: block; margin-top: var(--space-3);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 300;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--color-text-muted);
}
.epigraph {
  margin: 0 auto; max-width: 34em; padding: 0;
  border-left: none;
}
.epigraph p {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--text-lg); line-height: 2.0; color: var(--color-text);
  margin: 0 0 var(--space-6);
}
[lang="zh-Hans"] .epigraph p { font-family: var(--font-display-zh); }
.epigraph p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .epigraph p { font-size: var(--text-base); line-height: 1.95; }
}

/* quoted passage set inside a longer text block */
.epigraph--inline {
  margin: var(--space-8) 0; padding-left: var(--space-6);
  border-left: 1px solid var(--color-line); max-width: none;
}
.epigraph--inline p {
  font-size: var(--text-base); line-height: 1.95;
  color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.epigraph--inline cite {
  display: block; font-style: normal; font-family: var(--font-body);
  font-size: var(--text-xs); letter-spacing: 0.16em;
  color: var(--color-text-faint);
}
.epigraph--inline cite::before { content: '\2014\00a0'; }

/* page-opening epigraph, above the author's own voice */
.epigraph--lead {
  max-width: 40em; margin: 0 0 var(--space-10);
  padding-left: var(--space-6); border-left: 1px solid var(--color-line);
}
.epigraph--lead p {
  font-size: var(--text-base); line-height: 2.0;
  color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.epigraph--lead cite {
  display: block; font-style: normal; font-family: var(--font-body);
  font-size: var(--text-xs); letter-spacing: 0.16em;
  color: var(--color-text-faint);
}
.epigraph--lead cite::before { content: '\2014\00a0'; }

/* verse form is kept at every width; narrow screens get one extra break per
   line (.lb-m) so no rendered line is long enough to wrap and orphan */
.epigraph--lead .lb-m { display: none; }
@media (max-width: 760px) {
  .epigraph--lead { padding-left: var(--space-4); margin-bottom: var(--space-8); }
  .epigraph--lead .lb-m { display: inline; }
  .epigraph--lead p { font-size: var(--text-sm); line-height: 2.05; }
}

/* real home videos: portrait, two-up */
.projecthero { max-width: 620px; margin: 0 auto; }
.videogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); max-width: 860px; }
.videogrid .videobox__el { aspect-ratio: 9 / 16; filter: none; background: #101010; }
@media (max-width: 700px) { .videogrid { grid-template-columns: 1fr; } }

/* ---------- about: placeholder marker ---------- */
.todo {
  margin-top: var(--space-4);
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300;
  color: var(--color-text-faint);
}
[lang="zh-Hans"] .todo { font-family: var(--font-display-zh); }

/* ---------- proposal letter (zh only, not in nav) ---------- */
.letter { max-width: 78rem; margin: 0 auto; padding: 0 var(--page-x); }
.letter__top {
  padding: clamp(8rem, 18vh, 13rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--color-line);
}
.letter__title {
  font-family: var(--font-display-zh); font-weight: 300;
  font-size: clamp(2rem, 1rem + 3.6vw, 4rem); line-height: 1.22; letter-spacing: 0.01em;
  margin-top: var(--space-6); max-width: 20em;
}
.letter__lede {
  margin-top: var(--space-8); color: var(--color-text-muted);
  font-size: var(--text-sm); max-width: 44ch;
}
.letter__sec {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--color-line);
  align-items: start;
}
.letter__sec--end { border-bottom: 0; }
.letter__head { position: sticky; top: clamp(5rem, 12vh, 7rem); }
.letter__n {
  display: block; font-size: var(--text-xs); letter-spacing: 0.22em;
  color: var(--color-text-faint);
}
.letter__t {
  font-family: var(--font-display-zh); font-weight: 300;
  font-size: var(--text-xl); margin-top: var(--space-3);
}
.letter .prose p { color: #cfc8c0; max-width: 46ch; }

.steps { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.step { display: grid; grid-template-columns: minmax(0, 5rem) minmax(0, 1fr); gap: var(--space-5); }
.step__n {
  font-size: var(--text-xs); letter-spacing: 0.16em; color: var(--color-text-faint);
  padding-top: 0.55rem; white-space: nowrap;
}
.step h3 {
  font-family: var(--font-display-zh); font-size: var(--text-lg); font-weight: 300;
  margin-bottom: var(--space-4);
}
.step ul { list-style: none; display: grid; gap: var(--space-3); }
.step li {
  position: relative; padding-left: var(--space-5);
  font-size: var(--text-sm); color: var(--color-text-muted); max-width: 48ch;
}
.step li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 10px; height: 1px; background: var(--color-line-strong);
}

.letter__links { list-style: none; border-top: 1px solid var(--color-line); }
.letter__links a {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-line);
  transition: border-color var(--t-fast);
}
.letter__links a:hover { border-bottom-color: var(--color-line-strong); }
.letter__links span {
  font-family: var(--font-display-zh); font-size: var(--text-lg); font-weight: 300;
}
.letter__links em {
  font-style: normal; font-size: var(--text-xs); letter-spacing: 0.1em;
  color: var(--color-text-faint); transition: color var(--t-fast);
}
.letter__links a:hover em { color: var(--color-text-muted); }

.letter__sign { max-width: 40ch; color: #cfc8c0; margin-bottom: var(--space-8); }
.letter__foot {
  margin-top: var(--space-8); font-size: var(--text-xs);
  letter-spacing: 0.14em; color: var(--color-text-faint);
}

@media (max-width: 860px) {
  .letter__sec { grid-template-columns: 1fr; gap: var(--space-6); }
  .letter__head { position: static; }
  .step { grid-template-columns: 1fr; gap: var(--space-3); }
  .step__n { padding-top: 0; }
}

/* =============================================================
   VARIANT D — "BLUE HOUR" : deep prussian ink + one image per
   screen. The screening room, not the scrolling gallery.
   ============================================================= */
:root {
  --color-bg: #0d1420;
  --color-bg-deep: #070c14;
  --color-surface: #111a29;
  --color-text: #ece7db;
  --color-text-muted: #93a0b0;
  --color-text-faint: #5e6a7a;
  --color-line: rgba(236, 231, 219, 0.13);
  --color-line-strong: rgba(236, 231, 219, 0.28);
}
body { background: var(--color-bg); }

/* gentle snap */
html { scroll-snap-type: y proximity; }
.hero, .cine, .cineindex { scroll-snap-align: start; }

/* ---- full-screen plates ---- */
.cine {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--color-bg-deep);
}
.cine__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  box-sizing: border-box;
}
.cine--contain .cine__img { object-fit: contain; padding: 7vh 0; }
.cine::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,12,20,0.28) 0%, rgba(7,12,20,0) 26%, rgba(7,12,20,0) 62%, rgba(7,12,20,0.72) 100%);
}
.cine__cap {
  position: absolute; z-index: 2;
  left: clamp(1.25rem, 4vw, 4rem); bottom: 4.5vh;
  max-width: 30rem;
}
.cine__cap h3 {
  font-family: var(--font-display, serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}
.cine__cap p {
  margin: 0;
  font-size: 0.8rem; letter-spacing: 0.14em;
  color: var(--color-text-muted);
}
.cine__num {
  position: absolute; z-index: 2;
  right: clamp(1.25rem, 4vw, 4rem); bottom: 4.5vh;
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--color-text-muted);
}

/* ---- index slide ---- */
.cineindex {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 14vh clamp(1.25rem, 6vw, 7rem) 10vh;
  background: var(--color-bg);
}
.cineindex__kicker {
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--color-text-muted); margin-bottom: 3rem;
}
.cineindex a.cineindex__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--color-line);
  text-decoration: none;
  color: var(--color-text);
  transition: padding-left 0.35s ease, color 0.25s ease;
}
.cineindex a.cineindex__row:last-of-type { border-bottom: 1px solid var(--color-line); }
.cineindex a.cineindex__row:hover { padding-left: 1.2rem; color: #fff; }
.cineindex__title {
  font-family: var(--font-display, serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  letter-spacing: 0.03em;
}
.cineindex__meta {
  font-size: 0.78rem; letter-spacing: 0.22em;
  color: var(--color-text-muted); white-space: nowrap;
}
.cineindex blockquote {
  margin: 9vh 0 0; padding: 0; border: 0;
  font-family: var(--font-display, serif);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 1.9;
  color: var(--color-text-muted);
  max-width: 44rem;
}

/* =============================================================
   VARIANT E — multi-theme (blue/green/sepia/grey) + diptych
   ============================================================= */
body, .cine, .cineindex { transition: background-color 0.5s ease; }

/* ---- diptych: two verticals as an open spread ---- */
.cine--diptych { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3px, 0.5vw, 10px); background: var(--color-bg-deep); }
.cine--diptych::after { display: none; }
.cine__half { position: relative; overflow: hidden; }
.cine__half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cine__half::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 64%, rgba(0,0,0,0.62) 100%);
}
.cine__half .cine__cap { left: clamp(1rem, 2.5vw, 2.5rem); bottom: 3.5vh; }
@media (max-width: 720px) {
  .cine--diptych { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .cine--diptych .cine__half { height: 92svh; }
}

/* ---- theme switcher ---- */

/* header follows theme (only when scrolled; stays transparent over hero) */
.header--scrolled {
  background: color-mix(in srgb, var(--color-bg-deep) 82%, transparent);
}

/* ---- spreads: photobook pairing for portrait images ---- */
.grid .spread {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(1rem, 2.4vw, 2.5rem);
  align-items: end;
}
@media (min-width: 860px) { .grid .spread { grid-column: 2 / 12; } }
.grid .spread .fig { grid-column: auto; }
.grid .solo-l { grid-column: 1 / -1; }
.grid .solo-p { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .grid .solo-l { grid-column: 2 / 12; }
  .grid .solo-p { grid-column: 4 / 10; }
}
@media (max-width: 620px) {
  .grid .spread { grid-template-columns: 1fr; row-gap: clamp(3rem, 9vw, 8rem); }
}

/* lightbox follows theme */
.lb { background: color-mix(in srgb, var(--color-bg-deep) 98%, transparent); }

/* =============================================================
   BLUE HOUR polish — unified grade, binding line, slower motion,
   video diptych
   ============================================================= */

/* 1. unified cool grade: gentle desaturation + blue-lifted shadows */
.fig__frame, .cine, .hero, .videobox__el { position: relative; }
.fig__frame img, .cine__img, .cine__half img, .hero__img {
  filter: saturate(0.93) contrast(1.04);
}
.fig__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: #16233a;
  mix-blend-mode: lighten; opacity: 0.35;
}
.cine:not(.cine--diptych)::before,
.cine__half::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: #16233a; mix-blend-mode: lighten; opacity: 0.35;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: #16233a; mix-blend-mode: lighten; opacity: 0.35;
}
.videobox__el { filter: saturate(0.93) contrast(1.03); }

/* keep captions above tint */
.cine__cap, .cine__num, .hero__inner { z-index: 3; }

/* 2. binding line in homepage diptych */
.cine--diptych { position: relative; }
.cine--diptych::before {
  content: ''; position: absolute; z-index: 2;
  left: 50%; top: 9vh; bottom: 9vh; width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(180deg, transparent, rgba(180, 195, 214, 0.55) 18%, rgba(180, 195, 214, 0.55) 82%, transparent);
  pointer-events: none;
}
@media (max-width: 720px) { .cine--diptych::before { display: none; } }

/* 3. slower, calmer reveals */
.reveal { transform: translateY(26px); }
.reveal.is-in { transition-duration: 1500ms, 1500ms; }

/* 4. video diptych: one full screen, bound like a spread */
.videogrid {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  position: relative;
  align-items: start;
  min-height: 88svh;
}
.videogrid::before {
  content: ''; position: absolute; z-index: 2;
  left: 50%; top: 4vh; bottom: 4vh; width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(180deg, transparent, rgba(180, 195, 214, 0.45) 18%, rgba(180, 195, 214, 0.45) 82%, transparent);
  pointer-events: none;
}
.videogrid .videobox { max-width: none; display: flex; flex-direction: column; align-items: center; }
.videogrid .videobox__el {
  aspect-ratio: 9 / 16;
  height: 74svh; width: auto; max-width: 100%;
  background: var(--color-bg-deep);
}
.videogrid .fig__cap { align-self: center; text-align: center; }
@media (max-width: 700px) {
  .videogrid { grid-template-columns: 1fr; min-height: 0; }
  .videogrid::before { display: none; }
  .videogrid .videobox__el { height: auto; width: 100%; }
}
