/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #000;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

/* ============================================
   HIDE DEFAULT CARGO CHROME ON HOMEPAGE
   ============================================ */
body.page-HOME #cargo-default-nav,
body.page-HOME .cargo-default-nav,
body.page-HOME #site-nav,
body.page-HOME .site-header,
body.page-HOME footer,
body.page-HOME .page-title,
body.page-HOME #footer {
  display: none !important;
}

/* ============================================
   PAGE FADE OVERLAY
   ============================================ */
#page-fade-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#page-fade-overlay.fade-in {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
 /* ============================================
   SITE-WIDE NAV
   ============================================ */
#joj-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 8000;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 0 20px;
  pointer-events: none;
}

#joj-nav .nav-item {
  pointer-events: all;
  display: flex;
  align-items: center;
  height: 100%;
  cursor: default;
  color: #fff;
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

#joj-nav .nav-item.nav-link {
  cursor: pointer;
}

#joj-nav .nav-item.nav-link:hover {
  color: #C8401E;
}

#joj-nav .nav-item.active,
#joj-nav .nav-item.nav-active {
  color: #C8401E;
}

/* Column alignment */
#joj-nav .nav-brand   { justify-content: flex-start; }
#joj-nav .nav-about   { justify-content: center; }
#joj-nav .nav-work    { justify-content: center; }
#joj-nav .nav-contact { justify-content: flex-end; }
/* ============================================
   SLIDE CAPTION
   ============================================ */
#slide-caption {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 8000;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#slide-caption.visible {
  opacity: 1;
}

/* ============================================
   SLIDESHOW CONTAINER
   ============================================ */
#joj-slideshow {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
}

.joj-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: #000;
}

.joj-slide.active {
  opacity: 1;
}

/* ============================================
   VIDEO SLIDES
   ============================================ */
.joj-slide.video-slide .video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.joj-slide.video-slide iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.joj-slide.video-wide iframe {
  width: 120vw;
  min-width: 120vw;
}

/* ============================================
   SPLIT STILL SLIDES
   ============================================ */
.joj-slide.split-slide {
  display: flex;
}

.joj-slide.split-slide .split-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   CLICK CATCHER
   Intercepts clicks above iframes, below nav.
   Removed from DOM on non-homepage pages via JS.
   ============================================ */
#click-catcher {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7500;
  background: transparent;
  cursor: default;
}

/* ============================================
   CARGO WRAPPER POINTER EVENT FIX
   ============================================ */
.cargo-page-content,
.page_container,
#content-container,
[class*="page-wrap"],
[class*="page_wrap"] {
  pointer-events: all !important;
}

/* ============================================
   NON-HOMEPAGE PAGES
   ============================================ */
body:not(.page-HOME) {
  overflow: auto;
}

@media (max-width: 768px) {

  /* Videos — zoom to fill screen */
  .joj-slide.video-slide iframe {
    width: 177.78vh !important;
    min-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Split slides — left image only */
  .joj-slide.split-slide .split-img:last-child {
    display: none !important;
  }

  .joj-slide.split-slide .split-img:first-child {
    flex: 1 !important;
  }

  /* Credits — not bold, smaller */
  #slide-caption {
    font-weight: 400 !important;
    font-size: 10px !important;
    bottom: 10px !important;
    right: 10px !important;
  }

  /* Nav — three columns, no contact */
  #joj-nav {
    grid-template-columns: 1fr auto auto !important;
    height: auto !important;
    min-height: 36px !important;
    padding: 8px 14px !important;
    gap: 0 !important;
  }

  #joj-nav .nav-contact {
    display: none !important;
  }

  #joj-nav .nav-brand {
    font-size: 9px !important;
    letter-spacing: 0.04em !important;
    justify-content: flex-start !important;
  }

  #joj-nav .nav-about {
    font-size: 9px !important;
    letter-spacing: 0.04em !important;
    justify-content: flex-end !important;
    padding-left: 16px !important;
  }

  #joj-nav .nav-work {
    font-size: 9px !important;
    letter-spacing: 0.04em !important;
    justify-content: flex-end !important;
    padding-left: 16px !important;
  }

  #joj-nav .nav-empty {
    display: none !important;
  }

  #click-catcher {
    top: 36px !important;
  }

  /* About page — smaller text */
  .about-outer,
  .about-outer * {
    font-size: 9px !important;
    letter-spacing: 0.01em !important;
  }

  /* Centre portrait */
  .about-image {
    position: static !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  /* Three agents in one row */
  .agent-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .agent-name {
    gap: 3px !important;
    font-size: 9px !important;
  }

  .agent-role {
    font-size: 9px !important;
  }

  .agent-email {
    font-size: 9px !important;
    gap: 3px !important;
  }

  .agent-name svg,
  .agent-email svg {
    width: 10px !important;
    height: 10px !important;
  }

  .about-wrap {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 20px 20px 0 20px !important;
  }

}/* Landscape still — fit full image, no crop */
.joj-slide.landscape-still {
  background: #000;
}

.joj-slide.landscape-still .landscape-img {
  position: absolute;
  inset: 0;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}