/* Rodrigo Lopes | 2026 cinematic UX + mobile audit fixes */
:root{--ease-out:cubic-bezier(.16,1,.3,1);--copper-light:#efc0a0}
html{scroll-behavior:smooth;scroll-padding-top:86px}
body{overflow-x:clip}
::selection{background:#d8a18c;color:#0b1523}
:is(a,button,input,textarea,select):focus-visible{outline:3px solid #f3bc9d;outline-offset:3px}
.hero{min-height:760px;isolation:isolate}
.hero-inner{min-height:760px;grid-template-columns:55% 45%;align-items:center;padding-top:112px;padding-bottom:100px;gap:0}
.hero-copy{position:relative;z-index:8;max-width:690px;align-self:center;padding:0 0 20px}
.hero h1{font-size:clamp(56px,5.35vw,86px);line-height:1.07;margin:22px 0 24px;letter-spacing:-3px}
.hero-lead{position:relative;max-width:480px;font-size:16px;line-height:1.75;margin:0 0 29px;color:#e0e7ea;text-wrap:pretty}
.hero-actions{position:relative;display:flex;gap:13px;flex-wrap:wrap;margin:0}
.hero-actions .btn{min-height:53px;align-items:center;justify-content:space-between;gap:25px;transition:transform .3s var(--ease-out),background .3s ease,border-color .3s ease}
.hero-benefits{display:flex;flex-wrap:wrap;gap:13px 30px;margin-top:32px;align-items:center;color:#e9c7b5;font:700 10px/1.6 var(--ui);letter-spacing:.08em}
.hero-benefits span{display:inline-flex;align-items:center;gap:6px}
.hero-sky{animation-duration:35s;will-change:transform}
.hero-wash{background:linear-gradient(90deg,#07121fee 0%,#091523d9 34%,#09141f77 68%,#0b1722aa 100%),linear-gradient(0deg,#101c2cbb,transparent 30%)}
.hero-spark{background:radial-gradient(ellipse at var(--shine-x,65%) var(--shine-y,52%),#af5f5966,transparent 44%);transition:opacity .35s}
.portrait-stage{width:min(42vw,580px);height:615px;right:0;bottom:69px}
.hero-proof{display:none!important}
.hero-copy .hero-lead::before{display:none!important}
.hero h1 em{font-style:italic}
.hero-grid{opacity:.09}
.hero-sky,.portrait-stage{pointer-events:none}
/* Give users an immediate route to Rodrigo, rather than sending traffic to a builder. */
.project-card{cursor:pointer;transition:transform .48s var(--ease-out),box-shadow .48s ease,border-color .48s ease}
.project-card:hover{border-color:#d3a792}
.project-media{isolation:isolate}
.project-media .builder-tag{z-index:4}
.project-media .project-photo-actions{z-index:6;bottom:37px}
.project-media .project-visual-note{z-index:5;text-decoration:none;pointer-events:none;font-size:9px;letter-spacing:.04em}
.project-image-cta{position:absolute;z-index:2;inset:0;border:0;color:#fff;display:flex;align-items:center;justify-content:center;gap:13px;font-weight:800;font-size:12px;letter-spacing:.025em;background:linear-gradient(0deg,#08152575,transparent 55%);opacity:0;transition:opacity .35s ease,background .35s ease}
.project-image-cta span{padding:12px 17px;border:1px solid #fff9;background:#15212bbb;backdrop-filter:blur(8px);border-radius:40px;transform:translateY(12px);transition:transform .4s var(--ease-out)}
.project-image-cta b{font-size:20px;transform:translateY(12px);transition:transform .4s var(--ease-out)}
@media(hover:hover) and (pointer:fine){.project-media:hover .project-image-cta,.project-image-cta:focus-visible{opacity:1;background:linear-gradient(0deg,#06131b92,#071a2755 55%,transparent)}.project-media:hover .project-image-cta :is(span,b),.project-image-cta:focus-visible :is(span,b){transform:translateY(0)}.project-card:hover .project-media img{transform:scale(1.05);filter:saturate(1.1)}}
.project-title-button{background:none;border:0;text-align:left;padding:0;margin:0;display:block;color:inherit;width:100%}
.project-title-button:hover .project-title{color:#975b5a}
.project-title-button h3{margin-top:0}
.project-footer{gap:10px;align-items:center}
.project-link{border-bottom:1px solid #a97379;cursor:pointer;color:#7d404a;font-size:11px;white-space:normal;text-align:left;padding:9px 0}
.project-link:hover{color:#3a2128}
.project-cta{min-width:44px;min-height:44px}
.project-media img.is-switching{opacity:.5;transform:scale(1.025)}
/* Modal: clear labels, legible form fields, and a fast path to WhatsApp. */
.lead-dialog{width:min(650px,calc(100% - 36px));max-width:650px;border:1px solid #dec3ae;border-radius:14px;padding:28px 33px 33px;overflow:auto;overscroll-behavior:contain}
.lead-heading h2{font-size:clamp(30px,3vw,39px);max-width:560px;margin-bottom:11px}
.lead-heading>p{font-size:13px;color:#62717a;margin-bottom:20px}
.lead-dialog label{font-size:12px;gap:7px;margin-bottom:13px}
.lead-dialog :is(input,select,textarea){font-size:14px;min-height:45px;border-radius:7px;background:#fff;line-height:1.3}
.lead-dialog label select{cursor:pointer}
.lead-dialog option{color:#1d2a34!important;background:#fff!important}
.lead-dialog .submit-lead{min-height:54px;font-size:12px}
.lead-dialog .dialog-close{position:sticky;top:-20px;float:right;z-index:8;background:#152333;color:#fff;border:0;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;box-shadow:0 4px 18px #0002}
.lead-fineprint{font-size:11px;line-height:1.55}
.lead-result textarea{font-size:13px;line-height:1.65}
/* A calmer, sharper portrait treatment */
.portrait{filter:contrast(1.08) brightness(.95);mask-image:linear-gradient(180deg,#000 0%,#000 69%,transparent 99%)}
/* Microinteractions and subtle scroll narrative */
#progress{background:linear-gradient(90deg,#a65e65,#f5cfad,#a66962)!important;box-shadow:0 0 12px #d48b7c99}
.hero-actions .btn:hover,.nav-cta:hover{transform:translateY(-3px)}
.project-photo-actions button{min-width:42px;min-height:42px}
.filter-pill{transition:background .3s ease,color .3s ease,transform .3s var(--ease-out),border-color .3s ease}
.reveal{transition:opacity .9s ease,transform .9s var(--ease-out),filter .9s ease}
.reveal.visible{filter:none}
@keyframes driftSlow{from{transform:translateY(0)}to{transform:translateY(-10px)}}
@keyframes glowSweep{0%{opacity:0;transform:translateX(-70%)}50%{opacity:.2}100%{opacity:0;transform:translateX(90%)}}
.hero:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(118deg,transparent 34%,#f6d4b315 50%,transparent 62%);background-size:230% 100%;opacity:.4;animation:glowSweep 18s ease-in-out infinite}
/* Tablet landscape and tablet portrait: no text/photo collisions */
@media(max-width:1180px) and (min-width:931px){.hero h1{font-size:clamp(55px,5.35vw,72px)}.hero-copy{max-width:570px}.hero-lead{max-width:425px}.portrait-stage{width:43vw;right:-10px}}
@media(max-width:930px) and (min-width:671px){.hero,.hero-inner{min-height:760px}.hero-inner{grid-template-columns:59% 41%;padding-top:95px}.hero h1{font-size:clamp(47px,6.4vw,64px);line-height:1.08}.hero-lead{max-width:385px;font-size:14px}.hero-actions .btn{gap:10px;padding:12px 13px}.portrait-stage{width:46vw;height:520px;right:-26px;bottom:72px}.hero-benefits{max-width:335px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mobile: reserve portrait space below the hero copy, never under the main paragraph. */
@media(max-width:670px){
 .hero,.hero-inner{min-height:810px;height:auto}
 .hero-inner{display:block;padding-top:113px;padding-bottom:370px}
 .hero-copy{position:relative;z-index:9;width:100%;padding:0;margin:0}
 .hero h1{font-size:clamp(39px,10vw,53px);line-height:1.08;letter-spacing:-1.8px;margin:17px 0 20px;max-width:490px}
 .hero-lead{font-size:13.5px;max-width:100%;line-height:1.65;margin-bottom:21px}
 .hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:0}
 .hero-actions .btn{min-width:0;min-height:50px;justify-content:space-between;padding:11px 12px;font-size:10px;line-height:1.2;gap:5px;white-space:normal}
 .hero-benefits{display:none}
 .portrait-stage{width:min(85vw,352px);height:340px;right:-40px;bottom:58px;z-index:3}
 .portrait-stage:before{opacity:.55}
 .portrait{width:95%;height:100%;left:2%;object-fit:cover;object-position:top center;mask-image:linear-gradient(180deg,black 0%,black 68%,transparent 99%)}
 .hero-grid{opacity:.045}
 .hero-wash{background:linear-gradient(180deg,#080f19f3 0%,#0b1524ef 42%,#0b1824d9 75%,#091522ef 100%)}
 .hero-sky{opacity:.62}
 .hero-bottom-inner{height:57px}
 .project-grid{grid-template-columns:1fr;gap:18px}
 .project-card{border-radius:12px}
 .project-media{height:clamp(215px,60vw,285px)}
 .project-media .project-photo-actions{bottom:37px}
 .project-image-cta{opacity:1;background:transparent;align-items:flex-end;justify-content:flex-end;padding:0 13px 64px;gap:0}
 .project-image-cta span{transform:none;padding:7px 11px;font-size:10px;background:#12283bd9;border-color:#efd8bb77;border-radius:20px}
 .project-image-cta b{display:none}
 .project-media:has(.project-photo-actions:not([hidden])) .project-image-cta{align-items:flex-start;padding-top:17px;padding-bottom:0}
 .project-media:has(.project-photo-actions:not([hidden])) .project-image-cta span{margin-top:39px;margin-right:0}
 .project-visual-note{bottom:9px;left:6px;right:8px;max-width:100%;font-size:9px}
 .about-grid{gap:27px}
 .lead-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 24px);padding:18px 17px 22px;border-radius:14px}
 .lead-dialog .dialog-close{top:-10px;width:40px;height:40px}
 .lead-heading h2{font-size:32px;letter-spacing:-1px}
 .lead-dialog label{font-size:12px}
 .lead-dialog :is(input,select,textarea){font-size:16px;min-height:46px}
 .lead-dialog .form-grid{grid-template-columns:1fr;gap:0}
 .hero:after{display:none}
 .reveal:not(.visible){filter:none}
}
@media(max-width:390px){
 .container{width:calc(100% - 28px)}
 .hero,.hero-inner{min-height:840px}
 .hero-inner{padding-top:112px;padding-bottom:356px}
 .hero h1{font-size:clamp(36px,10vw,42px);letter-spacing:-1.6px}
 .hero-lead{font-size:12.8px}
 .hero-actions .btn{font-size:9.6px;padding:10px 8px}
 .portrait-stage{width:290px;height:300px;right:-40px;bottom:56px}
 .project-media{height:235px}
}
@media(max-width:335px){.hero,.hero-inner{min-height:875px}.hero h1{font-size:36px}.hero-lead{font-size:12.6px}.hero-actions .btn{padding:9px 7px;font-size:9px}.portrait-stage{width:270px;height:292px;right:-45px}}
@media(hover:none),(pointer:coarse){.project-card:hover{transform:none;box-shadow:0 6px 22px #18212c0a}.project-card:hover img{transform:none!important;filter:none}.btn:hover,.nav-cta:hover{transform:none}.project-image-cta{touch-action:manipulation}.project-card:active{transform:scale(.994)}.lead-dialog button{min-height:42px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.hero:after,.hero-sky,.live-dot{animation:none!important}.reveal{opacity:1;transform:none;filter:none;transition:none}.project-card,.project-media img,.filter-pill,.btn,.hero-actions .btn,.nav-cta,.hero-spark{transition:none!important}}


/* Mobile hero refinement + WhatsApp floating action */
.hero-mobile-highlight{display:none}
.float-contact{background:linear-gradient(135deg,#21c063,#128c4a);border-color:#84e7ab;color:#fff;box-shadow:0 12px 34px rgba(14,110,57,.35)}
.float-contact:hover{background:linear-gradient(135deg,#26d366,#15954f)}
.float-wa-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}
.float-wa-icon svg{width:24px;height:24px;display:block}
@keyframes mobileCardFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes mobileCardShine{0%{transform:translateX(-120%)}55%{transform:translateX(-120%)}100%{transform:translateX(140%)}}
@media(max-width:670px){
 .hero-inner{padding-bottom:352px}
 .hero-actions{margin-bottom:12px}
 .hero-mobile-highlight{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:12px;row-gap:5px;align-items:center;width:min(205px,62vw);padding:12px 13px 12px 14px;border:1px solid rgba(230,193,170,.5);border-radius:18px;background:linear-gradient(180deg,rgba(15,28,42,.84),rgba(10,21,33,.62));box-shadow:0 14px 34px rgba(0,0,0,.24);backdrop-filter:blur(14px);position:relative;overflow:hidden;animation:mobileCardFloat 4.8s ease-in-out infinite}
 .hero-mobile-highlight::before{content:"";position:absolute;inset:0;left:-40%;width:44%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);transform:translateX(-120%);animation:mobileCardShine 5.6s ease-in-out infinite}
 .hero-mobile-highlight .hero-mobile-kicker{grid-column:1/-1;display:flex;align-items:center;gap:7px;color:#e7c1aa;font:800 8px/1 var(--ui);letter-spacing:1.6px;position:relative;z-index:1}
 .hero-mobile-highlight .hero-mobile-kicker i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#25d366;box-shadow:0 0 0 4px rgba(37,211,102,.14)}
 .hero-mobile-highlight strong{grid-column:1;grid-row:2;color:#fff;text-align:left;font:700 14px/1.22 var(--ui);position:relative;z-index:1}
 .hero-mobile-highlight small{grid-column:1;grid-row:3;color:#c6d0d6;text-align:left;font:500 10.5px/1.45 var(--sans);position:relative;z-index:1}
 .hero-mobile-highlight-icon{grid-column:2;grid-row:2/span 2;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(37,211,102,.16);border:1px solid rgba(104,239,150,.42);color:#25d366;position:relative;z-index:1}
 .hero-mobile-highlight-icon svg{width:23px;height:23px}
 .portrait-stage{width:min(82vw,330px);height:335px;right:-22px;bottom:48px}
 .portrait-stage:before{inset:2% -2% -4%;opacity:.45}
 .portrait-ring{left:11%;top:2%}
 .ring-two{left:3%;top:-1%}
 .hero-grid{opacity:.03}
 .hero-spark{background:radial-gradient(ellipse at 62% 70%,rgba(172,103,90,.38),transparent 37%),radial-gradient(circle at 20% 74%,rgba(33,211,102,.12),transparent 18%)}
 .float-contact{right:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:58px;height:58px;padding:0;border-radius:50%;justify-content:center;align-items:center}
 .float-contact b{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .float-wa-icon{width:28px;height:28px}
 .float-wa-icon svg{width:28px;height:28px}
}
@media(max-width:390px){
 .hero-inner{padding-bottom:336px}
 .hero-mobile-highlight{width:min(192px,60vw);padding:11px 12px}
 .hero-mobile-highlight strong{font-size:13px}
 .hero-mobile-highlight small{font-size:10px}
 .portrait-stage{width:280px;height:302px;right:-18px;bottom:52px}
}
@media(prefers-reduced-motion:reduce){.hero-mobile-highlight,.hero-mobile-highlight::before{animation:none!important}}


/* Consolidated project card polish */
.project-card{overflow:hidden;background:linear-gradient(180deg,#fffefb 0%,#fffdfa 100%)}
.project-media{background:#0e1722}
.project-media img{transition:transform .55s cubic-bezier(.16,1,.3,1),filter .4s ease;filter:saturate(1.02) contrast(1.02)}
.project-card:hover .project-media img{transform:scale(1.035);filter:saturate(1.08) contrast(1.03)}
.builder-tag{box-shadow:0 10px 24px rgba(0,0,0,.14)}
.project-title{max-width:92%}
.project-footer{padding-top:2px}
.project-cta{box-shadow:0 10px 24px rgba(10,22,36,.18)}
@media(max-width:670px){.project-card{border-radius:14px}.project-body{padding:21px 19px 19px}.project-title{font-size:25px}}
