/* ============================================================
   LIZI STUDIO — selected work
   A quiet, light portfolio for a film director.
   ============================================================ */

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- foundations ---------- */

:root {
  --paper: #ffffff;
  --paper-deep: #f2f1ed;
  --ink: #141412;
  --ink-soft: #302d28;
  --muted: #716c63;
  --faint: #a6a096;
  --accent: #dc512e;
  --accent-dark: #b83a1c;
  --line: rgba(20, 20, 18, 0.15);
  --line-strong: rgba(20, 20, 18, 0.26);
  --line-light: rgba(255, 255, 255, 0.22);
  --serif: "Instrument Serif", "Iowan Old Style", "Baskerville", "Songti SC", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --cjk-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --cjk-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gap: clamp(1rem, 1.55vw, 1.45rem);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: clip;
}

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

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

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

#main,
#work,
#top {
  scroll-margin-top: var(--header-h);
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font: 400 0.64rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- type utilities ---------- */

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-transform: uppercase;
}

.eyebrow--ink {
  color: var(--ink);
}

.zh {
  font-family: var(--cjk-sans);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
}

.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 3s ease-out infinite;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: -0.22rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.text-link:hover::after {
  transform: scaleX(0);
  transform-origin: left;
}

.text-link .arrow {
  transition: transform 0.35s var(--ease);
}

