:root{--bg:#eef2f2;--surface:#fff;--surface-2:#f5f7f7;--ink:#25353c;--muted:#718087;--line:#dbe3e5;--accent:#079fc2;--accent-dark:#087f9a;--orange:#d97724;--shadow:0 10px 28px rgba(30,50,58,.13)}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0;background:var(--bg);color:var(--ink);font:14px/1.4 Inter,ui-sans-serif,system-ui,"Segoe UI",sans-serif}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.portfolio-header{height:68px;padding:0 max(24px,calc((100vw - 1320px)/2));border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between}
.brand{color:var(--ink);font-size:18px;font-weight:800;text-decoration:none}.brand span{margin-left:5px;color:var(--accent);font-weight:650}
.portfolio-header nav{display:flex;align-items:center;gap:20px}.portfolio-header nav a{color:var(--accent-dark);font-weight:650;text-decoration:none}.portfolio-header nav a:hover{text-decoration:underline}
main{width:min(1320px,100%);margin:0 auto;padding:46px 24px 64px}
.portfolio-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.portfolio-heading p{margin:0 0 4px;color:var(--accent);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.portfolio-heading h1{margin:0;font-size:32px;letter-spacing:0}.portfolio-heading>strong{color:var(--muted);font-size:12px;font-weight:650}
.portfolio-controls{position:sticky;top:0;z-index:4;margin:28px 0 20px;padding:10px 0;background:rgba(238,242,242,.96);display:flex;gap:9px;backdrop-filter:blur(8px)}
.portfolio-controls label{margin:0}.portfolio-controls select{height:42px;padding:0 34px 0 11px;border:1px solid var(--line);border-radius:5px;background:#fff;outline:0}.portfolio-controls select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(7,159,194,.1)}
.search-control{width:min(430px,100%);height:42px;padding:0 12px;border:1px solid var(--line);border-radius:5px;background:#fff;display:flex;align-items:center;gap:8px}.search-control:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(7,159,194,.1)}.search-control svg{flex:0 0 auto;width:17px;color:var(--muted)}.search-control input{width:100%;min-width:0;border:0;outline:0;background:transparent}
.portfolio-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:17px;align-items:start}
.portfolio-card{min-width:0;border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(30,50,58,.04)}.portfolio-card:hover{border-color:#b7dbe2;box-shadow:var(--shadow)}
.portfolio-image{display:block;width:100%;padding:0;border:0;border-bottom:1px solid var(--line);background:#e5e9ea;overflow:hidden}.portfolio-image img{display:block;width:100%;aspect-ratio:210/297;background:#fff;object-fit:contain;transition:transform .18s ease}.portfolio-card:hover .portfolio-image img{transform:scale(1.012)}
.portfolio-info{min-height:112px;padding:12px 13px 10px}.portfolio-project-id{display:block;margin-bottom:4px;color:var(--accent-dark);font:700 10px ui-monospace,monospace}.portfolio-info h2{min-height:38px;margin:0;font-size:13px;line-height:1.45;letter-spacing:0;overflow-wrap:anywhere}.portfolio-location{display:flex;align-items:flex-start;gap:5px;margin-top:7px;color:var(--muted);font-size:10px;line-height:1.35}.portfolio-location svg{flex:0 0 auto;width:13px;height:13px;margin-top:1px}.portfolio-location span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.portfolio-card footer{height:42px;padding:0 11px 0 13px;border-top:1px solid #e8edef;display:flex;align-items:center;justify-content:space-between}.portfolio-year{padding:2px 6px;border:1px solid #efd1b7;border-radius:3px;background:#fff7f0;color:#9f5318;font:700 9px ui-monospace,monospace}.portfolio-card footer a{width:30px;height:30px;border-radius:4px;color:var(--accent-dark);display:grid;place-items:center}.portfolio-card footer a:hover{background:#e9f6f8}.portfolio-card footer svg{width:16px;height:16px}
.portfolio-empty{padding:80px 20px;color:var(--muted);text-align:center;display:grid;justify-items:center;gap:7px}.portfolio-empty svg{width:34px;height:34px}.portfolio-empty strong{color:var(--ink);font-size:15px}.portfolio-empty span{font-size:12px}
.portfolio-dialog{width:min(1120px,95vw);max-height:94vh;padding:0;border:0;border-radius:7px;background:#1d2427;color:#fff;box-shadow:0 20px 70px rgba(0,0,0,.42);overflow:hidden}.portfolio-dialog::backdrop{background:rgba(15,25,30,.82)}.portfolio-dialog-stage{height:min(82vh,900px);padding:16px;background:#151a1c;display:grid;place-items:center;overflow:auto}.portfolio-dialog-stage img{display:block;max-width:100%;max-height:100%;background:#fff;object-fit:contain}.dialog-close{position:absolute;top:10px;right:10px;z-index:2;width:38px;height:38px;padding:0;border:0;border-radius:5px;background:rgba(255,255,255,.94);color:var(--ink);display:grid;place-items:center;box-shadow:0 2px 10px rgba(0,0,0,.25)}.dialog-close:hover{background:#fff}.portfolio-dialog footer{min-height:62px;padding:9px 14px 9px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.portfolio-dialog footer div{min-width:0}.portfolio-dialog footer span,.portfolio-dialog footer strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portfolio-dialog footer div span{color:#9eb0b7;font:10px ui-monospace,monospace}.portfolio-dialog footer strong{margin-top:2px;font-size:13px}.portfolio-dialog footer a{height:38px;padding:0 12px;border:1px solid #4d6068;border-radius:4px;color:#fff;text-decoration:none;display:flex;align-items:center;gap:7px;white-space:nowrap}.portfolio-dialog footer a:hover{border-color:var(--accent);background:#28363c}.portfolio-dialog footer svg{width:16px;height:16px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.portfolio-header{height:auto;min-height:64px;padding:12px 16px;align-items:flex-start}.portfolio-header nav{gap:12px;font-size:12px}main{padding:32px 14px 48px}.portfolio-heading{align-items:flex-start}.portfolio-heading h1{font-size:27px}.portfolio-controls{top:0;margin-top:22px;flex-wrap:wrap}.search-control{flex:1 0 100%}.portfolio-controls select{max-width:calc(50vw - 19px)}.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.portfolio-info{min-height:102px;padding:10px}.portfolio-info h2{font-size:12px}.portfolio-dialog-stage{height:78vh;padding:8px}.portfolio-dialog footer{padding-left:12px}.portfolio-dialog footer a span{display:none}}
@media(max-width:390px){.portfolio-header nav a:last-child{display:none}.portfolio-grid{grid-template-columns:1fr 1fr}.portfolio-heading>strong{display:none}}
.portfolio-dialog-stage{padding:16px 64px;overflow:hidden}.portfolio-dialog-stage img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}.dialog-close{z-index:3}.dialog-nav{position:absolute;top:calc(41vh - 4px);z-index:2;width:44px;height:56px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:5px;background:rgba(23,31,34,.78);color:#fff;display:grid;place-items:center;box-shadow:0 3px 14px rgba(0,0,0,.24)}.dialog-nav:hover{border-color:var(--accent);background:#24363d}.dialog-nav svg{width:24px;height:24px}.dialog-prev{left:10px}.dialog-next{right:10px}.portfolio-dialog footer{display:grid;grid-template-columns:minmax(0,1fr) auto auto}.portfolio-dialog-position{color:#9eb0b7;font:11px ui-monospace,monospace}
@media(max-width:700px){.portfolio-dialog-stage{padding:8px 46px}.dialog-nav{top:calc(39vh - 4px);width:38px;height:50px}.dialog-prev{left:4px}.dialog-next{right:4px}.portfolio-dialog footer{grid-template-columns:minmax(0,1fr) auto auto;gap:9px}}
.portfolio-dialog[open]{width:min(1120px,95vw);height:94dvh;max-height:94dvh;display:grid;grid-template-rows:minmax(0,1fr) auto}.portfolio-dialog-stage{width:100%;height:auto;min-width:0;min-height:0;padding:16px 64px;overflow:hidden}.portfolio-dialog-stage img{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;background:transparent;object-fit:contain;object-position:center}.dialog-nav{top:calc((100% - 62px)/2);transform:translateY(-50%)}
@media(max-width:700px){.portfolio-dialog[open]{width:98vw;height:96dvh;max-height:96dvh}.portfolio-dialog-stage{padding:8px 46px}.dialog-nav{top:calc((100% - 62px)/2)}}
