@font-face {
  font-family: Anybody;
  src: url(assets/fonts/anybody.woff2) format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 150%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #111317;
  --panel: #1a1d23;
  --paper: #f3f2ea;
  --quiet: #aeb2bb;
  --line: #373a42;
  --accent: #daf584;
  --sans: Anybody, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --fine: "Courier New", Courier, "PingFang SC", "Microsoft YaHei", monospace;
  --page-gutter: clamp(20px, 3.6vw, 96px);
  --gallery-width: calc(100% - 2 * var(--page-gutter));
  --shell: min(1440px, var(--gallery-width));
  --gutter: clamp(18px, 2vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 300 16px/1.6 var(--fine); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font: inherit; font-family: var(--sans); font-weight: 700; font-stretch: 118%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
a, button, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 4px; }
img { display: block; width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.header-inner, .work > .shell { width: var(--gallery-width); }
.section-space { padding-block: clamp(74px, 9vw, 144px); }
.skip { position: fixed; z-index: 9; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px; background: var(--paper); color: var(--ink); }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 4; background: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; width: max-content; gap: 10px; font: 700 28px/.9 var(--sans); font-stretch: 116%; letter-spacing: -.025em; }
.studio-logo { width: auto; height: clamp(50px, 5vw, 69px); object-fit: contain; margin-block: 4px; }
.main-nav, .header-actions { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.main-nav a, .header-contact, .language { font-family: var(--sans); display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 550; }
.main-nav a, .header-contact { font-stretch: 118%; font-weight: 500; letter-spacing: .095em; text-transform: uppercase; }
.main-nav a { color: var(--quiet); }
.main-nav a:hover, .main-nav a:focus-visible, .language:hover, .footer-inner > a:last-child:hover { color: var(--accent); }
.header-actions { justify-content: flex-end; gap: 17px; }
.language { border: 0; background: transparent; padding: 0 4px; white-space: nowrap; }
.header-contact { padding-inline: 14px; gap: 9px; border: 1px solid var(--line); white-space: nowrap; }
.header-contact::after { content: "↗"; font-family: var(--sans); font-size: 1rem; color: var(--accent); }
.header-contact:hover { border-color: var(--accent); }

.work { padding-block: clamp(24px, 3.2vw, 54px) clamp(64px, 8vw, 128px); }
.work-heading { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); align-items: end; gap: var(--gutter); margin-bottom: clamp(13px, 1.5vw, 26px); }
.work-heading h1 { font-size: clamp(2.7rem, 3.9vw, 4.8rem); letter-spacing: .006em; line-height: 1; }
.work-heading p { max-width: 25ch; justify-self: end; padding-bottom: .35em; color: var(--quiet); font-size: clamp(.95rem, 1.12vw, 1.12rem); font-stretch: 105%; line-height: 1.45; }
.work-controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-block: 1px solid var(--line); margin-bottom: clamp(14px, 1.4vw, 26px); }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(15px, 2.3vw, 38px); }
.filters button { font-family: var(--sans); position: relative; display: block; min-height: 49px; padding: 0; border: 0; background: none; color: var(--quiet); font-size: .9rem; font-weight: 500; font-stretch: 112%; letter-spacing: .015em; white-space: nowrap; }
.filters button:hover { color: var(--paper); }
.filters button[aria-pressed="true"] { color: var(--accent); }
.filters button[aria-pressed="true"]::after { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); content: ""; }
.work-count, .eyebrow, .project-category { font: 300 .72rem/1.45 var(--fine); letter-spacing: .095em; text-transform: uppercase; }
.work-count { flex: none; color: var(--quiet); }
.work-tools { display: flex; flex: none; align-items: center; gap: clamp(12px, 1.6vw, 25px); }
.preview-toggle { min-height: 44px; padding: 0; border: 0; background: none; color: var(--quiet); font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.preview-toggle:hover { color: var(--paper); }

.work-grid { display: grid; gap: clamp(15px, 1.55vw, 34px); margin-inline: calc(-1 * var(--page-gutter)); }
.project-card { min-width: 0; }
.project { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); align-items: stretch; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.project:focus-visible { outline-offset: -3px; }
.project-card:nth-child(even) .project { grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); }
.project-image { grid-area: 1 / 2; display: block; position: relative; overflow: hidden; min-width: 0; height: clamp(285px, 24.6vw, 650px); background: #242832; }
.project-card:nth-child(even) .project-image { grid-column: 1; }
.project-image img, .project-preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-preview { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.project-preview.is-playing { opacity: 1; }
.project-image.is-portrait { background: #141e2b; }
.project-image.is-portrait :is(img, video) { object-position: center 38%; }
.project-info { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 22px var(--page-gutter); gap: clamp(8px, 1vw, 16px); }
.project-card:nth-child(even) .project-info { grid-column: 2; }
.project-title { display: grid; gap: .08em; max-width: 100%; font: 700 clamp(1.9rem, 3vw, 4.5rem)/1.02 var(--sans); font-stretch: 114%; letter-spacing: -.015em; overflow-wrap: anywhere; }
.project-title-lead { font: 300 .9em/1.1 var(--fine); }
.project-watch { display: inline-flex; align-items: center; gap: 9px; margin-top: .42em; color: var(--accent); font-size: .78rem; font-weight: 300; letter-spacing: .04em; }
.project-watch::before { content: ""; border-block: 4px solid transparent; border-left: 6px solid currentColor; }
.project:hover .project-watch, .project:focus-visible .project-watch { text-decoration: underline; text-underline-offset: 4px; }
.project-credits { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: clamp(32px, 5vw, 78px) var(--page-gutter) clamp(15px, 2.1vw, 36px); background: linear-gradient(0deg, #090a0cf5, #090a0cb0 57%, transparent); color: var(--paper); opacity: 0; transform: translateY(7px); transition: opacity .24s ease, transform .24s ease; pointer-events: none; }
.project-image:hover .project-credits, .project:focus-visible .project-credits { opacity: 1; transform: none; }
.project-credits { justify-items: center; gap: 2px; text-align: center; text-shadow: 0 1px 3px #000b; }
.project-credits, .project-credits .project-category, .dialog-credits {
  font: 300 clamp(.78rem, .9vw, .94rem)/1.45 var(--fine);
}
.project-credits .project-category { font-size: .74rem; letter-spacing: .06em; color: var(--paper); }
.project-credit-title { font-size: 1.08em; margin-bottom: .12em; }
.project-credit-detail { font-size: .85rem; line-height: 1.4; max-width: 58ch; }
.project-category { color: var(--quiet); }

.eyebrow { color: var(--accent); margin-bottom: 16px; }
.section-heading { display: grid; grid-template-columns: 7fr 4fr; align-items: end; gap: var(--gutter); margin-bottom: clamp(36px, 5.5vw, 82px); }
.section-heading h2, .about h2, .contact h2 { font-size: clamp(2.35rem, 4.65vw, 4.8rem); line-height: 1.04; letter-spacing: -.01em; }
.section-heading p:not(.eyebrow), .about p:not(.eyebrow) { max-width: 44ch; color: var(--quiet); }
.services { background: var(--panel); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.service-grid article { padding: 26px var(--gutter) 32px; }
.service-grid article:first-child { padding-inline-start: 0; }
.service-grid article + article { border-inline-start: 1px solid var(--line); }
.service-grid h3, .workflow h3 { font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.19; font-stretch: 105%; letter-spacing: -.005em; }
.service-grid p, .workflow p { color: var(--quiet); }
.service-grid p { margin-top: 11px; }
.workflow { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gutter); align-items: start; padding-top: 28px; }
.about-inner { display: grid; grid-template-columns: 6fr 5fr; align-items: end; gap: clamp(25px, 6vw, 100px); }
.about .about-lead { font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.3; color: var(--paper); letter-spacing: 0; margin-bottom: 15px; }
.about h2 { max-width: 14ch; }

.contact { color-scheme: light; background: var(--accent); color: var(--ink); --focus: var(--ink); }
.contact-inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 7vw, 110px); }
.contact .eyebrow, .contact-intro, .contact .form-note, .contact .form-status, .contact small { color: #384421; }
.contact h2 { max-width: 14ch; }
.contact-intro { margin-top: 20px; max-width: 35ch; }
.studio-location { margin-top: .25rem; color: #384421; font-size: .9375rem; }
.email { font-family: var(--sans); display: inline-block; margin-top: 18px; padding-block: 4px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.brief-form { min-width: 0; display: grid; gap: 17px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.brief-form label { min-width: 0; display: grid; gap: 6px; }
.brief-form label > span { font-family: var(--sans); font-size: .875rem; font-weight: 640; }
.brief-form small { font-family: var(--fine); font-size: .78rem; font-weight: 300; }
.brief-form input, .brief-form select, .brief-form textarea { min-height: 46px; min-width: 0; width: 100%; padding: 10px 11px; background: #edf9bf; border: 1px solid #677746; border-radius: 0; color: var(--ink); }
.brief-form textarea { min-height: 112px; resize: vertical; }
.brief-form ::placeholder { color: #4a5738; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { font-family: var(--sans); display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 16px; text-align: center; border: 1px solid var(--ink); background: transparent; font-size: .875rem; font-weight: 650; transition: background .18s, color .18s; }
.button-accent { background: var(--ink); color: var(--accent); }
.button-accent:hover { background: #30351f; }
.button-copy:hover { background: var(--ink); color: var(--accent); }
.form-note, .form-status { font-size: .875rem; }
.form-status:empty { display: none; }
.site-footer { padding-block: 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--quiet); font-size: .875rem; }
.footer-inner .brand { color: var(--paper); font-size: clamp(15px, 2.1vw, 27px); white-space: nowrap; }
.footer-logo { width: clamp(38px, 4vw, 54px); height: auto; }

dialog { background: var(--panel); color: var(--paper); border: 1px solid var(--line); padding: 0; max-width: min(900px, calc(100% - 28px)); width: 100%; max-height: calc(100% - 28px); box-shadow: 0 28px 110px #000b; }
dialog::backdrop { background: #0b0d11de; }
.dialog-top { min-height: 56px; display: flex; justify-content: space-between; align-items: center; padding-inline: 22px; }
.dialog-top .eyebrow { margin: 0; }
.close-dialog { background: none; border: 0; font-size: 2rem; line-height: 1; min-width: 44px; min-height: 44px; }
.dialog-copy { padding: 23px; }
.dialog-copy h2 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.1; letter-spacing: .005em; margin-block: 7px 10px; }
.dialog-copy .video-note { margin-top: 7px; font-size: .85rem; color: var(--quiet); }
.dialog-video { display: block; width: 100%; max-height: min(62dvh, 540px); background: #090a0c; aspect-ratio: 16/9; }
.dialog-video.portrait { aspect-ratio: auto; height: min(57dvh, 530px); }
.dialog-inquiry { margin-top: 17px; }
.button-light { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.button-light:hover { background: var(--paper); }

html[lang="zh-CN"] :is(h1, h2, h3, .project-title) { font-stretch: 100%; letter-spacing: .012em; }
html[lang="zh-CN"] .work-heading h1 { font-stretch: 118%; letter-spacing: .006em; }
html[lang="zh-CN"] .about h2 { max-width: 11em; }

@media (max-width: 1100px) {
  :root { --page-gutter: 32px; }
}
@media (max-width: 780px) {
  :root { --page-gutter: 20px; }
  html { scroll-padding-top: 78px; }
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; gap: 10px; }
  .main-nav { display: none; }
  .brand { font-size: 24px; gap: 8px; }
  .header-actions { gap: 10px; }
  .header-contact { padding-inline: 10px; min-height: 40px; font-stretch: 105%; font-size: .8rem; }
  .work-heading { grid-template-columns: 1fr; gap: 13px; }
  .work-heading h1 { font-size: clamp(1.8rem, 7.6vw, 3.6rem); text-wrap: balance; }
  .work-heading p { justify-self: start; max-width: none; padding: 0; }
  .work-controls { gap: 12px; }
  .filters { gap: 0 17px; }
  .filters button { min-height: 43px; font-size: .845rem; }
  .work-grid { margin-inline: 0; gap: 24px; }
  .project { display: flex; flex-direction: column; }
  .project-image { height: auto; aspect-ratio: 16/10; }
  .project-info { padding: 13px 0 16px; gap: 5px; border-bottom: 1px solid var(--line); }
  .project-title { font-size: clamp(1.35rem, 4.4vw, 2rem); }
  .project-credits { padding-inline: 16px; }
  .section-heading, .about-inner, .contact-inner, .workflow { grid-template-columns: 1fr; gap: 18px; }
  .contact-inner { gap: 32px; }
  .about h2 { max-width: 14ch; }
}
@media (max-width: 540px) {
  :root { --page-gutter: 16px; }
  .work-controls { display: block; position: relative; }
  .work-tools { justify-content: flex-end; border-top: 1px solid var(--line); }
  .filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; padding-block: 2px; }
  .filters button { min-height: 44px; padding: 4px 2px; font-size: .8rem; font-stretch: 94%; letter-spacing: 0; line-height: 1.2; text-align: start; white-space: normal; }
  .filters button[aria-pressed="true"]::after { bottom: 3px; }
  .work-count { display: none; }
  .preview-toggle { min-height: 34px; }
  .project-credit-detail { font-size: .76rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article, .service-grid article:first-child { padding: 20px 0; }
  .service-grid article + article { border-inline-start: 0; border-top: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; gap: 17px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > p { width: 100%; order: 3; }
}
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .brand { font-size: 21px; font-stretch: 105%; }
  .header-actions { gap: 6px; }
  .header-contact { padding-inline: 8px; font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (hover: none) {
  .project-credits { opacity: 1; transform: none; }
  .project-credits :is(.project-category, .project-credit-title) { display: none; }
  .project-credits:not(:has(.project-credit-detail)) { display: none; }
}

.dialog-credits { display: grid; gap: .2rem; }