.text-link:hover .arrow {
  transform: translate(0.15rem, -0.15rem);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.brand .brand-studio {
  font-style: italic;
}

.brand-dot {
  width: 0.22em;
  height: 0.22em;
  margin-left: -0.08em;
  border-radius: 50%;
  background: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 2.7vw, 2.6rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  color: var(--ink);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.22rem;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-zh {
  color: var(--muted);
  font-family: var(--cjk-sans);
  font-size: 0.9em;
  letter-spacing: 0.08em;
}

/* ---------- home hero ---------- */

.home-hero {
  display: flex;
  min-height: clamp(680px, 82svh, 920px);
  padding-top: calc(var(--header-h) + clamp(1.2rem, 2.6vh, 2.2rem));
  padding-bottom: clamp(1.2rem, 2.4vh, 2rem);
}

.home-hero-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hero-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.hero-meta p {
  max-width: 21rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- desk line animation ---------- */

.desk-figure {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  margin: 0;
  padding: clamp(1.5rem, 4.8vh, 4rem) 0;
  user-select: none;
}

.desk-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.desk-scene {
  display: block;
  width: min(790px, 100%);
  height: auto;
  overflow: visible;
}

.desk-scene * {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desk-scene path,
.desk-scene circle,
.desk-scene ellipse {
  fill: none;
}

/* a small amount of hierarchy inside the sketch */
.scene-ground path {
  stroke: rgba(20, 20, 18, 0.18);
  stroke-width: 1.1;
}

.scene-chair path {
  stroke: rgba(20, 20, 18, 0.38);
  stroke-width: 1.15;
}

.scene-desk path {
  stroke: rgba(20, 20, 18, 0.46);
  stroke-width: 1.2;
}

.scene-character path,
.scene-character circle {
  stroke: var(--ink);
  stroke-width: 1.55;
}

.scene-character .eye {
  fill: var(--ink);
  stroke: none;
}

.scene-monitor path,
.scene-keyboard path,
.scene-notepad path,
.scene-cup path,
.scene-bin path,
.scene-bin ellipse {
  stroke: rgba(20, 20, 18, 0.78);
  stroke-width: 1.25;
}

.scene-monitor .screen-fill {
  fill: rgba(20, 20, 18, 0.025);
  stroke: rgba(20, 20, 18, 0.42);
}

.screen-content {
  transition: opacity 0.35s var(--ease);
}

.screen-frame,
.screen-line {
  stroke: rgba(20, 20, 18, 0.4);
  stroke-width: 1.05;
}

.screen-play {
  fill: var(--ink);
  stroke: none;
}

.screen-cursor {
  stroke: var(--accent);
  stroke-width: 1.6;
}

.hairline {
  opacity: 0.45;
}

.scene-notepad .scribble path {
  opacity: 0;
  stroke: rgba(20, 20, 18, 0.76);
  stroke-width: 1.15;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: opacity 0.2s var(--ease);
}

.thought {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.thought circle {
  stroke: rgba(20, 20, 18, 0.62);
  stroke-width: 1.1;
  transform-box: fill-box;
  transform-origin: center;
}

.arm {
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.arm path {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.arm .hand path {
  stroke: var(--ink);
  stroke-width: 1.2;
}

.hand,
.hand--near,
.hand--far,
.hand--writing {
  transform-box: fill-box;
  transform-origin: center;
}

.character-head {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  transition: transform 0.6s var(--ease);
}

.desk-stage[data-stage="typing"] .arm--typing,
.desk-stage[data-stage="thinking"] .arm--thinking,
.desk-stage[data-stage="writing"] .arm--writing,
.desk-stage[data-stage="crumple"] .arm--crumple,
.desk-stage[data-stage="throw"] .arm--throw {
  opacity: 1;
}

.desk-stage[data-stage="typing"] .hand--near {
  animation: handTap 0.34s ease-in-out infinite alternate;
}

.desk-stage[data-stage="typing"] .hand--far {
  animation: handTap 0.42s ease-in-out -0.12s infinite alternate-reverse;
}

.desk-stage[data-stage="writing"] .hand--writing {
  animation: writingHand 1.8s ease-in-out infinite alternate;
}

.desk-stage[data-stage="thinking"] .character-head {
  transform: rotate(-3.5deg) translateY(-1px);
}

.desk-stage[data-stage="writing"] .character-head {
  transform: rotate(2.4deg) translateY(2px);
}

.desk-stage[data-stage="crumple"] .character-head {
  transform: rotate(1deg);
}

.desk-stage[data-stage="throw"] .character-head {
  transform: rotate(-1.8deg) translateY(-1px);
}

.desk-stage[data-stage="thinking"] .thought {
  opacity: 1;
  transform: none;
}

.desk-stage[data-stage="thinking"] .thought circle {
  animation: thoughtPulse 2s ease-in-out infinite;
}

.desk-stage[data-stage="thinking"] .thought circle:nth-child(2) {
  animation-delay: 0.25s;
}

.desk-stage[data-stage="thinking"] .thought circle:nth-child(3) {
  animation-delay: 0.5s;
}

.desk-stage[data-stage="thinking"] .screen-content {
  opacity: 0.22;
}

.desk-stage[data-stage="writing"] .screen-content {
  opacity: 0.42;
}

.desk-stage[data-stage="typing"] .screen-cursor {
  animation: cursorBlink 1s steps(1) infinite;
}

.desk-stage[data-stage="typing"] .screen-line {
  animation: screenFlicker 2.4s ease-in-out infinite;
}

.desk-stage[data-stage="typing"] .screen-line:nth-of-type(2) {
  animation-delay: 0.4s;
}

.desk-stage[data-stage="writing"] .scribble path {
  opacity: 1;
  animation: writeLine 1.15s var(--ease) forwards;
}

.desk-stage[data-stage="writing"] .scribble path:nth-child(2) {
  animation-delay: 0.2s;
}

.desk-stage[data-stage="writing"] .scribble path:nth-child(3) {
  animation-delay: 0.4s;
}

.scene-page {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.desk-scene .page-paper {
  fill: #fbf8f2;
  stroke: var(--ink);
  stroke-width: 1.1;
}

.desk-scene .page-line {
  stroke: rgba(20, 20, 18, 0.56);
  stroke-width: 1;
}

.desk-stage[data-stage="crumple"] .scene-page {
  animation: paperCrumple 1.6s var(--ease) forwards;
}

.ball-position {
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}

.paper-ball {
  opacity: 0;
  transform: scale(0.25);
  transform-box: fill-box;
  transform-origin: center;
}

.desk-scene .paper-ball circle {
  fill: var(--accent);
  stroke: var(--accent-dark);
  stroke-width: 1;
}

.desk-scene .paper-ball path {
  stroke: rgba(247, 245, 240, 0.76);
  stroke-width: 0.9;
}

.desk-stage[data-stage="crumple"] .ball-position {
  opacity: 1;
}

.desk-stage[data-stage="crumple"] .paper-ball {
  animation: ballPop 0.4s 1.25s var(--ease-out) forwards;
}

.desk-stage[data-stage="throw"] .ball-position {
  opacity: 1;
}

.desk-stage[data-stage="throw"] .paper-ball {
  opacity: 1;
  transform: scale(1);
  animation: none;
}

.desk-stage.is-sunk .ball-position {
  opacity: 0;
}

.bin-hit-marks {
  opacity: 0;
}

.bin-hit-marks path {
  stroke: rgba(20, 20, 18, 0.4);
  stroke-width: 1;
}

.scene-bin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.desk-stage.is-hit .scene-bin {
  animation: binWobble 0.55s var(--ease);
}

.desk-stage.is-hit .bin-hit-marks {
  animation: hitMarks 0.5s ease-out;
}

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .desk-figure {
    animation: fadeUp 1.15s var(--ease-out) 0.3s both;
  }
}

.hero-foot {
  display: grid;
  grid-template-columns: 1.5fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.hero-statement {
  max-width: 25rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
}

.hero-statement .serif {
  font-family: var(--serif);
  font-size: 1.2em;
  font-style: italic;
}

.reel-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
  color: var(--ink);
  text-align: left;
}

.reel-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.reel-icon::before {
  width: 0;
  height: 0;
  margin-left: 0.12rem;
  border-top: 0.21rem solid transparent;
  border-bottom: 0.21rem solid transparent;
  border-left: 0.33rem solid currentColor;
  content: "";
}

.reel-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.reel-copy em {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: none;
}

.reel-button:hover .reel-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
  transform: scale(1.04);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.hero-scroll .arrow {
  transition: transform 0.35s var(--ease);
}

.hero-scroll:hover {
  color: var(--ink);
}

.hero-scroll:hover .arrow {
  transform: translateY(0.2rem);
}

/* ---------- work index ---------- */

.work-section {
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.work-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 0 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 3.5vw, 3.2rem);
}

.work-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.work-heading .heading-zh {
  color: var(--muted);
  font-family: var(--cjk-sans);
  font-size: 0.92em;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.work-head-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.work-head-meta .count {
  color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.8rem, 4.8vw, 4.8rem) var(--gap);
}

.work-card {
  display: block;
  min-width: 0;
}

.work-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.work-title {
  min-width: 0;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
  text-overflow: ellipsis;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}

.work-title .work-zh {
  margin-left: 0.4em;
  color: var(--muted);
  font-family: var(--cjk-sans);
  font-size: 0.86em;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.work-year {
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.1rem;
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.work-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-meta-left .sep {
  color: var(--faint);
}

.work-arrow {
  flex-shrink: 0;
  opacity: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1;
  transform: translate(-0.15rem, 0.15rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 0.85rem;
  overflow: hidden;
  background: var(--paper-deep);
}

.work-media img,
.work-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

.work-media img {
  filter: saturate(0.93) contrast(1.015);
  transition: transform 0.85s var(--ease-out), filter 0.5s var(--ease);
}

.work-media video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.work-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(20, 20, 18, 0.07);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.work-card:hover .work-title,
.work-card:focus-visible .work-title {
  color: var(--accent-dark);
}

.work-card:hover .work-arrow,
.work-card:focus-visible .work-arrow {
  opacity: 1;
  transform: none;
}

.work-card:hover .work-media img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.025);
}

.work-card.is-previewing .work-media video {
  opacity: 1;
}

.work-card.is-previewing .work-media::after {
  opacity: 1;
}

.work-end {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3.2rem, 6vw, 5.8rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.work-end p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.work-end .text-link {
  font-size: 0.58rem;
}

/* ---------- shared footer ---------- */

.site-footer {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 1.8rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.footer-brand .brand-studio {
  font-style: italic;
}

.footer-brand-dot {
  width: 0.2em;
  height: 0.2em;
  margin-left: -0.08em;
  border-radius: 50%;
  background: var(--accent);
}

.footer-note {
  max-width: 17rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.65;
}

.footer-note .cjk {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--cjk-serif);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
}

.footer-col {
  min-width: 0;
}

.footer-label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.7;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-col .footer-email {
  color: var(--ink);
  font-size: 0.82rem;
}

.footer-col .footer-email:hover {
  color: var(--accent-dark);
}

.footer-col .footer-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.footer-bottom a:hover {
  color: var(--ink);
}

.footer-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ---------- contact ---------- */

.contact-page {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vh, 7rem));
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.contact-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-top: clamp(4rem, 10vh, 9rem);
}

.contact-copy {
  grid-column: 1 / span 6;
}

.contact-title {
  max-width: 36rem;
  margin: 1.4rem 0 clamp(2rem, 4vw, 3.4rem);
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6.4vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 0.92;
}

.contact-title em {
  color: var(--accent);
}

.contact-lead {
  max-width: 34rem;
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  font-weight: 300;
  line-height: 1.65;
}

.contact-body {
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.8;
}

.contact-body + .contact-body {
  margin-top: 1rem;
}

.contact-cjk {
  max-width: 30rem;
  margin-top: 1.6rem;
  color: var(--ink-soft);
  font-family: var(--cjk-serif);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.4rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-aside {
  grid-column: 8 / span 5;
  align-self: start;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-item-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-transform: uppercase;
}

.contact-item-value {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.7;
}

.contact-item-value p + p {
  margin-top: 0.25rem;
}

.contact-email {
  display: inline-block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.25s var(--ease);
}

.contact-email:hover {
  color: var(--accent-dark);
}

.contact-social-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.16rem 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.7;
  transition: color 0.25s var(--ease);
}

.contact-social-link span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.contact-social-link:hover {
  color: var(--accent-dark);
}

.contact-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}

.contact-end .text-link {
  font-size: 0.58rem;
}

/* ============================================================
   PROJECT PAGE
   ============================================================ */

.project-page {
  background: var(--paper);
}

.project-main {
  padding-top: calc(var(--header-h) + 2.2rem);
}

.project-shell {
  width: min(calc(100% - 2 * var(--gutter)), 1152px);
  margin-inline: auto;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.back-link .arrow {
  transition: transform 0.3s var(--ease);
}

.back-link:hover {
  color: var(--accent-dark);
}

.back-link:hover .arrow {
  transform: translateX(-0.2rem);
}

.project-topline .topline-category {
  color: var(--muted);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
  overflow: hidden;
  background: #0d0d0c;
}

.project-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d0d0c;
}

.project-media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-media-caption .caption-right {
  text-align: right;
}

.project-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 8rem);
}

.project-heading {
  grid-column: 1 / span 5;
}

.project-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-kicker .kicker-dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent);
}

.project-title {
  max-width: 34rem;
  margin: 0.55rem 0 0.85rem;
  font-family: var(--cjk-serif);
  font-size: clamp(1.35rem, 1.75vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.project-title .project-zh {
  display: inline-block;
  margin-left: 0.22em;
  color: var(--muted);
  font-family: var(--cjk-serif);
  font-size: 0.25em;
  letter-spacing: 0.08em;
  vertical-align: 0.65em;
  white-space: nowrap;
}

.project-tagline {
  max-width: 22rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.3;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
}

.project-information {
  grid-column: 7 / span 6;
  align-self: start;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.info-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  line-height: 1.9;
  text-transform: uppercase;
}

.info-label .info-zh {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-family: var(--cjk-sans);
  font-size: 0.95em;
  letter-spacing: 0.08em;
}

.info-value {
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.78;
}

.info-value .lead {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
}

.info-value p + p {
  margin-top: 0.85rem;
}

.credit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.8rem;
}

.credit-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.22rem 0;
  border-bottom: 1px solid rgba(20, 20, 18, 0.08);
  font-size: 0.76rem;
  line-height: 1.65;
}

.credit-role {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.03em;
  line-height: 1.9;
  text-transform: uppercase;
}

.credit-name {
  color: var(--ink-soft);
  text-align: right;
}

.project-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.project-pagination a {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 0 2rem;
  transition: color 0.25s var(--ease);
}

.project-pagination .project-prev {
  padding-right: 2rem;
}

.project-pagination .project-next {
  align-items: flex-end;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
  text-align: right;
}

.pagination-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.pagination-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.project-pagination a:hover {
  color: var(--accent-dark);
}

.project-empty {
  display: grid;
  min-height: 60vh;
  place-items: center;
  padding: 4rem var(--gutter);
  text-align: center;
}

.project-empty h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.project-empty p {
  margin: 1.3rem 0 2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- showreel dialog ---------- */

.reel-dialog {
  width: min(1000px, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2rem 7rem rgba(20, 20, 18, 0.22);
}

.reel-dialog::backdrop {
  background: rgba(20, 20, 18, 0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.reel-dialog[open] {
  animation: dialogIn 0.45s var(--ease-out) both;
}

.reel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.reel-head p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.reel-head p span {
  color: var(--accent-dark);
}

.reel-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}

.reel-close:hover {
  color: var(--ink);
}

.close-lines {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
}

.close-lines::before,
.close-lines::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
}

.close-lines::before {
  transform: rotate(45deg);
}

.close-lines::after {
  transform: rotate(-45deg);
}

.reel-video {
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 10rem);
  background: #0d0d0c;
}

.reel-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ---------- page motion ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 81, 46, 0.3);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(220, 81, 46, 0);
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


@keyframes handTap {
  to {
    transform: translateY(-2px);
  }
}

@keyframes writingHand {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(1.5px, 1px);
  }
}

