/* =========================================================
   JZ Creates 2026 — Work piece: The Exit (VARELLI)
   Loaded after single.css on this post only (jzc-work-assets.php).
   Type and colour come from the 2026 system (styles.css / single.css);
   this file only adds layout for the bespoke, non-Elementor body.
   ========================================================= */

.jzw .wbody .tx-page{--tx-gap:clamp(1rem,2vw,1.5rem);font-family:var(--font-body);color:var(--muted)}
.jzw .wbody .tx-page *,.jzw .wbody .tx-page *::before,.jzw .wbody .tx-page *::after{box-sizing:border-box}

/* ---------- section rhythm + measure (matches the nav: 1600px, 5%) ---------- */
.tx-sec{padding:clamp(4.5rem,9vw,8rem) var(--pad)}
.tx-sec--alt{background:var(--bg-2)}
.tx-wrap{max-width:var(--maxw);margin:0 auto}
.jzw .wbody .tx-page .tx-head{max-width:var(--maxw);margin:0 auto clamp(2.5rem,5vw,3.5rem);text-align:center}
.jzw .wbody .tx-page .tx-head h2{margin:0 auto;max-width:none}
.jzw .wbody .tx-page .tx-head .tx-sub{max-width:62rem;margin:1.4rem auto 0}
.jzw .wbody .tx-page p{font-weight:300;font-size:clamp(1.02rem,1.15vw,1.125rem);line-height:1.7;margin:0 0 1.1em}
.jzw .wbody .tx-page p:last-child{margin-bottom:0}
.jzw .wbody .tx-page .tx-eyebrow{font-family:var(--font-body)!important;font-size:.78rem!important;font-weight:600!important;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)!important;margin:0 0 1rem}
/* italic overhang: the gradient box clips glyphs that lean past it, so pad
   both sides (the leading A in "AI." was losing its left edge) */
.jzw .wbody .tx-page .grad.jzc-lastword{font-weight:500;padding-left:.12em!important;margin-left:-.12em!important;padding-right:.12em!important}
/* single.css sets h2 to `capitalize`; pages.js splits split-headings into one
   inline-block per letter, so every letter counted as a word and the heading
   rendered in all caps. The copy here is already Title Case. */
.jzw .wbody .tx-page h2,.jzw .wbody .tx-page h2 *{text-transform:none!important}

/* ---------- split: heading left, copy right ---------- */
.tx-split{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(2rem,6vw,6rem);align-items:start}
.jzw .wbody .tx-page .tx-split h2{text-align:left!important;margin:0}
@media (max-width:900px){.tx-split{grid-template-columns:1fr}}

/* ---------- project meta (Client / Platform / Services) + intro ---------- */
.tx-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 2.5rem;align-content:start}
.tx-meta div{min-width:0}
.jzw .wbody .tx-page .tx-meta h4{margin:.35rem 0 0}
.tx-meta .tx-meta-wide{grid-column:1/-1}
@media (max-width:520px){.tx-meta{grid-template-columns:1fr}}

/* ---------- project details bar (unused, kept for future pieces) ---------- */
.tx-stats{padding-top:clamp(3rem,6vw,4.5rem);padding-bottom:clamp(3rem,6vw,4.5rem)}
.tx-stats-grid{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1.8rem 2rem}
@media (max-width:1100px){.tx-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.tx-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tx-stats-grid > div{min-width:0;border-top:1px solid var(--line);padding-top:1rem}
.jzw .wbody .tx-page .tx-stats-grid h5{margin:0 0 .45rem!important}
.jzw .wbody .tx-page .tx-stats-grid h4{margin:0;font-size:clamp(1.05rem,1.35vw,1.3rem)!important}

/* ---------- main film slot (YouTube) ---------- */
.tx-film{position:relative;max-width:var(--maxw);margin:0 auto;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000 center/cover no-repeat}
.jzw .wbody .tx-film iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0}
.tx-film-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9rem;text-align:center;padding:1.5rem;background:radial-gradient(ellipse at center,rgba(12,12,14,.3) 0%,rgba(12,12,14,.82) 100%)}
.jzw .wbody .tx-film-placeholder .tx-film-mark{font-family:var(--font-display)!important;color:var(--ink)!important;font-size:clamp(1.6rem,3.5vw,3rem);letter-spacing:.35em;padding-left:.35em;text-transform:uppercase;margin:0;font-weight:400}
.jzw .wbody .tx-film-placeholder .tx-eyebrow{margin:0}
.jzw .wbody .tx-page .tx-tagline{text-align:center;margin:clamp(1.75rem,3vw,2.5rem) auto 0;font-family:var(--font-display)!important;font-style:italic;font-size:clamp(1.15rem,1.8vw,1.5rem);color:var(--ink)!important;font-weight:400}

/* ---------- full-screen fixed wallpapers ----------
   clip-path on the frame + position:fixed image: the image holds still while
   the page scrolls over it (works on iOS, unlike background-attachment). */
