:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #686868;
  --color-line: #dedede;
  --color-panel: #f2f2f2;
  --color-overlay: rgba(255, 255, 255, 0.96);
  --page-max: 1280px;
  --content-max: 1100px;
  --page-gutter: 50px;
  --section-space: clamp(88px, 10vw, 144px);
  --focus-ring: 2px solid currentColor;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #111111;
  --color-text: #f5f5f2;
  --color-muted: #a4a4a0;
  --color-line: #353535;
  --color-panel: #1c1c1c;
  --color-overlay: rgba(17, 17, 17, 0.96);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-bg);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
.site-header,
.site-nav {
  transition: background-color 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--color-muted);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.media-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--color-panel);
}

.media-placeholder .media-image {
  opacity: 0;
  transition: opacity 220ms ease;
}

.media-placeholder.is-media-loaded .media-image {
  opacity: 1;
}

figure,
h1,
h2,
p {
  margin-top: 0;
}

figure {
  margin-right: 0;
  margin-left: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(calc(-100% - 24px));
}

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

.site-header {
  position: relative;
  z-index: 20;
  width: min(100%, var(--page-max));
  min-height: 150px;
  margin: 0 auto;
  padding: 50px var(--page-gutter);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  background: var(--color-bg);
}

.brand {
  flex: 0 0 auto;
  width: 196px;
  text-decoration: none;
}

.brand img {
  width: 196px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .client-list img:not([src$="/daikin.png"]) {
  filter: invert(1);
}

.brand:hover {
  color: var(--color-text);
  opacity: 0.66;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 38px);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
}

.menu-toggle,
.theme-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.theme-toggle {
  min-width: 42px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

main {
  display: block;
}

.error-page {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18vh 0 80px;
}

.error-page p {
  color: var(--color-muted);
}

.error-page h1 {
  margin-bottom: 36px;
  font-size: clamp(48px, 8vw, 110px);
}

.home-hero,
.info-page,
.case-study {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin-right: auto;
  margin-left: auto;
}

.home-hero {
  min-height: 400px;
  padding: 132px 0 62px;
}

.home-hero .eyebrow,
.home-hero .intro {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  font-weight: 400;
  letter-spacing: -0.045em;
}

.home-hero h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(34px, 3.6vw, 42px);
  line-height: 1.45;
}

.intro {
  max-width: 590px;
  margin: 0 0 0 auto;
  color: var(--color-muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.4;
}

.home-gallery {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  align-items: end;
}

.home-gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--color-panel);
}

.home-gallery-item:nth-child(1) {
  grid-column: 1 / span 4;
  grid-row: 1;
}

.home-gallery-item:nth-child(2) {
  grid-column: 9 / span 4;
  grid-row: 1;
}

.home-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.capability-list {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin: 0 auto;
  padding: 86px 0 42px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.capability-list li {
  padding: 12px 8px;
  border: 1px solid var(--color-line);
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
}

.home-gallery-item img {
  transition: opacity 240ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-gallery-item:hover img {
  transform: scale(1.012);
}

.info-page {
  padding-top: 145px;
}

.case-study {
  width: min(calc(100% - 80px), 1200px);
  padding-top: 62px;
  padding-bottom: var(--section-space);
}

.info-page > header .eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-page="fotile"] .site-header,
body[data-page="farfetch"] .site-header {
  min-height: 108px;
  padding: 34px 40px;
}

body[data-page="fotile"] .brand,
body[data-page="farfetch"] .brand,
body[data-page="fotile"] .brand img,
body[data-page="farfetch"] .brand img {
  width: 136px;
  height: 40px;
}

.info-page > header,
.case-header {
  margin-bottom: 0;
}

.case-header {
  display: block;
  margin-bottom: 141px;
}

.case-header .eyebrow,
.case-summary,
.case-facts {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.info-page h1,
.case-header h1 {
  max-width: 1000px;
  margin-bottom: 0;
  font-size: clamp(30px, 3.2vw, 36px);
  line-height: 1.5;
}

.info-page h1 {
  max-width: 680px;
}

.info-page > p {
  max-width: 1000px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(30px, 3.2vw, 36px);
  line-height: 1.5;
}

.studio-image {
  margin-top: 118px;
  margin-bottom: clamp(76px, 10vw, 132px);
  background: var(--color-panel);
}

.clients {
  padding-top: 34px;
  border-top: 1px solid var(--color-line);
}

.team-section,
.services-section {
  margin-top: clamp(76px, 10vw, 132px);
}

.team-section h2,
.services-section h2 {
  margin-bottom: 32px;
  font-size: clamp(28px, 3vw, 40px);
}

.team-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 68px;
  list-style: none;
}

.team-row {
  min-width: 0;
}

.team-row strong {
  display: block;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
}

.team-row span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.35;
}