@keyframes thoughtPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cursorBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes screenFlicker {
  0%,
  100% {
    opacity: 0.26;
  }
  50% {
    opacity: 0.48;
  }
}

@keyframes writeLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes paperCrumple {
  0% {
    opacity: 0;
    transform: translate(0, 34px) rotate(-2deg) scale(1);
  }
  10% {
    opacity: 1;
    transform: translate(0, 30px) rotate(2deg) scale(1);
  }
  42% {
    opacity: 1;
    transform: translate(2px, -4px) rotate(24deg) scale(0.8);
  }
  82% {
    opacity: 1;
    transform: translate(2px, -16px) rotate(82deg) scale(0.36);
  }
  100% {
    opacity: 0;
    transform: translate(4px, -22px) rotate(120deg) scale(0.07);
  }
}

@keyframes ballPop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(0deg);
  }
  65% {
    opacity: 1;
    transform: scale(1.16) rotate(28deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(40deg);
  }
}

@keyframes binWobble {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-1.5deg);
  }
  55% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-0.5deg);
  }
}

@keyframes hitMarks {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-meta {
    animation: fadeUp 0.9s var(--ease-out) 0.35s both;
  }

  .hero-foot {
    animation: fadeUp 0.9s var(--ease-out) 0.5s both;
  }
}