.tx-wall{position:relative;height:100vh;height:100svh;min-height:520px;clip-path:inset(0);-webkit-clip-path:inset(0);background:var(--bg)}
.tx-wall-img{position:fixed;inset:0;width:100%;height:100vh;height:100lvh;background-size:cover;background-position:center;pointer-events:none}
.tx-wall::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,rgba(12,12,14,.6) 0%,rgba(12,12,14,0) 20%,rgba(12,12,14,0) 72%,rgba(12,12,14,.7) 100%)}
/* Phones: a full-height portrait crop of a 16:9 image stretches it ~2.5x on a
   high-DPI screen and turns soft. Below 768px the wallpaper becomes a 4:3
   band that scrolls normally, which shows the image near its native size. */
@media (max-width:767px){
  .tx-wall{height:auto;min-height:0;aspect-ratio:4/3;clip-path:none;-webkit-clip-path:none;overflow:hidden}
  .tx-wall-img{position:absolute;inset:0;height:100%}
}
.jzw .wbody .tx-wall .tx-wall-caption{position:absolute;z-index:2;left:var(--pad);bottom:clamp(1.5rem,4vw,3rem);margin:0;font-size:.78rem!important;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--ink)!important}

/* ---------- story beats ---------- */
.tx-beats{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.5rem,2.5vw,2.5rem) var(--tx-gap)}
@media (max-width:980px){.tx-beats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.tx-beats{grid-template-columns:1fr}}
.tx-beat-img{aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000 center/cover no-repeat;margin-bottom:1.1rem}
.jzw .wbody .tx-page .tx-beat-time{display:block;font-size:.75rem;font-weight:600;letter-spacing:.16em;color:var(--muted);margin-bottom:.35rem}
.jzw .wbody .tx-page .tx-beat h3{margin:0 0 .45rem}
.jzw .wbody .tx-page .tx-beat p{font-size:1rem}

/* ---------- previs pair ---------- */
.tx-previs{max-width:var(--maxw);margin:clamp(3rem,6vw,4.5rem) auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--tx-gap)}
@media (max-width:760px){.tx-previs{grid-template-columns:1fr}}
.jzw .wbody .tx-previs figure{margin:0;border-radius:0;overflow:visible}
.jzw .wbody .tx-previs video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;border-radius:16px}
.jzw .wbody .tx-previs figcaption{display:flex;justify-content:space-between;gap:1rem;margin-top:.8rem;font-size:.78rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--ink)}
.jzw .wbody .tx-previs figcaption span{color:var(--muted);font-weight:400;letter-spacing:.08em}
.tx-previs-controls{display:flex;justify-content:center;margin-top:1.5rem}
.tx-previs-toggle{display:none}
html.jzc-js .tx-previs-toggle{display:inline-flex}

/* ---------- cards (same treatment as the Vision / Concept cards) ---------- */
.tx-cards{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}
.tx-previs-controls + .tx-cards{margin-top:clamp(3.5rem,6vw,5rem)}
@media (max-width:980px){.tx-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tx-cards>.tx-card:last-child:nth-child(odd){grid-column:1/-1}}
@media (max-width:640px){.tx-cards{grid-template-columns:1fr}}
.tx-card{padding:2.2rem 2rem 2.6rem;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.025)}
.jzw .wbody .tx-page .tx-card h3{margin:0 0 .7rem}
.jzw .wbody .tx-page .tx-num{display:block;font-size:.75rem;font-weight:600;letter-spacing:.16em;color:var(--muted);margin-bottom:1rem}

/* ---------- world: three previews ---------- */
.tx-previews{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--tx-gap)}
@media (max-width:760px){.tx-previews{grid-template-columns:1fr}}
.jzw .wbody .tx-page a.tx-preview{display:block;position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;color:var(--ink);text-decoration:none}
.tx-preview-img{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform 1.1s var(--ease-out)}
.tx-preview:hover .tx-preview-img{transform:scale(1.05)}
.tx-preview::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(12,12,14,.88) 0%,rgba(12,12,14,.2) 45%,rgba(12,12,14,0) 70%)}
.tx-preview-label{position:absolute;z-index:2;left:1.5rem;right:1.5rem;bottom:1.4rem}
.jzw .wbody .tx-page .tx-preview-label .tx-eyebrow{margin:0 0 .35rem;color:rgba(246,243,239,.75)!important}
.jzw .wbody .tx-page .tx-preview-label h3{margin:0;color:var(--ink)!important;-webkit-text-fill-color:var(--ink)!important;font-size:clamp(1.3rem,1.8vw,1.7rem)!important}
.tx-preview-label h3 span{display:inline-block;margin-left:.35em;transition:transform .4s var(--ease-out)}
.tx-preview:hover .tx-preview-label h3 span{transform:translateX(4px)}

