/* Portfolio teaser on homepage and scalable catalogue. Uses existing design tokens. */
.projects-section{background:var(--bg);border-top:1px solid var(--line)}
.projects-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:30px}
.projects-heading .display-heading{margin:0 0 10px}
.projects-intro{max-width:650px;margin:0;color:var(--muted);font-size:16px;line-height:1.8}
.portfolio-all-link{display:inline-flex;align-items:center;gap:12px;white-space:nowrap;font-size:14px;font-weight:750;color:var(--link);padding:12px 0}
.portfolio-all-link .icon{width:17px;height:17px}
.home-project-teaser{display:flex;align-items:center;min-height:204px;gap:28px;background:var(--surface);border:1px solid var(--line);border-radius:9px;overflow:hidden;color:var(--text);transition:border-color .2s,transform .2s}
.home-project-teaser:hover{border-color:var(--cyan);transform:translateY(-2px)}
.home-project-visual{background:linear-gradient(135deg,#e9f2e9,#d2e5da);color:#244f40;align-self:stretch;width:40%;min-width:235px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:25px}
.home-project-title{font-size:clamp(27px,3vw,48px);font-weight:800;letter-spacing:-.075em}.home-project-title span{color:#397a64}
.home-project-subline{font-size:12px;color:#496b5f;letter-spacing:.04em}
.home-project-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1;min-width:0}
.home-project-copy strong{font-size:clamp(22px,2.2vw,32px);line-height:1.1;letter-spacing:-.04em}
.home-project-copy>span:last-child{color:var(--muted);font-size:14px}
.home-project-teaser>.icon{width:24px;height:24px;margin-right:34px;flex-shrink:0;color:var(--link)}
.project-category{font-size:12px;font-weight:750;color:var(--text);padding:6px 10px;border:1px solid var(--line);background:var(--surface-2);border-radius:4px}
/* Dedicated gallery */
.portfolio-main{background:var(--bg)}
.portfolio-hero{position:relative;overflow:hidden;padding:clamp(90px,9vw,145px) 0 clamp(54px,7vw,100px);background:var(--surface);border-bottom:1px solid var(--line)}
.portfolio-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:50px}
.portfolio-heading-copy{position:relative;z-index:1;max-width:800px}
.portfolio-back{display:inline-flex;align-items:center;gap:10px;color:var(--muted);font-weight:650;font-size:13px;margin-bottom:32px}
.portfolio-back:hover{color:var(--link)}
.portfolio-hero .display-heading{font-size:clamp(56px,7vw,110px);line-height:1.05;margin:0 0 24px}
.portfolio-heading-copy p{font-size:clamp(16px,1.6vw,20px);color:var(--muted);line-height:1.7;max-width:650px;margin:0}
.portfolio-heading-mark{width:clamp(135px,18vw,260px);flex:0 0 auto;opacity:.20;display:flex;justify-content:center}
.portfolio-heading-mark img{width:100%;height:auto}
.portfolio-catalogue{min-height:410px}
.portfolio-list-header{display:flex;align-items:baseline;justify-content:space-between;gap:30px;margin-bottom:32px;border-bottom:1px solid var(--line);padding-bottom:22px}
.portfolio-list-header h2{font-size:clamp(20px,2.4vw,30px);font-weight:750;letter-spacing:-.04em;margin:0;color:var(--heading)}
.portfolio-list-header p{margin:0;font-size:13px;font-weight:680;color:var(--muted)}
.project-filters[hidden],.projects-empty[hidden],.portfolio-card[hidden]{display:none!important}
.project-filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:26px}
.project-filter{font:inherit;font-size:13px;font-weight:680;cursor:pointer;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:10px 15px;transition:background .18s,color .18s,border-color .18s}
.project-filter:hover{border-color:var(--cyan)}
.project-filter[aria-pressed="true"]{background:var(--text);color:var(--bg);border-color:var(--text)}
.portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.portfolio-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.portfolio-card-media{display:block;overflow:hidden;outline-offset:3px}
.portfolio-art{min-height:clamp(240px,30vw,390px);padding:28px;display:flex;flex-direction:column;position:relative;overflow:hidden;background:linear-gradient(135deg,#edf4ed,#dce9df 55%,#c9dfd3);color:#27523e}
.portfolio-art::before,.portfolio-art::after{content:"";position:absolute;border:1px solid rgba(40,103,77,.13);border-radius:50%;pointer-events:none}
.portfolio-art::before{width:60%;aspect-ratio:1;top:-46%;right:-14%}
.portfolio-art::after{width:45%;aspect-ratio:1;left:-15%;bottom:-52%}
.portfolio-art[data-style="neutral"]{background:linear-gradient(135deg,#dce7ec,#c8dbe3);color:#204e5e}
.portfolio-browser-chrome{display:flex;align-items:center;gap:15px;position:relative;z-index:1;font-size:11px;letter-spacing:.02em;color:#527a69}
.portfolio-browser-dots{display:inline-flex;align-items:center;gap:5px}
.portfolio-browser-dots i{width:6px;height:6px;border-radius:50%;border:1px solid currentColor;opacity:.6}
.portfolio-browser-domain{border:1px solid rgba(43,92,69,.14);padding:7px 15px;border-radius:30px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.portfolio-art-body{display:flex;align-items:flex-start;flex-direction:column;justify-content:center;gap:12px;flex:1;position:relative;z-index:1}
.portfolio-art-brand{font-weight:800;letter-spacing:-.075em;line-height:1;font-size:clamp(40px,5vw,70px);overflow-wrap:anywhere}
.portfolio-art-brand em{font-style:normal;color:#408268}
.portfolio-art-headline{font-size:clamp(20px,2.5vw,31px);font-weight:550;letter-spacing:-.035em}
.portfolio-art-subline{font-size:11px;text-transform:uppercase;letter-spacing:.19em;color:#678674;font-weight:720}
.portfolio-card-media:hover .portfolio-art-brand{transform:translateY(-3px)}
.portfolio-art-brand{transition:transform .25s}
.portfolio-card-content{padding:clamp(24px,3vw,42px);display:flex;align-items:flex-start;flex-direction:column;flex:1}
.portfolio-card-meta{display:flex;align-items:center;gap:13px;flex-wrap:wrap;justify-content:space-between;width:100%}
.portfolio-card-domain{color:var(--muted);font-size:12px}
.portfolio-card-content h2{font-size:clamp(28px,3vw,42px);line-height:1.1;letter-spacing:-.055em;color:var(--heading);margin:26px 0 16px}
.portfolio-card-content p{margin:0 0 28px;color:var(--muted);font-size:15px;line-height:1.85}
.portfolio-card-visit{display:flex;align-items:center;gap:16px;margin-top:auto;padding:10px 0;color:var(--link);font-size:14px;font-weight:750}
.portfolio-arrow{font-size:20px;transition:transform .2s}.portfolio-card-visit:hover .portfolio-arrow{transform:translate(3px,-3px)}
.projects-empty{font-size:14px;color:var(--muted)}
.portfolio-contact{background:var(--surface);border-top:1px solid var(--line);padding:70px 0}
.portfolio-contact-inner{display:flex;align-items:center;justify-content:space-between;gap:25px}
.portfolio-contact h2{font-size:clamp(26px,3.4vw,44px);letter-spacing:-.05em;margin:0 0 10px;color:var(--heading)}
.portfolio-contact p{margin:0;color:var(--muted)}
body[data-theme="dark"] .project-filter[aria-pressed="true"]{background:#bdf3f0;color:#082337;border-color:#bdf3f0}
@media(max-width:1180px){.desktop-nav,.header-cta{display:none}.menu-toggle{display:grid}.mobile-nav{display:flex;position:absolute;top:100%;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:0 16px 30px rgba(0,16,38,.13);flex-direction:column;padding:0 var(--edge);gap:0;max-height:0;opacity:0;visibility:hidden;overflow:hidden;transition:max-height .25s,opacity .25s,visibility .25s}.mobile-nav.is-open{max-height:520px;opacity:1;visibility:visible;padding-top:16px;padding-bottom:22px}.mobile-nav a{font-weight:690;font-size:15px;padding:12px 2px;border-bottom:1px solid var(--line)}}
@media(max-width:850px){.portfolio-grid{grid-template-columns:1fr}.portfolio-art{min-height:340px}.portfolio-heading-mark{opacity:.1}.portfolio-hero-inner{gap:0}}
@media(max-width:700px){.projects-heading{display:block}.portfolio-all-link{margin-top:20px}.home-project-teaser{gap:16px;min-height:140px}.home-project-visual{min-width:0;width:39%;padding:16px}.home-project-title{font-size:clamp(21px,4.3vw,33px)}.home-project-subline{font-size:10px}.home-project-copy strong{font-size:22px}.home-project-teaser>.icon{width:18px;height:18px;margin-right:15px}.portfolio-heading-mark{display:none}.portfolio-back{margin-bottom:26px}.portfolio-contact-inner{align-items:flex-start;flex-direction:column}.portfolio-art{min-height:280px}}
@media(max-width:450px){.home-project-teaser{flex-wrap:wrap;padding-bottom:18px}.home-project-visual{width:100%;min-height:145px}.home-project-copy{padding-left:20px}.home-project-teaser>.icon{margin-right:18px}.portfolio-art{min-height:245px;padding:18px}.portfolio-art-brand{font-size:45px}.portfolio-list-header{align-items:flex-start;flex-direction:column;gap:8px}.portfolio-card-content{padding:22px}}
@media(prefers-reduced-motion:reduce){.home-project-teaser,.portfolio-art-brand,.portfolio-arrow{transition:none!important}}
