@view-transition {
  navigation: auto;
}

:root {
  color-scheme: dark;
  --page: #111411;
  --surface: #191d19;
  --paper: #f1f0e8;
  --muted: #a4a89f;
  --line: rgba(241, 240, 232, 0.16);
  --accent: #d6dd70;
  --warm: #d58b68;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.intro-active {
  overflow: hidden;
}

body[data-page="china"] {
  --accent: #e2a47e;
  --warm: #d6dd70;
}

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

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 34px;
  padding: 16px max(28px, calc((100vw - 1560px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(17, 20, 17, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  flex-direction: column;
  gap: 4px;
}

.brand strong {
  font-family: "Iowan Old Style", Baskerville, Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.brand span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.lang-toggle,
.nav-toggle,
.lightbox-close {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.lang-toggle {
  min-width: 52px;
  min-height: 36px;
  padding: 0 10px;
  color: var(--accent);
  font-size: 12px;
  transition: background 180ms ease, border-color 180ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--accent);
  background: rgba(214, 221, 112, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 19px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-1px) rotate(-90deg);
}

.site-main {
  width: min(100% - 80px, 1560px);
  margin-inline: auto;
  padding-top: 22px;
}

.hero {
  display: grid;
  min-height: min(840px, calc(100svh - 82px));
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(42px, 7vw, 108px);
  align-items: center;
  padding-block: 38px 70px;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
  animation: text-arrive 900ms 100ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-text::after {
  display: block;
  width: 44px;
  height: 1px;
  margin-top: 46px;
  background: var(--line);
  content: "";
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1,
.about-copy h1 {
  max-width: 8ch;
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, "Songti SC", serif;
  font-size: 104px;
  font-weight: 400;
  line-height: 0.98;
  text-wrap: pretty;
}

.hero-copy {
  max-width: 400px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-media {
  display: grid;
  height: min(68svh, 720px);
  min-height: 460px;
  grid-template-columns: 1.17fr 0.83fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  animation: media-arrive 1100ms 180ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-frame,
.photo-card,
.qr-card,
.about-portrait {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}

.hero-frame:first-child {
  grid-row: 1 / span 2;
}

.hero-frame img,
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame img {
  transform: scale(1.025);
  animation: image-drift 18s ease-in-out infinite alternate;
}

.hero-frame:nth-child(2) img {
  animation-delay: -6s;
}

.hero-frame:nth-child(3) img {
  animation-delay: -12s;
}

.gallery-section {
  padding: 20px 0 116px;
  scroll-margin-top: 104px;
}

.section-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.section-head::before {
  position: absolute;
  top: -9px;
  left: 0;
  color: var(--accent);
  content: "SELECTED WORKS / 01";
  font-size: 9px;
  letter-spacing: 0.16em;
}

.section-head h2 {
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, "Songti SC", serif;
  font-size: 45px;
  font-weight: 400;
  line-height: 1.15;
}

.section-head p {
  margin: 0 2px 5px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.35vw, 20px);
  grid-auto-flow: dense;
}

.photo-card {
  position: relative;
  grid-column: span 3;
  aspect-ratio: 0.82;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: min(calc(var(--card-order, 0) * 24ms), 220ms);
}

.photo-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-card:nth-child(8n + 1) {
  grid-column: span 6;
  aspect-ratio: 1.43;
}

.photo-card:nth-child(8n + 2),
.photo-card:nth-child(8n + 3) {
  grid-column: span 3;
  aspect-ratio: 0.8;
}

.photo-card:nth-child(8n + 4),
.photo-card:nth-child(8n + 5),
.photo-card:nth-child(8n + 6) {
  grid-column: span 4;
  aspect-ratio: 1.12;
}

.photo-card:nth-child(8n + 7),
.photo-card:nth-child(8n + 8) {
  grid-column: span 6;
  aspect-ratio: 1.5;
}

.photo-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-button img {
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms ease;
}

.photo-button:hover img,
.photo-button:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.photo-button:focus-visible,
.lang-toggle:focus-visible,
.nav-toggle:focus-visible,
.lightbox-close:focus-visible,
.site-nav a:focus-visible,
.about-contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.social-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px;
  padding: 0 0 110px;
}

.qr-card {
  width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  text-align: center;
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  object-fit: contain;
}

.qr-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  padding: 28px max(40px, calc((100vw - 1560px) / 2)) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-footer strong {
  grid-row: span 2;
  align-self: center;
  color: var(--paper);
  font-family: "Iowan Old Style", Baskerville, Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 400;
}

.site-footer p {
  margin: 0;
  text-align: right;
  line-height: 1.6;
}

.about-layout {
  display: grid;
  min-height: min(790px, calc(100svh - 105px));
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: center;
  padding: 54px 0 90px;
}

.about-portrait {
  position: relative;
  max-width: 520px;
  border: 1px solid var(--line);
}

.about-portrait::after {
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid rgba(214, 221, 112, 0.42);
  content: "";
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
}

.about-copy h1 {
  max-width: 10ch;
  font-size: 88px;
}

.about-copy .lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--paper);
  font-family: "Iowan Old Style", Baskerville, Georgia, "Songti SC", serif;
  font-size: 27px;
  line-height: 1.45;
}

.about-body {
  display: grid;
  max-width: 710px;
  gap: 14px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.about-body p {
  margin: 0;
}

.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.about-contact a,
.contact-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
}

.about-contact a:hover {
  border-color: var(--accent);
}

.contact-chip {
  color: var(--accent);
  font-weight: 500;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(9, 11, 9, 0.96);
  opacity: 1;
  animation: overlay-in 220ms ease both;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: auto;
  max-width: min(92vw, 1500px);
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 200;
}

/* The opening frame is intentionally quiet: the photographs do the talking. */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b0d0b;
  color: var(--paper);
  cursor: default;
  isolation: isolate;
  --intro-x: 0px;
  --intro-y: 0px;
  transition: clip-path 850ms cubic-bezier(0.76, 0, 0.24, 1), opacity 850ms ease;
}

.site-intro::before,
.site-intro::after {
  position: absolute;
  z-index: 3;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.site-intro::before {
  top: 50%;
  left: 30px;
  width: calc(100% - 60px);
  height: 1px;
  opacity: 0.48;
}

.site-intro::after {
  top: 30px;
  left: 50%;
  width: 1px;
  height: calc(100% - 60px);
  opacity: 0.28;
}

.intro-topline,
.intro-bottomline {
  position: absolute;
  z-index: 5;
  right: 34px;
  left: 34px;
  display: flex;
  justify-content: space-between;
  color: rgba(241, 240, 232, 0.54);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.intro-topline {
  top: 30px;
}

.intro-bottomline {
  bottom: 28px;
}

.intro-collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 600ms ease;
}

.intro-image {
  position: absolute;
  margin: 0;
  opacity: 0;
  transform: translate3d(var(--intro-x), var(--intro-y), 0);
  animation: intro-image-in 1200ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.78);
}

.intro-image figcaption {
  position: absolute;
  right: 0;
  bottom: -20px;
  color: rgba(241, 240, 232, 0.46);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-image--left {
  top: 14%;
  left: 7%;
  width: min(20vw, 275px);
  height: min(28vw, 380px);
  animation-delay: 140ms;
}

.intro-image--center {
  top: 17%;
  left: 50%;
  width: min(22vw, 330px);
  height: min(48vw, 650px);
  transform: translate3d(calc(-50% + var(--intro-x)), var(--intro-y), 0);
  animation-delay: 280ms;
  animation-name: intro-image-center-in;
}

.intro-image--right {
  right: 7%;
  bottom: 13%;
  width: min(19vw, 270px);
  height: min(25vw, 340px);
  animation-delay: 420ms;
}

.intro-content {
  position: relative;
  z-index: 4;
  display: flex;
  width: min(720px, calc(100% - 48px));
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 500ms ease, transform 800ms cubic-bezier(0.76, 0, 0.24, 1);
}

.intro-kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: intro-rise 850ms 400ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.intro-wordmark {
  margin: 0;
  color: var(--paper);
  font-family: "Iowan Old Style", Baskerville, Georgia, "Songti SC", serif;
  width: max-content;
  max-width: calc(100vw - 48px);
  font-size: clamp(48px, 7.8vw, 112px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  white-space: nowrap;
  animation: intro-wordmark-in 1200ms 520ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.intro-subtitle {
  max-width: 340px;
  margin: 23px 0 0;
  color: rgba(241, 240, 232, 0.62);
  font-size: 13px;
  line-height: 1.6;
  animation: intro-rise 850ms 740ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.intro-enter {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 0 18px;
  border: 1px solid rgba(241, 240, 232, 0.35);
  border-radius: 0;
  background: rgba(11, 13, 11, 0.46);
  color: var(--paper);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: intro-rise 850ms 900ms both cubic-bezier(0.2, 0.7, 0.2, 1);
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease, transform 220ms ease;
}

.intro-enter::before,
.intro-enter::after {
  display: none;
}

.intro-enter:hover,
.intro-enter:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #0b0d0b;
  transform: translateY(-3px);
}

.intro-enter-arrow {
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
  transition: color 220ms ease, transform 220ms ease;
}

.intro-enter:hover .intro-enter-arrow,
.intro-enter:focus-visible .intro-enter-arrow {
  color: #0b0d0b;
  transform: translate(3px, -3px);
}

.site-intro.is-shot .intro-collage {
  opacity: 0;
  transform: scale(1.12);
}

.site-intro.is-shot .intro-content {
  opacity: 0;
  transform: translateY(-18px) scale(0.98);
}

.site-intro.is-hiding {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
}

@keyframes intro-image-in {
  from { opacity: 0; transform: translate3d(var(--intro-x), calc(var(--intro-y) + 26px), 0) scale(1.06); }
  to { opacity: 0.78; transform: translate3d(var(--intro-x), var(--intro-y), 0) scale(1); }
}

@keyframes intro-image-center-in {
  from { opacity: 0; transform: translate3d(calc(-50% + var(--intro-x)), calc(var(--intro-y) + 26px), 0) scale(1.06); }
  to { opacity: 0.78; transform: translate3d(calc(-50% + var(--intro-x)), var(--intro-y), 0) scale(1); }
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-wordmark-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(24px); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}

@keyframes text-arrive {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes media-arrive {
  from { opacity: 0; clip-path: inset(0 0 0 8%); transform: translateY(14px); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}

@keyframes image-drift {
  from { transform: scale(1.025) translateY(0); }
  to { transform: scale(1.08) translateY(-5px); }
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1100px) {
  .site-main {
    width: min(100% - 56px, 1560px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 68px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-media {
    height: min(64svh, 650px);
  }

  .about-layout {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
  }

  .about-copy h1 {
    font-size: 70px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 22px;
  }

  .brand strong {
    font-size: 22px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
    animation: text-arrive 240ms ease both;
  }

  .site-nav a {
    min-height: 48px;
    font-size: 14px;
  }

  .site-nav a::after {
    right: auto;
    width: 36px;
    bottom: 7px;
  }

  .lang-toggle {
    align-self: flex-start;
    margin-top: 10px;
  }

  .site-main {
    width: min(100% - 40px, 1560px);
    padding-top: 0;
  }

  .hero {
    gap: 24px;
    padding: 54px 0 70px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .hero h1,
  .about-copy h1 {
    max-width: 10ch;
    font-size: 64px;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 15px;
  }

  .hero-media {
    height: 470px;
    min-height: 0;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
  }

  .gallery-section {
    padding-bottom: 78px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .section-head h2 {
    font-size: 34px;
  }

  .section-head p {
    font-size: 10px;
  }

  .photo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .photo-card,
  .photo-card:nth-child(n) {
    grid-column: span 3;
    aspect-ratio: 0.78;
  }

  .photo-card:nth-child(5n + 1),
  .photo-card:nth-child(5n + 4) {
    grid-column: span 6;
    aspect-ratio: 1.28;
  }

  .social-section {
    gap: 14px;
    padding-bottom: 72px;
  }

  .qr-card {
    width: min(42vw, 190px);
    padding: 8px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 24px 20px 28px;
  }

  .site-footer strong {
    grid-row: auto;
  }

  .site-footer p {
    text-align: left;
  }

  .about-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 40px 0 66px;
  }

  .about-portrait {
    width: min(82%, 420px);
  }

  .about-copy .lead {
    margin-top: 18px;
    font-size: 23px;
  }

  .about-body {
    font-size: 13px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .intro-topline,
  .intro-bottomline {
    right: 20px;
    left: 20px;
    font-size: 8px;
  }

  .intro-topline {
    top: 22px;
  }

  .intro-bottomline {
    bottom: 20px;
  }

  .site-intro::before {
    left: 20px;
    width: calc(100% - 40px);
  }

  .site-intro::after {
    top: 20px;
    height: calc(100% - 40px);
  }

  .intro-image--left {
    top: 17%;
    left: -8%;
    width: 35vw;
    height: 48vw;
  }

  .intro-image--center {
    top: 19%;
    width: 43vw;
    height: 63vw;
  }

  .intro-image--right {
    right: -8%;
    bottom: 17%;
    width: 35vw;
    height: 47vw;
  }

  .intro-image figcaption {
    bottom: -16px;
    font-size: 7px;
  }

  .intro-wordmark {
    font-size: clamp(34px, 8.3vw, 64px);
  }

  html[lang="zh-CN"] .intro-wordmark {
    font-size: clamp(36px, 10vw, 58px);
  }

  .intro-subtitle {
    max-width: 260px;
    font-size: 12px;
  }

  .intro-enter {
    min-height: 46px;
    margin-top: 28px;
  }
}

@media (max-width: 420px) {
  .site-main {
    width: min(100% - 32px, 1560px);
  }

  .hero h1,
  .about-copy h1 {
    font-size: 56px;
  }

  .hero-media {
    height: 390px;
  }

  .about-contact {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Final editorial treatment: paper, ink, and a single signal colour. */
:root {
  color-scheme: light;
  --page: #eceae3;
  --surface: #dedbd2;
  --paper: #1c211d;
  --muted: #6c7168;
  --line: rgba(28, 33, 29, 0.16);
  --accent: #b95840;
  --warm: #31574a;
}

body[data-page="china"] {
  --accent: #315f58;
  --warm: #b95840;
}

body {
  background: var(--page);
  color: var(--paper);
}

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

.site-header {
  background: rgba(236, 234, 227, 0.88);
  border-bottom-color: var(--line);
}

.brand span,
.site-nav a,
.hero-copy,
.section-head p,
.about-body,
.qr-card figcaption {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.lang-toggle,
.nav-toggle,
.lightbox-close {
  border-color: var(--line);
  color: var(--paper);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}

.hero-frame,
.photo-card,
.qr-card,
.about-portrait {
  border: 1px solid var(--line);
  border-radius: 0;
}

.hero-frame,
.photo-card,
.about-portrait {
  background: var(--surface);
}

.hero-frame img,
.photo-button img,
.about-portrait img {
  filter: saturate(0.94) contrast(1.02);
}

.hero h1,
.about-copy h1,
.section-head h2 {
  color: var(--paper);
}

.hero h1 {
  white-space: pre-line;
}

html[lang="zh-CN"] .intro-wordmark {
  font-size: clamp(36px, 7vw, 92px);
}

.section-head::before {
  color: var(--accent);
}

.photo-button:hover img,
.photo-button:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
}

.about-portrait::after {
  border-color: color-mix(in srgb, var(--accent) 64%, transparent);
}

.qr-card {
  background: rgba(255, 255, 255, 0.34);
}

.site-footer {
  background: #171b18;
  border-top-color: #171b18;
  color: rgba(241, 240, 232, 0.58);
}

.site-footer strong {
  color: #f1f0e8;
}

.site-footer p {
  color: rgba(241, 240, 232, 0.58);
}

/* Keep the entrance frame cinematic while the portfolio uses the paper palette. */
.site-intro {
  --paper: #f1f0e8;
  --accent: #d6dd70;
  --line: rgba(241, 240, 232, 0.16);
  background: #0b0d0b;
}