/* ---------- look-dev sheets ---------- */
.tx-sheet{max-width:var(--maxw);margin:clamp(5rem,9vw,8rem) auto 0;scroll-margin-top:110px}
.tx-sheet .tx-split{align-items:end;margin-bottom:clamp(1.75rem,3vw,2.5rem)}
.jzw .wbody .tx-page a.tx-sheet-img{display:block;position:relative;border-radius:16px;overflow:hidden;background:#000}
.jzw .wbody .tx-sheet-img img{display:block;width:100%;height:auto;border-radius:0;transition:transform 1.2s var(--ease-out)}
.tx-sheet-img:hover img{transform:scale(1.012)}
.tx-sheet-img::after{content:"Click to enlarge";position:absolute;right:1rem;bottom:1rem;padding:.55em 1.1em;border-radius:999px;font-family:var(--font-body);font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;background:rgba(12,12,14,.8);color:var(--ink);opacity:0;transition:opacity .3s ease}
.tx-sheet-img:hover::after,.tx-sheet-img:focus-visible::after{opacity:1}
.tx-spec{margin-top:clamp(1.5rem,3vw,2.25rem);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem 2.5rem}
@media (max-width:900px){.tx-spec{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.tx-spec{grid-template-columns:1fr}}
.tx-spec div{border-top:1px solid var(--line);padding-top:.9rem}
.jzw .wbody .tx-page .tx-spec h5{margin:0 0 .35rem!important}
.jzw .wbody .tx-page .tx-spec p{font-size:1rem;margin:0}

/* ---------- stills gallery ---------- */
.tx-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--tx-gap);max-width:var(--maxw);margin:0 auto}
.jzw .wbody .tx-gallery figure{margin:0;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000}
.jzw .wbody .tx-gallery img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform 1s var(--ease-out)}
.tx-gallery figure:hover img{transform:scale(1.04)}
.jzw .wbody .tx-gallery figure a{display:block;width:100%;height:100%;cursor:zoom-in}
.jzw .wbody .tx-page a.tx-sheet-img{cursor:zoom-in}

/* ---------- lightbox (appended to <body>, so not scoped to .wbody) ---------- */
.tx-lb{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:rgba(8,8,10,.94);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease;font-family:var(--font-body,Inter,system-ui,sans-serif)}
.tx-lb.is-open{opacity:1;visibility:visible}
.tx-lb__figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:1rem;max-width:94vw}
.tx-lb__img{display:block;max-width:94vw;max-height:84vh;width:auto;height:auto;border-radius:10px;box-shadow:0 30px 80px rgba(0,0,0,.6);transform:scale(.98);transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .25s ease}
.tx-lb.is-open .tx-lb__img{transform:none}
.tx-lb__img.is-loading{opacity:0}
.tx-lb__caption{display:flex;gap:1.2rem;align-items:baseline;justify-content:center;color:#c0bbb2;font-size:.9rem;text-align:center;max-width:80ch;padding:0 4rem}
.tx-lb__count{font-size:.75rem;font-weight:600;letter-spacing:.16em;color:#f6f3ef;white-space:nowrap}
.tx-lb__btn{position:absolute;display:grid;place-items:center;width:3.2rem;height:3.2rem;border-radius:999px;border:1px solid rgba(246,243,239,.14);background:rgba(22,22,26,.7);color:#f6f3ef;font-size:1.4rem;line-height:1;cursor:pointer;transition:border-color .3s,transform .3s cubic-bezier(.22,1,.36,1),background .3s}
.tx-lb__btn:hover{border-color:rgba(214,0,237,.6);background:rgba(22,22,26,.95)}
.tx-lb__btn:focus-visible{outline:2px solid #d600ed;outline-offset:3px}
.tx-lb__close{top:1.2rem;right:1.2rem}
.tx-lb__prev{left:1.2rem;top:50%;transform:translateY(-50%)}
.tx-lb__next{right:1.2rem;top:50%;transform:translateY(-50%)}
.tx-lb__prev:hover{transform:translateY(-50%) translateX(-3px)}
.tx-lb__next:hover{transform:translateY(-50%) translateX(3px)}
.tx-lb--single .tx-lb__prev,.tx-lb--single .tx-lb__next{display:none}
@media (max-width:640px){.tx-lb__prev,.tx-lb__next{top:auto;bottom:1.2rem;transform:none}.tx-lb__prev:hover,.tx-lb__next:hover{transform:none}.tx-lb__img{max-height:72vh}.tx-lb__caption{padding:0 1rem}}
html.tx-lb-lock,html.tx-lb-lock body{overflow:hidden}
.jzw .wbody .tx-gallery .is-wide{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
@media (max-width:760px){.tx-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.jzw .wbody .tx-gallery .is-wide{grid-column:1/-1;grid-row:auto;aspect-ratio:16/9}}

@media (max-width:1024px){
  .jzw .wbody .tx-page .tx-head{text-align:left}
  .jzw .wbody .tx-page .tx-head .tx-sub{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
  .tx-preview-img,.tx-sheet-img img,.tx-gallery img{transition:none}
}
