/* Hide Webflow CMS empty states — content is baked into HTML */
.w-dyn-empty {
  display: none !important;
}

/* Home Visuals/Effects and work grid: Webflow uses w-video w-embed Giphy iframes */
.image-wrapped-down .background-video-visual.w-video,
.gif-cover---work .background-video---work.w-video {
  width: 100%;
}

.work-collection-list .paragraph-2 {
  color: #fff;
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Footer legal row: left = company details, right = copyright + policy links */
.footer-legal .grid-4 {
  width: 100%;
  align-items: end;
}

.footer-legal-text.right {
  text-align: right;
  padding-top: 0;
}

/* Keep Registered Office Address on one line (left column was too narrow at .75fr) */
@media screen and (min-width: 768px) {
  .footer-legal .grid-4 {
    grid-template-columns: 1.45fr 1fr;
  }

  .footer-legal-text.left {
    white-space: nowrap;
  }
}

.recaptcha-notice {
  margin: 12px 0 4px;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.75;
}

.recaptcha-notice a {
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
}

.footer-legal-text .footer-policy-link,
.footer-legal-text .footer-policy-link:hover,
.footer-legal-text .footer-policy-link:focus,
.footer-legal-text .footer-policy-link:visited {
  color: inherit;
  text-decoration: none !important;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

.footer-legal-text .footer-policy-link:hover {
  color: #ffd215;
}

/* Work cards: play button above full-cover lightbox hit area */
.work-video-player .video-lightbox {
  z-index: 3;
}

/* Self-hosted looping previews — fill the card like the old Giphy embeds */
.gif-cover---work .background-video---work.w-video {
  width: 100%;
}

.gif-cover---work .background-video---work video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  background: #0a0a0a;
}

/* Showreel / about: full-poster click opens lightbox; keep play control at bottom-right */
.home-video-player > a.showreel-hit {
  z-index: 2;
  border-radius: 10px;
  cursor: pointer;
}

.home-video-player > a.video-lightbox.home-2 {
  /* Keep original 80×80 control (Webflow mobile rules stretch this to full frame) */
  top: auto !important;
  left: auto !important;
  right: 30px !important;
  bottom: 30px !important;
  width: 80px !important;
  height: 80px !important;
  margin: 0 !important;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.home-video-player .video-title {
  z-index: 3;
  pointer-events: none;
}

/* Fixed navbar: fade to solid black on scroll (CMS pages lack Webflow PAGE_SCROLL) */
.navbar.w-nav {
  overflow: hidden;
  transition: background-color 120ms linear;
  z-index: 1000;
}

/* Mobile drawer must extend outside the navbar — overflow:hidden clips it */
@media screen and (max-width: 991px) {
  .navbar.w-nav,
  .navbar.w-nav .nav-container,
  .navbar.w-nav .nav-menu-wrapper {
    overflow: visible !important;
  }

  /* Use custom mobile nav (js/mobile-nav.js) instead of Webflow drawer */
  .navbar.w-nav .w-nav-overlay,
  .navbar.w-nav .nav-menu.w-nav-menu[data-nav-menu-open] {
    display: none !important;
  }

  .navbar.w-nav .menu-button.w-nav-button.fm-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10001;
    pointer-events: auto;
  }

  .fm-nav-toggle-icon,
  .fm-nav-toggle-icon::before,
  .fm-nav-toggle-icon::after,
  .fm-nav-toggle-icon span {
    pointer-events: none;
  }

  .fm-nav-toggle .lottie-animation {
    display: none !important;
  }

  .fm-nav-toggle > :not(.fm-nav-toggle-icon) {
    display: none !important;
  }

  .fm-nav-toggle-icon {
    display: block;
    position: relative;
    width: 28px;
    height: 20px;
  }

  .fm-nav-toggle-icon::before,
  .fm-nav-toggle-icon::after,
  .fm-nav-toggle-icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    content: '';
  }

  .fm-nav-toggle-icon::before {
    top: 0;
  }

  .fm-nav-toggle-icon span {
    top: 9px;
  }

  .fm-nav-toggle-icon::after {
    bottom: 0;
  }

  .fm-nav-toggle.is-open .fm-nav-toggle-icon span {
    opacity: 0;
  }

  .fm-nav-toggle.is-open .fm-nav-toggle-icon::before {
    transform: translateY(9px) rotate(45deg);
  }

  .fm-nav-toggle.is-open .fm-nav-toggle-icon::after {
    transform: translateY(-9px) rotate(-45deg);
  }

  body.fm-nav-open .navbar.w-nav {
    z-index: 10002;
  }
}

.fm-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
}

.fm-mobile-nav.is-open,
.fm-mobile-nav.is-closing {
  visibility: visible;
}

.fm-mobile-nav.is-open {
  pointer-events: auto;
}

.fm-mobile-nav[hidden] {
  display: block !important;
}

body.fm-nav-open {
  overflow: hidden;
}

body.fm-nav-open .navbar.w-nav .nav-scroll-bar {
  opacity: 0 !important;
  transform: scaleX(0) !important;
  visibility: hidden;
}

.fm-mobile-nav-panel {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  background: rgba(0, 0, 0, 0.97);
  padding:
    calc(120px + env(safe-area-inset-top, 0px))
    28px
    calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.fm-mobile-nav.is-open .fm-mobile-nav-panel {
  transform: translateX(0);
}

.fm-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}

.fm-mobile-nav-links a {
  color: #fff;
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.fm-mobile-nav-links a:hover,
.fm-mobile-nav-links a:focus-visible {
  color: #ffd215;
}

.fm-mobile-nav-cta {
  margin-top: 36px;
  align-self: flex-start;
  font-size: 20px;
  line-height: 1.3;
  padding: 18px 48px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar.w-nav .nav-scroll-bar {
  background-color: #fff;
  bottom: 0;
  height: 4px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: auto;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform, opacity;
}

/* Contact details hidden until reCAPTCHA reveal */
button.contact-reveal {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

button.contact-reveal:hover,
button.contact-reveal:focus-visible {
  color: #ffd215;
  outline: none;
}

button.contact-reveal:disabled {
  cursor: wait;
  opacity: 0.75;
}

.contact-us-links-wrapper button.contact-reveal {
  color: #fff;
  display: block;
  font-weight: 700;
  margin-bottom: 0.35em;
}

.legal-content h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-cookie-table {
  width: 100%;
  margin-top: 1.5em;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-cookie-table th,
.legal-cookie-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.legal-cookie-table th {
  font-weight: 600;
}

.legal-cookie-table code {
  font-size: 13px;
}

/*
  Logo ticker: Webflow IX2 a-260 only loops on home/about; work/contact play once.
  CSS marquee replaces that transform so every page scrolls continuously.
*/
.logo-loop-wrapper {
  width: max-content !important;
  grid-column-gap: 0;
  column-gap: 0;
  will-change: transform;
  animation: logo-ticker-scroll 30s linear infinite;
}

.logo-loop {
  flex-shrink: 0;
  padding-right: 50px;
  box-sizing: content-box;
}

.loop-logo-item {
  flex-shrink: 0;
  height: 41px;
  width: auto;
  object-fit: contain;
}

@keyframes logo-ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-loop-wrapper {
    animation: none;
  }
}
