/* Portfolio : blocks stay editable; controls are derived from their content. */
#tm-home-v4.tm-portfolio .tm-portfolio-header{position:relative;min-height:120px;}
#tm-home-v4.tm-portfolio .tm-portfolio-main{max-width:1780px;margin:0 auto;padding:72px 5% 112px;}
#tm-home-v4.tm-portfolio .tm-portfolio-intro{display:flex;flex-direction:column;gap:14px;margin-bottom:48px;}
#tm-home-v4.tm-portfolio .tm-portfolio-intro .tm-eyebrow{margin:0;color:#a3a3a3;}
#tm-home-v4.tm-portfolio h1.tm-portfolio-title{font-size:clamp(65px,10vw,152px);max-width:none;line-height:.98;letter-spacing:-.025em;margin:0;}
#tm-home-v4 .tm-portfolio-controls{margin:0 0 34px;}
#tm-home-v4 .tm-category-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #292929;padding-top:23px;}
#tm-home-v4 .tm-category-filters button{font:600 18px/1.2 'Zariantz Grotesk',sans-serif;letter-spacing:.02em;text-transform:uppercase;border:1px solid #343434;border-radius:100px;padding:10px 18px;background:transparent;color:#b7b7b7;transition:background .2s,color .2s,border-color .2s;}
#tm-home-v4 .tm-category-filters button[aria-pressed=true]{background:#252525;color:#fff;border-color:#888;}
#tm-home-v4 .tm-category-filters button:hover{color:#fff;border-color:#777;}
#tm-home-v4 .tm-result-count{font-size:11px;color:#a0a0a0;margin:18px 0 0;text-align:right;letter-spacing:.08em;}
#tm-home-v4 .tm-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
#tm-home-v4 .tm-work{position:relative;min-width:0;aspect-ratio:1.48;overflow:hidden;background:#171717;border-radius:20px;isolation:isolate;margin:0;}
#tm-home-v4 .tm-work-cover{position:absolute;inset:0;margin:0;width:100%;height:100%;z-index:-2;}
#tm-home-v4 .tm-work-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1),filter .4s;}
#tm-home-v4 .tm-work::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.04) 20%,rgba(0,0,0,.1) 48%,rgba(0,0,0,.85));transition:background .4s;}
#tm-home-v4 .tm-work-caption{position:absolute;bottom:23px;left:25px;right:72px;pointer-events:none;}
#tm-home-v4 .tm-work-category{font-size:10px;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:#dedede;margin:0 0 6px;}
#tm-home-v4 h2.tm-work-name{font:600 clamp(25px,2.1vw,35px)/1.05 'Zariantz Grotesk',sans-serif;letter-spacing:0;margin:0;}
#tm-home-v4 .tm-work-description,#tm-home-v4 .tm-work-formats,#tm-home-v4 .tm-work-video,#tm-home-v4 .tm-work-gallery{display:none;}
#tm-home-v4 .tm-work-link{position:absolute;inset:0;margin:0;z-index:2;}
#tm-home-v4 .tm-work-link a{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:flex-end;padding:20px;font-size:12px;}
#tm-home-v4 .tm-work-link a:focus-visible{outline-offset:-6px;}
#tm-home-v4.tm-portfolio-ready .tm-work-link{display:none;}
#tm-home-v4 .tm-work-open{position:absolute;inset:0;z-index:3;width:100%;height:100%;padding:0;border:0;background:transparent;border-radius:inherit;}
#tm-home-v4 .tm-work-open:focus-visible{outline-offset:-6px;}
#tm-home-v4 .tm-work-open span{position:absolute;bottom:22px;right:22px;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid #ffffff66;background:#ffffff1a;backdrop-filter:blur(9px);transition:background .25s,color .25s,transform .3s;}
#tm-home-v4 .tm-work:hover .tm-work-cover img,#tm-home-v4 .tm-work:focus-within .tm-work-cover img{transform:scale(1.05);filter:brightness(1.08);}
#tm-home-v4 .tm-work:hover .tm-work-open span,#tm-home-v4 .tm-work:focus-within .tm-work-open span{background:#fff;color:#080808;transform:rotate(-35deg);}
#tm-home-v4 .tm-portfolio-empty{color:#aaa;text-align:center;padding:40px 20px;}
@media(max-width:1000px){#tm-home-v4 .tm-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));}#tm-home-v4.tm-portfolio .tm-portfolio-main{padding-top:45px;}}

@media(max-width:600px){#tm-home-v4.tm-portfolio .tm-portfolio-header{min-height:105px;}#tm-home-v4.tm-portfolio .tm-portfolio-main{padding:38px 6% 70px;}#tm-home-v4.tm-portfolio h1.tm-portfolio-title{font-size:clamp(54px,15vw,90px);}#tm-home-v4.tm-portfolio .tm-portfolio-intro{margin-bottom:28px;}#tm-home-v4 .tm-category-filters{gap:7px;padding-top:19px;}#tm-home-v4 .tm-category-filters button{font-size:16px;padding:8px 12px;}#tm-home-v4 .tm-work-grid{grid-template-columns:1fr;gap:17px;}#tm-home-v4 .tm-work{aspect-ratio:1.23;border-radius:18px;}#tm-home-v4 .tm-work-caption{left:21px;bottom:22px;}#tm-home-v4 h2.tm-work-name{font-size:30px;}#tm-home-v4 .tm-result-count{text-align:left;}}
@media(prefers-reduced-motion:reduce){#tm-home-v4 .tm-work-cover img,#tm-home-v4 .tm-work-open span{transition:none;transform:none!important;}#tm-home-v4 .tm-category-filters button{transition:none;}}
@media(prefers-reduced-transparency:reduce){#tm-home-v4 .tm-work-open span{background:#252525;backdrop-filter:none;}}
