.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  pointer-events: none;
}
.site-header .site-brand,
.site-header .site-nav { pointer-events: auto; }
.site-header.is-over-video .site-nav__toggle { color: var(--color-white); }
.site-header.is-over-video .site-nav__toggle:focus-visible { outline-color: var(--color-white); }
.site-header.is-over-footer .site-brand img { filter: brightness(0); }
.site-header.is-over-footer .site-nav__toggle { color: var(--color-black); }
.site-header.is-over-footer .site-nav__toggle:focus-visible { outline-color: var(--color-black); }

.site-nav {
  position: fixed;
  z-index: 4;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
}

.site-nav__toggle {
  color: var(--page-text);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-nav__menu-icon line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 300ms ease, opacity 180ms ease;
}
.site-nav__toggle[aria-expanded="true"] .menu-line--top {
  transform: translateY(6px) rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] .menu-line--middle { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] .menu-line--bottom {
  transform: translateY(-6px) rotate(-45deg);
}
.site-nav__toggle:focus-visible {
  outline: 2px solid var(--page-text);
  outline-offset: 4px;
}


.site-brand {
  position: fixed;
  z-index: 4;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
}

.site-brand img {
  display: block;
  width: 30px;
  height: 24px;
  object-fit: contain;
}

.hero-lockup {
  position: absolute;
  z-index: 3;
  top: 50vh;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(80vw, 1120px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-tagline {
  margin: 0 0 48px;
  color: var(--page-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo-picture {
  display: block;
  width: 100%;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  transform: translate(
    var(--logo-shift-x, 0px),
    var(--logo-shift-y, 0px)
  );
  will-change: transform;
}

.site-menu {
  --menu-duration: 420ms;
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.site-menu__panel {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: max(30vw, 380px);
  max-width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 120px 28px 40px;
  border: 0;
  border-left: 1px solid var(--nav-border);
  border-radius: 0;
  color: var(--page-text);
  background: var(--nav-background);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(32px) saturate(115%);
  -webkit-backdrop-filter: blur(32px) saturate(115%);
  transform: translateX(100%);
  transition: transform var(--menu-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.site-menu.is-open .site-menu__panel { transform: translateX(0); }
.site-menu::backdrop {
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity var(--menu-duration) ease;
}
.site-menu.is-open::backdrop { opacity: 1; }
.site-menu > .site-nav__toggle {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
}

.site-nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
}

.site-nav__links a {
  flex: 0 0 auto;
  padding: 12px 0;
  overflow-wrap: anywhere;
  color: var(--page-text);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 160ms linear;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible,
.site-nav__links a[aria-current="page"] {
  color: var(--color-red-main);
}

.site-nav__links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.ambient-wash {
  position: absolute;
  z-index: 1;
  width: 46vw;
  height: 34vw;
  min-width: 320px;
  min-height: 240px;
  border-radius: 46% 54% 62% 38% / 54% 42% 58% 46%;
  background: var(--color-red-main);
  filter: blur(82px);
  opacity: 0.48;
  pointer-events: none;
  will-change: transform;
}

.ambient-wash--one {
  top: 16%;
  left: -10%;
  animation: ambient-drift-one 16s ease-in-out infinite alternate;
}

.ambient-wash--two {
  right: -12%;
  bottom: -8%;
  background: var(--color-red-dark);
  opacity: 0.6;
  animation: ambient-drift-two 19s ease-in-out infinite alternate;
}

.ambient-wash--three {
  top: 34%;
  left: 42%;
  width: 30vw;
  height: 24vw;
  background: var(--color-red-extra-dark);
  opacity: 0.42;
  animation: ambient-drift-three 13s ease-in-out infinite alternate;
}

.work-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 180px 72px 160px;
  overflow: visible;
  background: transparent;
  color: var(--page-text);
}

.work-section__header {
  display: block;
  text-align: center;
}

.work-section :is(h1, h2) {
  margin: 0;
  font-size: 160px;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0;
  color: var(--page-text);
  font-family: "Pixels Roboto", Arial, sans-serif;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 40px;
  max-width: 1440px;
  margin: 100px auto 0;
}

.work-item {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 10;
  perspective: 1200px;
}

.work-card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--page-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.work-card:focus-visible {
  outline: 2px solid var(--page-text);
  outline-offset: 8px;
}

.work-card__flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-previewing .work-card__flip { transform: rotateY(180deg); }

.work-card__front,
.work-card__back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.work-card__logo {
  display: block;
  width: 72%;
  height: 44%;
  object-fit: contain;
  filter: brightness(0);
}

@media (prefers-color-scheme: dark) {
  .work-card__logo { filter: none; }
}

.work-card__back {
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-black);
  transform: rotateY(180deg);
}

.work-preview__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.work-more {
  display: table;
  margin: 72px auto 0;
  padding: 12px 0;
  color: var(--page-text);
  font-size: 22px;
  text-decoration: underline;
  text-underline-offset: 8px;
  transition: color 180ms ease;
}

.work-more:hover { color: var(--color-red-main); }

.accent-rule {
  border-left: 3px solid var(--color-red-main);
  padding-left: 20px;
}

.work-page .work-section { padding-top: 180px; }

.work-player {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: white;
  background: #000;
  color-scheme: dark;
  overflow: hidden;
}

.work-player[open] { display: flex; flex-direction: column; }
.work-player::backdrop { background: #000; }
.work-player__header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}
.work-player__header h2 { margin: 0 auto 0 0; font-size: 20px; font-weight: 400; overflow-wrap: anywhere; }
.work-player__projects { max-width: 40%; padding: 10px; font: inherit; font-size: 16px; }
.work-player__close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.work-player__close img { filter: invert(1); }
.work-player__close:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.work-player__stage { position: relative; flex: 1; min-height: 0; }
.work-player__video { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-player__status {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  padding: 12px;
  background: #000;
  font-size: 18px;
}

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 120px 48px 0;
  overflow: hidden;
  background: transparent;
  color: var(--color-white);
}

.site-footer__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.site-footer__details.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer__detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 72px;
  text-align: center;
}

.site-footer__title {
  display: inline-block;
  margin: 0;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer__value:hover,
.site-footer__value:focus-visible {
  color: var(--color-black);
  transform: translateY(-4px);
  outline: none;
}

.site-footer__value {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-top: 14px;
  color: var(--color-white);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: color 180ms linear, transform 220ms ease-out;
}

.site-footer__logo-crop {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  margin-top: auto;
  overflow: visible;
  opacity: 0;
  transform: translateY(120px);
  transition: opacity 180ms linear, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__logo-crop.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer__logo {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  transform: translateY(25%);
}

@keyframes ambient-drift-one {
  to {
    transform: translate(24vw, 14vh) rotate(16deg) scale(1.16);
  }
}

@keyframes ambient-drift-two {
  to {
    transform: translate(-20vw, -12vh) rotate(-18deg) scale(0.86);
  }
}

@keyframes ambient-drift-three {
  to {
    transform: translate(10vw, -18vh) rotate(24deg) scale(1.22);
  }
}

@media (max-width: 700px) {
  .site-menu__panel {
    width: min(92vw, 440px);
    padding: 100px 24px 32px;
  }

  .site-menu > .site-nav__toggle { top: 14px; right: 14px; }
  .site-nav {
    top: 14px;
    right: 14px;
  }

  .site-brand {
    top: 14px;
    left: 14px;
  }

  .hero-lockup {
    width: 88vw;
  }

  .hero-tagline {
    margin-bottom: 32px;
    font-size: 14px;
  }

  .ambient-wash {
    width: 72vw;
    height: 54vw;
    filter: blur(62px);
  }

  .work-section {
    padding: 100px 18px 110px;
  }

  .work-section__header {
    text-align: center;
  }

  .work-section :is(h1, h2) {
    font-size: 64px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    margin-top: 64px;
  }

  .work-item { aspect-ratio: 1; }
  .work-card__logo { width: 84%; height: 46%; }
  .work-more { margin-top: 48px; }
  .work-page .work-section { padding-top: 140px; }
  .work-player__header { gap: 12px; padding: 12px; flex-wrap: wrap; }
  .work-player__header h2 { font-size: 17px; flex: 1; }
  .work-player__projects { order: 3; max-width: 100%; width: 100%; }

  .site-footer {
    min-height: 100svh;
    padding: 90px 18px 0;
  }

  .site-footer__details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__detail {
    min-height: 52px;
  }

  .site-footer__title {
    font-size: 12px;
  }

  .site-footer__value {
    font-size: 22px;
  }

  .site-footer__logo {
    width: 125vw;
    min-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu { --menu-duration: 0ms; }
  .site-menu::backdrop { transition: none; }
  .work-card__flip { transition: none; }
  .site-menu__panel, .site-nav__links a, .site-nav__menu-icon line { transition: none; }
  .ambient-wash {
    animation: none;
  }

  .site-footer__details,
  .site-footer__logo-crop {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
