/* JB-WEB v32. Single source of truth for site header & footer.
   Existing project geometry is preserved; navigation is outside scaled artboards. */
:root{--jb-chrome-white:#fff;--jb-chrome-dark:#383838;--jb-chrome-bg:#111;--jb-chrome-type:'neue-haas-grotesk-display','Neue Haas Grotesk Display Pro','Helvetica Neue',Arial,sans-serif}
.jb-chrome-header{position:fixed!important;z-index:1500!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:auto!important;min-height:0!important;padding:30px 52px 0 29px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;background:transparent!important;box-shadow:none!important;border:none!important;color:#fff;transform:translateY(0);transition:transform .32s cubic-bezier(.2,.8,.2,1),color .25s;pointer-events:none!important}
.jb-chrome-header>*{pointer-events:auto!important}
.jb-chrome-header.is-scroll-hidden{transform:translateY(-110%)!important}
.jb-chrome-header .jb-chrome-mark{position:relative!important;inset:auto!important;top:auto!important;left:auto!important;display:block!important;width:53px!important;height:49px!important;min-width:53px!important;flex:0 0 auto!important;transform:translateY(-5px)!important;margin:0!important;padding:0!important}
.jb-chrome-header .jb-chrome-mark img{display:block!important;width:53px!important;height:49px!important;max-height:none!important;max-width:none!important;object-fit:contain!important;filter:none;transition:filter .2s!important}
.jb-chrome-header .jb-chrome-desktop{position:relative!important;top:auto!important;left:auto!important;right:auto!important;display:flex!important;gap:0!important;align-items:center!important;margin:11px 0 0!important;padding:0!important;color:inherit!important;line-height:19px!important;white-space:nowrap!important;font:700 16px/19px var(--jb-chrome-type)!important;letter-spacing:0!important}
.jb-chrome-header .jb-chrome-desktop a,.jb-chrome-header .jb-chrome-desktop span[aria-current]{color:inherit!important;text-decoration:none!important;opacity:1!important}
.jb-chrome-header .jb-chrome-desktop a:hover{opacity:.6!important}
.jb-chrome-header .jb-chrome-desktop a:first-child,.jb-chrome-header .jb-chrome-desktop [aria-current]{margin-right:33px!important}
.jb-chrome-header .jb-chrome-dot{width:14px!important;height:14px!important;min-width:14px!important;border:0!important;border-radius:50%!important;display:block!important;margin:3px 9px 0 0!important;background:currentColor!important}
.jb-chrome-header.is-on-light{color:var(--jb-chrome-dark)!important}
.jb-chrome-header.is-on-light .jb-chrome-mark img{filter:brightness(0) invert(22%)!important}
.jb-chrome-header .jb-chrome-toggle{display:none!important}
.jb-chrome-header .jb-chrome-mobile{display:none!important}
body.jb-chrome-menu-open{overflow:hidden!important}
.jb-chrome-footer{position:relative;z-index:20;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;background:var(--jb-chrome-bg);color:#fff;padding:64px 24px 30px!important;margin:0!important;border:0!important;min-height:0!important;text-align:center!important;font-family:var(--jb-chrome-type)!important}
.jb-chrome-footer .jb-chrome-back{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:inherit;font:700 12px/1.2 var(--jb-chrome-type);white-space:nowrap}
.jb-chrome-footer .jb-chrome-back img{display:block;width:70px;height:66px;object-fit:contain}
.jb-chrome-footer .jb-chrome-back span{display:block;margin-top:16px}
.jb-chrome-footer .jb-chrome-social{display:flex;align-items:center;justify-content:space-between;gap:24px;width:min(540px,100%);margin-top:65px;white-space:nowrap}
.jb-chrome-footer .jb-chrome-social a{font:700 16px/1.2 var(--jb-chrome-type)!important;text-decoration:none;color:inherit!important;opacity:1!important}
.jb-chrome-footer .jb-chrome-social a:hover{opacity:.5!important}
.jb-chrome-footer .jb-chrome-copyright{font:600 16px/1.2 var(--jb-chrome-type)!important;letter-spacing:0!important;color:inherit!important;margin:45px 0 0!important;white-space:normal}
/* Vault's original fixed footer/parallax behaviour is still managed by vault.js. */
.jb-chrome-footer.vault-footer{position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:20!important;transform:translateY(101%);transition:transform .55s cubic-bezier(.22,.68,0,1);pointer-events:none;padding:18px 24px 28px!important}
.jb-chrome-footer.vault-footer.is-visible{transform:translateY(0);pointer-events:auto}
.jb-chrome-footer.vault-footer .vault-back-top{color:#fff!important}
.jb-chrome-footer.vault-footer .vault-copyright{color:#fff!important}
/* Home and Stranger Things use a scaled Figma canvas. Keep their placement rules. */
.figma-desktop .desktop-copy,.figma-mobile .m-copy,.jb-chrome-footer .jb-chrome-copyright,.page-footer small{font-family:var(--jb-chrome-type)!important;font-weight:600!important;letter-spacing:0!important}
@media(max-width:1024px){
.jb-chrome-header{padding-right:17px!important}
}
@media(max-width:759px){
.jb-chrome-header{padding:14px 17px 0!important;min-height:50px!important}
.jb-chrome-header .jb-chrome-mark{width:41px!important;height:38px!important;min-width:41px!important;transform:translateY(-2px)!important}
.jb-chrome-header .jb-chrome-mark img{width:41px!important;height:38px!important}
.jb-chrome-header .jb-chrome-desktop{display:none!important}
.jb-chrome-header .jb-chrome-toggle{position:relative!important;z-index:1602!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:6px!important;width:36px!important;height:38px!important;min-width:36px!important;border:0!important;background:none!important;padding:3px!important;color:inherit!important;cursor:pointer!important}
.jb-chrome-header .jb-chrome-toggle span{display:block!important;width:27px!important;height:2px!important;border:0!important;flex:none!important;background:currentColor!important;transform:none;transition:transform .28s!important}
.jb-chrome-header .jb-chrome-toggle[aria-expanded=true] span:first-child{transform:translateY(4px) rotate(45deg)!important}
.jb-chrome-header .jb-chrome-toggle[aria-expanded=true] span:last-child{transform:translateY(-4px) rotate(-45deg)!important}
.jb-chrome-header .jb-chrome-mobile{position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1601!important;width:100vw!important;height:100dvh!important;background:rgba(17,17,17,.985)!important;color:#fff!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:18px!important;padding:50px 18px!important;text-align:center!important;transform:translateY(-110%);visibility:hidden!important;pointer-events:none!important;transition:transform .32s ease,visibility .32s!important}
.jb-chrome-header .jb-chrome-mobile:not([inert]),.jb-chrome-header .jb-chrome-mobile.is-open{transform:translateY(0)!important;visibility:visible!important;pointer-events:auto!important}
.jb-chrome-header .jb-chrome-mobile a,.jb-chrome-header .jb-chrome-mobile span{font:700 20px/1.3 var(--jb-chrome-type)!important;text-transform:uppercase;text-decoration:none;color:#fff!important;margin:0!important;padding:4px!important;opacity:1!important}
.jb-chrome-header .jb-chrome-mobile a:hover{opacity:.55!important}
.jb-chrome-header.jb-chrome-menu-open .jb-chrome-toggle{color:#fff!important}
.jb-chrome-footer{padding:55px 20px 28px!important}
.jb-chrome-footer .jb-chrome-social{gap:12px;margin-top:55px;width:min(350px,100%)}
.jb-chrome-footer .jb-chrome-social a{font-size:12px!important}
.jb-chrome-footer .jb-chrome-copyright{font-size:clamp(10px,2.8vw,13px)!important;margin-top:36px!important}
}
@media(max-width:1024px){.jb-chrome-footer.vault-footer{position:relative!important;transform:none!important;margin-top:92px!important;padding:0 20px 28px!important;pointer-events:auto!important}}
@media(prefers-reduced-motion:reduce){.jb-chrome-header,.jb-chrome-footer,.jb-chrome-mobile{transition:none!important}}

/* V45: real project background and readable footer ink, with no hardcoded #111 band. */
.jb-chrome-footer{background:var(--jb-chrome-bg, #111)!important}
.jb-chrome-footer.jb-chrome-footer--light{color:#383838!important}
.jb-chrome-footer.jb-chrome-footer--light .jb-chrome-back img{filter:brightness(0) invert(22%)!important}
.jb-chrome-footer.vault-footer{background:var(--jb-chrome-bg, #111)!important}
.jb-chrome-footer.vault-footer .vault-back-top,
.jb-chrome-footer.vault-footer .vault-copyright{color:inherit!important}
/* V45: dark projects stay white after scroll; only genuinely light sections flip. */
.jb-chrome-header:not(.is-on-light){color:#fff!important}
.jb-chrome-header:not(.is-on-light) .jb-chrome-mark img{filter:none!important}
.jb-chrome-header.is-on-light{color:#383838!important}
.jb-chrome-header.is-on-light .jb-chrome-mark img{filter:brightness(0) invert(22%)!important}
.jb-chrome-header .jb-chrome-dot{background:currentColor!important}
.jb-chrome-header.jb-chrome-menu-open .jb-chrome-toggle{color:#fff!important}


/* JB-WEB V50 — project-page navigation & social divider, after Figma 585:118.
   Matching Figma: desktop 93px PREV/NEXT + 24px linked project titles;
   phone ~51px PREV/NEXT + 14px linked project titles. */

/* Shared footer: horizontal rule above the social links, 1200px on 1440px Figma artboards. */
.jb-chrome-footer .jb-chrome-social{position:relative}
.jb-chrome-footer .jb-chrome-social::before{
  content:"";position:absolute;display:block;pointer-events:none;
  width:min(1200px,calc(100vw - 2 * clamp(20px,8.33vw,120px)));
  height:1px;left:50%;top:-53px;transform:translateX(-50%);
  background:currentColor;opacity:.27;
}

/* Reserve space for absolute title captions before the opaque shared footer. */
.project-switcher.jb-project-nav-v50,.project-pager.jb-project-nav-v50{margin-bottom:44px}

/* The original main-project PREV/NEXT typography is unchanged. */
.project-switcher.jb-project-nav-v50 > a,
.project-pager.jb-project-nav-v50 > a,
.page-prev-next.jb-project-nav-v50 > a{
  position:relative;display:block;
}
.project-switcher.jb-project-nav-v50 .jb-project-nav-title,
.project-pager.jb-project-nav-v50 .jb-project-nav-title,
.page-prev-next.jb-project-nav-v50 .jb-project-nav-title{
  position:absolute;left:50%;top:calc(100% + 7px);transform:translateX(-50%);
  display:block;width:max-content;max-width:240px;
  font:600 24px/1.25 var(--jb-chrome-type);letter-spacing:0;
  color:inherit;text-align:center;text-transform:none;white-space:normal;
  text-shadow:none;pointer-events:none;
}
/* Existing text reveal wrappers must not clip the new captions. */
.project-switcher.jb-project-nav-v50 > a > .text-mask,
.project-pager.jb-project-nav-v50 > a > .text-line-window{position:relative}

/* Vault archive: PREV/NEXT at exactly the same visual scale as the main projects.
   Keep the previously authored destination title in <strong>. */
body.jb-legacy-project .jb-archive-related.jb-project-nav-v50{
  display:flex;align-items:flex-start;justify-content:center;gap:49px;
  padding:82px 24px 55px;max-width:1260px;
  border-top:1px solid color-mix(in srgb,currentColor 23%,transparent);
}
body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > a{
  flex:0 1 270px;min-width:0;width:270px;max-width:none;margin:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;text-decoration:none;line-height:1;
}
body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > a > span{
  display:block;font:700 clamp(60px,6.47vw,94px)/1 var(--jb-chrome-type);
  letter-spacing:-.045em;opacity:1;margin:0;white-space:nowrap;
}
body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > a > strong{
  display:block;margin-top:14px;width:100%;max-width:100%;
  font:600 24px/1.25 var(--jb-chrome-type);letter-spacing:0;
  text-transform:none;white-space:normal;overflow-wrap:normal;
}
body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > .jb-project-nav-rule{
  flex:0 0 1px;width:1px;height:73px;align-self:flex-start;margin-top:11px;
  background:currentColor;opacity:.38;
}
body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > a:hover{opacity:.6}

/* Stranger Things: preserve both independently scaled Figma artboards. */
.artboard--desktop .page-prev-next.jb-project-nav-v50 .jb-project-nav-title{
  top:103px;max-width:245px;
}
.artboard--mobile .page-prev-next.jb-project-nav-v50 .jb-project-nav-title{
  top:52px;width:145px;max-width:145px;font-size:14px;line-height:1.22;
}
/* Its social area belongs to the scaled artboard, not the shared footer. */
.page-footer .footer-social{position:absolute}
.page-footer .footer-social::before{
  content:"";position:absolute;left:50%;top:-54px;
  width:1200px;height:1px;transform:translateX(-50%);
  pointer-events:none;background:currentColor;opacity:.27;
}
.artboard--mobile .page-footer .footer-social::before{width:352px;top:-36px}

@media(max-width:959px){
  .project-switcher.jb-project-nav-v50,.project-pager.jb-project-nav-v50{margin-bottom:34px}
  .project-switcher.jb-project-nav-v50 .jb-project-nav-title,
  .project-pager.jb-project-nav-v50 .jb-project-nav-title{
    top:calc(100% + 6px);width:145px;max-width:145px;
    font-size:14px;line-height:1.2;
  }
  body.jb-legacy-project .jb-archive-related.jb-project-nav-v50{
    margin-top:50px;gap:28px;padding:45px 18px 48px;
  }
  body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > a{
    flex:0 1 134px;width:134px;
  }
  body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > a > span{
    font-size:clamp(43px,12.9vw,54px);
  }
  body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > a > strong{
    margin-top:7px;font-size:14px;line-height:1.25;
  }
  body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > .jb-project-nav-rule{
    height:40px;margin-top:5px;
  }
}
@media(max-width:759px){
  .jb-chrome-footer .jb-chrome-social::before{
    width:calc(100vw - 40px);top:-35px;
  }
}
@media(max-width:370px){
  body.jb-legacy-project .jb-archive-related.jb-project-nav-v50{gap:17px;padding-left:10px;padding-right:10px}
  body.jb-legacy-project .jb-archive-related.jb-project-nav-v50 > a > span{font-size:clamp(38px,12.5vw,48px)}
  .project-switcher.jb-project-nav-v50 .jb-project-nav-title,
  .project-pager.jb-project-nav-v50 .jb-project-nav-title{max-width:125px;width:125px;font-size:13px}
}


/* V51 — Centre social separator between BACK TO TOP and social links.
   Desktop: 65px vertical gap => centred at 32.5px above social row.
   Mobile: 55px gap => centred at 27.5px above social row. */
.jb-chrome-footer .jb-chrome-social::before{top:-32px}
@media(max-width:759px){.jb-chrome-footer .jb-chrome-social::before{top:-27px}}
/* Stranger Things has its own scaled Figma artboards. */
.page-footer .footer-social::before{top:-32px}
.artboard--mobile .page-footer .footer-social::before{top:-27px}

/* V52 — dark main projects: PREV/NEXT and their project titles match
   the resting colour of the shared BACK TO TOP label. Light projects unchanged. */
body.jb-main-project-dark .project-switcher.jb-project-nav-v50,
body.jb-main-project-dark .project-pager.jb-project-nav-v50 {color:#fff;}
body.jb-main-project-dark .project-switcher.jb-project-nav-v50 > a,
body.jb-main-project-dark .project-pager.jb-project-nav-v50 > a,
body.jb-main-project-dark .project-switcher.jb-project-nav-v50 .jb-project-nav-title,
body.jb-main-project-dark .project-pager.jb-project-nav-v50 .jb-project-nav-title {color:inherit;}

/* JB V60 — no coloured mats behind expanding gallery artwork.
   Gallery clips remain as masks; the underlying page provides the backdrop.
   Do not alter page, hero, footer backgrounds or the media pixels themselves. */
body.jb-legacy-project .jb-archive-main :is(.jb-blend-surface,.cell,.grid,.chem-img,.chem-c2,.bbb-img,.bbb-c2,.bleed,.video-cell) {
  background-color: transparent !important;
}
body:not(.jb-legacy-project) :is(.media-reveal,.gallery-media,.media-frame,.media-clip,.artwork,.frame-media,.media-inner,.work-video) {
  background-color: transparent !important;
}
