/* Los Patricios: photographs lead into the actual campaign, then a local inquiry simulation.
   Inherits Quicksand / Archivo and the published bi.lab palette. All styles stay within #sistema. */
.pj{padding-top:40px;background:var(--cream);--pj-nav-top:88px}
.pj-intro{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:end;padding-bottom:45px}
.pj-intro h2{font-size:clamp(40px,4.5vw,64px)}
.pj-intro>div>p:first-child{font-size:23px;line-height:1.45}
.pj .pj-note{font-size:12px;line-height:1.55;color:var(--muted);max-width:62ch}
.pj-intro .pj-note{margin-top:20px}
.pj-nav{position:sticky;top:var(--pj-nav-top);z-index:10;background:var(--cream);border-block:1px solid var(--line)}
.pj-nav>.wrap{display:flex;justify-content:space-between;gap:20px}
.pj-nav a{display:flex;align-items:center;gap:12px;padding:17px 0 14px;border-bottom:3px solid transparent;font-size:13px;white-space:nowrap;color:var(--muted);min-height:54px}
.pj-nav a>span{font-variant-numeric:tabular-nums;font-size:11px}
.pj-nav a[aria-current]{color:var(--violet);border-color:var(--violet)}
.pj-stage{display:grid;grid-template-columns:.82fr 1.18fr;gap:clamp(40px,7vw,100px);align-items:center;min-height:90svh;padding-block:82px;scroll-margin-top:165px;border-bottom:1px solid var(--line)}
.pj-stage:last-child{border-bottom:0}
.pj-copy h3{font-size:clamp(32px,3.3vw,46px);line-height:1.16;max-width:20ch}
.pj-copy h3 span{color:var(--violet)}
.pj-copy>p{font-size:16px;color:var(--muted);line-height:1.7;margin-top:24px;max-width:40ch}
.pj-copy .pj-caption{font-size:13px;margin-top:24px}
.pj-text-link{display:inline-flex;gap:14px;align-items:center;min-height:44px;font-size:14px;color:var(--violet);text-decoration:underline;margin-top:25px}
.pj-text-link:hover{text-decoration-thickness:2px}
.pj-originals{min-width:0}
.pj-originals figure{background:var(--paper);border-radius:16px;overflow:hidden;transform-origin:50% 80%}
.pj-originals figure>img{width:100%;aspect-ratio:4/3;object-fit:contain}
.pj-originals figcaption{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:16px;color:var(--muted)}
.pj-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.pj-thumbs button{background:none;border:2px solid transparent;border-radius:12px;padding:5px;color:var(--muted);text-align:left}
.pj-thumbs button[aria-pressed=true]{border-color:var(--violet);color:var(--violet)}
.pj-thumbs img{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:6px}
.pj-thumbs span{display:block;font-size:11px;padding:7px 3px 1px}
.pj-production{min-width:0;width:100%;max-width:610px;justify-self:center}
.pj-formats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.pj-formats button{background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:7px;padding:10px 13px;min-height:44px;font-size:12px}
.pj-formats button[aria-pressed=true]{background:var(--violet);color:var(--paper);border-color:var(--violet)}
.pj-formats button:hover{border-color:var(--violet)}
.pj-carousel{border-radius:12px;background:var(--paper);overflow:hidden}
.pj-carousel img{width:100%;aspect-ratio:1;object-fit:contain}
.pj-carousel-controls{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;gap:8px}
.pj-carousel-controls button{width:44px;height:44px;display:grid;place-items:center;background:transparent;color:var(--violet);border-radius:6px}
.pj-carousel-controls button:hover{background:var(--lilac)}
.pj-carousel-controls span{font-size:11px;text-align:center;color:var(--muted)}
.pj-art-note{margin-top:14px}
.pj-video{background:var(--ink);border-radius:12px;overflow:hidden;text-align:center}
.pj-video video{display:block;width:100%;max-height:640px;max-height:70svh;object-fit:contain;margin:auto}
#pj-video-vertical video{aspect-ratio:9/16}
#pj-video-square video{aspect-ratio:1}
.pj-media-error{padding:15px;color:var(--paper);font-size:13px}.pj-media-error a{text-decoration:underline}
.pj-instagram{max-width:480px;width:100%;justify-self:center;background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.pj-post-head{padding:18px 22px;display:flex;flex-direction:column;gap:2px}
.pj-post-head strong{font-size:15px}.pj-post-head span{font-size:11px;color:var(--muted)}
.pj-instagram>img{width:100%;height:auto}
.pj-post-body{padding:20px 22px}.pj-post-body>p:first-child{font-size:14px;margin-bottom:16px}
.pj-post-body .button{font-size:14px;min-height:48px;padding:14px 16px}
.pj-post-body .pj-note{margin-top:15px}
.pj-chat{width:100%;background:var(--lilac);border-radius:16px;overflow:hidden}
.pj-chat-head,.pj-summary-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 25px;background:var(--violet);color:var(--paper)}
.pj-chat-head strong{font-size:15px}.pj-chat-head span{font-size:11px;color:var(--lilac)}
.pj-chat-body{padding:26px}
.pj-bubble{font-size:14px;line-height:1.6;background:var(--paper);padding:16px 18px;border-radius:12px;max-width:90%;margin-bottom:15px;color:var(--ink)}
.pj-buyer{background:var(--violet);color:var(--paper);margin-left:auto}
.pj-answers{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.pj-answers button{background:var(--paper);border:1px solid var(--violet);border-radius:8px;padding:11px 15px;color:var(--violet);font-size:13px;min-height:44px;text-align:left}
.pj-answers button:hover{background:var(--violet);color:var(--paper)}
.pj-chat-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--light-line);padding-top:16px;margin-top:26px;font-size:11px;color:var(--violet)}
.pj-chat-footer button{background:none;text-decoration:underline;color:var(--violet);padding:8px 0;min-height:44px;font-size:11px}
.pj-chat .pj-text-link{margin-top:2px}
.pj-summary{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden;padding-bottom:24px}
.pj-summary-head{background:var(--paper);color:var(--violet);border-bottom:1px solid var(--line)}
.pj-summary-head strong{font-family:var(--display);font-size:26px}.pj-summary-head span{font-size:11px}
.pj-property-ref{display:flex;gap:18px;align-items:center;margin:25px}.pj-property-ref img{width:95px;aspect-ratio:4/3;object-fit:contain;border-radius:8px}
.pj-property-ref h4{font-size:20px}.pj-property-ref p{font-size:11px;line-height:1.5;color:var(--muted);margin-top:6px}
.pj-summary dl{margin:0 25px}.pj-summary dl>div{padding:14px 0;border-top:1px solid var(--line)}
.pj-summary dt{font-size:11px;color:var(--muted)}.pj-summary dd{margin:4px 0 0;font-size:15px}
.pj-summary-status{background:var(--lilac);padding:16px 20px;margin:18px 25px 0;color:var(--violet);font-size:13px;line-height:1.6;border-radius:8px}
.pj-summary>.pj-note,.pj-summary>.pj-text-link{margin-left:25px;margin-right:25px}.pj-summary>.pj-note{margin-top:16px}
@media(min-width:851px) and (prefers-reduced-motion:no-preference){
 .pj-origin.pj-entered .pj-originals figure{animation:pj-develop 850ms cubic-bezier(.16,1,.3,1) both}
 @keyframes pj-develop{from{transform:translateY(20px) rotate(-3deg);clip-path:inset(3% 3% 3% 3% round 16px)}to{transform:translateY(0) rotate(0);clip-path:inset(0 round 16px)}}
}
@media(max-width:1000px){.pj-stage{gap:35px}.pj-intro{gap:35px}.pj-chat-head{align-items:start;flex-direction:column;gap:4px}.pj-copy h3{font-size:34px}}
@media(max-width:850px){.pj{--pj-nav-top:74px}.pj-stage{grid-template-columns:1fr;gap:30px;min-height:0;padding-block:54px;scroll-margin-top:145px}.pj-copy h3{max-width:24ch;font-size:38px}.pj-copy>p{max-width:55ch;margin-top:18px}.pj-copy .pj-caption{margin-top:16px}.pj-originals,.pj-production,.pj-chat,.pj-summary{max-width:610px;justify-self:center;width:100%}.pj-intro{gap:28px}.pj-intro>div>p:first-child{font-size:18px}.pj-nav>.wrap{gap:12px}.pj-nav a{font-size:12px;gap:6px}.pj-thumbs img{max-height:115px}.pj-copy>.pj-text-link{margin-top:14px}}
@media(max-width:640px){.pj{padding-top:15px;--pj-nav-top:70px}.pj-intro{grid-template-columns:1fr;gap:22px;padding-bottom:27px}.pj-intro h2{font-size:40px}.pj-intro>div>p:first-child{font-size:19px}.pj-intro .pj-note{margin-top:14px}.pj-nav>.wrap{gap:0;justify-content:space-between}.pj-nav a{flex-direction:column;gap:2px;font-size:10px;padding:9px 2px 7px;min-height:53px}.pj-nav a>span{font-size:10px}.pj-stage{padding-block:42px;scroll-margin-top:140px}.pj-copy h3{font-size:34px}.pj-copy>p{font-size:15px}.pj-copy .pj-caption{font-size:12px}.pj-copy .pj-note{font-size:12px}.pj-originals figcaption{font-size:10px;padding:12px;flex-wrap:wrap}.pj-thumbs{gap:6px;margin-top:12px}.pj-thumbs button{padding:3px}.pj-thumbs span{font-size:10px}.pj-formats{gap:6px}.pj-formats button{font-size:11px;padding:9px 10px;flex:1}.pj-carousel-controls{padding:5px 6px}.pj-carousel-controls span{font-size:10px}.pj-chat-head{padding:18px 20px}.pj-chat-body{padding:20px 16px}.pj-bubble{font-size:14px;max-width:96%;padding:14px}.pj-chat-footer{gap:8px}.pj-answers button{font-size:13px}.pj-summary-head{padding:18px 20px}.pj-property-ref{margin:20px;gap:12px}.pj-property-ref img{width:72px}.pj-property-ref h4{font-size:19px}.pj-summary dl{margin-inline:20px}.pj-summary-status{margin-inline:20px}.pj-summary>.pj-text-link,.pj-summary>.pj-note{margin-inline:20px}.pj-summary dd{font-size:14px}.pj-summary{padding-bottom:20px}.pj-post-body{padding:18px}.pj-video video{max-height:65svh}}

