:root {
  --black: #080808;
  --gray: #9c9c9c;
  --line: #b8b8b8;
  --white: #ffffff;
  --red: #f10e18;
  --header-h: 78px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--white);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

img { display: block; width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: var(--header-h);
  padding: 0 3vw;
}

.site-header--over-image {
  position: absolute;
  inset: 0 0 auto;
  color: var(--white);
  background: transparent;
}

.site-header--over-image .brand,
.site-header--over-image .primary-nav { color: transparent; }

.site-header--over-image a:focus-visible,
.site-header--over-image button:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.site-header--light { color: var(--black); background: var(--white); }

.site-header--light .brand {
  width: 160px;
  height: 58px;
  overflow: hidden;
  color: transparent;
  background: url("images/white-pix-logo.jpg") center / contain no-repeat;
}

.brand {
  position: absolute;
  top: 50%;
  left: 50%;
  color: inherit;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  text-decoration: none;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.35vw, 26px);
  font-size: 12px;
}

.primary-nav a,
.language-button {
  text-decoration: none;
  font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .is-current { color: var(--black); }

.language-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-projects { background: var(--black); }

.work-panel {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(470px, 52.25vw, 100vh);
  overflow: hidden;
  background: var(--black);
}

.work-panel img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.work-panel:hover img,
.work-panel:focus-visible img { transform: scale(1.025); filter: brightness(.94); }

.projects-header {
  justify-content: space-between;
  height: 76px;
  padding-inline: 3vw;
}

.browse-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.1vw, 38px);
  font-size: 14px;
}

.browse-nav > strong,
.browse-tab {
  display: inline-flex;
  align-items: center;
  height: 30px;
  line-height: 30px;
}

.browse-nav > strong { font-size: 14px; }

.browse-tab {
  position: relative;
  padding: 0;
  border: 0;
  color: var(--gray);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.browse-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.browse-tab:hover,
.browse-tab:focus-visible,
.browse-tab.is-active { color: var(--black); }

.browse-tab.is-active:not([data-browse-tab="all"])::after { transform: scaleX(1); }

.browse-stage {
  position: relative;
  min-height: 210px;
  padding: 46px 12.75vw 32px;
  background: var(--white);
}

.browse-stage:has(.browse-panel:not([hidden])) { min-height: 330px; }

.browse-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.browse-panel[hidden] { display: none; }

.browse-panel button {
  padding: 0;
  border: 0;
  color: var(--gray);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease;
}

.browse-panel button:hover,
.browse-panel button:focus-visible { color: var(--black); }

.browse-panel--search { width: min(920px, 100%); }

.browse-panel--search input {
  width: 100%;
  padding: 4px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--black);
  border-radius: 0;
  outline: 0;
  color: var(--black);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.browse-panel--search input::placeholder { color: var(--gray); opacity: 1; }
.browse-panel--search input:focus { border-bottom-width: 2px; }

.filter-status {
  position: absolute;
  bottom: 28px;
  left: 12.75vw;
  margin: 0;
  color: var(--gray);
  font-size: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--black);
}

.projects-grid .reveal { opacity: 1; transform: none; }

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 1.503 / 1;
  overflow: hidden;
  background: #111;
}

.project-card[hidden] { display: none; }

.project-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.project-card:hover img,
.project-card:focus-visible img { transform: scale(1.025); filter: brightness(.82); }

.project-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-hover {
  position: absolute;
  z-index: 3;
  top: var(--project-hover-y, 50%);
  left: var(--project-hover-x, 50%);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, calc(-50% - 6px));
  transition: opacity 200ms ease, transform 200ms ease;
}

.project-hover span { font-size: 11px; font-weight: 400; }
.project-card:hover .project-hover, .project-card:focus-visible .project-hover { opacity: 1; transform: translate(-50%, -50%); }

.projects-page .site-footer {
  position: relative;
  min-height: 570px;
  padding-top: 274px;
  border-top: 0;
}
.projects-page .site-footer::before {
  position: absolute;
  top: 240px;
  right: 0;
  left: 0;
  border-top: 1px solid var(--line);
  content: "";
}
.projects-page .footer-cta { font-size: clamp(30px, 3.15vw, 56px); }
.projects-page .footer-bottom { min-height: 210px; }

.about-main { padding-top: 54px; }

