/* v5 — editorial refinements: real pieces in the hero, asymmetric fold, archive index, frameless objects. */

/* Hero: head rises and dissolves as the visitor leaves; neck fades into the stage. */
.hero-art{transform:translate3d(0,calc(var(--hero-exit,0) * -80px),0);opacity:calc(1 - var(--hero-exit,0) * .9);will-change:transform,opacity}
.head-image-stage{-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 66%,rgba(0,0,0,.55) 82%,transparent 98%);mask-image:linear-gradient(to bottom,#000 0,#000 66%,rgba(0,0,0,.55) 82%,transparent 98%)}
.hero-home{overflow:hidden}

/* Real pieces visible in the first viewport. */
.hero-proof{position:absolute;z-index:4;right:calc(var(--gutter) + 210px);bottom:12px;display:flex;gap:10px;margin:0;padding:0;list-style:none}
.hero-proof a{display:grid;grid-template-columns:62px auto;align-items:center;gap:9px;color:#c9ced6;text-decoration:none;font:500 10px/1.25 'IBM Plex Mono',monospace;letter-spacing:.06em;text-transform:uppercase;padding:5px 12px 5px 5px;background:#0d1015d9;border:1px solid #ffffff17;transition:border-color .3s,color .3s}
.hero-proof img{width:62px;height:46px;object-fit:cover;display:block;filter:saturate(.9)}
.hero-proof span{max-width:98px}
.hero-proof a:hover,.hero-proof a:focus-visible{color:#fff;border-color:var(--lime)}
@media(max-width:1250px){.hero-proof li:nth-child(4){display:none}}
@media(max-width:1000px){.hero-proof{right:var(--gutter);bottom:62px}.hero-proof li:nth-child(3){display:none}}
@media(max-width:760px){
  .hero-proof{position:relative;right:auto;bottom:auto;order:3;margin-top:30px;gap:8px;display:grid;grid-template-columns:repeat(3,1fr)}
  .hero-proof li:nth-child(3){display:block}
  .hero-proof a{grid-template-columns:1fr;padding:0;background:none;border:0;gap:7px;font-size:9px}
  .hero-proof img{width:100%;height:auto;aspect-ratio:4/3}
}

/* Fold: one large image of making, two smaller pieces offset beneath it. */
.hero-fold{align-items:start}
.fold-projects{grid-template-columns:repeat(6,minmax(0,1fr));gap:0 14px;align-items:start}
.fold-projects .fold-lead{grid-column:1/-1}
.fold-projects .fold-lead img,.fold-projects a.fold-lead:nth-child(1) img{height:clamp(300px,33vw,560px)}
.fold-projects .fold-lead span{width:55%;margin-left:auto;text-align:right}
.fold-projects .fold-b{grid-column:1/4;margin-top:-70px;position:relative;z-index:2}
.fold-projects .fold-b img,.fold-projects a.fold-b:nth-child(2) img{height:clamp(220px,20vw,340px);outline:10px solid var(--paper)}
.fold-projects .fold-b span{margin-top:20px}
.fold-projects .fold-c{grid-column:4/-1;margin-top:26px}
.fold-projects .fold-c img{height:clamp(180px,16vw,280px);object-position:50% 40%}
.fold-intro{position:sticky;top:120px}
@media(max-width:760px){
  .fold-intro{position:static}
  .fold-projects .fold-lead img,.fold-projects a.fold-lead:nth-child(1) img{height:300px}
  .fold-projects .fold-b{grid-column:1/4;margin-top:-40px}
  .fold-projects .fold-b img,.fold-projects a.fold-b:nth-child(2) img{height:210px;outline-width:7px}
  .fold-projects .fold-c img{height:170px}
}

/* Archive index: shows the breadth of the work without another wall of cards. */
.work-index{position:relative;background:var(--stage);color:var(--white);padding-top:20px;overflow:hidden}
.work-index-head{display:grid;grid-template-columns:1fr;margin-bottom:46px;border-top:1px solid #ffffff22;padding-top:70px}
.work-index-head h2{font-size:clamp(40px,4.6vw,76px);line-height:.98;margin:22px 0 0}
.work-index-head .section-kicker{color:#a1a7b0}
.work-index-head h2 em{color:var(--lime)}
.work-index-list{list-style:none;margin:0;padding:0;border-top:1px solid #ffffff24}
.work-index-list a{display:grid;grid-template-columns:56px minmax(0,1fr) minmax(0,220px) minmax(0,220px);align-items:baseline;gap:20px;padding:19px 0 17px;border-bottom:1px solid #ffffff24;color:inherit;text-decoration:none;position:relative}
.wi-n,.wi-client,.wi-type{font:500 11px/1.3 'IBM Plex Mono',monospace;letter-spacing:.07em;text-transform:uppercase;color:#8f97a3}
.wi-name{font:600 clamp(26px,2.9vw,46px)/1 'Space Grotesk',Arial,sans-serif;letter-spacing:-.045em;transition:transform .35s cubic-bezier(.2,.7,.2,1),color .25s}
.work-index-list a:hover .wi-name,.work-index-list a:focus-visible .wi-name{transform:translateX(14px);color:var(--lime)}
.work-index-list a:hover .wi-client{color:#e8eaee}
.work-index-list img{display:none}
.work-index-preview{position:absolute;top:0;left:0;z-index:3;margin:0;pointer-events:none;width:300px;opacity:0;transition:opacity .25s}
.work-index-preview img{display:block;width:100%;height:220px;object-fit:cover;transform:translate(24px,-50%) rotate(-2deg) scale(.94);transition:transform .35s cubic-bezier(.2,.7,.2,1);box-shadow:0 30px 60px #0008}
.work-index-preview.on{opacity:1}
.work-index-preview.on img{transform:translate(24px,-50%) rotate(0) scale(1)}
@media(hover:none),(pointer:coarse){.work-index-preview{display:none}}
@media(max-width:760px){
  .work-index-list a{grid-template-columns:34px minmax(0,1fr) 84px;grid-template-rows:auto auto;gap:4px 14px;align-items:center}
  .wi-n{grid-row:1/3}
  .wi-name{grid-column:2;font-size:26px}
  .wi-client{grid-column:2;grid-row:2}
  .wi-type{display:none}
  .work-index-list img{display:block;grid-column:3;grid-row:1/3;width:84px;height:62px;object-fit:cover}
}

/* Frameless object: no box, no white plate; it overlaps the neighbouring folds. */
.motion-bridge{overflow:visible;z-index:3;position:relative}
.motion-free{background:transparent!important;margin:-14% -6% -18% -4%;max-width:none}
.motion-free canvas[data-motion-object]{background:transparent!important;aspect-ratio:1}
.motion-free figcaption{position:absolute;left:12%;right:12%;bottom:13%;color:#55606c}
.home-intro{position:relative;z-index:1}
@media(max-width:760px){.motion-free{margin:-8% -10% -14%}.motion-free figcaption{bottom:8%}}

/* Process band: two documented moments of making, with captions. */
.process-images{display:grid;grid-template-columns:1.25fr 1fr;gap:12px;align-items:end;padding:60px var(--gutter) 60px 0;position:static;min-height:0;height:auto}
.process-images figure{margin:0;min-width:0}
.process-images figure:last-child{margin-bottom:70px}
.process-images img,.process-images img:first-child,.process-images img:last-child{position:static;display:block;width:100%;height:clamp(300px,36vw,560px);object-fit:cover;border:0}
.process-images figure:last-child img{height:clamp(220px,24vw,380px)}
.process-images figcaption{margin-top:12px;font:500 10px/1.35 'IBM Plex Mono',monospace;letter-spacing:.07em;color:#294d72}
@media(max-width:760px){.process-images{padding:0 var(--gutter) 60px;height:auto;min-height:0}.process-images img,.process-images img:first-child{height:330px}.process-images figure:last-child{margin-bottom:0}.process-images figure:last-child img{height:230px}}

@media(max-width:0px) and (prefers-reduced-motion:reduce){.hero-art{transform:none;opacity:1}.work-index-preview,.work-index-preview img,.wi-name{transition:none}}
.work-index.section-pad h2 em{color:var(--lime)}
.work-index h2 em{color:var(--lime)!important}
@media(max-width:760px){.head-label{display:none}.fold-projects .fold-lead span{width:auto;text-align:left;margin-left:0}.fold-projects .fold-b{margin-top:18px}}

/* Contained reading width: backgrounds stay full-bleed, content stops at ~1320px. */
:root{--gutter:max(clamp(22px,5vw,72px),calc((100vw - 1320px) / 2))}
.hero-art{left:calc(var(--gutter) - 3%);width:min(57%,860px)}
.hero-text{max-width:620px}
/* Header with breathing room around a slightly smaller mark. */
.site-header{height:96px}
.site-header .brand{width:96px;height:52px}
@media(max-width:760px){.site-header{height:76px}.site-header .brand{width:82px;height:44px}.site-header nav{top:76px}}
.site-header .brand-print-canvas{inset:-14px -22px;width:calc(100% + 44px);height:calc(100% + 28px)}

/* Reveal variants (set by site.js). */
.rv{transition:opacity .9s cubic-bezier(.2,.7,.2,1) var(--rv-delay,0ms),transform 1.1s cubic-bezier(.16,.84,.24,1) var(--rv-delay,0ms),clip-path 1.2s cubic-bezier(.7,0,.2,1) var(--rv-delay,0ms)}
.rv-rise{opacity:0;transform:translateY(34px)}
.rv-mask{clip-path:inset(0 0 100% 0);transform:translateY(40px)}
.rv-wipe-l{clip-path:inset(0 100% 0 0)}
.rv-wipe-up{clip-path:inset(100% 0 0 0)}
.rv-zoom{clip-path:inset(18% 18% 18% 18%);transform:scale(.92)}
.rv-slide{opacity:0;transform:translateX(-60px)}
.rv-tilt{opacity:0;transform:translateY(60px) rotate(-3deg);transform-origin:0 100%}
.rv.in{opacity:1;transform:none;clip-path:inset(-40% -300% -40% -40%)}
.rv-zoom img,.rv-wipe-l img,.rv-wipe-up img{transition:scale 1.6s cubic-bezier(.16,.84,.24,1) var(--rv-delay,0ms);scale:1.18}
.rv.in img{scale:1}
.px-layer{will-change:translate}
.fold-projects a,.process-images figure,.detail-gallery figure,.home-work .card-image{overflow:hidden}
.detail-gallery figure{overflow:visible}.detail-gallery .gallery-open{overflow:hidden;display:block}
img.px-layer{scale:1.14}
.rv img.px-layer{scale:1.32}.rv.in img.px-layer{scale:1.14}
.rv-probe{position:absolute;width:1px;height:1px;pointer-events:none;visibility:hidden}
.head-image-stage,.head-image-stage:active{cursor:pointer}
.head-image-stage .head-fallback{mix-blend-mode:lighten}

/* Marcelo: atelier photo under the "Arte em múltiplas formas" kicker. */
.artist-about-photo{margin:34px 0 0;max-width:420px}
.artist-about-photo img{display:block;width:100%;height:auto;filter:saturate(.92)}
.artist-about-photo figcaption{margin-top:10px;font:500 10px/1.35 'IBM Plex Mono',monospace;letter-spacing:.07em;opacity:.7}
@media(max-width:760px){.artist-about-photo{margin:22px 0 10px;max-width:none}}

/* Scroll break from hero: the head pushes in toward the visitor, the text lifts away faster,
   a print layer scans across, and the next fold rises over the hero like a fresh sheet. */
.hero-art{transform:translate3d(0,calc(var(--hero-exit,0) * 90px),0) scale(calc(1 + var(--hero-exit,0) * .38));transform-origin:50% 38%;opacity:calc(1 - var(--hero-exit,0) * 1.1);filter:blur(calc(var(--hero-exit,0) * 6px))}
.hero-text{transform:translate3d(0,calc(var(--hero-exit,0) * -150px),0);opacity:calc(1 - var(--hero-exit,0) * 1.4);will-change:transform,opacity}
.hero-home:before{transform:translate3d(calc(var(--hero-exit,0) * -18vw),0,0)}
.hero-home .hero-scan{position:absolute;left:0;right:0;z-index:5;height:1px;top:calc(100% - var(--hero-exit,0) * 115%);background:var(--lime);box-shadow:0 0 18px var(--lime);opacity:calc(min(1,var(--hero-exit,0) * 8) * (1 - var(--hero-exit,0)));pointer-events:none}
.hero-fold{position:relative;z-index:6;margin-top:calc(-1 * clamp(40px,8vh,110px));border-radius:calc((1 - var(--hero-exit,0)) * 34px) calc((1 - var(--hero-exit,0)) * 34px) 0 0;box-shadow:0 -30px 60px #0006;transform:translate3d(0,calc((1 - var(--hero-exit,0)) * 40px),0)}

/* Transition objects: wireframe solids — the studio's raw geometry — rise out of the hero
   at different speeds and spin as the next fold arrives, crossing the seam between the two. */
.hero-fold{overflow:visible}
.transit-layer{position:absolute;left:0;right:0;top:0;height:0;z-index:7;pointer-events:none}
.transit-obj{--e:var(--hero-exit,0);position:absolute;display:block;color:var(--lime);font-style:normal;
  transform:translate3d(0,calc((1 - var(--e)) * var(--rise) + var(--e) * var(--drift,0px)),0) rotate(calc(var(--e) * var(--spin))) scale(calc(.55 + var(--e) * .45));
  opacity:calc(min(1, var(--e) * 3) * (1.25 - var(--e)))}
.transit-obj svg{display:block;width:100%;height:100%;overflow:visible}
.o1{left:6%;top:-120px;width:110px;height:110px;--rise:340px;--spin:200deg;--drift:-60px}
.o2{left:44%;top:-60px;width:70px;height:70px;--rise:520px;--spin:-160deg;color:#8fbfff}
.o3{right:10%;top:-160px;width:130px;height:130px;--rise:260px;--spin:120deg;--drift:-120px}
.o4{left:28%;top:-200px;width:46px;height:46px;--rise:600px;--spin:90deg;color:#fff}
.o5{right:32%;top:-30px;width:90px;height:90px;--rise:420px;--spin:-45deg;color:#8fbfff;opacity:calc(min(.5, var(--e) * 2) * (1.2 - var(--e)))}
.o6{left:70%;top:-240px;width:60px;height:60px;--rise:700px;--spin:-220deg}
.o7,.o8,.o9{width:8px;height:8px}
.o7{left:18%;top:-40px;--rise:640px;--spin:0deg}.o8{left:58%;top:-180px;--rise:380px;--spin:0deg}.o9{right:6%;top:-20px;--rise:500px;--spin:0deg}
.transit-dot{display:block;width:100%;height:100%;border-radius:50%;background:currentColor;box-shadow:0 0 14px currentColor}
@media(max-width:760px){.o1{width:70px;height:70px}.o3{width:84px;height:84px}.o5,.o6{display:none}}
/* Objects read on both the dark hero and the light fold. */
.transit-layer{mix-blend-mode:difference}
.transit-obj{color:#fff!important;--drift:-260px}
.o1{--drift:-300px}.o3{--drift:-380px}.o5{--drift:-200px}
.transit-obj svg path,.transit-obj svg ellipse,.transit-obj svg circle{stroke-width:1.8}

/* Contact: drawn map card (embedded Google Maps is blocked in sandboxed previews). */
.map-card{background:var(--stage,#080a0e);padding:0}
.map-card-link{position:relative;display:block;height:clamp(320px,38vw,460px);overflow:hidden;color:#fff;text-decoration:none}
.map-grid{position:absolute;inset:-20%;background:
  linear-gradient(#ffffff10 1px,transparent 1px) 0 0/48px 48px,
  linear-gradient(90deg,#ffffff10 1px,transparent 1px) 0 0/48px 48px,
  linear-gradient(28deg,transparent 47%,#ffffff26 47.4%,#ffffff26 48.6%,transparent 49%),
  linear-gradient(-62deg,transparent 58%,#ffffff1c 58.3%,#ffffff1c 59.6%,transparent 60%),
  linear-gradient(8deg,transparent 30%,#8fbfff22 30.3%,#8fbfff22 32%,transparent 32.3%);
  transform:rotate(-4deg);transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.map-card-link:hover .map-grid{transform:rotate(-4deg) scale(1.06)}
.map-pin{position:absolute;left:62%;top:46%;width:18px;height:18px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 8px #c4fa7a33,0 0 30px var(--lime)}
.map-pin i{position:absolute;inset:-22px;border:1px solid var(--lime);border-radius:50%;animation:mapPulse 2.4s ease-out infinite}
@keyframes mapPulse{from{transform:scale(.4);opacity:1}to{transform:scale(2.2);opacity:0}}
.map-card-text{position:absolute;left:var(--gutter);bottom:48px;display:grid;gap:10px}
.map-card-text .section-kicker{color:var(--lime)}
.map-card-text strong{font:600 clamp(32px,4vw,58px)/1 'Space Grotesk',Arial,sans-serif;letter-spacing:-.05em}
.map-card-text span{color:#b9c0c9}
.map-card-text em{font-style:normal;font-weight:700;font-size:13px;margin-top:10px;border-bottom:1px solid;justify-self:start;padding-bottom:5px;color:#fff}

/* UI/UX audit fixes (contrast ≥4.5:1, legible captions, 44px-ish targets, visible focus). */
.project-card p{color:#46525d}
.card-meta,.detail-gallery figcaption,.detail-facts span,.artist-about-photo figcaption{color:#4a5763}
.detail-info .section-kicker,.detail-facts span{color:#3f5b52}
.fold-projects span,.process-images figcaption,.motion-free figcaption{font-size:11px}
.site-header nav a:not(.nav-contact){padding:12px 4px;margin:-12px -4px}
.text-arrow{padding-top:10px;margin-top:-10px}
.hero-bottom a{display:inline-block;padding:14px 0;margin:-14px 0}
:where(a,button,[role=button],input,[tabindex]):focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.home-work .project-card p,.home-work .card-meta{color:#a9b1bb}
.head-image-stage.is-ready .head-fallback{opacity:0!important;visibility:hidden}
.hero-art:before{display:none}
.artist-visual .section-kicker{color:#3f5b52}
html{scroll-behavior:auto!important}

/* Mobile hero: a bigger head that bleeds off the right edge, with the headline sitting over the neck. */
@media(max-width:760px){
  .hero-home{min-height:min(860px,100svh);padding-bottom:56px}
  .hero-art{top:0;left:-6%;width:128%;height:70%;inset:0 auto auto -6%}
  .hero-art .head-image-stage{-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 52%,transparent 92%);mask-image:linear-gradient(to bottom,#000 0,#000 52%,transparent 92%)}
  .hero-text{margin-top:auto;position:relative;z-index:4}
  .hero-text:before{content:'';position:absolute;inset:-60px -40px -20px;background:linear-gradient(to bottom,transparent,#080a0e 38%);z-index:-1;pointer-events:none}
}

/* Fixed menu bar: stays at the top while scrolling. */
#shared-header{position:sticky;top:0;z-index:50}
.site-header{transition:background-color .3s,box-shadow .3s}
.site-header.is-stuck{background:#080a0ee6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px 0 #ffffff14}

/* Desktop hero: a larger head that crops at the bottom edge and arrives with a slow push-in. */
@media(min-width:761px){
  .hero-art{left:calc(var(--gutter) - 9%);width:min(68%,1040px);height:118%;top:-4%;inset:-4% auto auto calc(var(--gutter) - 9%)}
  .hero-art .head-image-stage{-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 60%,transparent 90%);mask-image:linear-gradient(to bottom,#000 0,#000 60%,transparent 90%)}
  .hero-text{position:relative;z-index:4}
}
.head-image-stage{animation:headArrive 2.6s cubic-bezier(.16,.84,.24,1) both}
@keyframes headArrive{from{transform:scale(1.14) translateY(3%);opacity:0;filter:brightness(2.2) blur(8px)}55%{opacity:1}to{transform:none;opacity:1;filter:none}}
.hero-home:after{background:radial-gradient(60% 70% at 30% 40%,#5a8cff14,transparent 70%),linear-gradient(90deg,transparent 45%,#080a0eb3 75%)}
@media(min-width:761px){.head-label{bottom:auto;top:16%;left:calc(var(--gutter) + 2%)}}

/* Head scales with screen height too, so short laptop screens (13") don't get a cropped, oversized face. */
@media(min-width:761px){
  .hero-home{min-height:560px;height:calc(100svh - 96px)}
  .hero-art{width:min(68%,1040px,128svh);height:112%;top:-2%;inset:-2% auto auto calc(var(--gutter) - 7%)}
  .hero-text h1{font-size:min(clamp(68px,7.2vw,125px),13svh)}
}
@media(min-width:761px) and (max-height:820px){
  .hero-text{padding-top:2vh;padding-bottom:9vh}
  .hero-text .eyebrow{margin-bottom:18px}.hero-text h1{margin-bottom:20px}.hero-links{margin-top:20px}
  .head-label{display:none}
}
.head-image-stage{animation-duration:1.8s}
@keyframes headArrive{from{transform:scale(1.1) translateY(2%);opacity:0;filter:brightness(1.8) blur(4px)}50%{opacity:1;filter:none}to{transform:none;opacity:1;filter:none}}
.detail-gallery video{display:block;width:100%;height:490px;object-fit:cover;background:#0b0c0f}
@media(max-width:520px){.detail-gallery video{height:300px}}

/* Título do projeto com respiro antes da imagem de abertura (sem parallax na capa) */
.detail-hero .detail-title{margin-bottom:clamp(56px,6vw,96px)}