.team-portrait {
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 12px;
  border-radius: 5px;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-statement {
  max-width: 900px !important;
  margin: clamp(84px, 11vw, 150px) 0 48px !important;
  color: var(--color-text) !important;
  font-size: clamp(26px, 3.5vw, 44px) !important;
  line-height: 1.28 !important;
}

.clients h2 {
  margin-bottom: 42px;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1;
}

.client-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 30px;
  list-style: none;
}

.client-list > * {
  min-width: 0;
}

.client-list img {
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.client-list img[src$="/daikin.png"] {
  filter: grayscale(1) brightness(0);
}

:root[data-theme="dark"] .client-list img[src$="/daikin.png"] {
  filter: grayscale(1) brightness(0) invert(1);
}

.case-gallery-item {
  margin: 0;
  background: var(--color-panel);
}

.case-section {
  margin-top: clamp(90px, 11vw, 156px);
}

.case-section:first-of-type {
  margin-top: 0;
}

.case-section-header {
  margin-bottom: 82px;
  display: block;
}

.case-section-header > p:first-child {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 12px;
}

.case-section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.2;
}

.case-section-header > p:last-child {
  max-width: 1080px;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.55;
}

.case-gallery {
  margin-top: clamp(20px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 38px);
}

.case-study > p:last-child {
  margin: clamp(56px, 7vw, 92px) 0 0;
  font-size: 15px;
}

.case-study > p:last-child a {
  display: inline-block;
}

