/* Main-page refinements. Specificity keeps these independent of brand.css. */
body:has(.filter-bar) .shell{overflow:clip}
body .shell .hero{padding-top:28px;padding-bottom:24px;gap:32px}
body .hero h1{font-size:clamp(28px,2.7vw,40px);margin:12px 0 16px}
body .hero p{margin:0 0 20px;line-height:1.55;font-size:17px}
body .hero-carousel .hero-slide img{height:240px}
body .hero-carousel .hero-caption{padding:44px 20px 18px;font-size:18px}
body .hero-carousel .hero-caption small{font-size:14px}
.hero-slide:not([hidden]){animation:hero-reveal .55s ease-out both}
@keyframes hero-reveal{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
body #projektek>.section-heading{margin:14px 0 16px}
body #projektek>.section-heading p{margin-top:6px;font-size:14px}
.filter-bar{position:sticky;top:0;z-index:35;background:#fbfaf7;padding:10px 180px 10px 0;border-bottom:1px solid #d6dce1}
body .filter-bar .filters{padding:14px;gap:12px;grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(0,1fr)) auto}
.filter-toggle{display:none}
#projektek{scroll-margin-top:12px}
.card-carousel{position:relative;touch-action:pan-y pinch-zoom}
.card-image-controls{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.card-image-controls button{pointer-events:auto;min-width:44px;min-height:44px;border:1px solid #fff9;border-radius:50%;background:#14263de8;color:#fff;font-size:20px}
.card-image-controls button:hover{background:#14263d;color:#ffccb0}
.card-image-count{border-radius:20px;padding:4px 12px;background:#14263de8;color:#fff;font-size:13px}
.card-slide:not([hidden]){animation:card-reveal .2s ease-out}
@keyframes card-reveal{from{opacity:.65}to{opacity:1}}
@media(max-width:1100px){
 .filter-bar{padding:10px 0}
 .filter-toggle{display:inline-flex;margin-right:170px;min-height:48px}
 body .filter-bar[data-expanded=false] .filters{display:none}
 body .filter-bar .filters{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px;max-height:65dvh;overflow:auto}
 .filter-bar .feature-panel{position:static;width:100%;max-width:none;margin-top:8px}
 .filter-bar .feature-filter[open]{grid-column:1/-1}
}
@media(max-width:700px){
 body .shell .hero{padding:22px 22px 16px;gap:16px}
 body .hero h1{font-size:26px;line-height:1.2}
 body .hero p{font-size:14px;margin-bottom:14px}
 body .hero-carousel .hero-slide img{height:200px}
 body .hero-carousel .hero-caption{padding:40px 14px 12px;font-size:16px}
 body .hero-carousel .hero-caption small{font-size:13px;line-height:1.35}
 body .hero-carousel .hero-controls{margin-top:8px}
 body #projektek>.section-heading .eyebrow,body #projektek>.section-heading p{display:none}
 body #projektek>.section-heading h2{font-size:23px}
 .filter-toggle{margin-right:145px;font-size:10px;padding:10px 14px}
 .filter-bar{top:0}
}
@media(prefers-reduced-motion:reduce){.hero-slide:not([hidden]),.card-slide:not([hidden]){animation:none}}

/* Featured controls share the image, matching the project cards. */
body .hero-carousel .hero-slide img{height:296px}
body .hero-carousel .hero-caption{padding-bottom:18px;transition:padding-bottom .2s ease}
body .hero-carousel:hover .hero-caption,body .hero-carousel:focus-within .hero-caption{padding-bottom:72px}
body .hero-carousel .hero-controls{position:absolute;z-index:4;left:12px;right:12px;bottom:12px;display:grid;grid-template-columns:44px 1fr auto 44px;align-items:center;gap:10px;margin:0;opacity:0;pointer-events:none;transition:opacity .2s ease}
body .hero-carousel:hover .hero-controls,body .hero-carousel:focus-within .hero-controls{opacity:1;pointer-events:auto}
body .hero-carousel .hero-controls button{background:#14263dee;color:#fff;border-color:#ffffff99}
body .hero-carousel .hero-controls button:hover{background:#14263d;color:#ffccb0;border-color:#ffccb0}
body .hero-carousel .hero-position{justify-self:center;padding:4px 12px;border-radius:20px;background:#14263dee;color:#fff}
@media(max-width:700px){body .hero-carousel .hero-slide img{height:256px}}
@media(max-width:700px),(hover:none) and (pointer:coarse){
 body .hero-carousel .hero-caption,body .hero-carousel:hover .hero-caption,body .hero-carousel:focus-within .hero-caption{padding-bottom:72px}
 body .hero-carousel .hero-controls{opacity:1;pointer-events:auto;grid-template-columns:1fr auto}
 body .hero-carousel .hero-position{justify-self:start}
 body .hero-carousel .hero-controls:has(button:focus-visible){display:flex;flex-wrap:wrap;justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){body .hero-carousel .hero-controls,body .hero-carousel .hero-caption{transition:none}}
