:root {
  --home-ink: #101319;
  --home-ink-soft: #191f27;
  --home-paper: #ede8de;
  --home-paper-dim: #c7c0b4;
  --home-gold: #e1b85c;
  --home-red: #a62e39;
  --home-teal: #477d7a;
  --home-line: rgba(237, 232, 222, 0.18);
  --home-width: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--home-paper);
  background: var(--home-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
body::selection { color: var(--home-ink); background: var(--home-gold); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.home-inner { width: var(--home-width); margin: 0 auto; }

.home-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  min-height: 74px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.home-header.is-scrolled {
  background: rgba(16, 19, 25, 0.96);
  border-color: var(--home-line);
}
.home-brand { display: inline-flex; flex-direction: column; width: fit-content; line-height: 1; }
.home-brand strong { color: var(--home-gold); font-family: STKaiti, KaiTi, serif; font-size: 23px; }
.home-brand span { margin-top: 6px; color: var(--home-paper-dim); font-size: 9px; font-weight: 700; }
.home-nav { display: flex; gap: 30px; font-size: 13px; }
.home-nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.home-nav a:hover, .home-nav a:focus-visible { border-color: var(--home-gold); }
.header-work-link {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(225, 184, 92, 0.5);
  color: var(--home-gold);
  font-size: 12px;
}

.home-hero {
  position: relative;
  height: min(760px, calc(100svh - 72px));
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--home-line);
}
.home-hero-bg, .home-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero-bg { object-fit: cover; object-position: center; filter: saturate(0.78) contrast(1.04) brightness(0.78); }
.home-hero-shade { background: rgba(11, 14, 19, 0.46); }
.home-hero-copy {
  position: relative;
  z-index: 2;
  width: var(--home-width);
  margin: 0 auto;
  padding-top: 155px;
}
.home-eyebrow { margin: 0 0 22px; color: var(--home-gold); font-size: 12px; font-weight: 800; }
.home-hero h1 { margin: 0; font-family: STKaiti, KaiTi, serif; font-size: 82px; line-height: 0.95; }
.home-hero-en { margin: 15px 0 0; color: var(--home-paper-dim); font-size: 20px; font-weight: 700; }
.home-lead { max-width: 500px; margin: 30px 0 0; color: #f5f0e7; font-size: 18px; line-height: 1.8; }
.home-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.home-primary, .home-secondary {
  min-height: 48px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-gold);
  font-size: 13px;
  font-weight: 800;
}
.home-primary { color: var(--home-ink); background: var(--home-gold); }
.home-secondary { color: var(--home-gold); background: rgba(16, 19, 25, 0.48); }
.home-primary:hover, .home-primary:focus-visible { color: var(--home-gold); background: var(--home-ink); }
.home-secondary:hover, .home-secondary:focus-visible { background: var(--home-ink); }
.current-work-mark {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--home-red);
  display: grid;
  gap: 3px;
}
.current-work-mark span { color: var(--home-gold); font-size: 10px; font-weight: 800; }
.current-work-mark strong { font-family: STKaiti, KaiTi, serif; font-size: 24px; }
.current-work-mark small { color: var(--home-paper-dim); font-size: 10px; }