/* scroll reveal — .js is added by an inline script */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.6rem);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

.js .project-page [data-reveal] {
  opacity: 1;
  transform: none;
}

.js .project-page [data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(1.4rem);
}

.js .project-page [data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 4.5rem;
  }

  .home-hero {
    min-height: clamp(640px, 80svh, 820px);
    padding-top: calc(var(--header-h) + clamp(1.5rem, 2.4vh, 2rem));
  }

  .desk-figure {
    min-height: 230px;
  }

  .hero-foot {
    grid-template-columns: 1fr auto;
    gap: 1.4rem;
  }

  .hero-statement {
    max-width: 20rem;
  }

  .hero-scroll {
    display: none;
  }

  .reel-button {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .work-head {
    padding-top: 0.8rem;
  }

  .work-head-meta {
    gap: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    row-gap: 2.5rem;
  }

  .footer-inner > :last-child {
    grid-column: 1 / -1;
  }

  .contact-grid {
    margin-top: 4rem;
  }

  .contact-copy {
    grid-column: 1 / span 7;
  }

  .contact-aside {
    grid-column: 8 / span 5;
  }

  .contact-title {
    font-size: clamp(3.2rem, 8vw, 4.6rem);
  }

  .project-intro {
    display: block;
    padding-top: 2.5rem;
  }

  .project-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 var(--gap);
    align-items: end;
    padding-bottom: 0.4rem;
  }

  .project-kicker,
  .project-facts {
    grid-column: 1 / -1;
  }

  .project-title {
    grid-column: 1;
    margin-bottom: 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
  }

  .project-tagline {
    grid-column: 2;
    justify-self: end;
    max-width: 16rem;
    padding-bottom: 0.4rem;
    text-align: right;
  }

  .project-facts {
    margin-top: 1.5rem;
  }

  .project-information {
    margin-top: 2.5rem;
  }

  .reel-dialog {
    width: calc(100vw - 2rem);
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 1.25rem;
    --header-h: 4.15rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .site-nav a {
    font-size: 0.68rem;
  }

  .site-nav .nav-zh {
    display: none;
  }

  .home-hero {
    min-height: clamp(600px, 86svh, 760px);
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 1.25rem;
  }

  .desk-figure {
    padding: 1.4rem 0;
  }

  .desk-scene {
    width: 100%;
  }

  .hero-meta {
    display: block;
  }

  .hero-meta p {
    max-width: 20rem;
  }

  .hero-meta .hero-status {
    margin-top: 0.6rem;
    text-align: left;
  }

  .hero-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 1.5rem;
    align-items: center;
    padding-top: 0.9rem;
  }

  .hero-statement {
    flex: 1 1 100%;
    max-width: 18rem;
    font-size: 0.82rem;
  }

  .reel-button {
    order: 2;
  }

  .reel-icon {
    width: 2.15rem;
    height: 2.15rem;
  }

  .reel-copy em {
    font-size: 1.05rem;
  }

  .hero-scroll {
    display: none;
  }

  .work-head {
    align-items: flex-start;
    gap: 1rem;
  }

  .work-head-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    text-align: right;
  }

  .work-grid {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .work-title {
    overflow: visible;
    font-size: 0.95rem;
    text-overflow: clip;
    white-space: normal;
  }

  .work-media {
    margin-top: 0.75rem;
  }

  .work-arrow {
    opacity: 1;
    transform: none;
  }

  .work-end {
    display: block;
    margin-top: 2.8rem;
  }

  .work-end .text-link {
    margin-top: 0.9rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
  }

  .footer-inner > :first-child {
    grid-column: 1 / -1;
  }

  .footer-inner > :last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
  }

  .contact-page {
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 5rem;
  }

  .contact-topline {
    gap: 1rem;
  }

  .contact-topline .contact-time {
    text-align: right;
  }

  .contact-grid {
    display: block;
    margin-top: 3.5rem;
  }

  .contact-title {
    margin-top: 1rem;
    margin-bottom: 2.2rem;
    font-size: clamp(3.1rem, 14vw, 4.3rem);
  }

  .contact-lead {
    font-size: 1.02rem;
  }

  .contact-body {
    font-size: 0.83rem;
  }

  .contact-aside {
    margin-top: 3.5rem;
  }

  .contact-item {
    grid-template-columns: 4.7rem minmax(0, 1fr);
    gap: 1rem;
  }

  .contact-end {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 3.5rem;
  }

  .project-main {
    padding-top: calc(var(--header-h) + 1.4rem);
  }

  .project-topline {
    gap: 1rem;
  }

  .project-topline .topline-category {
    display: none;
  }

  .project-media {
    aspect-ratio: 16 / 9;
    margin-top: 0.8rem;
  }

  .project-media-caption {
    font-size: 0.52rem;
  }

  .project-media-caption .caption-right {
    display: none;
  }

  .project-intro {
    padding-top: 2rem;
    padding-bottom: 4.5rem;
  }

  .project-heading {
    display: block;
  }

  .project-title {
    margin-top: 0.75rem;
    font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  }

  .project-title .project-zh {
    font-size: 0.24em;
    vertical-align: 0.7em;
  }

  .project-tagline {
    grid-column: auto;
    justify-self: auto;
    margin-top: 1.1rem;
    max-width: 20rem;
    padding-bottom: 0;
    text-align: left;
    font-size: 1.12rem;
  }

  .project-facts {
    margin-top: 1.5rem;
    font-size: 0.54rem;
  }

  .project-information {
    margin-top: 2rem;
  }

  .info-row {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.9rem 0;
  }

  .credit-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .credit-item {
    padding: 0.35rem 0;
  }

  .project-pagination {
    display: block;
  }

  .project-pagination a {
    padding: 1.2rem 0;
  }

  .project-pagination .project-prev {
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }

  .project-pagination .project-next {
    align-items: flex-start;
    border-left: 0;
    padding-left: 0;
    text-align: left;
  }

  .pagination-title {
    font-size: 1.55rem;
  }

  .reel-head {
    padding: 0.7rem 0.8rem;
  }

  .reel-head p {
    font-size: 0.5rem;
  }

  .reel-close {
    font-size: 0.5rem;
  }

  .reel-dialog {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1rem);
  }

  .reel-video {
    max-height: none;
  }

  .reel-foot {
    padding: 0.6rem 0.8rem;
    font-size: 0.47rem;
  }

  .reel-foot span:last-child {
    display: none;
  }
}

