:root {
  --paper: #f8f7f2;
  --paper-bright: #f8f7f2;
  --paper-muted: #f8f7f2;
  --ink: #0c0d0c;
  --dark: #070807;
  --dark-soft: #111211;
  --muted: #777a76;
  --silver: #b9bdb9;
  --line: rgba(18, 19, 18, 0.18);
  --line-light: rgba(18, 19, 18, 0.18);
  --accent: #c94d63;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  --page-x: clamp(42px, 5.1vw, 86px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  background: var(--paper-bright);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-bright);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, video { display: block; width: 100%; }
img { height: 100%; object-fit: cover; }
figure, blockquote, dl, dd { margin: 0; }

.visually-hidden {
  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;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-x);
  color: white;
  mix-blend-mode: difference;
  pointer-events: none;
}

.site-header a { pointer-events: auto; }

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: max-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-brand-cn {
  font: 400 14px/1 var(--serif);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 2.5vw, 42px);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.site-nav a { position: relative; padding: 6px 0; }
.site-nav a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 300ms var(--ease);
}
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.header-year { justify-self: end; font: 12px/1 var(--serif); }

main { display: flex; flex-direction: column; background: var(--paper-bright); }

.folio-page {
  position: relative;
  width: 100%;
  min-height: max(680px, 100svh);
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: clip;
  padding: calc(var(--header-h) + clamp(28px, 4vh, 54px)) var(--page-x) clamp(42px, 6vh, 70px);
}

.theme-dark, .project-page-dark { color: var(--ink); background: var(--paper-bright); }
.theme-paper, .project-page-paper { background: var(--paper); }
.project-page-muted { background: var(--paper-muted); }

.eyebrow, .micro-label, .section-number {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
}
.theme-dark .eyebrow, .theme-dark .micro-label, .theme-dark .section-number,
.project-page-dark .eyebrow, .project-page-dark .section-number { color: var(--muted); }
.serif-en { font-family: var(--serif); font-style: italic; }

