/* Revision 4: image-specific vector overlays and viewport-aware framing. */
:root{--header-anchor:74px;--view-content:calc(100svh - var(--header-anchor));}
#servicos,#trabalhos,#olhar{scroll-margin-top:var(--header-anchor)}
.hero-photo.close-photo{mask-image:none;-webkit-mask-image:none;object-position:center bottom;top:auto;bottom:0}
.creative-overlay{position:absolute;left:50%;top:0;transform:translateX(-50%);height:19%;width:min(30%,260px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--navy);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s;z-index:2}
.creative-overlay.active{opacity:1;visibility:visible}.creative-overlay svg{display:block;width:100%;height:calc(100% - 18px);overflow:visible}.creative-caption{font:600 clamp(8px,.75vw,11px)/1.15 var(--tech);letter-spacing:.16em;white-space:nowrap}.creative-process{height:22%;width:min(32%,255px)}
.creative-overlay.active .creative-draw{stroke-dasharray:1;animation:creative-draw 1.5s .12s ease-out both}.creative-overlay.active .creative-nodes{animation:creative-in .55s .75s both}.creative-overlay.active .creative-circle{transform-box:fill-box;transform-origin:center;animation:creative-circle 1.25s .2s both}.creative-overlay.active .creative-fill{animation:creative-in .6s 1.45s both}.creative-overlay.active .creative-grid{animation:creative-grid .65s both}.creative-overlay.active .creative-caption{animation:creative-in .5s .75s both}
@keyframes creative-draw{from{stroke-dashoffset:1;opacity:0}10%{opacity:1}to{stroke-dashoffset:0;opacity:1}}@keyframes creative-in{from{opacity:0}to{opacity:1}}@keyframes creative-circle{from{transform:scale(.15);opacity:0}to{transform:scale(1);opacity:1}}@keyframes creative-grid{from{opacity:0}to{opacity:.35}}
@media(min-width:1101px){
 #servicos .section-inner,#trabalhos .section-inner,#olhar .about-inner{padding-top:clamp(18px,3.4vh,42px);padding-bottom:clamp(18px,3.4vh,42px);min-height:var(--view-content);display:flex;flex-direction:column;justify-content:center}
 #servicos .section-heading,#trabalhos .section-heading{margin-bottom:clamp(15px,2.4vh,30px);padding-top:0;border-top:0}
 #servicos .section-heading h2,#trabalhos .section-heading h2{font-size:clamp(52px,10vh,90px)}
 #servicos .services-grid{gap:clamp(12px,2vh,18px)}
 #servicos .service-card{min-height:clamp(160px,calc((var(--view-content) - 180px)/2),238px);padding:clamp(14px,2.3vh,26px) clamp(20px,2vw,28px)}
 #servicos .service-card h3{font-size:clamp(21px,3.1vh,28px);margin-bottom:clamp(6px,1.4vh,15px)}
 #servicos .service-card p{line-height:1.45;font-size:clamp(14px,1.9vh,16px)}#servicos .service-cta{padding-top:12px}
 #trabalhos .project-carousel{--art-width:min(calc((100% - 28px)*.7),calc(max(290px,var(--view-content) - 258px)*16/9 + 16px))}
 #trabalhos .project-slide{grid-template-columns:minmax(0,var(--art-width)) minmax(0,1fr);align-items:center}
 #trabalhos .project-controls{width:var(--art-width);margin-top:8px;min-height:40px}
 #trabalhos .project-buttons{right:calc(100% - var(--art-width) + 10px)}
 #trabalhos .project-copy h3{font-size:clamp(35px,6.5vh,68px);margin:8px 0 12px}#trabalhos .editorial-meter{margin:9px 0 15px}#trabalhos .editorial-tags{margin-top:12px}#trabalhos .editorial-bottom{margin-top:13px;padding-top:10px}#trabalhos .project-copy.glass-panel{padding-block:0}
 #olhar .about-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center}
 #olhar .about-portrait{max-width:min(580px,calc(max(300px,var(--view-content) - 80px)*.8));margin:auto}
 #olhar .about h2,#olhar h2{font-size:clamp(58px,12vh,108px)}#olhar .about-heading{margin-bottom:clamp(10px,2vh,24px)}#olhar .about-copy{font-size:clamp(15px,2.35vh,20px);line-height:1.55}#olhar .about-copy p+p{margin-top:clamp(8px,1.6vh,18px)}
}
@media(max-width:720px){.hero-photo.close-photo,.hero-photo.notebook-photo{height:76%;width:100%;top:auto;bottom:0;object-position:center bottom}.creative-overlay{height:23%;width:min(54%,190px)}.creative-process{height:24%;width:min(50%,175px)}.creative-caption{font-size:8px;letter-spacing:.1em}}
@media(prefers-reduced-motion:reduce){.creative-overlay *{animation:none!important;stroke-dashoffset:0}.creative-overlay{transition:none}}

/* Updated artist biography: preserve the editorial hierarchy on shorter screens. */
#olhar .about-philosophy{font-weight:700;color:var(--orange)}
@media(min-width:1101px){
 #olhar .about-copy{font-size:clamp(15px,2.1vh,18px);line-height:1.48}
 #olhar .about-copy p+p{margin-top:clamp(8px,1.4vh,14px)}
 #olhar .about-copy:before{margin-bottom:clamp(10px,1.8vh,18px)}
 #olhar h2{font-size:clamp(56px,9.5vh,98px)}
}

/* Creative Reveal: paired compositor transforms keep the portrait stationary
   while its clipping window and scan advance on the same timeline. */
@media (prefers-reduced-motion: no-preference){
 .js #olhar .about-photo-reveal{clip-path:none;overflow:hidden;transform:translate3d(0,-100%,0);will-change:transform;}
 .js #olhar .about-photo-reveal .about-photo{transform:translate3d(0,100%,0);will-change:transform;flex:none;}
 .js #olhar .artist-scan{top:5%;left:0;height:87%;background:none;box-shadow:none;transform:translate3d(0,0,0);opacity:0;will-change:transform,opacity;}
 .js #olhar .artist-scan::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:#ffb575;box-shadow:0 0 10px 2px #ff6200;}
 .js #olhar.artist-enter .about-photo-reveal{animation:artist-window-smooth .8s ease-out both;}
 .js #olhar.artist-enter .about-photo-reveal .about-photo{animation:artist-photo-smooth .8s ease-out both;}
 .js #olhar.artist-enter .artist-scan{animation:artist-line-smooth .8s ease-out both,artist-line-opacity .8s linear both;}
}
@keyframes artist-window-smooth{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}
@keyframes artist-photo-smooth{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}
@keyframes artist-line-smooth{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,100%,0)}}
@keyframes artist-line-opacity{0%,90%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion: reduce){
 .js #olhar .about-photo-reveal,.js #olhar .about-photo-reveal .about-photo{clip-path:none;transform:none;animation:none!important;}
 .js #olhar .artist-scan{animation:none!important;opacity:0;}
}