@media (max-width: 380px) {
  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.64rem;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal],
  .js .project-page [data-reveal],
  .js [data-reveal].is-inview {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desk-stage .thought,
  .desk-stage .scene-page,
  .desk-stage .ball-position,
  .desk-stage .bin-hit-marks {
    display: none !important;
  }

  .desk-stage .arm--typing {
    opacity: 1;
  }
}

/* ============================================================
   中文版排版 / 首屏大标题 / 动画素材预留位
   ============================================================ */

:root {
  --mono: "DM Mono", "SFMono-Regular", Consolas, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", monospace;
}

/* ---------- 首屏：预留动画位置 ---------- */

.home-hero {
  display: flex;
  min-height: clamp(680px, 82svh, 920px);
  padding-top: calc(var(--header-h) + clamp(2.6rem, 6.5vh, 5.5rem));
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
}

.home-hero-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5.2rem, 14.4vw, 13.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.76;
  white-space: nowrap;
}

.home-wordmark > span {
  display: block;
  padding-bottom: 0.08em;
}

.home-wordmark em {
  font-style: italic;
}

.wordmark-dot {
  display: inline-block;
  width: 0.1em;
  height: 0.1em;
  margin-left: 0.01em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.16em;
}

.hero-animation {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(240px, 34vh, 430px);
  margin-top: clamp(2rem, 6vh, 4rem);
}