.page-mark {
  position: absolute;
  top: calc(var(--header-h) + 24px);
  left: var(--page-x);
  right: var(--page-x);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid currentColor;
  opacity: 0.48;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Cover */
.hero {
  isolation: isolate;
  background: var(--paper-bright);
}

.hero::before {
  position: absolute;
  z-index: -3;
  content: "";
  inset: 0;
  background: radial-gradient(ellipse 44% 80% at 61% 46%, rgba(225, 221, 211, .18), transparent 82%);
}

.hero::after {
  position: absolute;
  z-index: 0;
  content: "";
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 80%, rgba(248,247,242,.2) 88%, var(--paper-bright) 100%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 40cqw;
  aspect-ratio: 1;
  left: calc(48% + var(--pointer-x, 0px));
  top: calc(12% + var(--pointer-y, 0px));
  background: radial-gradient(circle, rgba(235, 230, 220, .2), transparent 67%);
  filter: blur(36px);
  pointer-events: none;
  transition: left 1.1s var(--ease), top 1.1s var(--ease);
}

.hero-portrait {
  position: absolute;
  z-index: -2;
  inset: 0 16% 0 27%;
  overflow: visible;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.9) 3%, #000 9% 91%, rgba(0,0,0,.9) 97%, transparent 100%),
    linear-gradient(to bottom, #000 0 84%, rgba(0,0,0,.94) 89%, rgba(0,0,0,.48) 95%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0,0,0,.9) 3%, #000 9% 91%, rgba(0,0,0,.9) 97%, transparent 100%),
    linear-gradient(to bottom, #000 0 84%, rgba(0,0,0,.94) 89%, rgba(0,0,0,.48) 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-portrait::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 4% 7% 9%;
  background: radial-gradient(ellipse at 52% 40%, rgba(225,221,211,.16), transparent 76%);
  filter: blur(20px);
}
.hero-portrait::after { display: none; }
.hero-portrait img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.98) contrast(.995);
  opacity: 1;
  transform: scale(1.006);
}
.hero-portrait-retouch {
  -webkit-mask-image: radial-gradient(ellipse 39% 34% at 51% 34%, #000 0 46%, rgba(0,0,0,.98) 55%, rgba(0,0,0,.45) 70%, transparent 84%);
  mask-image: radial-gradient(ellipse 39% 34% at 51% 34%, #000 0 46%, rgba(0,0,0,.98) 55%, rgba(0,0,0,.45) 70%, transparent 84%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-title-block {
  position: absolute;
  z-index: 2;
  left: var(--page-x);
  top: 50%;
  transform: translateY(-51%);
  width: 49%;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(84px, 10.2cqw, 172px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: .93;
}

.hero-byline {
  margin: 24px 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6cqw, 26px);
}
.hero-byline em { margin-left: 10px; color: #61686d; font-size: .68em; font-weight: 500; }

.hero-directory {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: var(--page-x);
  width: min(25cqw, 400px);
  transform: translateY(-41%);
}

.hero-directory ol { list-style: none; padding: 0; margin: 20px 0 0; }
.hero-directory li + li { margin-top: 12px; }
.hero-directory a {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(12,13,12,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(7px);
  transition: color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease);
}
.hero-directory a:hover { color: white; background: var(--ink); transform: translateX(-9px); }
.hero-directory span { color: #8e918e; font-size: 9px; }
.hero-directory b { font-weight: 400; font-size: clamp(12px, 1.05cqw, 16px); }
.hero-directory i { justify-self: end; font-style: normal; }

.hero-slogan {
  position: absolute;
  z-index: 2;
  left: var(--page-x);
  bottom: clamp(48px, 7vh, 84px);
  font-family: var(--serif);
  font-size: clamp(14px, 1.2cqw, 20px);
  line-height: 1.7;
}

.scroll-cue {
  position: absolute;
  right: var(--page-x);
  bottom: clamp(48px, 7vh, 84px);
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.scroll-cue i { color: var(--ink); font-size: 18px; font-style: normal; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(8px); } }

/* About */
.about {
  display: grid;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  grid-template-columns: minmax(260px, .74fr) 1.05fr 1.14fr;
  grid-template-rows: auto auto;
  column-gap: clamp(34px, 5cqw, 84px);
  row-gap: clamp(24px, 3vh, 38px);
  min-height: max(920px, 100svh);
  aspect-ratio: auto;
  padding-top: calc(var(--header-h) + clamp(78px, 10vh, 118px));
}

.about-portrait {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: block;
  height: clamp(600px, 48cqw, 620px);
  margin-top: clamp(24px, 3vh, 32px);
  min-height: 0;
  overflow: hidden;
  background: transparent;
}
.about-portrait img {
  min-height: 0;
  object-fit: cover;
  object-position: 44% 0%;
  /* Keep one continuous portrait field with a clean rectangular edge. */
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.about-resume {
  grid-column: 2 / -1;
  grid-row: 1;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(34px, 5cqw, 84px);
  padding-top: clamp(12px, 1.6vh, 20px);
}
.about-resume-column { display: flex; flex-direction: column; gap: clamp(24px, 3.4vh, 34px); }
.about .micro-label { font-size: 10px; }
.resume-section > .micro-label { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.education-list, .campus-list { display: grid; gap: 18px; margin-top: 14px; }
.education-item time, .campus-item time {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font: 500 17px/1.2 var(--serif);
  letter-spacing: .02em;
}
.education-item p, .campus-item p { margin: 2px 0; color: #3f4244; font-size: 11px; line-height: 1.6; }
.education-item p:first-child { color: var(--ink); font-weight: 500; }
.campus-item h3 { margin: 0 0 5px; font: 500 12px/1.45 var(--sans); }
.campus-item p b, .experience-body p b { display: inline-block; margin-right: 7px; color: var(--ink); font-weight: 600; }
.profile-tags, .core-skills { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 13px 0 0; padding: 0; border: 0; list-style: none; color: #3f4244; font-size: 11px; }
.core-skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 12px; }
.profile-tags li, .core-skills li { white-space: nowrap; }
.resume-list { display: grid; gap: clamp(20px, 2.8vh, 28px); list-style: none; padding: 0; margin: 14px 0 0; border: 0; }
.resume-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 0; border: 0; }
.resume-list time { padding-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.resume-list strong, .resume-list span { display: block; }
.resume-list strong { font: 500 17px/1.2 var(--serif); }
.resume-list span { margin-top: 2px; color: #4c5052; font-size: 11px; }
.experience-body p { margin: 7px 0 0; color: #3f4244; font-size: 10.5px; line-height: 1.65; }
.about-statement { grid-column: 2 / -1; grid-row: 2; justify-self: end; margin: 0; color: var(--muted); font-size: clamp(18px, 1.6cqw, 26px); }

/* Work directory */
.work-index {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  padding-top: calc(var(--header-h) + clamp(74px, 10vh, 112px));
}
.work-directory { width: 100%; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-light); }
.work-directory a {
  display: grid;
  grid-template-columns: 54px minmax(220px, .72fr) minmax(360px, 1.42fr) 120px 24px;
  align-items: center;
  gap: clamp(16px, 2.4cqw, 40px);
  min-height: clamp(76px, 11.4vh, 116px);
  padding: 0 clamp(10px, 1.4cqw, 24px);
  border-bottom: 1px solid var(--line-light);
  transition: color 260ms var(--ease), padding 260ms var(--ease), background 260ms var(--ease);
}
.work-directory a:hover { padding-inline: 16px; color: white; background: var(--ink); }
.work-directory span { color: #878a87; font-size: 12px; }
.work-directory > li > a > span:first-child { text-align: center; }
.work-name { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.work-name b { color: var(--ink); font: 400 clamp(28px, 3cqw, 50px)/1 var(--serif); }
.work-name em { color: var(--muted); font: italic clamp(15px, 1.18cqw, 19px)/1.2 var(--serif); }
.work-capabilities { color: #4c504d !important; font-size: clamp(12px, 1.04cqw, 16px) !important; line-height: 1.7; text-align: center; letter-spacing: .03em; }
.work-directory small { color: var(--muted); font-size: 10px; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.work-directory i { justify-self: end; font-style: normal; }
.work-directory a:hover .work-name b { color: white; }
.work-directory a:hover .work-name em, .work-directory a:hover .work-capabilities, .work-directory a:hover small { color: #c8cbc8 !important; }

/* Project category pages */
.project-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(24px, 4vh, 44px);
  padding-top: calc(var(--header-h) + clamp(40px, 6vh, 72px));
}
.project-heading {
  display: grid;
  grid-template-columns: minmax(160px, .42fr) 1fr minmax(260px, .75fr);
  align-items: end;
  gap: 30px;
}
.project-heading h2 { margin: 0; font: 400 clamp(44px, 5.6cqw, 94px)/.95 var(--serif); letter-spacing: -.05em; }
.project-heading h2 span { margin-left: 8px; color: var(--accent); font-family: var(--sans); font-size: .5em; vertical-align: top; }
.project-heading > p:last-child { justify-self: end; max-width: 420px; margin: 0; color: var(--muted); text-align: right; }
.project-page-dark .project-heading > p:last-child { color: var(--muted); }

.project-grid { display: grid; min-height: 0; gap: clamp(16px, 2cqw, 32px); align-items: stretch; }
.project-grid-four { grid-template-columns: repeat(4, 1fr); }
.project-grid-three { grid-template-columns: repeat(3, 1fr); }
.project-grid-two { grid-template-columns: repeat(2, 1fr); }
.project-grid-one { grid-template-columns: minmax(0, 1fr); width: min(72cqw, 980px); justify-self: center; }

.project-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.project-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #252725;
}
.project-visual::after {
  position: absolute;
  content: "View project ↗";
  inset: auto 14px 14px;
  padding: 10px 12px;
  color: var(--dark);
  background: rgba(248,248,246,.92);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.project-card img { transition: transform 800ms var(--ease), filter 500ms ease; }
.project-card:hover img { transform: scale(1.045); filter: brightness(.83); }
.project-card:hover .project-visual::after { opacity: 1; transform: translateY(0); }
.logo-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  perspective: 900px;
  overflow: visible;
  background: transparent;
  border: 0;
}
.logo-visual::after { display: none; }
.logo-visual img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.compact-logo-page .project-heading,
.compact-logo-page > .project-grid {
  width: min(72cqw, 940px);
  justify-self: center;
}
.compact-logo-page > .project-grid { gap: clamp(36px, 4.5cqw, 68px); }
.compact-logo-page .logo-visual img { width: 56%; height: 56%; }
.compact-logo-page .logo-visual { place-items: center start; }
.compact-logo-page .logo-visual img { transform-origin: left center; }
#traditional .project-card:nth-child(2) .logo-visual img { width: 47%; height: 47%; }
@media (min-width: 901px) {
  .compact-logo-page > .project-grid {
    grid-template-columns: repeat(3, 250px);
    gap: 44px;
    width: max-content;
  }
  .compact-logo-page .project-card {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    height: auto;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-self: center;
  }
  .compact-logo-page .logo-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    height: 240px;
  }
  .compact-logo-page .logo-visual img {
    width: 224px;
    height: 224px;
    max-width: 224px;
    max-height: 224px;
    margin-left: 4px;
  }
  #traditional .project-card:nth-child(2) .logo-visual img {
    width: 198px;
    height: 198px;
    max-width: 198px;
    max-height: 198px;
  }
  .compact-logo-page .project-card-meta { width: 100%; }
}
.has-tilt { perspective: 900px; overflow: visible; }
.has-tilt .logo-visual img {
  transform: perspective(900px) translate3d(var(--shift-x, 0), var(--shift-y, 0), var(--shift-z, 18px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotateZ(var(--tilt-z, 0deg));
  transform-style: preserve-3d;
  filter: drop-shadow(var(--shadow-x, 0) var(--shadow-y, 24px) 24px rgba(12, 13, 12, .2));
  transition: transform 90ms linear, filter 160ms ease;
  will-change: transform;
}
.has-tilt:hover .logo-visual img {
  transform: perspective(900px) translate3d(var(--shift-x, 0), var(--shift-y, 0), var(--shift-z, 34px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotateZ(var(--tilt-z, 0deg)) scale(1.035);
  filter: drop-shadow(var(--shadow-x, 0) var(--shadow-y, 30px) 28px rgba(12, 13, 12, .26));
}
.has-tilt.is-resetting .logo-visual img {
  transition-duration: 620ms;
  transition-timing-function: var(--ease);
}
#traditional .project-visual, #social .project-visual { aspect-ratio: 1; }
@media (min-width: 901px) {
  #traditional .logo-visual,
  #social .logo-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: auto;
  }
}
.project-card-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "subtitle";
  gap: 2px 12px;
  padding: 14px 0 0;
}
.project-card-meta b { grid-area: title; font: 400 clamp(19px, 1.55cqw, 26px)/1.2 var(--serif); }
.project-card-meta em { grid-area: subtitle; color: var(--muted); font-size: clamp(13px, .96cqw, 15px); font-style: normal; }
.project-card-meta i { grid-area: number; align-self: center; color: var(--muted); font-size: 10px; font-style: normal; }
.project-page-dark .project-card-meta em, .project-page-dark .project-card-meta i { color: var(--muted); }

.project-placeholder { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: linear-gradient(145deg, #e4e5e2, #bfc2bf); }
.project-placeholder strong { font: 400 clamp(54px, 6cqw, 96px)/1 var(--serif); color: #666a66; }
.project-placeholder small { color: #5f625f; letter-spacing: .16em; }

.account-visual, .editorial-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.3cqw, 38px);
  isolation: isolate;
}
.account-visual::before, .editorial-placeholder::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  background: radial-gradient(circle at 72% 28%, rgba(255,255,255,.62), transparent 25%);
}
.account-visual span, .editorial-placeholder strong { font-size: 10px; letter-spacing: .17em; }
.account-visual strong { align-self: center; font: 400 clamp(84px, 10cqw, 170px)/1 var(--serif); color: rgba(15,17,15,.68); }
.account-visual small, .editorial-placeholder small { align-self: flex-end; font-size: 9px; letter-spacing: .1em; }
.account-one { background: linear-gradient(145deg, #d1dad9, #e9e7df); }
.account-two { background: linear-gradient(145deg, #d4cfca, #aeb9bd); }
.account-three { background: linear-gradient(145deg, #bfc8bb, #eeebe5); }

.documentary-page {
  grid-template-columns: minmax(260px, .58fr) minmax(0, 1.42fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(34px, 5cqw, 78px);
}
.documentary-page .project-heading { display: block; grid-column: 1; grid-row: 1; }
.documentary-page .project-heading h2 { margin: 20px 0 12px; }
.documentary-page .project-heading > p:last-child { margin: 0; max-width: none; width: auto; justify-self: start; text-align: left; }
.documentary-grid {
  grid-column: 2;
  grid-row: 1;
  width: min(66cqw, 754px);
  justify-self: start;
  position: relative;
  left: -45px;
  align-items: start;
  gap: clamp(48px, 3.6cqw, 52px);
}
.documentary-grid .project-card { width: min(25cqw, 330px); }
@media (min-width: 901px) {
  .documentary-grid .project-card:nth-child(2) { transform: translateX(-16px); }
}
.documentary-page .next-category { grid-column: 2; grid-row: 2; }
.documentary-grid .project-visual { height: var(--clip-stack-height, min(64vh, 500px)); aspect-ratio: 2 / 3; background: #111; }
.poster-visual { aspect-ratio: 2 / 3; background: #111; }
.poster-visual img { object-fit: cover; object-position: center; }
.editorial-placeholder span { align-self: center; font: 400 clamp(100px, 13cqw, 220px)/.8 var(--serif); color: rgba(255,255,255,.68); }
.documentary-one { color: var(--ink); background: linear-gradient(145deg, #e5e8e5, #bdc3bf); }
.documentary-two { color: var(--ink); background: linear-gradient(145deg, #d8d6cf, #c5cbca); }
.commercial-one { color: var(--ink); background: linear-gradient(135deg, #eceeec, #c5cccf 47%, #e5e6e3); }
.commercial-two { color: var(--ink); background: linear-gradient(135deg, #e5dfe1, #c7c6c0 55%, #eeeeeb); }
.next-category { justify-self: end; display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.project-page-dark .next-category { color: var(--muted); }
.next-category span { font-size: 18px; transition: transform 250ms var(--ease); }
.next-category:hover span { transform: translateY(6px); }

.short-film-page, .feature-layout-page {
  grid-template-columns: .72fr .7fr .92fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(22px, 2.4cqw, 36px);
  row-gap: clamp(28px, 4cqw, 68px);
}
.short-film-page .project-heading, .feature-layout-page .project-heading { display: block; grid-column: 1; grid-row: 1; }
.short-film-page .project-heading h2, .feature-layout-page .project-heading h2 { margin: 20px 0 12px; }
.short-film-page .project-heading > p:last-child, .feature-layout-page .project-heading > p:last-child {
  margin: 0;
  max-width: none;
  width: auto;
  justify-self: start;
  text-align: left;
}
.short-film-page .feature-card, .feature-layout-page .commercial-grid {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  position: relative;
  left: var(--poster-shift);
  width: var(--poster-width, min(25cqw, 330px));
  height: auto;
}
.media-showcase-page {
  --clip-stack-height: min(64vh, 500px);
  --poster-width: min(25cqw, 330px);
  --poster-shift: clamp(-58px, -3.6cqw, -38px);
  --clips-shift: clamp(-84px, -5.5cqw, -58px);
}
.short-film-page .project-visual, .feature-layout-page .project-visual {
  height: var(--clip-stack-height);
  aspect-ratio: 2 / 3;
}
.short-film-page .project-card-meta, .feature-layout-page .project-card-meta {
  display: block;
  padding-top: 11px;
  text-align: left;
}
.short-film-page .project-card-meta b, .short-film-page .project-card-meta em,
.feature-layout-page .project-card-meta b, .feature-layout-page .project-card-meta em { display: block; }
.clip-showcase {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: min(32cqw, 400px);
  height: var(--clip-stack-height);
  min-width: 0;
  left: var(--clips-shift);
}
.clip-showcase > .micro-label { position: absolute; left: 0; top: 0; margin: 0; }
.clip-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  height: 100%;
  padding-top: 28px;
}
.clip-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; }
.clip-card video {
  width: min(100%, 364px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101110;
}
.clip-card figcaption {
  display: flex;
  justify-content: space-between;
  width: min(100%, 364px);
  padding-top: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}
.clip-card figcaption i { font-style: normal; }
.feature-layout-page .next-category { grid-column: 3; grid-row: 2; }
.film-one { color: var(--ink); background: linear-gradient(115deg, #ededeb, #c7ced0 48%, #e8e9e6); }
.film-one span { font-size: clamp(110px, 13cqw, 220px); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr auto; gap: 50px; align-items: center; padding-top: calc(var(--header-h) + clamp(78px, 10vh, 112px)); }
.contact-main h2 { margin: 20px 0 26px; font: 400 clamp(64px, 8cqw, 136px)/.94 var(--serif); letter-spacing: -.06em; }
.contact-main > p:last-child { color: var(--muted); }
.contact-details { font-style: normal; border-top: 1px solid var(--line-light); }
.contact-details a { display: grid; grid-template-columns: 80px 1fr 20px; align-items: center; gap: 18px; min-height: 84px; border-bottom: 1px solid var(--line-light); transition: padding 250ms var(--ease), color 250ms var(--ease), background 250ms var(--ease); }
.contact-details a:hover { padding-inline: 14px; color: var(--dark); background: var(--paper); }
.contact-details span { color: #8e918e; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.contact-details strong { font: 400 clamp(18px, 1.6cqw, 26px)/1 var(--serif); }
.contact-details i { justify-self: end; font-style: normal; }
.contact-signoff { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line-light); }
.contact-signoff p { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.contact-signoff p:first-child { color: var(--ink); font: 400 22px/1 var(--serif); }

.site-footer { display: flex; justify-content: space-between; align-items: center; min-height: 84px; padding: 0 var(--page-x); color: var(--dark); background: var(--paper); border-top: 1px solid var(--line); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }

/* Project detail dialog */
.project-dialog {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper-bright);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 320ms var(--ease), transform 520ms var(--ease), display 320ms allow-discrete, overlay 320ms allow-discrete;
}
.project-dialog[open] { opacity: 1; transform: translateY(0); }
@starting-style { .project-dialog[open] { opacity: 0; transform: translateY(24px); } }
.project-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(10px); }
.dialog-shell { display: grid; grid-template-rows: 64px 1fr 64px; width: 100%; height: 100%; }
.dialog-topbar, .dialog-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--page-x); border-bottom: 1px solid var(--line); }
.dialog-topbar p { display: flex; gap: 28px; margin: 0; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.dialog-topbar b { color: var(--muted); font-weight: 400; }
.dialog-close { border: 0; padding: 8px 0; background: none; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.dialog-layout { display: grid; grid-template-columns: 1.36fr .64fr; min-height: 0; }
.dialog-media { position: relative; min-height: 0; overflow: hidden; background: #111; }
.dialog-media img, .dialog-media video { width: 100%; height: 100%; object-fit: cover; }
.dialog-media img { object-fit: contain; background: #111; }
.dialog-media video { object-fit: contain; background: #050505; }
.dialog-media .dialog-placeholder { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; padding: 6vw; color: white; background: linear-gradient(135deg, #171918, #59615f 52%, #111); }
.dialog-placeholder strong { font: 400 clamp(72px, 10vw, 170px)/.9 var(--serif); }
.dialog-placeholder span { align-self: flex-end; letter-spacing: .18em; }
.dialog-content { align-self: center; padding: clamp(34px, 5.2vw, 90px); }
.dialog-content h2 { margin: 18px 0 12px; font: 400 clamp(44px, 5vw, 84px)/.98 var(--serif); letter-spacing: -.05em; }
.dialog-role { margin: 0; color: var(--muted); font-size: 11px; }
.dialog-description { margin: clamp(28px, 5vh, 54px) 0; color: #444744; line-height: 1.95; }
.dialog-credits { border-top: 1px solid var(--line); }
.dialog-credits div { display: grid; grid-template-columns: 80px 1fr; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dialog-credits dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.dialog-credits dd { font-family: var(--serif); }
.dialog-nav { border-top: 1px solid var(--line); border-bottom: 0; }
.dialog-nav button { border: 0; background: none; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.dialog-nav p { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .08em; }

/* Traditional media keeps the original 16:9 interior placement and uses quiet identifier bars. */
.project-dialog.is-traditional-clean .dialog-topbar,
.project-dialog.is-traditional-clean .dialog-nav {
  visibility: visible;
  pointer-events: none;
  border-color: var(--line);
  justify-content: flex-start;
}
.project-dialog.is-traditional-clean .dialog-topbar p { gap: 0; }
.project-dialog.is-traditional-clean .dialog-progress,
.project-dialog.is-traditional-clean .dialog-close,
.project-dialog.is-traditional-clean .dialog-nav button { display: none; }
.project-dialog.is-traditional-clean .dialog-credits div { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.project-dialog.is-traditional-clean .dialog-credits dd { font-size: clamp(12px, .95vw, 14px); letter-spacing: 0; white-space: nowrap; }
.project-dialog.is-traditional-clean .dialog-credits div:nth-child(2) dd { white-space: pre-line; line-height: 1.55; }
.project-dialog.is-hangzhou .dialog-content h2 { font-size: clamp(40px, 4.1vw, 62px); letter-spacing: -.07em; white-space: nowrap; }

.dialog-media.cmg-media-stage { isolation: isolate; }
.dialog-media.cmg-media-stage::before {
  position: absolute;
  inset: -28px;
  z-index: -1;
  content: "";
  background: var(--dialog-poster) center / cover no-repeat;
  filter: blur(24px) saturate(1.08);
  transform: scale(1.08);
}
.dialog-media.cmg-media-stage img { position: relative; z-index: 1; object-fit: cover; background: transparent; }

/* Zhejiang TV: six poster-led videos are intentionally quiet until the viewer presses play. */
.zhejiang-video-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: #dddcd6;
}
.project-dialog.is-zhejiang .dialog-credits div { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.project-dialog.is-zhejiang .dialog-credits dd { font-size: clamp(12px, .95vw, 14px); letter-spacing: 0; white-space: nowrap; }
.zhejiang-video-card,
.hangzhou-video-card { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #111; isolation: isolate; }
.zhejiang-video-card::before,
.hangzhou-video-card::before {
  position: absolute;
  inset: -24px;
  z-index: -1;
  content: "";
  background: var(--zhejiang-poster) center / cover no-repeat;
  filter: blur(20px) saturate(1.08);
  transform: scale(1.08);
}
.zhejiang-video-stage video,
.hangzhou-video-stage video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: transparent; }
.video-scrubber { position: absolute; z-index: 3; right: 14px; bottom: 43px; left: 14px; width: calc(100% - 28px); height: 6px; margin: 0; cursor: pointer; accent-color: #fff; opacity: .96; }
.video-scrubber:disabled { cursor: wait; opacity: .42; }
.dialog-media.hangzhou-video-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: #dddcd6;
}

/* Zhejiang TV, page two: mobile-first news drafts in three independently scrollable phone screens. */
.zhejiang-news-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  gap: clamp(10px, 1.6vw, 20px);
  padding: clamp(18px, 2.2vw, 30px) clamp(54px, 8vw, 130px);
  background: #f8f7f2;
}
.zhejiang-news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.zhejiang-news-header h3 { margin: 0; font: 400 clamp(21px, 2.2vw, 32px)/1.12 var(--serif); letter-spacing: -.05em; }
.zhejiang-news-header p { margin: 0; color: var(--muted); font-size: clamp(12px, .92vw, 14px); letter-spacing: .1em; }
.zhejiang-news-devices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 52px);
  min-height: 0;
  align-items: center;
}
.zhejiang-news-device {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 26px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.zhejiang-news-device figcaption {
  width: min(100%, 270px);
  color: #4c5052;
  font-size: clamp(10px, .85vw, 13px);
  line-height: 1.35;
  text-align: center;
}
.zhejiang-news-phone { 
  position: relative;
  align-self: center;
  justify-self: center;
  display: flex;
  width: min(100%, 275px);
  aspect-ratio: 9 / 16;
  padding: 10px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #1c2430;
  border-radius: 30px;
  background: linear-gradient(145deg, #2a3440, #071019 46%, #34414e);
  box-shadow: 0 20px 34px rgba(27, 46, 66, .28), inset 0 0 0 2px rgba(255,255,255,.08);
}
.zhejiang-news-phone-placeholder { width: min(100%, 270px); }
.zhejiang-news-phone-placeholder .zhejiang-phone-screen {
  overflow: hidden;
  padding: 0;
  background: #f8f7f2;
}
.zhejiang-phone-speaker {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #12181e;
  transform: translateX(-50%);
}
.zhejiang-phone-screen {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 20px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 24px 15px 28px;
  color: #172332;
  background: #fcfbf8;
  scrollbar-color: #8ea8c2 transparent;
  scrollbar-width: thin;
}
.zhejiang-phone-screen::-webkit-scrollbar { width: 4px; }
.zhejiang-phone-screen::-webkit-scrollbar-thumb { border-radius: 999px; background: #8ea8c2; }
.zhejiang-phone-screen:focus-visible { outline: 2px solid #ef3c75; outline-offset: -4px; }
.zhejiang-news-phone-placeholder .zhejiang-phone-screen.zhejiang-phone-screen-image { overflow-y: auto; padding: 0; background: #fff; }
.zhejiang-phone-screen-image img { display: block; width: 100%; height: auto; border-radius: inherit; }
.zhejiang-news-appbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #d6dee8; color: #5b78a6; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.zhejiang-news-appbar span:last-child { color: #ef3c75; }
.zhejiang-news-meta { margin: 16px 0 7px; color: #7a90ad; font-size: 7px; font-weight: 700; letter-spacing: .11em; }
.zhejiang-phone-screen h3 { margin: 0; font: 700 clamp(17px, 1.75vw, 23px)/1.24 var(--serif); letter-spacing: -.06em; }
.zhejiang-news-subtitle { margin: 8px 0 0; color: #ef3c75; font-size: 10px; font-weight: 600; line-height: 1.45; }
.zhejiang-news-date { margin: 12px 0 14px; color: #8b96a3; font-size: 7px; letter-spacing: .06em; }
.zhejiang-news-lead { margin: 0; padding: 10px 11px; border-left: 3px solid #ef3c75; color: #35516d; background: #eef4f8; font-size: 9px; font-weight: 600; line-height: 1.68; }
.zhejiang-news-body { padding-top: 16px; }
.zhejiang-news-body section + section { margin-top: 17px; }
.zhejiang-news-body h4 { margin: 0 0 6px; color: #293d53; font-size: 10px; line-height: 1.45; }
.zhejiang-news-body p { margin: 0; color: #53616e; font-size: 9px; line-height: 1.75; text-align: justify; }

/* Zhejiang TV: two seamless detail pages with no generic dialog chrome. */
.zhejiang-detail, .zhaojian-detail, .molly-detail, .stars-detail, .qidai-detail, .bilibili-detail, .douyin-detail, .xiaohongshu-detail { display: none; }
.project-dialog.is-zhejiang { overflow: hidden; color: #172332; background: #f8f7f2; }
.project-dialog.is-zhejiang::backdrop { background: #f8f7f2; backdrop-filter: none; }
.project-dialog.is-zhejiang .dialog-shell { display: none; }
.project-dialog.is-zhejiang .zhejiang-detail {
  display: block;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  background: #f8f7f2;
}
.project-dialog.is-zhejiang .zhejiang-detail:focus { outline: none; }
.zhejiang-page {
  position: relative;
  display: grid;
  grid-template-columns: 1.36fr .64fr;
  grid-template-rows: 64px minmax(0, 1fr) 64px;
  width: 100%;
  height: calc(100vw * 9 / 16);
  min-height: 0;
  margin: 0;
  background-color: #f8f7f2;
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-position: 0 64px, 0 calc(100% - 64px);
  background-repeat: no-repeat;
  background-size: 100% 1px, 100% 1px;
  scroll-snap-align: start;
}
.zhejiang-page::before,
.zhejiang-page::after {
  position: absolute;
  z-index: 3;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  box-sizing: border-box;
  padding-inline: var(--page-x);
  margin: 0;
  color: #6f7474;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
  pointer-events: none;
}
.zhejiang-page::before { top: 0; border-bottom: 1px solid var(--line); content: "ZMG / TRADITIONAL MEDIA"; }
.zhejiang-page::after { bottom: 0; border-top: 1px solid var(--line); content: "GE YINING"; }
.zhejiang-page-final { grid-template-rows: 64px minmax(0, 1fr) 140px; height: calc(100vw * 9 / 16 + 76px); background-position: 0 64px, 0 calc(100% - 140px); }
.zhejiang-page-final::after { height: 140px; }
.zhejiang-video-stage { grid-row: 2; min-height: 0; overflow: hidden; }
.zhejiang-overview { grid-row: 2; align-self: center; padding: clamp(34px, 5.2vw, 90px) clamp(24px, 4vw, 64px); }
.zhejiang-overview h2 { margin: 18px 0 12px; font: 400 clamp(44px, 5vw, 84px)/.98 var(--serif); letter-spacing: -.05em; }
.zhejiang-page .zhejiang-news-stage {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 0;
  padding: clamp(18px, 2.2vw, 30px) clamp(54px, 8vw, 130px);
  background: #f8f7f2;
}
.zhejiang-close {
  position: absolute;
  right: 4%;
  bottom: 23px;
  z-index: 2;
  min-width: clamp(80px, 7.2vw, 92px);
  padding: 8px 12px 7px;
  border: 1px solid rgba(108, 131, 186, .84);
  border-radius: 999px;
  color: #617bb6;
  background: rgba(248, 247, 242, .92);
  box-shadow: 0 8px 28px rgba(60, 81, 124, .17);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .13em;
  transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.zhejiang-close span { margin-left: 5px; font-size: 1.2em; font-weight: 400; vertical-align: -.04em; }
.zhejiang-close:hover,
.zhejiang-close:focus-visible { color: #f8f7f2; background: #617bb6; border-color: #617bb6; transform: translateY(-2px); outline: none; }

/* Hangzhou TV and CMG: two-page 16:9 details with the same quiet media chrome. */
.hangzhou-detail, .cmg-detail { display: none; }
.project-dialog.is-hangzhou-detail,
.project-dialog.is-cmg-detail { overflow: hidden; color: #172332; background: #f8f7f2; }
.project-dialog.is-hangzhou-detail::backdrop,
.project-dialog.is-cmg-detail::backdrop { background: #f8f7f2; backdrop-filter: none; }
.project-dialog.is-hangzhou-detail .dialog-shell,
.project-dialog.is-cmg-detail .dialog-shell { display: none; }
.project-dialog.is-hangzhou-detail .hangzhou-detail,
.project-dialog.is-cmg-detail .cmg-detail {
  display: block;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  background: #f8f7f2;
}
.traditional-detail-page {
  position: relative;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 64px;
  width: 100%;
  height: calc(100vw * 9 / 16);
  min-height: 0;
  margin: 0;
  background: #f8f7f2;
  scroll-snap-align: start;
}
.traditional-detail-page-final { grid-template-rows: 64px minmax(0, 1fr) 140px; height: calc(100vw * 9 / 16 + 76px); }
.traditional-detail-chrome {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-inline: var(--page-x);
  color: #6f7474;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.traditional-detail-topbar { grid-row: 1; border-bottom: 1px solid var(--line); }
.traditional-detail-footer { grid-row: 3; border-top: 1px solid var(--line); }
.traditional-detail-main { grid-row: 2; min-height: 0; }
.traditional-detail-first .traditional-detail-main { display: grid; grid-template-columns: 1.36fr .64fr; }
.traditional-page-media { min-width: 0; min-height: 0; overflow: hidden; }
.cmg-first-media { background: #d7e5ea; }
.cmg-first-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.traditional-detail-overview { grid-row: auto; align-self: center; padding: clamp(34px, 5.2vw, 90px) clamp(24px, 4vw, 64px); }
.traditional-detail-overview h2 { margin: 18px 0 12px; font: 400 clamp(44px, 5vw, 84px)/.98 var(--serif); letter-spacing: -.05em; white-space: pre-line; }
.traditional-detail-overview .dialog-credits dd { white-space: pre-line; }
.traditional-detail-blank .traditional-detail-main { background: #f8f7f2; }
.traditional-detail-close { right: 4%; bottom: 23px; }

.hangzhou-script-page .traditional-detail-main {
  display: grid;
  grid-template-columns: minmax(250px, 294px) minmax(150px, 1fr) minmax(0, 620px);
  grid-template-rows: auto auto;
  align-content: start;
  gap: clamp(14px, 2vw, 24px) 6px;
  padding: clamp(18px, 2.2vw, 30px) clamp(46px, 5.2vw, 82px);
  box-sizing: border-box;
}
.hangzhou-script-heading { grid-column: 1 / -1; margin: 0; font: 400 clamp(21px, 2.2vw, 32px)/1.12 var(--serif); letter-spacing: -.05em; }
.hangzhou-script-poster { grid-column: 1; align-self: start; justify-self: start; width: min(100%, 294px); aspect-ratio: 9 / 16; margin: 0; overflow: hidden; background: #e8edf1; }
.hangzhou-script-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hangzhou-script-gallery { grid-column: 2; align-self: start; justify-self: center; display: grid; width: min(100%, 260px); height: 522.667px; grid-template-rows: repeat(3, auto); align-content: space-between; }
.hangzhou-script-gallery-image { width: 100%; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: #e8edf1; }
.hangzhou-script-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hangzhou-script-copy { grid-column: 3; justify-self: end; display: grid; grid-template-rows: auto auto; width: min(100%, 620px); align-content: start; gap: 8px; min-width: 0; }
.hangzhou-script-context { display: grid; gap: 7px; }
.hangzhou-script-context section { display: grid; gap: 2px; }
.hangzhou-script-context h4, .hangzhou-storyboard h4 { margin: 0; color: #182d47; font: 600 clamp(12px, .98vw, 15px)/1.25 var(--sans); letter-spacing: .04em; }
.hangzhou-script-context p { margin: 0; color: #4c5052; font-size: clamp(10px, .8vw, 12px); line-height: 1.4; text-indent: 2em; }
.hangzhou-storyboard { display: grid; gap: 5px; }
.hangzhou-tablet-panel { position: relative; width: min(100%, 620px); }
.hangzhou-tablet { display: flex; width: 100%; aspect-ratio: 16 / 9; padding: 10px; overflow: hidden; border: 1px solid #1c2430; border-radius: 18px; background: linear-gradient(145deg, #2a3440, #071019 46%, #34414e); box-shadow: 0 14px 24px rgba(27, 46, 66, .22), inset 0 0 0 2px rgba(255,255,255,.08); }
.hangzhou-tablet-screen { flex: 1 1 auto; min-height: 0; overflow: auto; border-radius: 11px; background: #f7fbff; overscroll-behavior: contain; touch-action: pan-y; }
.hangzhou-tablet-screen img { display: block; width: 100%; height: auto; object-fit: contain; }
.hangzhou-tablet-hint { margin: 14px 0 0; color: var(--muted); font-size: clamp(10px, .78vw, 12px); letter-spacing: .1em; text-align: right; }

.cmg-script-page .traditional-detail-main {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: start;
  gap: clamp(14px, 2vw, 24px) 24px;
  padding: clamp(18px, 2.2vw, 30px) clamp(32px, 4vw, 64px);
  box-sizing: border-box;
}
.cmg-script-heading { grid-column: 1 / -1; margin: 0; font: 400 clamp(21px, 2.2vw, 32px)/1.12 var(--serif); letter-spacing: -.05em; }
.cmg-script-poster { align-self: start; width: calc(100% + 13px); height: auto; margin: 0 0 0 -20px; overflow: hidden; aspect-ratio: 5 / 4; background: transparent; }
.cmg-script-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cmg-script-copy { display: grid; grid-template-rows: auto auto; width: calc(100% - 24px); min-height: 0; align-content: start; gap: 4px; }
.cmg-script-intro { display: grid; gap: 4px; }
.cmg-script-intro p { margin: 0; color: #4c5052; font-size: clamp(10px, .82vw, 12px); line-height: 1.36; text-indent: 2em; }
.cmg-tablet-panel { position: relative; min-height: 0; margin-top: 4px; }
.cmg-tablet-hint { position: absolute; top: calc(100% + 16px); right: 0; margin: 0; color: var(--muted); font-size: clamp(10px, .78vw, 12px); letter-spacing: .1em; }
.cmg-tablet {
  display: flex;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin-inline: auto;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #1c2430;
  border-radius: 18px;
  background: linear-gradient(145deg, #2a3440, #071019 46%, #34414e);
  box-shadow: 0 14px 24px rgba(27, 46, 66, .22), inset 0 0 0 2px rgba(255,255,255,.08);
}
.cmg-tablet-screen { flex: 1 1 auto; min-height: 0; overflow: auto; border-radius: 11px; background: #fcfbf8; overscroll-behavior: contain; touch-action: pan-y; }
.cmg-tablet-screen img { display: block; width: 100%; height: auto; object-fit: contain; }

/* Immersive, scroll-snapping detail views for selected projects. */
.project-dialog.is-zhaojian,
.project-dialog.is-molly,
.project-dialog.is-qidai {
  overflow: hidden;
  color: #f3dca2;
  background: #050301;
}
.project-dialog.is-zhaojian::backdrop,
.project-dialog.is-molly::backdrop,
.project-dialog.is-qidai::backdrop { background: #050301; backdrop-filter: none; }
.project-dialog.is-bilibili,
.project-dialog.is-douyin,
.project-dialog.is-xiaohongshu {
  overflow: hidden;
  color: #617bb6;
  background: #f8f7f2;
}
.project-dialog.is-bilibili::backdrop,
.project-dialog.is-douyin::backdrop,
.project-dialog.is-xiaohongshu::backdrop { background: #f8f7f2; backdrop-filter: none; }
.project-dialog.is-zhaojian .dialog-shell,
.project-dialog.is-molly .dialog-shell,
.project-dialog.is-stars .dialog-shell,
.project-dialog.is-qidai .dialog-shell,
.project-dialog.is-bilibili .dialog-shell,
.project-dialog.is-douyin .dialog-shell,
.project-dialog.is-xiaohongshu .dialog-shell { display: none; }
.project-dialog.is-zhaojian .zhaojian-detail,
.project-dialog.is-molly .molly-detail,
.project-dialog.is-qidai .qidai-detail {
  display: block;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  background: #050301;
}
.project-dialog.is-zhaojian .zhaojian-detail:focus,
.project-dialog.is-molly .molly-detail:focus,
.project-dialog.is-stars .stars-detail:focus,
.project-dialog.is-qidai .qidai-detail:focus { outline: none; }
.project-dialog.is-bilibili .bilibili-detail,
.project-dialog.is-douyin .douyin-detail,
.project-dialog.is-xiaohongshu .xiaohongshu-detail {
  display: block;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  background: #f8f7f2;
}
.project-dialog.is-bilibili .bilibili-detail:focus,
.project-dialog.is-douyin .douyin-detail:focus,
.project-dialog.is-xiaohongshu .xiaohongshu-detail:focus { outline: none; }
.project-dialog.is-zhaojian .zhaojian-detail::-webkit-scrollbar,
.project-dialog.is-molly .molly-detail::-webkit-scrollbar,
.project-dialog.is-stars .stars-detail::-webkit-scrollbar,
.project-dialog.is-qidai .qidai-detail::-webkit-scrollbar,
.project-dialog.is-bilibili .bilibili-detail::-webkit-scrollbar,
.project-dialog.is-douyin .douyin-detail::-webkit-scrollbar,
.project-dialog.is-xiaohongshu .xiaohongshu-detail::-webkit-scrollbar { display: none; }
.zhaojian-page,
.molly-page,
.qidai-page,
.bilibili-page,
.douyin-page,
.xiaohongshu-page {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  line-height: 0;
  scroll-snap-align: start;
  background: #050301;
}
.zhaojian-page { aspect-ratio: 64 / 45; }
.molly-page,
.qidai-page,
.bilibili-page,
.douyin-page,
.xiaohongshu-page { aspect-ratio: 16 / 9; }
.project-dialog.is-stars {
  overflow: hidden;
  color: #155e96;
  background: #e8f2f8;
}
.project-dialog.is-stars::backdrop { background: #e8f2f8; backdrop-filter: none; }
.project-dialog.is-stars .stars-detail {
  display: block;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  background: #e8f2f8;
}
.stars-page {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  background: #e8f2f8;
}
.zhaojian-page-final,
.molly-page-final,
.stars-page-final,
.qidai-page-final {
  display: block;
  overflow: visible;
  aspect-ratio: auto;
  padding-bottom: 76px;
}
.molly-page-final { background: #0b0910; }
.qidai-page-final { background: #250806; }
.stars-page-final { background: #dcebf8; }
.molly-page-final,
.qidai-page-final,
.bilibili-page-final,
.douyin-page-final,
.xiaohongshu-page-final {
  overflow: visible;
  aspect-ratio: auto;
  padding-bottom: 76px;
}
.zhaojian-artboard {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 64 / 45;
}
.molly-artboard {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.qidai-artboard {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.bilibili-artboard {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.douyin-artboard {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.xiaohongshu-artboard {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.stars-artboard {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.zhaojian-page img,
.molly-page img,
.qidai-page img,
.bilibili-page img,
.douyin-page img,
.xiaohongshu-page img {
  display: block;
  width: 100%;
  height: auto;
  background: #050301;
}
.stars-page img {
  display: block;
  width: 100%;
  height: auto;
  background: #e8f2f8;
}
.bilibili-page,
.douyin-page,
.xiaohongshu-page { background: #f8f7f2; }
.bilibili-page img,
.douyin-page img,
.xiaohongshu-page img { background: #f8f7f2; }
.zhaojian-close,
.molly-close,
.qidai-close,
.bilibili-close,
.douyin-close,
.xiaohongshu-close {
  position: absolute;
  z-index: 2;
  min-width: clamp(80px, 7.2vw, 92px);
  padding: 8px 12px 7px;
  border: 1px solid rgba(243, 220, 162, .82);
  border-radius: 999px;
  color: #f7e2ad;
  background: rgba(5, 3, 1, .78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .32);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .13em;
  transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.zhaojian-close { right: 4%; bottom: -53px; }
.molly-close { right: 4.6%; bottom: -53px; }
.qidai-close { right: 4%; bottom: -53px; }
.bilibili-close,
.douyin-close,
.xiaohongshu-close {
  border-color: rgba(108, 131, 186, .84);
  color: #617bb6;
  background: rgba(248, 247, 242, .92);
  box-shadow: 0 8px 28px rgba(60, 81, 124, .17);
}
.bilibili-close { right: 4%; bottom: -53px; }
.douyin-close { right: 4%; bottom: -53px; }
.xiaohongshu-close { right: 5.15%; bottom: -53px; }
.zhaojian-close span,
.molly-close span,
.qidai-close span,
.bilibili-close span,
.douyin-close span,
.xiaohongshu-close span { margin-left: 5px; font-size: 1.2em; font-weight: 400; vertical-align: -.04em; }
.zhaojian-close:hover,
.zhaojian-close:focus-visible,
.molly-close:hover,
.molly-close:focus-visible,
.qidai-close:hover,
.qidai-close:focus-visible {
  color: #120b04;
  background: #f3dca2;
  border-color: #f3dca2;
  transform: translateY(-2px);
  outline: none;
}
.bilibili-close:hover,
.bilibili-close:focus-visible,
.douyin-close:hover,
.douyin-close:focus-visible,
.xiaohongshu-close:hover,
.xiaohongshu-close:focus-visible {
  color: #f8f7f2;
  background: #617bb6;
  border-color: #617bb6;
  transform: translateY(-2px);
  outline: none;
}
.stars-close {
  position: absolute;
  right: 4.7%;
  bottom: -53px;
  z-index: 2;
  min-width: clamp(80px, 7.2vw, 92px);
  padding: 8px 12px 7px;
  border: 1px solid rgba(24, 91, 145, .78);
  border-radius: 999px;
  color: #145f99;
  background: rgba(242, 249, 253, .88);
  box-shadow: 0 8px 26px rgba(25, 78, 116, .16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .13em;
  transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.stars-close span { margin-left: 5px; font-size: 1.2em; font-weight: 400; vertical-align: -.04em; }
.stars-close:hover,
.stars-close:focus-visible {
  color: #f7fbfe;
  background: #1a659e;
  border-color: #1a659e;
  transform: translateY(-2px);
  outline: none;
}
/* Motion */
.reveal, .image-reveal { opacity: 0; transform: translateY(24px); transition: opacity 720ms var(--ease), transform 850ms var(--ease); }
.image-reveal { transform: translateY(20px) scale(.985); }
.reveal.is-visible, .image-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .image-reveal { opacity: 1; transform: none; }
}

/* Smaller screens keep the same editorial system, but stack safely. */
@media (max-width: 900px) {
  :root { --page-x: 22px; --header-h: 58px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { gap: 14px; font-size: 9px; }
  .site-nav a:first-child, .header-year { display: none; }
  .folio-page { min-height: 100svh; aspect-ratio: auto; overflow: hidden; padding-top: calc(var(--header-h) + 46px); }
  .hero { min-height: 920px; }
  .hero::before { background: radial-gradient(ellipse 62% 68% at 70% 32%, rgba(225,221,211,.2), transparent 86%); }
  .hero-portrait {
    inset: 5% -9% 8% 16%;
    opacity: .93;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 76%, rgba(0,0,0,.92) 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0 76%, rgba(0,0,0,.92) 84%, transparent 100%);
  }
  .hero-title-block { top: 28%; width: 90%; }
  .hero h1 { font-size: clamp(68px, 23vw, 116px); }
  .hero-directory { top: 57%; right: var(--page-x); width: calc(100% - 44px); transform: none; }
  .hero-slogan { bottom: 44px; font-size: 13px; }
  .scroll-cue { display: none; }
  .about { grid-template-columns: .78fr 1.22fr; grid-template-rows: auto auto; min-height: auto; }
  .about-portrait { grid-column: 1; grid-row: 1; height: clamp(520px, 76vw, 620px); }
  .about-resume { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 40px; }
  .about-statement { grid-column: 1 / -1; grid-row: 2; }
  .work-index { grid-template-columns: 1fr; min-height: 100svh; }
  .work-directory a { grid-template-columns: 34px minmax(150px, .74fr) minmax(230px, 1.3fr) 18px; }
  .work-directory small { display: none; }
  .project-page { min-height: auto; }
  .project-heading { grid-template-columns: 90px 1fr; }
  .project-heading > p:last-child { grid-column: 1 / -1; }
  .project-grid-four, .project-grid-three { grid-template-columns: repeat(2, 1fr); }
  .compact-logo-page > .project-grid { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .compact-logo-page .project-heading { width: 100%; }
  .project-grid-four .project-visual, .project-grid-three .project-visual { min-height: 340px; }
  #traditional .project-visual, #social .project-visual { min-height: 0; }
  .project-grid-one { width: 100%; }
  .documentary-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
  }
  .documentary-page .project-heading { grid-column: 1; grid-row: 1; width: 100%; }
  .documentary-grid { grid-column: 1; grid-row: 2; width: 100%; justify-self: stretch; }
  .documentary-grid .project-card { width: 100%; }
  .documentary-page .next-category { grid-column: 1; grid-row: 3; }
  .short-film-page, .feature-layout-page {
    grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    min-height: auto;
  }
  .short-film-page .project-heading, .feature-layout-page .project-heading { grid-column: 1 / -1; grid-row: 1; }
  .short-film-page .feature-card, .feature-layout-page .commercial-grid { grid-column: 1; grid-row: 2; left: 0; width: 100%; height: auto; }
  .clip-showcase { grid-column: 2; grid-row: 2; align-self: start; left: 0; }
  .feature-layout-page .next-category { grid-column: 2; grid-row: 3; }
  .contact { grid-template-columns: 1fr; }
  .contact-main h2 { font-size: clamp(58px, 13vw, 96px); }
  .dialog-layout { grid-template-columns: 1fr; grid-template-rows: 48% 52%; }
  .dialog-content { overflow: auto; padding: 28px; }
  .project-dialog.is-zhejiang .dialog-content { padding-inline: 28px; }
  .project-dialog.is-zhejiang .zhejiang-page { grid-template-columns: 1fr; grid-template-rows: minmax(340px, 48%) auto; min-height: auto; }
  .project-dialog.is-zhejiang .zhejiang-page-final { min-height: auto; padding-bottom: 76px; }
  .project-dialog.is-zhejiang .zhejiang-news-stage { padding: 18px; }
  .project-dialog.is-zhejiang .zhejiang-overview { padding: 28px; }
  .zhejiang-news-phone { width: min(100%, 190px); border-radius: 24px; }
  .hangzhou-script-page .traditional-detail-main { grid-template-columns: minmax(180px, .84fr) minmax(112px, .45fr) minmax(0, 1.21fr); column-gap: 8px; padding-inline: 28px; }
  .hangzhou-script-poster, .hangzhou-script-copy { width: 100%; }
  .hangzhou-script-gallery { width: min(100%, 140px); height: auto; gap: 10px; }
}

@media (max-width: 580px) {
  .site-brand-cn { display: none; }
  .site-nav { gap: 12px; }
  .hero { min-height: 900px; }
  .hero h1 { font-size: 22vw; }
  .hero-slogan { max-width: calc(100% - 44px); }
  .about { display: block; }
  .about-portrait { height: auto; aspect-ratio: 9 / 16; margin-top: 16px; margin-bottom: 54px; }
  .about-resume { display: block; }
  .about-resume-column { display: block; }
  .about-resume-column .resume-section + .resume-section { margin-top: 32px; }
  .about-resume > .experience-section { margin-top: 40px; }
  .about-statement { margin-top: 44px; }
  .work-directory a { grid-template-columns: 24px 1fr 16px; }
  .work-capabilities, .work-directory small { display: none; }
  .project-heading { display: block; }
  .project-heading h2 { margin: 18px 0; }
  .project-grid-four, .project-grid-three, .project-grid-two { grid-template-columns: 1fr; }
  .compact-logo-page > .project-grid { grid-template-columns: 1fr; }
  .project-grid-four .project-visual, .project-grid-three .project-visual { min-height: 440px; }
  #traditional .project-visual, #social .project-visual { min-height: 0; }
  .documentary-grid, #documentary .project-heading { width: 100%; }
  .documentary-grid .project-card { width: 100%; justify-self: stretch; }
  .short-film-page, .feature-layout-page { display: grid; grid-template-columns: 1fr; }
  .short-film-page .feature-card, .feature-layout-page .commercial-grid { grid-column: 1; grid-row: 2; width: min(86vw, 420px); }
  .clip-showcase { grid-column: 1; grid-row: 3; }
  .clip-list { grid-template-columns: 1fr; }
  .feature-layout-page .next-category { grid-column: 1; grid-row: 4; }
  .contact-details a { grid-template-columns: 64px 1fr 16px; }
  .contact-details strong { font-size: 16px; }
  .dialog-topbar, .dialog-nav { padding-inline: 18px; }
  .dialog-nav p { display: none; }
  .hangzhou-script-page .traditional-detail-main { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding-inline: 22px; }
  .hangzhou-script-heading, .hangzhou-script-poster, .hangzhou-script-gallery, .hangzhou-script-copy { grid-column: 1; }
  .hangzhou-script-gallery { width: min(100%, 260px); height: auto; }
}
