@font-face {
  font-family: FZYouHJW;
  src: url("/assets/media/FZYouHJW-ChaoXi.woff") format("woff");
  font-weight: 200;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b2b2b;
  --text: #555;
  --muted: #888;
  --caption: #efefef;
  --tile-height: 280px;
  --gap: 20px;
  --wrap-width: 1260px;
  --columns: 4;
  font: 16px/1.5 Raleway, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); }
a { color: inherit; text-underline-offset: 0.16em; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid #9a281c; outline-offset: 2px; }

.wrap {
  width: min(var(--wrap-width), calc(100% - 20px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: 0 auto auto 0;
  padding: 10px 16px;
  background: #fff;
  transform: translateY(-140%);
}
.skip-link:focus { transform: none; }

.site-header { background: #fff; }
.header-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 100px;
  padding-top: 28px;
}
.wordmark { display: block; }
.wordmark img { width: 194px; }
.site-nav {
  position: absolute;
  top: 46px;
  right: 12px;
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.site-nav a, .mobile-menu a { color: #8e8e8e; text-decoration: none; }
.site-nav a:hover, .mobile-menu a:hover { color: #2b2b2b; }
.menu-toggle { display: none; }

.main {
  flex: 1;
  padding-block: 10px 20px;
}
.site-footer { background: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 24px;
  padding: 28px 4px 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 32px;
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.footer-contact { display: flex; flex-wrap: wrap; column-gap: 9px; }
.footer-contact a::before { content: "·"; margin-right: 9px; }
.footer-contact a { white-space: nowrap; }

.home-grid, .project-grid, .about-grid, .case-layout {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: var(--gap);
}
.home-grid, .project-grid, .about-grid {
  grid-auto-flow: row dense;
  grid-auto-rows: var(--tile-height);
}
.home-grid { margin-top: 50px; }

.lead-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #131313;
  color: #fff;
}
.tile-picture {
  position: absolute;
  z-index: -2;
  inset: 0;
}
.tile-picture img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.lead-tile::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(0 0 0 / 70%);
  content: "";
}
.home-grid .lead-tile::before { content: none; }
.tile-content { padding: 30px 35px 17px; }
.tile-content h1, .tile-content h2 { color: inherit; }
.tile-label {
  padding-bottom: 12px;
  font-size: 11px;
  line-height: 16.5px;
  font-weight: 700;
  letter-spacing: 2px;
}
.intro-tile, .about-intro {
  grid-column: span 2;
  grid-row: span 2;
}
:is(.intro-tile, .about-intro, .contact-intro) .tile-content { padding: 69px 65px; }
:is(.intro-tile, .about-intro, .contact-intro) .tile-label { padding-bottom: 22px; }
.intro-tile h1, .about-intro h1, .contact-statement {
  margin-top: -5px;
  padding-bottom: 13px;
  font-family: FZYouHJW, serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 60px;
  letter-spacing: -2px;
}
.reel-tile { text-decoration: none; }
.reel-tile h2, .filter-tile h1, .contact-details h1 {
  font-size: 24px;
  font-weight: 400;
  line-height: 31px;
}
.reel-action {
  position: absolute;
  inset: auto 35px 28px;
  font-size: 18px;
  line-height: 27px;
}
.reel-icon, .contact-icon {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #fff;
}
.reel-icon { margin-bottom: 16px; }
.reel-icon img, .contact-icon img { max-width: none; width: 48px; height: 48px; margin: -1px; }
.reel-arrow {
  float: right;
  opacity: 0;
  transform: translateX(-15px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.reel-tile:is(:hover, :focus-visible) .reel-arrow { opacity: 1; transform: none; }

.project {
  position: relative;
  min-width: 0;
  height: var(--tile-height);
  overflow: hidden;
}
.project-link { display: block; height: 100%; text-decoration: none; }
.project-link:focus-visible { outline-offset: -3px; }
.project-image { height: 100%; background: #fff; }
.project-image img { width: 100%; }
.project-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 35px;
  background: var(--caption);
  transform: translateY(57px);
  transition: transform 200ms ease-in-out;
}
.project-link:is(:hover, :focus-visible) .project-caption { transform: translateY(0); }
.project-caption h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.project-category {
  padding-bottom: 2px;
  font: 13px/18px "Open Sans", "Helvetica Neue", Arial, sans-serif;
}
.project-category span { color: var(--muted); margin-right: 5px; }
.project-more {
  display: block;
  padding-top: 34px;
  font-size: 18px;
  line-height: 27px;
}
.project-more span { float: right; font-size: 22px; line-height: 22px; }

.filters { margin-top: 13px; }
.filters ul, .contact-details ul, .info-body ul { list-style-type: circle; }
.filters ul, .contact-details ul {
  margin: 0;
  padding-left: 30px;
  font: 16px/1.5 Raleway, Georgia, "Times New Roman", serif;
}
.filters a { text-decoration: none; }
.filters a:hover, .filters a[aria-current="page"]:not([href="/portfolio/"]) { text-decoration: underline; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  align-items: start;
  gap: var(--gap);
}
.service-primary { grid-column: span 2; }
.info-image img { width: 100%; }
.info-body { padding: 30px 35px 19px; }
.info-body h2 { font-size: 24px; font-weight: 600; line-height: 31px; margin-bottom: 13px; }
.info-body h3 { font-size: 18px; font-weight: 600; line-height: 24px; margin-bottom: 13px; }
.info-body p { margin-bottom: 13px; word-break: break-all; }
.info-body ul, .info-body ol {
  margin: 0;
  padding: 0 0 13px 30px;
  font: 16px/1.5 Raleway, Georgia, "Times New Roman", serif;
}
.service-card .info-body h2 { margin-bottom: 26px; }
.service-card:not(.service-primary) .info-body { padding-bottom: 32px; }
.service-primary .info-body { padding: 45px 50px 34px; }
.service-primary .info-body h2 { font-size: 30px; line-height: 40px; }

.about-card { position: relative; overflow: hidden; }
.about-card .info-body { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.about-card .info-body p { margin-bottom: 0; }
.about-image {
  position: absolute;
  inset: 0;
  background: #fff;
  transition: transform 330ms ease-in-out;
}
.about-image img { width: 100%; height: 100%; }
.about-card:is(:hover, :focus) .about-image { transform: translateX(100%); }

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.contact-intro { min-height: 580px; }
.contact-statement { padding-top: 60px; }
.contact-panel .tile-picture img { object-fit: cover; }
.contact-icon { margin: 5px 0 16px; }
.contact-details ul { margin-top: 13px; overflow-wrap: anywhere; }

.case-layout { align-items: start; grid-auto-flow: row dense; }
.case-media { display: grid; gap: 12px; grid-column: span calc(var(--columns) - 1); min-width: 0; }
.wide-case .case-media { grid-column: 1 / -1; }
.case-info { padding: 30px 35px 17px; }
.case-info h1 { font-size: 24px; line-height: 31px; font-weight: 600; margin-bottom: 13px; overflow-wrap: anywhere; }
.case-info dl > div + div { margin-top: 13px; }
.case-info dd { margin-top: 8px; overflow-wrap: anywhere; }
.case-info dt { font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.share-button {
  padding: 16px 0 0;
  margin-top: 22px;
  width: 100%;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  border-top: 1px solid #d8d8d8;
}
.share-button:hover { text-decoration: underline; }
.share-status:not(:empty) { margin-top: 5px; font-size: 13px; }
.video-player iframe, .case-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #151515;
}
.external-video { display: inline-block; margin-top: 5px; font-size: 14px; }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-single { grid-template-columns: minmax(0, 1fr); }
.gallery-link { display: block; cursor: zoom-in; }
.gallery-link img { width: 100%; }
.cover-only { background: #1c1c1c; }
.cover-only img { width: min(100%, 38rem); margin: auto; }
.media-note { padding: 12px 16px; border-left: 2px solid #888; }
.attachment img { margin-top: 16px; }

.case-carousel { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  align-items: start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track .gallery-link { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-track img { aspect-ratio: var(--slide-ratio, 1.6); object-fit: contain; }
.case-carousel [data-carousel-step] {
  position: absolute;
  inset-block-start: 50%;
  z-index: 1;
  width: 54px;
  height: 74px;
  padding: 3px;
  opacity: 0;
  transform: translateY(-50%);
  background: #fff;
  border: 0;
  transition: inset 330ms ease, opacity 330ms ease;
}
.case-carousel [data-carousel-step="-1"] { left: -55px; }
.case-carousel [data-carousel-step="1"] { right: -55px; }
.case-carousel:is(:hover, :focus-within) [data-carousel-step] { opacity: 1; }
.case-carousel:is(:hover, :focus-within) [data-carousel-step="-1"] { left: 40px; }
.case-carousel:is(:hover, :focus-within) [data-carousel-step="1"] { right: 40px; }
dialog { color: inherit; }
.mobile-menu { display: none; }

.media-dialog {
  width: min(59rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid #3d3d3d;
  color: #fff;
  background: #191919;
}
.media-dialog::backdrop { background: rgb(0 0 0 / 79%); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #444;
}
.dialog-bar h2 { font-size: 1.1rem; }
.dialog-bar button, .lightbox-controls button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: #fff;
  background: #272727;
  border: 1px solid #595959;
}
.dialog-bar button { font-size: 1.55rem; line-height: 1; }
.dialog-bar button:hover, .lightbox-controls button:hover { background: #414141; }
.dialog-body .external-video { margin: 0.75rem 1rem; color: #fff; }
.lightbox { width: min(76rem, calc(100% - 2rem)); }
.lightbox img {
  width: 100%;
  height: min(70vh, 50rem);
  object-fit: contain;
}
.lightbox-controls { display: flex; justify-content: center; gap: 0.65rem; padding: 0.65rem; }
.lightbox-controls button { display: block; padding: 0.35rem 0.9rem; }

@media (max-width: 1399px) and (min-width: 980px) {
  .header-inner { padding-top: 23px; }
}

@media (max-width: 1299px) {
  :root { --wrap-width: 940px; --columns: 3; }
}

@media (min-width: 980px) and (max-width: 1299px) {
  .service-primary { grid-row: span 2; }
  .contact-intro .tile-content { padding-inline: 35px; }
  .contact-statement { font-size: 38px; line-height: 48px; padding-top: 48px; }
}

@media (max-width: 979px) {
  :root { --wrap-width: 620px; --columns: 2; }
  .header-inner { width: auto; margin-inline: 45px; }
  .site-nav { right: 0; gap: 12px; flex-wrap: wrap; }
  body:has(.menu-toggle:not([hidden])) .site-nav { display: none; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    font: 14px/1 Arial, sans-serif;
    text-transform: uppercase;
  }
  .menu-toggle span {
    width: 16px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px currentColor, 0 -4px currentColor;
  }
  .mobile-menu[open] {
    display: block;
    position: fixed;
    inset: 0 0 auto auto;
    width: min(200px, 90vw);
    max-width: none;
    margin: 0;
    padding: 34px 44px 20px;
    background: #1d1d1d;
    color: #8e8e8e;
    border: 0;
  }
  .mobile-menu::backdrop { background: transparent; }
  .mobile-menu nav { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; }
  .mobile-menu a { padding: 7px 0; }
  .mobile-menu a:is(:hover, :focus-visible) { color: #eee; }
  .mobile-menu [data-close] {
    position: absolute;
    top: 26px;
    right: 32px;
    padding: 4px 8px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 26px;
  }
  .site-header, .main, .site-footer { transition: transform 330ms cubic-bezier(0.33, 0, 0.2, 1); }
  body:has(.mobile-menu[open]) :is(.site-header, .main, .site-footer) { transform: translateX(-200px); }
  .home-grid { margin-top: 1px; }
  .case-media { grid-column: 1 / -1; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  :root { --wrap-width: 300px; --columns: 1; }
  .main { padding-top: 10px; }
  .home-grid, .about-grid { grid-auto-rows: auto; }
  .intro-tile, .about-intro { grid-column: auto; grid-row: auto; }
  :is(.intro-tile, .about-intro, .contact-intro) .tile-content { padding: 30px 35px 17px; }
  :is(.intro-tile, .about-intro, .contact-intro) .tile-label { padding-bottom: 12px; }
  .intro-tile h1, .about-intro h1, .contact-statement {
    margin-top: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 31px;
    letter-spacing: normal;
    overflow-wrap: anywhere;
  }
  .reel-tile, .about-card { height: var(--tile-height); }
  .project-caption, .case-info { padding-inline: min(35px, 11vw); }
  .service-primary { grid-column: auto; }
  .service-primary .info-body { padding: 30px 35px 17px; }
  .service-primary .info-body h2 { font-size: 24px; line-height: 31px; }
  .contact-intro { min-height: var(--tile-height); }
  .contact-statement { padding-top: 31px; }
  .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-single { grid-template-columns: 1fr; }
  .footer-inner { line-height: 24px; }
}

@media (max-width: 399px) {
  .header-inner { margin-inline: 10px; }
  .site-nav { top: 34px; max-width: 45%; }
  .wordmark img { width: min(194px, 55vw); }
}

@media (hover: none) {
  .case-carousel [data-carousel-step] { opacity: 1; width: 36px; height: 48px; }
  .case-carousel:is(:hover, :focus-within) [data-carousel-step="-1"], .case-carousel [data-carousel-step="-1"] { left: 8px; }
  .case-carousel:is(:hover, :focus-within) [data-carousel-step="1"], .case-carousel [data-carousel-step="1"] { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