.hero-animation img,
.hero-animation video,
.hero-animation svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- 中文界面 ---------- */

.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.text-link {
  font-family: var(--cjk-sans);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

.work-heading {
  font-family: var(--cjk-sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.work-head-meta {
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.work-title {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.work-card-meta {
  font-size: 0.63rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.work-year {
  font-size: 0.6rem;
}

.work-end p {
  font-family: var(--cjk-sans);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
  text-transform: none;
}

.work-end .text-link {
  font-size: 0.66rem;
}

.footer-note {
  font-family: var(--cjk-sans);
  font-size: 0.8rem;
  line-height: 1.75;
}

.footer-note .cjk {
  margin-top: 0.2rem;
  font-family: var(--cjk-serif);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

.footer-label {
  font-family: var(--cjk-sans);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.footer-col a,
.footer-col p {
  font-family: var(--cjk-sans);
  font-size: 0.78rem;
}

.footer-col .footer-availability {
  font-family: var(--cjk-sans);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.footer-bottom {
  font-family: var(--cjk-sans);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ---------- 关于与联系页 ---------- */

.contact-title {
  max-width: 38rem;
  margin: 1.4rem 0 clamp(2rem, 4vw, 3.4rem);
  font-family: var(--cjk-serif);
  font-size: clamp(3.4rem, 6.2vw, 6.7rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.contact-title em {
  color: var(--accent);
  font-style: normal;
}

.contact-lead {
  font-family: var(--cjk-sans);
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.85;
}

.contact-body {
  font-family: var(--cjk-sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.95;
}

.contact-cjk {
  font-size: 0.94rem;
  letter-spacing: 0.07em;
  line-height: 1.95;
}

.contact-availability {
  font-family: var(--cjk-sans);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.contact-item-label {
  font-family: var(--cjk-sans);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.contact-item-value {
  font-family: var(--cjk-sans);
  font-size: 0.86rem;
  line-height: 1.8;
}

.contact-social-link {
  font-family: var(--cjk-sans);
  font-size: 0.84rem;
}

.contact-social-link span:last-child {
  font-size: 0.58rem;
}

.contact-end {
  font-family: var(--cjk-sans);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.contact-end .text-link {
  font-size: 0.66rem;
}

/* ---------- 作品详情页 ---------- */

.project-topline {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.project-kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.project-title {
  max-width: 34rem;
  margin: 0.55rem 0 0.85rem;
  font-family: var(--cjk-serif);
  font-size: clamp(1.35rem, 1.75vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.project-tagline {
  max-width: 24rem;
  font-family: var(--cjk-serif);
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.65;
}

.project-facts {
  font-family: var(--cjk-sans);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
  text-transform: none;
}

.project-media-caption {
  font-family: var(--cjk-sans);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.info-label {
  font-family: var(--cjk-sans);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

.info-value {
  font-family: var(--cjk-sans);
  font-size: 0.9rem;
  line-height: 1.95;
}

.info-value .lead {
  font-size: 0.98rem;
  line-height: 1.85;
}

.pagination-label {
  font-family: var(--cjk-sans);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.pagination-title {
  font-family: var(--cjk-serif);
  letter-spacing: 0.02em;
}

.project-empty h1,
.project-empty p {
  font-family: var(--cjk-serif);
}

.project-empty p {
  font-family: var(--cjk-sans);
  line-height: 1.8;
}

/* ---------- 小屏 ---------- */

@media (max-width: 900px) {
  .home-hero {
    min-height: clamp(640px, 80svh, 820px);
    padding-top: calc(var(--header-h) + clamp(2rem, 4.5vh, 3.2rem));
  }

  .home-wordmark {
    font-size: clamp(5rem, 14.4vw, 9rem);
  }

  .hero-animation {
    min-height: 240px;
    margin-top: 2rem;
  }

  .contact-title {
    font-size: clamp(3.2rem, 6.2vw, 4.6rem);
  }
}

@media (max-width: 680px) {
  .home-hero {
    min-height: clamp(600px, 86svh, 760px);
    padding-top: calc(var(--header-h) + 1.6rem);
    padding-bottom: 1.25rem;
  }

  .home-wordmark {
    font-size: clamp(4rem, 18vw, 5.4rem);
    letter-spacing: -0.052em;
  }

  .hero-animation {
    min-height: 180px;
    margin-top: 1.5rem;
  }

  .work-heading {
    font-size: 0.92rem;
  }

  .work-head-meta {
    font-size: 0.6rem;
  }

  .work-title {
    font-size: 1rem;
  }

  .work-card-meta {
    font-size: 0.62rem;
  }

  .site-nav a {
    font-size: 0.76rem;
  }

  .contact-title {
    margin-top: 1rem;
    margin-bottom: 2.2rem;
    font-size: clamp(3.1rem, 14vw, 4.3rem);
  }

  .contact-lead {
    font-size: 1.02rem;
  }

  .contact-body {
    font-size: 0.86rem;
  }

  .project-title {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }

  .project-tagline {
    font-size: 1.14rem;
  }

  .project-facts {
    font-size: 0.62rem;
  }

  .project-topline,
  .project-kicker,
  .project-media-caption,
  .pagination-label {
    font-size: 0.58rem;
  }

  .info-label {
    font-size: 0.64rem;
  }

  .info-value {
    font-size: 0.86rem;
  }

  .info-value .lead {
    font-size: 0.94rem;
  }

  .work-end p {
    font-size: 0.66rem;
  }
}

@media (max-width: 380px) {
  .home-wordmark {
    font-size: clamp(3.7rem, 18vw, 4.7rem);
  }

  .site-nav a {
    font-size: 0.72rem;
  }
}

.footer-social-list {
  display: block;
}

[data-contact-quote].has-line-breaks {
  white-space: pre-line;
}


/* 首屏大标题移除后，页头小字标作为唯一品牌标识，稍微加粗。 */
.brand {
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-synthesis: weight;
}

@media (max-width: 680px) {
  .brand {
    font-size: 1.32rem;
  }
}
