/* esoteria.ai v2: door.css (CP10 C2), the one source for the door card: the home's Every job and each chapter's end page.
   Loaded by index.html after base.css and before home.css, and by the chapters after chapter.css. Placement lives with each page
   (home.css: .jx, .jx-row, .jx-col, .jx-demo; chapter.css: .end-next). Only transform and opacity animate. */
.jx-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .9); color: inherit; text-decoration: none;
  opacity: 0; transform: translateY(24px); transition: opacity .42s var(--ease), transform .42s var(--ease); }
.jx-card.in { opacity: 1; transform: none; }
.jx-lane { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--t2); }
.jx-pic { height: calc(140px * var(--k)); border-radius: 10px; background: #0E0D12; box-shadow: inset 0 0 0 1px #1E1D25; overflow: hidden; position: relative; }
.jx-rec { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--t1); text-wrap: pretty; }
.jx-why { font-size: 13px; color: var(--t3); }
.jx-card { flex: 1; }
/* the pictures, drawn small from the chapters' own pieces */
.jx-rows { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 4px 12px; }
.jx-rows p { padding: calc(10px * var(--k)) 0; border-top: 1px solid #1E1D25; }
.jx-rows p:first-child { border-top: 0; }
.jx-rows b { font-size: 13px; font-weight: 500; color: var(--t1); }
.jx-bars { display: flex; align-items: flex-end; gap: 4px; padding: 14px 12px 12px; }
.jx-bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: var(--t4); opacity: .55; }
.jx-bars i.thu { background: #43414A; opacity: 1; }
/* the launch-2 picture: assets/creative/launch-2-card.webp (edges already #09090D), cover, 140 px (76 phone) */
.jx-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.jx-img span { position: absolute; left: 8px; bottom: 6px; font-size: 12px; color: var(--t2); padding: 2px 6px; border-radius: 6px; background: rgba(9, 9, 13, .7); }
.jx-inv { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; font-size: 13px; color: var(--t2); }
.jx-inv p { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jx-inv p:first-child { justify-content: flex-start; } .jx-inv p:first-child span { color: var(--t3); }
.jx-inv b { font-weight: 500; color: var(--t1); }
.jx-inv .jx-inv-l { font-size: 12px; color: var(--t3); }
.phone .jx-card { border-radius: 13px; }
.phone .jx-pic { height: 76px; border-radius: 8px; }
.phone .jx-rec { font-size: 13px; }
.phone .jx-why { font-size: 12px; }
.phone .jx-rows { padding: 2px 8px; } .phone .jx-rows p { padding: 3px 0; } .phone .jx-rows b { font-size: 12px; }
.phone .jx-bars { padding: 8px; gap: 2px; }
.phone .jx-inv { padding: 6px 8px; gap: 3px; font-size: 12px; } .phone .jx-inv-l { display: none; } .phone .jx-inv b { white-space: nowrap; } .phone .jx-inv .chip { padding: 0 6px; }
.reduced .jx-card { transition: none; }
/* R48 (Fable, CP6): no dot halo on Every job (R45). The lit door is raised and its line brighter */
.jx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .42s var(--ease); box-shadow: 0 44px 80px -36px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px #4A4856; }
.jx-card.in.lit { transform: translateY(calc(-4px * var(--k))); }
.jx-card.lit::after { opacity: 1; }
/* CP4 H-1: each picture performs once as its card arrives (transform and opacity, under 800 ms): Sales names resolve top to bottom; Marketing bars rise, then the two Thursdays turn oxblood; Creative opens from a dot screen onto the picture, centre out;
   Finance's chip lands */
.jx-rows b, .jx-bars i, .jx-bars i.thu::after, .jx-img img, .jx-img::after, .jx-inv .chip { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.jx-rows b { opacity: 0; transform: translateX(-6px); }
.jx-card.go .jx-rows b { opacity: 1; transform: none; transition-delay: calc(80ms + var(--r) * 60ms); }
.jx-rows p:nth-child(1) { --r: 0; } .jx-rows p:nth-child(2) { --r: 1; } .jx-rows p:nth-child(3) { --r: 2; }
.jx-bars i { position: relative; transform: scaleY(0); transform-origin: 50% 100%; }
.jx-card.go .jx-bars i { transform: none; transition-duration: .36s; transition-delay: calc(var(--b, 0) * 20ms); }
.jx-bars i.thu::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ox); opacity: 0; }
.jx-card.go .jx-bars i.thu::after { opacity: 1; transition-delay: 600ms; transition-duration: .2s; }
.jx-img img { opacity: 0; transform: scale(.35); } .jx-img span { z-index: 2; }
.jx-img::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle, rgba(108, 133, 255, .55) 1.5px, transparent 2px) 0 0 / 8px 8px; }
.jx-card.go .jx-img img { opacity: 1; transform: none; transition-duration: .6s; transition-delay: 100ms; }
.jx-card.go .jx-img::after { opacity: 0; transition-duration: .5s; transition-delay: 250ms; }
.jx-inv .chip { opacity: 0; transform: translateY(-10px) scale(.9); }
.jx-card.go .jx-inv .chip { opacity: 1; transform: none; transition-duration: .35s; transition-delay: 300ms; transition-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
.reduced .jx-card *, .reduced .jx-card::before, .reduced .jx-card::after, .reduced .jx-pic::after { transition: none !important; }
/* CP6 (Fable): phone Every job. Three names fit their 76 px picture with room under the last; the Finance row no longer pushes its card 9 px past the right gutter */
.phone .jx-rows p { padding: 2px 0; font-size: 12px; line-height: 1.25; }
.phone .jx-card { min-width: 0; }
.phone .jx-inv { padding: 6px; } .phone .jx-inv p { gap: 4px; min-width: 0; }
/* ===== CP7 (R50 to R52): three doors and a plain card. Each door is one link, card and door bar; nothing is raised at rest. The arrows
   knock once after the pictures (.invite, jobs.js); hover, focus or Left/Right light a door (.lit) and replay its picture once ===== */
.jx-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; }
a.jx-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; padding: 0; }   /* no overflow clip: the lit shadow falls outside */
.jx-go { display: flex; align-items: center; justify-content: space-between; height: calc(44px * var(--k)); padding: 0 12px 0 16px; background: #17161D; box-shadow: inset 0 1px 0 #24232C; border-radius: 0 0 16px 16px; }
.jx-go-t { font-size: 14px; font-weight: 500; color: var(--t1); }
.jx-go-b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--t1); color: var(--g); transition: transform .15s var(--ease); }
.jx-go-b svg { transition: transform .15s var(--ease); }
.jx-card.lit .jx-go-b { transform: scale(1.08); } .jx-card.lit .jx-go-b svg { transform: translateX(3px); }
a.jx-card:active .jx-go-b { transform: scale(.94); transition-duration: .08s; }
@keyframes jxknock { 0%, 100% { transform: none; } 45% { transform: translateX(5px); } }
.jx.invite a.jx-card .jx-go-b svg, .end-next.invite a.jx-card .jx-go-b svg { animation: jxknock .3s cubic-bezier(.22, 1, .36, 1); animation-delay: calc(var(--d, 0) * 60ms); }
.reduced .jx.invite a.jx-card .jx-go-b svg, .reduced .end-next.invite a.jx-card .jx-go-b svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .jx.invite a.jx-card .jx-go-b svg, .end-next.invite a.jx-card .jx-go-b svg { animation: none; } }
.jx-card.rp .jx-pic *, .jx-card.rp .jx-pic::after { transition: none !important; }
.phone .jx-body { padding: 10px 10px 9px; gap: 5px; }
.phone .jx-go { height: 40px; padding: 0 8px 0 10px; border-radius: 0 0 13px 13px; } .phone .jx-go-t { font-size: 13px; } .phone .jx-go-b { width: 26px; height: 26px; }