.works-section { padding: 110px 0 126px; color: #17191d; background: var(--home-paper); }
.home-section-heading { display: grid; grid-template-columns: 0.35fr 1.65fr; gap: 28px; align-items: end; }
.home-section-heading > p { margin: 0; color: var(--home-red); font-size: 12px; font-weight: 800; }
.home-section-heading h2 { margin: 0; font-family: STKaiti, KaiTi, serif; font-size: 48px; line-height: 1.2; }
.featured-work { margin-top: 54px; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr); gap: 52px; align-items: center; }
.featured-art { overflow: hidden; border: 1px solid rgba(16, 19, 25, 0.2); border-radius: 4px; background: #11131a; }
.featured-art img { width: 100%; height: auto; transition: transform 280ms ease; }
.featured-art:hover img, .featured-art:focus-visible img { transform: scale(1.015); }
.work-status { margin: 0 0 14px; color: var(--home-red); font-size: 11px; font-weight: 800; }
.featured-copy h3 { margin: 0; font-family: STKaiti, KaiTi, serif; font-size: 48px; }
.work-en { margin: 8px 0 0; color: #69675f; font-size: 13px; font-weight: 700; }
.work-summary { margin: 26px 0 0; color: #4d4b46; font-size: 15px; line-height: 1.85; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.work-tags span { padding: 6px 9px; border-left: 2px solid var(--home-teal); color: #454943; font-size: 11px; font-weight: 700; }
.work-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.work-link { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--home-red); font-size: 13px; font-weight: 800; }
.work-link:hover, .work-link:focus-visible { color: var(--home-red); }

.studio-section { padding: 125px 0 136px; background: var(--home-ink-soft); }
.studio-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 90px; }
.studio-section .home-section-heading { display: block; }
.studio-section .home-section-heading > p { margin-bottom: 22px; color: var(--home-gold); }
.studio-section .home-section-heading h2 { font-size: 52px; }
.studio-copy { padding-top: 42px; color: var(--home-paper-dim); font-size: 15px; line-height: 1.9; }
.studio-copy > p { margin: 0 0 20px; }
.studio-copy dl { margin: 34px 0 0; border-top: 1px solid var(--home-line); }
.studio-copy dl div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-bottom: 1px solid var(--home-line); }
.studio-copy dt { color: #8f9e9b; font-size: 11px; }
.studio-copy dd { margin: 0; color: var(--home-paper); font-size: 12px; }

.home-footer { min-height: 120px; border-top: 1px solid var(--home-line); }
.footer-layout { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: #8e918d; font-size: 11px; }
.footer-layout > p { margin: 0; }
.footer-layout > p:first-child { display: flex; align-items: baseline; gap: 9px; }
.footer-layout > p:first-child strong { color: var(--home-gold); font-family: STKaiti, KaiTi, serif; font-size: 18px; }
.footer-layout nav { display: flex; gap: 22px; }
.footer-layout a:hover, .footer-layout a:focus-visible { color: var(--home-gold); }
.footer-layout > p:last-child { text-align: right; }
.site-disclaimer {
  width: var(--home-width);
  margin: -18px auto 24px;
  color: #777c79;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.reveal-home { opacity: 0; transform: translateY(20px); transition: opacity 480ms ease, transform 480ms ease; }
.reveal-home.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --home-width: min(100% - 36px, 720px); }
  .home-header { min-height: 66px; padding: 10px 18px; grid-template-columns: 1fr auto; }
  .home-nav { display: none; }
  .home-hero { height: calc(100svh - 66px); min-height: 600px; }
  .home-hero-copy { padding-top: 135px; }
  .home-hero h1 { font-size: 66px; }
  .home-hero-bg { object-position: 62% center; }
  .home-section-heading { grid-template-columns: 1fr; gap: 16px; }
  .featured-work { grid-template-columns: 1fr; gap: 34px; }
  .studio-layout { grid-template-columns: 1fr; gap: 30px; }
  .studio-copy { padding-top: 0; }
}

@media (max-width: 560px) {
  :root { --home-width: calc(100% - 28px); }
  .home-brand strong { font-size: 20px; }
  .header-work-link { padding: 8px 10px; font-size: 10px; }
  .home-hero { min-height: 590px; }
  .home-hero-copy { padding-top: 118px; }
  .home-hero h1 { font-size: 52px; }
  .home-hero-en { font-size: 16px; }
  .home-lead { max-width: 310px; font-size: 15px; }
  .home-actions { align-items: stretch; flex-direction: column; width: 210px; }
  .home-primary, .home-secondary { width: 100%; }
  .current-work-mark { right: 14px; bottom: 16px; }
  .works-section, .studio-section { padding-top: 82px; padding-bottom: 92px; }
  .home-section-heading h2, .studio-section .home-section-heading h2 { font-size: 38px; }
  .featured-copy h3 { font-size: 40px; }
  .studio-copy dl div { grid-template-columns: 90px 1fr; }
  .home-footer { padding: 28px 0; }
  .footer-layout { min-height: 0; grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .footer-layout > p:first-child { justify-content: center; }
  .footer-layout nav { justify-content: center; flex-wrap: wrap; }
  .footer-layout > p:last-child { text-align: center; }
  .site-disclaimer { margin: 20px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal-home { opacity: 1; transform: none; }
}
