:root {
  color-scheme: light;
  --ink: #151512;
  --paper: #f2f0e8;
  --black: #111110;
  --light: #f5f3eb;
  --acid: #dbf873;
  --muted: #65645b;
  --line: #d0cec4;
  --gutter: clamp(1.25rem, 5.1vw, 5.75rem);
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button[hidden], [hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.frame { width: min(100%, 112rem); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: fixed; top: -5rem; z-index: 10; left: 1rem; background: var(--acid); color: var(--ink); padding: .8rem 1rem; }
.skip:focus { top: 1rem; }
.eyebrow { font-size: .875rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; line-height: 1.45; }
.pip { display: inline-block; inline-size: .48rem; block-size: .48rem; margin-right: .75rem; border-radius: 50%; background: var(--acid); vertical-align: .12em; }

.hero {
  min-height: min(51rem, 92svh);
  min-height: clamp(38rem, 92svh, 55rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #1b211c;
  color: var(--light);
}

.hero-media, .hero-media::after, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -1; }
.hero-media img, .hero-media video { object-fit: cover; object-position: 56% 48%; }
.hero-media video { opacity: 0; transition: opacity .35s ease; }
.hero-media video.is-visible { opacity: 1; }
.hero-media::after {
  content: "";
  background: linear-gradient(90deg, rgb(12 13 11 / 74%) 0%, rgb(12 13 11 / 53%) 36%, rgb(12 13 11 / 17%) 72%), linear-gradient(0deg, rgb(10 12 11 / 47%), transparent 24%, transparent 77%, rgb(10 12 11 / 40%));
}

.masthead { min-height: 6.375rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.wordmark { justify-self: start; display: inline-block; font-size: clamp(1.65rem, 2.85vw, 2.65rem); line-height: .88; font-weight: 900; letter-spacing: -.09em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--acid); margin-left: .035em; }
.main-nav { display: flex; gap: clamp(1.5rem, 4vw, 3.8rem); align-items: center; }
.main-nav a { font-size: .95rem; font-weight: 550; text-decoration: none; padding-block: .6rem; }
.main-nav a:hover, .languages button:hover, .hero-link:hover { color: var(--acid); }
.languages { display: flex; align-items: center; gap: .2rem; justify-self: end; white-space: nowrap; }
.languages button { border: 0; background: none; padding: .55rem .35rem; min-height: 2.75rem; font-size: .875rem; color: #dddcd4; cursor: pointer; }
.languages button[aria-pressed="true"] { color: var(--acid); }
.languages span { color: #bbb8a9; }

.hero-main { align-self: end; padding-top: 3rem; padding-bottom: clamp(2.1rem, 6.1vh, 4.8rem); }
.hero-main .eyebrow { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hero h1 { font-size: clamp(4.25rem, 9.5vw, 11.5rem); line-height: .865; letter-spacing: -.09em; font-weight: 760; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: .065em; }
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(1.7rem, 4.8vw, 4.1rem);
}
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.125rem;
  border: 1px solid rgb(250 247 235 / 69%);
  padding: .75rem 1.2rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
  background: rgb(12 13 11 / 24%);
}
.hero-link:hover { border-color: var(--acid); }
.motion, .close-film {
  background: rgb(17 17 16 / 38%);
  border: 1px solid rgb(250 247 235 / 62%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  cursor: pointer;
}
.motion:hover, .close-film:hover { color: var(--acid); border-color: var(--acid); }
.motion span, .play-icon::before {
  width: 0;
  height: 0;
  border-top: .31rem solid transparent;
  border-bottom: .31rem solid transparent;
  border-left: .51rem solid currentColor;
  margin-left: .13rem;
}
.motion[aria-pressed="true"] span { width: .56rem; height: .67rem; margin: 0; border: 0; border-inline: .12rem solid currentColor; }

.work { padding-block: clamp(4.5rem, 9vw, 9rem) clamp(4.75rem, 10vw, 10rem); }
.work-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; margin-bottom: clamp(1.65rem, 3.25vw, 3.2rem); }
.work h2, .studio h2, .contact h2 { font-size: clamp(3.35rem, 7.1vw, 8.7rem); letter-spacing: -.083em; font-weight: 730; line-height: .91; }
.work-heading .eyebrow { color: var(--muted); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.31fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.project-button { border: 0; background: none; display: block; width: 100%; text-align: left; padding: 0; cursor: pointer; }
.same-room { padding-top: clamp(0rem, 4.3vw, 4.8rem); }
.project-image { display: block; position: relative; overflow: hidden; background: #282925; aspect-ratio: 3/2; }
.same-room .project-image { aspect-ratio: 4/3; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.project-button:hover img { transform: scale(1.035); }
.play-icon { position: absolute; display: grid; place-items: center; bottom: 1rem; right: 1rem; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 78%); background: rgb(16 16 15 / 43%); color: var(--light); transition: color .2s, background .2s, border-color .2s; }
.play-icon::before { content: ""; }
.project-button:hover .play-icon { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.project-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .38rem 1rem; padding-top: 1.08rem; }
.project-title { font-size: clamp(1.45rem, 3vw, 3.15rem); line-height: 1; letter-spacing: -.065em; font-weight: 750; }
.project-type { font-size: .9375rem; line-height: 1.4; color: var(--muted); }

.studio { background: #e7e4d9; padding-block: clamp(4rem, 8.5vw, 8.5rem); }
.studio-layout { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3.25fr); gap: clamp(2rem, 5vw, 5rem); }
.studio-label { margin-top: .4rem; }
.studio h2 { font-size: clamp(3rem, 6vw, 7rem); max-width: 11ch; }
.studio-copy > p { max-width: 40rem; margin-top: clamp(1.5rem, 3.1vw, 3rem); font-size: clamp(1.12rem, 1.65vw, 1.55rem); line-height: 1.53; }
.services { list-style: none; margin-top: clamp(1.8rem, 3.6vw, 3.6rem); padding: 0; border-top: 1px solid #bcb9ad; display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.services li { border-bottom: 1px solid #bcb9ad; padding-block: .85rem; font-size: .9375rem; line-height: 1.4; }

.contact { background: var(--black); color: var(--light); }
.contact-inner { padding-top: clamp(4rem, 8.8vw, 9rem); }
.contact h2 { margin-top: 1.15rem; }
.contact-link { display: inline-flex; min-height: 3.15rem; align-items: center; padding: .75rem 1.25rem; background: var(--acid); color: var(--ink); border: 1px solid var(--acid); border-radius: 2rem; margin-top: clamp(1.6rem, 3.5vw, 3.2rem); text-decoration: none; font-weight: 700; }
.contact-link:focus-visible { outline-color: var(--acid); }
.contact-link:hover { background: var(--black); color: var(--acid); }
.footer-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; border-top: 1px solid #44433d; margin-top: clamp(4rem, 8.5vw, 9rem); padding-block: 1.55rem; }
.footer-line p { font-size: .875rem; color: #c5c2b9; line-height: 1.35; }
.footer-line p:last-child { text-align: right; }
.footer-line .wordmark { font-size: 1.5rem; }

.film-dialog { color-scheme: dark; width: min(64rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid #4d4c46; background: #171715; color: var(--light); }
.film-dialog::backdrop { background: rgb(6 6 5 / 83%); }
.film-panel { padding: clamp(1.05rem, 3vw, 2.35rem); }
.film-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.film-bar .eyebrow { color: var(--acid); }
.close-film { position: relative; flex-shrink: 0; }
.close-film span::before, .close-film span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: .1rem; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.close-film span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.film-panel h2 { font-size: clamp(2.15rem, 6vw, 5.3rem); line-height: .95; letter-spacing: -.075em; margin-top: .2rem; }
.film-panel > p { margin-top: .6rem; line-height: 1.48; max-width: 39rem; }
.film-panel video { width: 100%; max-height: min(54dvh, max(12rem, calc(100dvh - 22rem))); display: block; aspect-ratio: 16/9; margin-top: 1.25rem; background: #080807; }
.film-options { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.film-options:empty { display: none; }
.film-options button { border: 1px solid #6c6b62; background: transparent; color: var(--light); padding: .64rem .85rem; min-height: 2.75rem; cursor: pointer; }
.film-options button[aria-pressed="true"] { border-color: var(--acid); color: var(--acid); }
body:has(.film-dialog[open]) { overflow: hidden; }

html[lang="zh-Hans"] .hero h1 { font-size: clamp(3.3rem, 8vw, 9rem); letter-spacing: -.07em; line-height: 1.02; }
html[lang="zh-Hans"] :is(.work, .studio, .contact) h2 { font-size: clamp(2.65rem, 5.4vw, 6.1rem); letter-spacing: -.065em; line-height: 1.08; }
html[lang="zh-Hans"] .studio h2 { max-width: 14ch; }

@media (max-width: 800px) {
  .masthead { gap: 1rem; min-height: 5rem; }
  .hero h1 { font-size: clamp(3.6rem, 10vw, 6rem); }
  .services { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  .hero { min-height: clamp(36rem, 88svh, 48rem); }
  .masthead { grid-template-columns: 1fr auto; align-content: start; row-gap: .05rem; padding-top: 1rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 1.45rem; }
  .languages { grid-column: 2; grid-row: 1; }
  .hero-main { padding-bottom: 1.75rem; }
  .hero h1 { font-size: clamp(2.7rem, 10.8vw, 4.15rem); letter-spacing: -.085em; }
  .hero-media img, .hero-media video { object-position: 63% center; }
  .hero-media::after { background: linear-gradient(90deg, rgb(12 13 11 / 49%), rgb(12 13 11 / 13%)), linear-gradient(0deg, rgb(10 12 11 / 68%) 4%, rgb(10 12 11 / 24%) 50%, rgb(10 12 11 / 16%) 72%, rgb(10 12 11 / 48%)); }
  .work-grid { grid-template-columns: 1fr; gap: 2.3rem; }
  .same-room { padding-top: 0; }
  .same-room .project-image { aspect-ratio: 3/2; }
  .project-caption { padding-top: .83rem; }
  .studio-layout { grid-template-columns: 1fr; gap: 1.1rem; }
  .footer-line { grid-template-columns: 1fr auto; }
  .footer-line p:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .footer-line p:last-child { grid-row: 1; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .project-button:hover img { transform: none; }
}