.site-footer {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 12px;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer p {
  grid-column: 1 / -1;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1023px) {
  :root {
    --page-gutter: 32px;
    --section-space: 96px;
  }

  .client-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capability-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --page-gutter: 20px;
    --section-space: 76px;
  }

  .site-header {
    min-height: 82px;
    padding-top: 24px;
    padding-bottom: 24px;
    align-items: center;
  }

  .brand {
    position: relative;
    z-index: 2;
    width: 140px;
    max-width: 140px;
    font-size: 20px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
    min-width: 44px;
    min-height: 44px;
    margin: -10px -10px -10px auto;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    padding: 112px var(--page-gutter) 42px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    overflow-y: auto;
    background: var(--color-overlay);
    font-size: clamp(32px, 10vw, 46px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.04em;
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a[aria-current="page"]::after {
    bottom: -4px;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
    margin-top: auto;
  }

  .home-hero {
    min-height: auto;
    padding: 76px 0 58px;
  }

  .home-hero h1 {
    font-size: clamp(32px, 9.5vw, 46px);
    line-height: 1.3;
  }

  .intro {
    max-width: 100%;
    margin-left: 0;
    font-size: 18px;
  }

  .home-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .home-gallery-item:nth-child(1),
  .home-gallery-item:nth-child(2) {
    grid-column: 1 / -1;
  }

  .info-page,
  .case-study {
    padding-top: 70px;
  }

  .case-study {
    width: calc(100% - (var(--page-gutter) * 2));
  }

  body[data-page="fotile"] .site-header,
  body[data-page="farfetch"] .site-header {
    min-height: 82px;
    padding: 24px var(--page-gutter);
  }

  .info-page > header,
  .case-header {
    margin-bottom: 58px;
  }

  .info-page h1,
  .case-header h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.35;
  }

  .info-page > p {
    margin-left: 0;
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1.4;
  }

  .studio-image {
    margin-top: 54px;
    margin-bottom: 76px;
  }

  .client-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .case-header {
    display: block;
    margin-bottom: 70px;
  }

  .case-section-header {
    margin-bottom: 38px;
  }

  .case-header h1 {
    margin-bottom: 28px;
  }

  .case-summary {
    max-width: 100%;
  }

  .case-facts {
    margin-top: 28px;
  }

  .case-section-header {
    display: block;
  }

  .case-section-header h2 {
    margin-bottom: 18px;
  }

  .team-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p {
    grid-column: 1;
  }
}

@media (max-width: 389px) {
  :root {
    --page-gutter: 18px;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .client-list {
    grid-template-columns: 1fr;
  }

  .capability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Figma fidelity pass: the supplied desktop frames are the visual source of truth. */
body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: normal;
}

h1,
h2 {
  letter-spacing: 0;
}

.site-header {
  width: min(100%, 1280px);
  min-height: 158px;
  padding: 50px;
  align-items: flex-start;
}

.nav-info {
  width: 119px;
  height: 27px;
  display: block;
  flex: 0 0 auto;
}

.nav-info img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-info-case {
  display: none;
}

.nav-info[aria-current="page"]::after {
  content: none;
}

:root[data-theme="dark"] .nav-info img {
  filter: invert(1);
}

body[data-page="fotile"] .site-header,
body[data-page="farfetch"] .site-header {
  min-height: 140px;
  padding: 50px;
}

body[data-page="fotile"] .nav-info,
body[data-page="farfetch"] .nav-info {
  width: 81px;
  height: 19px;
  margin-top: 10px;
}

body[data-page="fotile"] .nav-info-display,
body[data-page="farfetch"] .nav-info-display {
  display: none;
}

body[data-page="fotile"] .nav-info-case,
body[data-page="farfetch"] .nav-info-case {
  display: block;
}

.home-hero {
  min-height: 304px;
  padding: 142px 0 0;
}

.home-stage {
  height: min(804px, calc(100svh - 158px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.home-hero h1,
.info-page h1,
.info-page > p {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 300;
  line-height: 56px;
}

.home-hero h1 {
  max-width: 1000px;
  white-space: normal;
}

html[lang="zh-CN"] .home-hero h1 {
  max-width: 1100px;
}

.home-gallery {
  --gallery-gap: 60px;
  --gallery-half-gap: 30px;
  --gallery-offset: -42px;
  width: min(100%, 1100px);
  height: 100%;
  display: block;
  overflow: hidden;
  touch-action: pan-y;
}

.home-gallery-track,
.home-gallery-set {
  height: 100%;
  display: flex;
  align-items: center;
}

.home-gallery-track {
  width: max-content;
  gap: var(--gallery-gap);
  will-change: transform;
  animation: home-gallery-marquee 28s linear infinite;
}

.home-gallery-set {
  flex: 0 0 auto;
  gap: var(--gallery-gap);
}

.home-gallery-item:nth-child(n) {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 auto;
  margin: 0;
}

.home-gallery-item:nth-child(1) {
  order: 1;
  width: 351px;
  height: 219px;
  transform: translateY(60px);
}

.home-gallery-item:nth-child(2) {
  order: 2;
  width: 350px;
  height: 218px;
  transform: translateY(60px);
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-gallery-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-gallery-link img {
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.home-gallery-link:hover img,
.home-gallery-link:focus-visible img {
  transform: scale(1.035);
}

.home-gallery-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.home-gallery:hover .home-gallery-track,
.home-gallery:focus-within .home-gallery-track,
.home-gallery.is-interacting .home-gallery-track {
  animation-play-state: paused;
}

@keyframes home-gallery-marquee {
  from {
    transform: translate3d(var(--gallery-offset), 0, 0);
  }

  to {
    transform: translate3d(
      calc(-50% - var(--gallery-half-gap) + var(--gallery-offset)),
      0,
      0
    );
  }
}

.capability-list {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1100px);
  height: auto;
  padding: 48px 0 56px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.capability-list li {
  min-width: 0;
  min-height: 180px;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  border-radius: 6px;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 300;
}

.capability-list h2,
.capability-list h3 {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.capability-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.services-section .capability-list {
  width: 100%;
  margin: 0;
  padding: 0;
}

.info-page {
  padding-top: 142px;
}

.info-page h1 {
  max-width: 1000px;
}

.studio-image {
  height: 500px;
  margin-top: 100px;
  margin-bottom: 0;
  overflow: hidden;
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-section {
  margin-top: 62px;
}

.team-section h2,
.services-section h2 {
  margin-bottom: 32px;
  font-size: 30px;
  font-weight: 300;
  line-height: normal;
}

.team-row {
  min-height: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 300;
}

.team-row strong {
  font-weight: 300;
}

.client-statement {
  max-width: 1000px !important;
  margin: 90px 0 32px !important;
  font-size: 36px !important;
  font-weight: 300;
  line-height: 56px !important;
}

.clients {
  width: min(1100px, calc(100% + 100px));
  margin-left: -50px;
  padding: 0;
  overflow: hidden;
  border-top: 0;
}

.clients h2 {
  display: none;
}

.client-list {
  width: 1515px;
  grid-template-columns: repeat(6, 240px);
  gap: 15px;
}

.client-list li {
  height: 75px;
}

.client-list img {
  width: 100%;
  height: 75px;
  max-height: none;
  padding: 20px 42px;
  object-position: center;
}

.services-section {
  margin-top: 90px;
}

.case-study {
  width: min(calc(100% - 100px), 1180px);
  padding-top: 50px;
}

.case-header h1 {
  font-family: var(--font-sans);
  font-size: 45px;
  font-weight: 300;
  line-height: normal;
}

.case-section-header,
.case-section-header > p,
.case-section-header h2 {
  font-family: var(--font-sans);
  font-weight: 300;
}

.site-footer {
  position: relative;
  width: min(100%, 1100px);
  height: 480px;
  margin: 0 auto;
  padding: 0;
  display: block;
  border-top: 0;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 300;
}

.site-footer > div {
  display: block;
}

.site-footer span {
  display: block;
  line-height: 20px;
}

.site-footer p,
.site-footer a {
  margin: 0;
  font-weight: 300;
}

.footer-address,
.footer-phone,
.footer-email,
.footer-copyright,
.footer-controls {
  position: absolute;
}

.footer-address {
  top: 50px;
  left: 50px;
}

.footer-address p {
  margin-top: 20px;
  font-size: 30px;
  line-height: normal;
}

.footer-phone {
  top: 269px;
  left: 50px;
}

.footer-email {
  top: 269px;
  left: 572px;
}

.footer-phone a,
.footer-email a {
  display: block;
  margin-top: 20px;
  font-size: 30px;
  line-height: normal;
}

.footer-copyright {
  bottom: 57px;
  left: 50px;
  font-size: 16px;
}

.site-footer .footer-controls {
  right: 50px;
  bottom: 52px;
  display: flex !important;
  flex-direction: row !important;
  gap: 40px;
  align-items: center;
  font-size: 16px;
}

.footer-controls a,
.footer-controls button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: normal;
  text-decoration: none;
}

.footer-controls a:hover,
.footer-controls button:hover {
  background: transparent;
  color: inherit;
  opacity: 0.45;
}

.theme-toggle {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
}

.theme-icon {
  width: 24px;
  height: 24px;
  grid-area: 1 / 1;
}

.theme-icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon--moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon--sun {
  display: block;
  filter: invert(1);
}

@media (max-width: 1023px) {
  .home-stage {
    height: min(744px, calc(100svh - 158px));
  }

  .home-hero {
    min-height: auto;
    padding: 100px 0 72px;
  }

  .home-gallery {
    --gallery-gap: 36px;
    --gallery-half-gap: 18px;
    --gallery-offset: -32px;
    width: 100%;
    height: 100%;
  }

  .capability-list {
    width: calc(100% - (var(--page-gutter) * 2));
    height: auto;
    padding: 42px 0 50px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .clients {
    width: 100%;
    margin-left: 0;
  }

  .client-list {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .client-list li,
  .client-list img {
    width: 100%;
  }

  .site-footer {
    width: calc(100% - (var(--page-gutter) * 2));
    height: auto;
    padding: 72px 0 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 32px;
  }

  .footer-address,
  .footer-phone,
  .footer-email,
  .footer-copyright,
  .footer-controls {
    position: static;
  }

  .footer-address {
    grid-column: 1 / -1;
  }

  .footer-address p,
  .footer-phone a,
  .footer-email a {
    font-size: 24px;
    line-height: 1.5;
  }

  .footer-controls {
    grid-row: 3;
    grid-column: 2;
    align-self: center;
    justify-self: end;
    justify-content: flex-end;
  }

  .footer-copyright {
    grid-row: 3;
    grid-column: 1;
    align-self: center;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .home-stage {
    height: min(760px, calc(100svh - 94px));
  }

  .site-header,
  body[data-page="fotile"] .site-header,
  body[data-page="farfetch"] .site-header {
    min-height: 94px;
    padding: 28px 20px;
  }

  .brand,
  .brand img,
  body[data-page="fotile"] .brand,
  body[data-page="farfetch"] .brand,
  body[data-page="fotile"] .brand img,
  body[data-page="farfetch"] .brand img {
    width: 126px;
    height: auto;
  }

  .nav-info,
  body[data-page="fotile"] .nav-info,
  body[data-page="farfetch"] .nav-info {
    width: 78px;
    height: auto;
    margin-top: 0;
  }

  body[data-page="fotile"] .nav-info-display,
  body[data-page="farfetch"] .nav-info-display {
    display: block;
  }

  body[data-page="fotile"] .nav-info-case,
  body[data-page="farfetch"] .nav-info-case {
    display: none;
  }

  .home-hero h1,
  .info-page h1,
  .info-page > p {
    font-size: 28px;
    line-height: 42px;
  }

  .home-gallery {
    --gallery-gap: 28px;
    --gallery-half-gap: 14px;
    --gallery-offset: -20px;
    height: 100%;
  }

  .capability-list {
    padding: 36px 0 44px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .capability-list li {
    min-height: 0;
    padding: 18px 14px 16px;
    gap: 10px;
  }

  .capability-list h2,
  .capability-list h3 {
    font-size: 22px;
  }

  .capability-list p {
    font-size: 13px;
    line-height: 1.55;
  }

  html[lang="en"] .capability-list h2,
  html[lang="en"] .capability-list h3 {
    font-size: 17px;
  }

  .home-gallery-item:nth-child(1),
  .home-gallery-item:nth-child(2) {
    width: auto;
    height: min(53%, 219px);
    aspect-ratio: 351 / 219;
    transform: translateY(38px);
  }

  .info-page {
    padding-top: 78px;
  }

  .team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
  }

  .team-section h2 {
    margin-bottom: 28px;
  }

  .team-portrait {
    margin-bottom: 10px;
  }

  .team-row strong {
    font-size: 15px;
  }

  .team-row span {
    font-size: 13px;
  }

  .studio-image {
    height: auto;
    margin-top: 64px;
  }

  .clients {
    width: 100%;
    margin-left: 0;
  }

  .client-list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .client-list li,
  .client-list img {
    height: 64px;
  }

  .client-list li {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .client-list img {
    width: 86%;
    height: 60px;
    padding: 18px 20px;
  }

  .case-study {
    width: calc(100% - (var(--page-gutter) * 2));
    padding-top: 56px;
  }

  .case-header h1 {
    font-size: 34px;
    line-height: 1.35;
  }

  .site-footer {
    width: calc(100% - (var(--page-gutter) * 2));
    height: auto;
    padding: 72px 0 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .footer-address,
  .footer-phone,
  .footer-email,
  .footer-copyright,
  .footer-controls {
    position: static;
  }

  .footer-address p,
  .footer-phone a,
  .footer-email a {
    font-size: 22px;
    line-height: 1.5;
  }

  .footer-controls {
    grid-row: 5;
    grid-column: 1;
    align-self: center;
    justify-self: end;
    justify-content: flex-end;
  }

  .footer-copyright {
    grid-row: 5;
    grid-column: 1;
    align-self: center;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-gallery {
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .home-gallery-track {
    animation: none;
    transform: translateX(var(--gallery-offset));
  }

  .home-gallery-set[aria-hidden="true"] {
    display: none;
  }

  .home-gallery-item {
    scroll-snap-align: center;
  }
}
