:root {
  --bg: #f6f4ef;
  --paper: #fbfaf7;
  --ink: #171715;
  --muted: #6f6b63;
  --line: #cbc7be;
  --accent: #9d291f;
  --max-width: 1180px;
  --side: clamp(22px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 21, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 36px;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 9px 13px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 23, 21, 0.14);
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner,
.section-shell,
.footer-inner {
  width: min(calc(100% - (var(--side) * 2)), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav a::after,
.text-link::after,
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.arrow-link:hover::after,
.arrow-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section-shell {
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
}

.hero {
  min-height: min(78vh, 760px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.project-year,
.section-number {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 14px 0 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  font-size: clamp(4rem, 11vw, 9.2rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: inline-block;
  margin-top: 0.16em;
  font-family: "Songti SC", SimSun, serif;
  font-size: 0.48em;
  letter-spacing: 0.08em;
}

.hero-note {
  margin: 0 0 9px;
  color: var(--muted);
  white-space: nowrap;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(60px, 0.4fr) 2.6fr;
  align-items: baseline;
  margin-bottom: clamp(48px, 8vw, 94px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.about {
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.72fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: start;
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  margin: 0 0 24px;
  color: #35332f;
}

.about-copy .lead {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.48rem, 2.6vw, 2.2rem);
  line-height: 1.42;
  letter-spacing: -0.018em;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.text-link,
.arrow-link {
  position: relative;
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--bg);
  background: var(--ink);
  transform: translateY(-2px);
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.imdb-mark {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.portrait-frame {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d8d5ce;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(0.84) contrast(1.02);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.portrait-frame:hover img {
  transform: scale(1.025);
}

.project {
  border-bottom: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, 0.78fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
}

.project-reverse .project-grid {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.58fr);
}

.project-image {
  display: block;
  overflow: hidden;
  background: #d8d5ce;
  text-decoration: none;
}

.project-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
}

.project-image:hover img,
.project-image:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

.project-copy h3 {
  margin: 14px 0 34px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.6rem, 5.4vw, 5.3rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-copy h3 span {
  display: inline-block;
  margin-top: 0.18em;
  font-family: "Songti SC", SimSun, serif;
  font-size: 0.48em;
  letter-spacing: 0.04em;
}

.project-copy p {
  margin: 0 0 22px;
  color: #45413c;
}

.project-copy p[lang="zh-CN"] {
  color: var(--muted);
}

.arrow-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer {
  background: var(--ink);
  color: var(--bg);
}

.footer-inner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-decoration: none;
}

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

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 68vh;
    display: block;
    padding-top: 120px;
  }

  .hero-note {
    margin-top: 36px;
  }

  .section-heading {
    grid-template-columns: 48px 1fr;
  }

  .about-grid,
  .project-grid,
  .project-reverse .project-grid {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    width: min(100%, 440px);
    aspect-ratio: 4 / 3;
  }

  .portrait-frame img {
    object-position: 50% 32%;
  }

  .project-reverse .project-copy {
    order: 2;
  }

  .project-reverse .project-image {
    order: 1;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 62px;
  }

  .wordmark {
    font-size: 0.76rem;
  }

  .section-shell {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 20vw, 5.8rem);
  }

  .contact-row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .text-link {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    justify-content: center;
    min-height: 180px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