/* Compact entry on the landing; the user opens the full journey explicitly. */
.pj-launch{display:grid;grid-template-columns:1fr .8fr;gap:70px;align-items:center;padding-block:45px}
.pj-launch-copy h2{font-size:clamp(38px,4vw,54px)}
.pj-launch-copy>p{font-size:16px;color:var(--muted);margin-top:20px;max-width:43ch}
.pj-launch-copy .button{margin-top:25px}
.pj-launch-copy .pj-launch-note{font-size:12px;margin-top:12px}
.pj-launch-preview{max-width:420px;justify-self:end}
.pj-launch-preview img{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:16px}
.pj-launch-preview figcaption{font-size:11px;line-height:1.6;color:var(--muted);margin-top:12px}
.pj-dialog{width:calc(100% - 32px);max-width:1280px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:16px;background:var(--cream);color:var(--ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #16151745;scrollbar-color:var(--violet) var(--cream)}
.pj-dialog::backdrop{background:#161517b3}
.pj-dialog-header{position:sticky;top:0;z-index:12;background:var(--cream);height:72px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line)}
.pj-dialog-header h2{font-size:19px;letter-spacing:-.02em}
.pj-dialog-header>div{display:flex;align-items:center;gap:18px}
.pj-dialog-header .button{min-height:44px;padding:10px 18px;font-size:13px}
#pj-close{display:grid;place-items:center;width:44px;height:44px;background:transparent;color:var(--violet);border-radius:8px}
#pj-close:hover{background:var(--lilac)}
.pj-dialog .wrap{width:calc(100% - 72px)}
.pj-dialog .pj{padding-top:0}
.pj-dialog .pj-nav{top:72px}
.pj-modal-intro{padding-block:26px}
.pj-modal-intro>p:first-child{font-size:20px;margin-bottom:10px}
.pj-dialog .pj-stage{min-height:calc(100svh - 176px);padding-block:52px}
@media(max-width:850px){.pj-launch{gap:30px}.pj-dialog .pj-stage{min-height:0}.pj-dialog .wrap{width:calc(100% - 48px)}}
@media(max-width:640px){.pj-launch{grid-template-columns:1fr;gap:26px;padding-block:30px}.pj-launch-copy h2{font-size:38px}.pj-launch-copy>p{font-size:15px}.pj-launch-copy .button{width:100%;font-size:14px}.pj-launch-preview{display:none}.pj-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.pj-dialog-header{height:64px;padding:10px 16px;gap:10px}.pj-dialog-header h2{font-size:16px}.pj-dialog-header>div{gap:8px}.pj-dialog-header .button{padding:10px 12px;font-size:12px}.pj-dialog .pj-nav{top:64px}.pj-dialog .wrap{width:calc(100% - 32px)}.pj-dialog .pj-stage{padding-block:35px}.pj-modal-intro>p:first-child{font-size:18px}.pj-modal-intro{padding-block:20px}.pj-dialog .pj-video video{max-height:65dvh}}
