/* Project detail: a compact product dossier with persistent navigation. */
.project-dialog{width:min(1000px,calc(100% - 64px));height:min(820px,90dvh);max-height:90dvh;border:1px solid #ffffffa6;border-radius:18px;background:#fffdfa;padding:0;overflow:hidden;box-shadow:0 32px 100px #19171140}
.project-dialog[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}
.project-dialog::backdrop{background:#28251f8c;backdrop-filter:blur(7px)}
.project-dialog .dialog-header{padding:28px 32px 21px;background:#fffdfa;align-items:center;gap:20px}
.project-dialog .dialog-kicker{font-size:9px;letter-spacing:2px;color:#898277;line-height:1.5}
.project-dialog .dialog-header h2{font-size:30px;font-weight:600;letter-spacing:-1px;line-height:1.3;margin:8px 0 0}
.project-dialog .close-dialog{display:flex;align-items:center;justify-content:center;gap:10px;width:auto;height:40px;padding:0 12px;border:1px solid #e8e2d8;border-radius:9px;background:#f5f1eb;font-size:12px;color:#777064;transition:background .2s,color .2s,border-color .2s}
.project-dialog .close-dialog:hover{background:#eae3d8;color:#302d27;border-color:#d9cfc0}
.project-dialog .close-dialog svg{flex:none}
.project-dialog .dialog-tabs{padding:0 32px 18px;gap:4px;border-bottom:1px solid #e9e4db;background:#fffdfa}
.project-dialog .dialog-tabs button{min-height:40px;padding:9px 18px;border:1px solid transparent;border-radius:8px;color:#81796d;font-size:12px;transition:background .18s,color .18s}
.project-dialog .dialog-tabs button:hover{background:#f5f1eb;color:#39342d}
.project-dialog .dialog-tabs button[aria-selected=true]{background:#eee7dc;border-color:#e8dfd1;color:#584936;font-weight:600}
.project-dialog .tab-panel{min-height:0;padding:28px 32px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d3cbbc transparent;scroll-padding:20px;background:#fffdfa}
.project-overview{display:grid;grid-template-columns:238px minmax(0,1fr);gap:36px;align-items:start}
.overview-aside{min-width:0}
.overview-cover{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px 16px 12px;background:var(--project-tint);border:1px solid #00000005;border-radius:12px;min-height:260px}
.overview-cover img{height:195px;width:100%;object-fit:contain;filter:drop-shadow(0 8px 10px #00000016)}
.overview-cover>span{font-family:Georgia,serif;font-style:italic;font-size:14px;color:var(--project-accent);line-height:1.5}
.overview-cover>svg{height:150px;width:150px;color:var(--project-accent)}
.overview-landscape{min-height:205px}.overview-landscape img{height:auto;max-height:200px;border-radius:6px}
.overview-facts{margin:18px 0 0;padding:0}
.overview-facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:8px 0;border-bottom:1px solid #eee8df;font-size:11px;line-height:1.6}
.overview-facts dt{color:#91887b;flex:none}.overview-facts dd{margin:0;color:#554f45;text-align:right}
.overview-facts .overview-published{display:flex;align-items:center;gap:6px;color:#54705c}.overview-published::before{content:"";width:5px;height:5px;border-radius:50%;background:#62836d}
.project-dialog .overview-tech h3{margin:22px 0 12px;font-size:11px;font-weight:500;color:#91887b}
.project-dialog .overview-tech .tech-tags{gap:6px;margin:0}
.project-dialog .overview-tech .tech-tags span{padding:5px 8px;background:#f4f0e9;border:1px solid #eae4da;border-radius:5px;font-size:10px;color:#6b6255;line-height:1.5}
.overview-copy{min-width:0;padding:4px 0 0}
.overview-label{font-size:10px;color:#9b8b76;letter-spacing:1px;margin:0 0 9px;line-height:1.5}
.project-dialog .overview-title{font-family:var(--serif);font-size:23px;font-weight:400;line-height:1.6;letter-spacing:.3px;margin:0 0 19px;color:#3f3a31}
.overview-description p{font-size:13px;line-height:1.95;color:#797164;margin:0 0 14px}
.overview-description p:last-child{margin-bottom:0}
.project-dialog .contributions-heading{font-size:13px;font-weight:600;margin:26px 0 9px;color:#50483e}
.project-dialog .contribution-list{list-style:none;margin:0;padding:0;counter-reset:none}
.project-dialog .contribution-list li{display:flex;align-items:baseline;gap:14px;border-top:1px solid #eee7dc;padding:12px 0;color:#756b5d;font-size:12px;line-height:1.9;margin:0}
.contribution-number{font-family:Georgia,serif;font-style:italic;color:#b49a7a;font-size:14px;flex:none}
.project-dialog .dialog-bottom{background:#faf7f1;border-top:1px solid #e9e2d7;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:nowrap}
.dialog-end-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.project-dialog .dialog-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:10px 17px;border:1px solid #dfd7ca;border-radius:9px;font-size:12px;font-weight:500;line-height:1.5;text-decoration:none;transition:background .2s,color .2s,border-color .2s;white-space:nowrap}
.project-dialog .dialog-back{background:#fffdfa;color:#6d6253}.project-dialog .dialog-back:hover{background:#eee7dc;color:#3f3528;border-color:#cdbfae}
.project-dialog .dialog-watch,.project-dialog .dialog-download{background:#34392f;border-color:#34392f;color:#fffdf6;box-shadow:0 2px 3px #27302312}
.project-dialog .dialog-watch:hover,.project-dialog .dialog-download:hover{background:#505846;border-color:#505846}
.project-dialog button:focus-visible,.project-dialog a:focus-visible{outline:2px solid #b4895f;outline-offset:3px}
.project-dialog .gallery-stage{border:1px solid #eae3d8;border-radius:12px;background:#f1ede5;padding:20px}
.project-dialog .gallery-stage img{height:min(43dvh,410px)}
.project-dialog .gallery-controls{margin-top:15px;gap:24px;color:#867b6b}
.project-dialog .gallery-controls button{border:1px solid #e2d9cb;background:#fffdfa;border-radius:8px;width:40px;height:36px;font-size:17px;color:#73624c}
.project-dialog .gallery-controls button:not(:disabled):hover{background:#eee7dc}
.project-dialog .gallery-caption{font-size:11px;color:#908575;margin:10px 0 0}
.project-dialog .project-video{border-radius:12px;background:#262823;max-height:47dvh}
.project-dialog #panel-video>p:last-child{margin:14px 0 0;text-align:right}
.project-dialog #panel-video .text-button{font-size:11px;min-height:32px;padding:5px 0;border-bottom:0;color:#827463;background:transparent}
@media(max-width:760px){
 .project-dialog{width:calc(100% - 32px);height:90dvh;border-radius:15px}
 .project-dialog .dialog-header{padding:22px 24px 18px}.project-dialog .dialog-tabs{padding:0 24px 15px}
 .project-dialog .tab-panel{padding:24px}.project-overview{grid-template-columns:190px minmax(0,1fr);gap:24px}
 .overview-cover img{height:210px}.project-dialog .overview-title{font-size:21px}.overview-description p{font-size:12px}
 .project-dialog .dialog-bottom{padding:15px 24px}
}
@media(max-width:580px){
 .project-dialog{width:calc(100% - 20px);height:92dvh;max-height:92dvh;border-radius:14px}
 .project-dialog .dialog-header{padding:20px 19px 16px;gap:12px;align-items:flex-start}.project-dialog .dialog-header h2{font-size:24px;letter-spacing:-.7px;margin-top:7px;line-height:1.4}.project-dialog .dialog-kicker{font-size:8px;letter-spacing:1.7px}
 .project-dialog .close-dialog{padding:0;width:36px;height:36px;border-radius:8px}.project-dialog .close-dialog>span{display:none}
 .project-dialog .dialog-tabs{padding:0 19px 14px;gap:5px}.project-dialog .dialog-tabs button{font-size:11px;padding:8px 14px;min-height:36px;border-radius:7px}
 .project-dialog .tab-panel{padding:20px 19px}.project-overview{display:flex;flex-direction:column;gap:25px}
 .overview-aside{display:grid;grid-template-columns:116px minmax(0,1fr);gap:0 17px;width:100%}
 .overview-cover{padding:12px 10px 10px;min-height:0;grid-row:1/3;gap:9px;border-radius:9px}.overview-cover img{height:155px}.overview-cover>span{font-size:10px;text-align:center;line-height:1.4}.overview-landscape img{height:auto}.overview-landscape{min-height:120px}
 .overview-facts{margin:0}.overview-facts>div{padding:6px 0;font-size:10px;gap:8px;flex-wrap:wrap}
 .project-dialog .overview-tech h3{font-size:10px;margin:12px 0 7px}.project-dialog .overview-tech .tech-tags{gap:5px}.project-dialog .overview-tech .tech-tags span{font-size:9px;padding:3px 5px;border-radius:4px}
 .overview-copy{padding:0}.overview-label{font-size:9px;margin-bottom:8px}.project-dialog .overview-title{font-size:21px;line-height:1.55;margin-bottom:15px}.overview-description p{font-size:12px;line-height:1.95;margin-bottom:13px}
 .project-dialog .contributions-heading{margin-top:24px;font-size:13px}.project-dialog .contribution-list li{font-size:12px;gap:12px;padding:12px 0}
 .project-dialog .dialog-bottom{padding:13px 19px;gap:10px}.project-dialog .dialog-button{font-size:11px;padding:9px 12px;gap:7px;min-height:40px;border-radius:8px}
 .project-dialog .gallery-stage{padding:12px}.project-dialog .gallery-stage img{height:43dvh}.project-dialog .project-video{max-height:47dvh;border-radius:9px}.dialog-end-actions{gap:7px}
}
@media(prefers-reduced-motion:reduce){.project-dialog *{transition:none!important}}