.about-main > h1 {
  max-width: 1700px;
  margin: 0;
  padding: 0 2.6vw;
  font-size: clamp(64px, 8.1vw, 154px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .96;
}

.about-copy {
  display: grid;
  gap: 58px;
  width: min(980px, 58%);
  margin: 120px 0 100px;
  margin-left: clamp(220px, 22vw, 420px);
}

.info-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(64px, 7vw, 124px);
  align-items: start;
}

.info-row h2,
.info-row p {
  margin: 0;
  font-size: clamp(15px, 1.08vw, 19px);
  font-weight: 400;
  line-height: 1.14;
}

.studio-image { margin: 0; overflow: hidden; }
.studio-image img { min-height: 480px; object-fit: cover; }
.about-detail {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  width: min(980px, 58%);
  margin: 72px 0 82px;
  margin-left: clamp(220px, 22vw, 420px);
  align-items: start;
}
.about-detail > img {
  display: block;
  width: 100%;
  aspect-ratio: .74;
  object-fit: cover;
}
.about-detail__copy { max-width: 620px; font-size: 16px; line-height: 1.2; }
.about-detail__copy p { margin: 0 0 34px; }

.clients {
  width: 100%;
  margin: 0 auto 185px;
  overflow: hidden;
}

.clients h2 {
  width: min(980px, 58%);
  margin: 0 0 70px;
  margin-left: clamp(220px, 22vw, 420px);
  font-size: clamp(15px, 1.08vw, 19px);
  font-weight: 400;
}

.logo-marquee {
  display: flex;
  overflow: hidden;
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  flex: none;
}

.logo-marquee--left .logo-marquee__track { animation: logo-marquee-left 34s linear infinite; }
.logo-marquee--right .logo-marquee__track { animation: logo-marquee-right 39s linear infinite; }
.logo-marquee--slow .logo-marquee__track { animation-duration: 43s; }

.logo-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
}

.logo-marquee__group img {
  width: auto;
  height: 112px;
  flex: none;
  object-fit: contain;
}

.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }

@keyframes logo-marquee-left {
  to { transform: translateX(-100%); }
}
@keyframes logo-marquee-right {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.contact-main > h1 {
  margin: 24px 0 48px;
  font-size: clamp(110px, 12.3vw, 220px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .82;
  text-align: center;
}

.contact-details {
  display: grid;
  grid-template-columns: 41% 59%;
  min-height: 640px;
  align-items: start;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.contact-copy {
  padding: 38px 2.1vw;
  color: #777;
  font-size: clamp(13px, 1vw, 17px);
}

.contact-copy dl { margin: 0; }

.contact-row {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-row dt {
  color: var(--black);
  font-weight: 700;
}

.contact-row dd {
  margin: 0;
  line-height: 1.45;
}

.contact-row dd a {
  display: block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.contact-row dd a:hover,
.contact-row dd a:focus-visible { color: var(--black); text-decoration: underline; }

.contact-map {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.79 / 1;
  align-self: start;
  margin: 0;
  overflow: hidden;
}

.contact-map > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-map .contact-map-reference {
  position: absolute;
  top: -56.5%;
  left: -69%;
  width: 169%;
  max-width: none;
  height: auto;
}

.contact-footer {
  min-height: 310px;
  padding: 24px 2.6vw 28px;
  background: var(--white);
}

.contact-tagline {
  margin: 0;
  font-size: clamp(42px, 3.75vw, 68px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.08;
  white-space: nowrap;
}

.contact-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 170px;
  color: var(--gray);
  font-size: 12px;
}

.contact-footer__bottom p { margin: 0; line-height: 1.35; }
.contact-footer__bottom p a { text-decoration: none; }

.site-footer {
  min-height: 420px;
  padding: 30px 2.6vw 34px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(32px, 3.4vw, 62px);
  font-weight: 300;
  line-height: 1.05;
}

.footer-cta a { color: #848484; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 235px;
  color: var(--gray);
  font-size: 12px;
}

.footer-bottom p { margin: 0; line-height: 1.35; }
.footer-bottom p a { text-decoration: none; }

.social-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 46px);
}

.social-links a {
  color: #a4a4a4;
  font-size: clamp(16px, 1.5vw, 26px);
  font-weight: 700;
  text-decoration: none;
}

.social-icons-image {
  width: 192px;
  aspect-ratio: 192 / 40;
  flex: 0 0 auto;
  background: url("images/social-icons-cn.png") center / contain no-repeat;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 800ms cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .browse-nav { gap: 12px; font-size: 12px; }
  .browse-nav strong { font-size: 12px; }
  .browse-panel button { font-size: 12px; }
  .browse-panel--search input { font-size: 12px; }
  .about-copy,
  .about-detail,
  .clients h2 {
    width: min(980px, 72%);
    margin-left: clamp(132px, 14vw, 220px);
  }
  .info-row { gap: 50px; }
  .contact-details { grid-template-columns: 42% 58%; min-height: 560px; }
  .contact-row { grid-template-columns: 100px 1fr; }
  .contact-tagline { white-space: normal; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .site-header { padding-inline: 16px; }
  .brand { left: 16px; font-size: 19px; letter-spacing: -1px; transform: translateY(-50%) rotate(-4deg); }
  .site-header--light .brand { width: 112px; height: 40px; }
  .primary-nav { gap: 11px; font-size: 10px; }
  .primary-nav a[href="#contact"], .language-button { display: none; }
  .work-panel { height: 74vw; min-height: 300px; }
  .work-panel img { object-position: center; }

  .projects-header { align-items: flex-start; height: 108px; padding-top: 16px; }
  .projects-header .brand { top: 24px; left: 50%; transform: translate(-50%, -50%) rotate(-4deg); }
  .projects-header .primary-nav { position: absolute; top: 16px; right: 16px; }
  .browse-nav { position: absolute; right: 16px; bottom: 12px; left: 16px; justify-content: space-between; gap: 6px; }
  .browse-nav strong { font-size: 11px; }
  .browse-tab { font-size: 11px; }
  .browse-stage { min-height: 170px; padding: 38px 8vw 28px; }
  .browse-stage:has(.browse-panel:not([hidden])) { min-height: 300px; }
  .filter-status { left: 8vw; }
  .browse-panel button { font-size: 11px; }
  .browse-panel--search input { font-size: 11px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { aspect-ratio: 1.5 / 1; }
  .projects-page .site-footer { min-height: 400px; padding-top: 104px; }
  .projects-page .site-footer::before { top: 80px; }

  .about-main { padding-top: 36px; }
  .about-main > h1 { padding: 0 16px; font-size: clamp(52px, 16vw, 88px); }
  .about-copy { width: auto; margin: 74px 20px 70px; gap: 42px; }
  .info-row { grid-template-columns: 1fr; gap: 12px; }
  .info-row h2 { color: var(--gray); }
  .info-row h2, .info-row p { font-size: 15px; line-height: 1.28; }
  .studio-image img { min-height: 56vw; }
  .about-detail { grid-template-columns: 1fr; width: auto; margin: 54px 20px 64px; }
  .about-detail > img { max-width: 360px; }
  .clients { width: 100%; margin: 0 0 100px; }
  .clients h2 { width: auto; margin: 0 20px 36px; }
  .logo-marquee { margin-bottom: 10px; }
  .logo-marquee__group { gap: 24px; padding-right: 24px; }
  .logo-marquee__group img { height: 76px; }
  .logo-marquee--left .logo-marquee__track { animation-duration: 30s; }
  .logo-marquee--right .logo-marquee__track { animation-duration: 33s; }

  .contact-main > h1 { margin: 34px 0 42px; font-size: 21vw; }
  .contact-details { grid-template-columns: 1fr; min-height: 0; }
  .contact-copy { padding: 30px 20px 18px; font-size: 12px; }
  .contact-row { grid-template-columns: 92px 1fr; gap: 12px; margin-bottom: 22px; }
  .contact-map { width: 100%; aspect-ratio: 1.79 / 1; border-top: 1px solid var(--line); }
  .contact-footer { min-height: 310px; padding: 28px 20px 24px; }
  .contact-tagline { font-size: clamp(34px, 10vw, 52px); }
  .contact-footer__bottom { min-height: 190px; font-size: 10px; }

  .site-footer { min-height: 310px; padding: 22px 16px; }
  .footer-cta { font-size: 30px; }
  .footer-bottom { min-height: 185px; font-size: 10px; }
  .social-links { gap: 14px; }
  .social-links a { font-size: 14px; }
  .social-icons-image { width: 144px; }
}

@media (hover: none) {
  .project-hover { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .logo-marquee { overflow-x: auto; }
  .logo-marquee__track { animation: none; }
}
