/* JB-WEB v32 — 36 archived projects: current editorial design system. */
:root{--jb-archive-bg:#fff;--jb-archive-ink:#383838;--jb-archive-faint:#b5b5b5;--jb-archive-gutter:clamp(18px,5.6vw,81px);--pgap:12px;--pad:var(--jb-archive-gutter)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body.jb-legacy-project{margin:0;padding:0;overflow-x:hidden;background:var(--jb-archive-bg);color:var(--jb-archive-ink);font-family:'neue-haas-grotesk-display','Helvetica Neue',Arial,sans-serif;-webkit-font-smoothing:antialiased}
body.jb-legacy-dark{--jb-archive-bg:#0d0d0d;--jb-archive-ink:#fff;--jb-archive-faint:#aaa}
body.jb-legacy-light{--jb-archive-bg:#fff;--jb-archive-ink:#383838;--jb-archive-faint:#777}
body.jb-legacy-project .jb-archive-main{display:block;width:100%;margin:0 auto;padding:0 0 60px;max-width:none;min-height:65vh;color:var(--jb-archive-ink);font-family:inherit}
body.jb-legacy-project .jb-archive-eyebrow{max-width:1440px;margin:0 auto;padding:105px var(--jb-archive-gutter) 0;color:var(--jb-archive-faint);font:600 13px/1.2 var(--jb-chrome-type);letter-spacing:.07em}
body.jb-legacy-project .intro{padding:clamp(18px,3vw,42px) var(--jb-archive-gutter) clamp(46px,6vw,92px);max-width:1260px;margin:0 auto;text-align:left}
body.jb-legacy-project .intro.section-intro{padding:55px var(--jb-archive-gutter) 35px}
body.jb-legacy-project .project-title{font:700 clamp(52px,8vw,118px)/.93 'neue-haas-grotesk-display','Helvetica Neue',Arial,sans-serif;letter-spacing:-.045em;text-transform:uppercase;margin:0 0 16px;color:var(--jb-archive-ink);max-width:1100px;text-align:left}
body.jb-legacy-project .project-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px;letter-spacing:.03em;margin:8px 0 30px}
body.jb-legacy-project .project-meta span{font:600 13px/1.5 'neue-haas-grotesk-display',Arial,sans-serif;text-transform:uppercase;color:var(--jb-archive-faint);opacity:1}
body.jb-legacy-project .project-meta .dot{display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--jb-archive-faint);opacity:.5}
body.jb-legacy-project .project-desc{max-width:850px;margin:0;text-align:left;font-size:clamp(16px,1.5vw,22px);font-weight:400;line-height:1.55;opacity:1;color:var(--jb-archive-ink)}
body.jb-legacy-project .project-desc p{margin:0 0 15px;line-height:1.55;color:inherit}
body.jb-legacy-project .project-desc strong,body.jb-legacy-project .project-desc p strong{font-weight:600;text-transform:none;display:inline;letter-spacing:0;color:inherit}
body.jb-legacy-project .section-label{color:var(--jb-archive-faint);padding:38px var(--jb-archive-gutter) 18px;font-size:14px;text-transform:uppercase}
body.jb-legacy-project .grid{display:grid;gap:var(--pgap);width:100%}
body.jb-legacy-project .c1{grid-template-columns:1fr}body.jb-legacy-project .c2{grid-template-columns:repeat(2,minmax(0,1fr))}body.jb-legacy-project .c3{grid-template-columns:repeat(3,minmax(0,1fr))}body.jb-legacy-project .c4{grid-template-columns:repeat(4,minmax(0,1fr))}
body.jb-legacy-project .cell{display:block;line-height:0;min-width:0;overflow:hidden;background:transparent}
body.jb-legacy-project .cell img,body.jb-legacy-project .cell video{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
body.jb-legacy-project .jb-archive-main img{max-width:100%;height:auto}
body.jb-legacy-project .bleed{width:calc(100% - var(--jb-archive-gutter)*2);max-width:1360px;margin:0 auto 12px;position:relative}
body.jb-legacy-project .bleed+.bleed{margin-top:12px}
body.jb-legacy-project .jb-archive-main>.grid,body.jb-legacy-project .jb-archive-main>.cell{max-width:1260px;width:calc(100% - var(--jb-archive-gutter)*2);margin:0 auto 12px}
body.jb-legacy-project .video-cell{width:100%;position:relative;padding-bottom:56.25%;background:#111;overflow:hidden}
body.jb-legacy-project .video-cell iframe,body.jb-legacy-project .video-cell video{position:absolute;inset:0;border:0;width:100%;height:100%}
body.jb-legacy-project iframe{max-width:100%;border:0}
body.jb-legacy-project .reveal{opacity:1;transform:none}
body.jb-legacy-project .jb-archive-main a{color:inherit}
body.jb-legacy-project .jb-archive-related{max-width:1260px;padding:38px var(--jb-archive-gutter) 55px;margin:65px auto 0;border-top:1px solid color-mix(in srgb,currentColor 23%,transparent);display:flex;justify-content:space-between;gap:35px}
body.jb-legacy-project .jb-archive-related a{text-decoration:none;color:inherit;display:flex;flex-direction:column;max-width:48%}
body.jb-legacy-project .jb-archive-related span{font:600 13px/1.5 var(--jb-chrome-type);opacity:.65;margin-bottom:9px}
body.jb-legacy-project .jb-archive-related strong{font:700 clamp(23px,3.5vw,42px)/1 var(--jb-chrome-type);text-transform:uppercase;letter-spacing:-.025em}
body.jb-legacy-project .jb-archive-related a:last-child{text-align:right;margin-left:auto}
body.jb-legacy-project .jb-archive-main .no-lightbox{cursor:default}
@media(max-width:760px){
 body.jb-legacy-project .jb-archive-eyebrow{padding:80px 18px 0}
 body.jb-legacy-project .intro{padding:22px 18px 48px}
 body.jb-legacy-project .project-title{font-size:clamp(40px,12.5vw,74px);line-height:.95}
 body.jb-legacy-project .project-desc{font-size:16px}
 body.jb-legacy-project .bleed,body.jb-legacy-project .jb-archive-main>.grid{width:100%;margin:0 auto 10px}
 body.jb-legacy-project .c2,body.jb-legacy-project .c3,body.jb-legacy-project .c4{grid-template-columns:1fr}
 body.jb-legacy-project .jb-archive-related{padding:36px 18px 48px}
}


/* ── Vault project media · v34 ───────────────────────────────────────
   Same center-out reveal language as Stranger Things / King Croc Fury.
   A media item is revealed separately, even within a two/three-column grid.
   The blend belongs to the visual itself, not the gallery container:
   this keeps the surrounding page and shared chrome untouched.
*/
body.jb-legacy-project .jb-archive-main .jb-archive-visual {
  mix-blend-mode: normal;
  background: transparent;
  transform-origin: 50% 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* A white canvas + lighten turns all pixels white. Preserve the five
   intentionally light-theme pages by providing a local dark compositing
   surface only behind media, without recolouring their typography/sections. */
/* V60: Images reveal directly over their page, without a coloured
   intermediary surface. Normal blending preserves their actual colours. */
body.jb-legacy-project .jb-archive-main .jb-blend-surface {
  background: transparent !important;
  isolation: auto;
}

/* Defer visual masking until JS has attached its observer; no-JS images
   remain visible. 'is-visible' is added after entering the viewport AND
   the image / first video frame is available. */
body.jb-archive-motion-ready .jb-archive-main .jb-archive-visual {
  clip-path: inset(44% 42% 44% 42%);
  -webkit-clip-path: inset(44% 42% 44% 42%);
  transform: scale(.78);
  opacity: .08;
  filter: blur(10px);
  transition:
    clip-path 1.12s cubic-bezier(.22,1,.36,1),
    -webkit-clip-path 1.12s cubic-bezier(.22,1,.36,1),
    transform 1.12s cubic-bezier(.22,1,.36,1),
    opacity .62s ease,
    filter .98s cubic-bezier(.22,1,.36,1);
  will-change: clip-path, transform, opacity;
}
body.jb-archive-motion-ready .jb-archive-main .jb-archive-visual.is-visible {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  body.jb-archive-motion-ready .jb-archive-main .jb-archive-visual {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* v35 — consistent light/dark canvases for archived projects. */
body.jb-legacy-dark{background:#0d0d0d;}
body.jb-legacy-light{background:#fff;}
/* First visual uses the same center-out reveal as the rest of the gallery.
   JavaScript reveals it on first intersection, after its decoded frame. */
/* Maintain image dimensions before lazy MP4 playback starts. */
body.jb-legacy-project .jb-archive-main video.jb-archive-visual{display:block;max-width:100%;}

/* v36 — text uses the same upward masked reveal as META and Stranger Things.
   Each block is its own reveal target; markup stays readable if JS fails. */
body.jb-legacy-project .jb-archive-main .jb-text-window {
  display:block; max-width:100%; overflow:hidden; overflow:clip;
  padding:.11em .065em .12em; margin:-.11em -.065em -.12em;
}
body.jb-legacy-project .jb-archive-main .jb-text-window--inline {
  display:inline-block;vertical-align:top;
}
body.jb-legacy-project .jb-archive-main .jb-text-inner {
  display:block; transform:translate3d(0,112%,0);opacity:.35;
  transition:transform 1.05s cubic-bezier(.22,1,.36,1),opacity .8s ease;
  transition-delay:var(--jb-text-delay,0s);
}
body.jb-legacy-project .jb-archive-main .jb-text-window.is-visible .jb-text-inner {
  transform:translate3d(0,0,0);opacity:1;
}
body.jb-legacy-project .jb-archive-main .project-title .jb-text-window {
  padding:.075em .05em .13em;margin:-.075em -.05em -.13em;
}
@media(prefers-reduced-motion:reduce){
 body.jb-legacy-project .jb-archive-main .jb-text-inner{
  transform:none!important;opacity:1!important;transition:none!important;
 }
}


/* JB-WEB v37 — aligned title / subtitle / metadata vertical rhythm. */
body.jb-legacy-project .intro .project-title {
  margin-bottom: 0;
}
body.jb-legacy-project .intro .project-title.jb-title-stacked .jb-title-main,
body.jb-legacy-project .intro .project-title.jb-title-stacked .jb-title-sub {
  display: block;
  line-height: 1;
}
body.jb-legacy-project .intro .project-title.jb-title-stacked .jb-title-sub {
  font-size: .45em;
  letter-spacing: .08em;
  opacity: .7;
  margin-top: var(--jb-title-spacing, clamp(12px, 1.5vw, 21px));
}
body.jb-legacy-project .intro .project-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(5px, .85vw, 12px);
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  margin: var(--jb-title-spacing, clamp(12px, 1.5vw, 21px)) 0 30px;
}
body.jb-legacy-project .intro .project-meta::-webkit-scrollbar { display:none; }
body.jb-legacy-project .intro .project-meta span { font-size:var(--jb-meta-font-size,13px); }
body.jb-legacy-project .intro .project-meta span,
body.jb-legacy-project .intro .project-meta .jb-text-window,
body.jb-legacy-project .intro .project-meta .jb-text-inner { white-space:nowrap; }
body.jb-legacy-project .intro .project-meta .dot { flex: 0 0 4px; }
@media (max-width:760px) {
  body.jb-legacy-project .intro .project-meta { gap: clamp(3px, 1vw, 7px); }
  body.jb-legacy-project .intro .project-meta span { font-size:var(--jb-meta-font-size,clamp(10px, 2.65vw, 13px)); }
  body.jb-legacy-project .intro .project-meta .dot { flex-basis:3px;width:3px;height:3px; }
}

/* JB-WEB v38 — equal actual picture heights, NO black bands and NO cropping.
   Images get widths proportional to their true aspect ratios. If an original
   is taller it becomes narrower; landscape pieces become wider. */
@media (min-width:761px) {
  body.jb-legacy-project .jb-archive-main .grid.c2,
  body.jb-legacy-project .jb-archive-main .grid.c3,
  body.jb-legacy-project .jb-archive-main .grid.c4 {
    display:grid !important;
    grid-template-columns:var(--jb-gallery-columns) !important;
    align-items:start !important;
    justify-items:stretch !important;
    grid-auto-rows:auto !important;
    min-width:0;
  }
  body.jb-legacy-project .jb-archive-main .grid.c2 > .cell,
  body.jb-legacy-project .jb-archive-main .grid.c3 > .cell,
  body.jb-legacy-project .jb-archive-main .grid.c4 > .cell {
    width:100% !important;
    height:auto !important;
    aspect-ratio:var(--jb-natural-ratio,auto);
    align-self:start !important;
    display:block !important;
    overflow:hidden;
    min-width:0;
    min-height:0;
    background:transparent !important;
  }
  body.jb-legacy-project .jb-archive-main .grid.c2 > .cell > :is(img,video),
  body.jb-legacy-project .jb-archive-main .grid.c3 > .cell > :is(img,video),
  body.jb-legacy-project .jb-archive-main .grid.c4 > .cell > :is(img,video) {
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    max-width:none !important;
    object-fit:contain !important;
    object-position:center;
    aspect-ratio:var(--jb-natural-ratio,auto);
    background:transparent !important;
  }
}
@media(max-width:760px){
  body.jb-legacy-project .jb-archive-main .grid.c2,
  body.jb-legacy-project .jb-archive-main .grid.c3,
  body.jb-legacy-project .jb-archive-main .grid.c4 {
    grid-template-columns:1fr !important;
  }
  body.jb-legacy-project .jb-archive-main .grid.c2 > .cell,
  body.jb-legacy-project .jb-archive-main .grid.c3 > .cell,
  body.jb-legacy-project .jb-archive-main .grid.c4 > .cell {
    height:auto !important;
    aspect-ratio:auto;
  }
  body.jb-legacy-project .jb-archive-main .grid.c2 > .cell > :is(img,video),
  body.jb-legacy-project .jb-archive-main .grid.c3 > .cell > :is(img,video),
  body.jb-legacy-project .jb-archive-main .grid.c4 > .cell > :is(img,video) {
    width:100% !important;height:auto !important;
    object-fit:contain !important;aspect-ratio:auto;
  }
}


/* JB-WEB v39 — remove the VAULT / YEAR breadcrumb and move content up while
   keeping the project headline comfortably below the fixed site header. */
body.jb-legacy-project .jb-archive-main > .intro:first-child {
  padding-top:clamp(95px,7.9vw,119px);
}
@media(max-width:760px){
  body.jb-legacy-project .jb-archive-main > .intro:first-child {
    padding-top:clamp(91px,20vw,105px);
  }
}

/* JB-WEB v42 — archive footer follows the exact background of each project.
   Do not change the global shared footer colour on Home or newer projects. */
body.jb-legacy-project .jb-chrome-footer.site-footer {
  background:var(--jb-archive-bg) !important;
  color:var(--jb-archive-ink) !important;
  box-shadow:none !important;
}
body.jb-legacy-light .jb-chrome-footer.site-footer .jb-chrome-back img {
  filter:brightness(0) !important;
}


/* JB-WEB v64 — unify the TOP project title across all 36 Vault projects.
   Dambot is the canonical reference (v39). Apply only to the opening intro,
   never the interior section intros used by some editorial project pages.
   High specificity + !important neutralizes older in-page overrides such as
   .lim-intro, .tmr-intro, .me-intro and inline padding/margin declarations.
   Preserve the existing horizontal gutter, title typography and galleries. */
body.jb-legacy-project .jb-archive-main > .intro:first-child {
  padding-top: clamp(95px, 7.9vw, 119px) !important;
  margin-top: 0 !important;
}
@media (max-width: 760px) {
  body.jb-legacy-project .jb-archive-main > .intro:first-child {
    padding-top: clamp(91px, 20vw, 105px) !important;
  }
}
