/* Ajustes v3: CODE nos títulos e galeria com proporções preservadas. */
h2{font-size:clamp(34px,5vw,72px);line-height:1.08;letter-spacing:-.015em}
h3{line-height:1.18;overflow-wrap:break-word}
.info{min-width:0}.info>div{min-width:0}
.contact h2{font-size:clamp(44px,7.5vw,108px)}
.project-layout h1{font-size:clamp(34px,4.5vw,64px);line-height:1.08;overflow-wrap:break-word}
.special-intro h1{line-height:1.1}
.set-grid{display:block;columns:3;column-gap:18px}
.set-grid img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;break-inside:avoid;margin:0 0 18px}
@media(max-width:900px){.set-grid{columns:2;column-gap:14px}.set-grid img{margin-bottom:14px}}
@media(max-width:560px){h2{font-size:10vw}.contact h2{font-size:12vw}.info h3{font-size:21px}.special-intro h1{font-size:30px}.set-grid{column-gap:10px}.set-grid img{margin-bottom:10px}}
@media(max-width:350px){.set-grid{columns:1}}
.hero{height:660px;min-height:580px;max-height:none;--portrait-width:240px;--portrait-top:55px}
.hero-photo{width:var(--portrait-width);height:auto;aspect-ratio:3/4;top:var(--portrait-top);object-fit:cover;object-position:center}
.hero h1{position:absolute;top:205px;line-height:1;margin:0}
.hero-bottom{top:calc(var(--portrait-top) + var(--portrait-width)*4/3 + 25px);bottom:auto;left:4vw;right:4vw;display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center}
.hero-bottom p{max-width:none}.hero-bottom .location{margin-top:10px}.hero-bottom a{font-size:14px}
.reel-section{padding-top:0}
.about{background:var(--black);color:var(--white)}
.about p.bio{color:#c8c8c8}
.category-tag{position:absolute;top:14px;right:14px;z-index:2;border:1px solid #ffffff36;border-radius:30px;padding:7px 13px;background:#08080880;backdrop-filter:blur(8px);color:#f0f0f0;font-size:12px;font-weight:400;line-height:1.2;pointer-events:none}
.rail{scrollbar-width:none;-ms-overflow-style:none}.rail::-webkit-scrollbar{display:none}
.specialty-page .rail-section .section-head{justify-content:flex-end}
@media(max-width:560px){.hero{height:545px;min-height:545px;--portrait-width:174px;--portrait-top:36px}.hero h1{top:116px;font-size:16.2vw}.hero-bottom{left:6vw;right:6vw;gap:19px;font-size:14px}.hero-bottom p{max-width:290px}.category-tag{top:11px;right:11px;font-size:11px;padding:6px 11px}}

.rail-controls[hidden]{display:none}.rail-controls button:disabled{opacity:.25;cursor:default;border-color:var(--line)}
.specialty-page .grouped-rail .section-head{justify-content:space-between;min-height:30px}
.grouped-rail .section-head h2{font-size:clamp(25px,3vw,42px)}
.specialty-page .grouped-rail .rail .card{flex:0 0 min(520px,calc((100% - (var(--visible-cards) - 1)*22px)/var(--visible-cards)))}
.specialty-page .grouped-rail .rail{scroll-snap-type:x proximity}
.grouped-rail .card{scroll-snap-align:start}
.masthead-identity{min-width:0}
.masthead-identity .masthead-name{display:block}
.masthead-role{display:flex;justify-content:space-between;gap:12px;margin:18px 0 0;font-family:Creato,'Segoe UI',sans-serif;font-weight:400;font-size:clamp(15px,1.8vw,28px);line-height:1.3;letter-spacing:.14em;color:var(--muted)}
.masthead-role{display:block;contain:inline-size;text-transform:uppercase;font-size:clamp(9px,1.45vw,22px);letter-spacing:0;margin-top:13px;white-space:nowrap}
.masthead-role span{display:block}
.native-player.youtube{width:100%;aspect-ratio:16/9;min-height:200px;background:#111}
.native-player.youtube iframe{display:block;width:100%;height:100%;border:0}
.native-player.instagram{position:relative;width:100%;max-width:540px;margin-inline:auto;min-height:480px;overflow:hidden}
.instagram-media{width:100%!important;min-width:0!important;margin:0!important;border-radius:4px!important}
.embed-note{font-size:14px;color:var(--muted);line-height:1.5}
.specialty-page #trabalhos{padding-top:42px}
.photography-page #trabalhos{padding-top:42px}
@media(max-width:560px){.masthead-identity{flex:1}.masthead-identity .masthead-name{max-width:100%}.masthead-role{gap:5px;font-size:10px;letter-spacing:.02em;margin-top:12px}.photography-page #trabalhos{padding-top:22px}}
@media(max-width:900px){.specialty-page .grouped-rail .rail .card{flex-basis:calc((100% - 22px)/2)}}
@media(max-width:560px){.specialty-page .grouped-rail .rail .card{flex-basis:82%}.grouped-rail .section-head h2{font-size:24px}.specialty-page .grouped-rail{padding-bottom:48px}}
@media(max-width:560px){.masthead-role{font-size:9px;letter-spacing:0}.specialty-page #trabalhos{padding-top:22px}}

.native-player.instagram blockquote{margin:0;text-align:center}
.embed-poster{display:block;max-width:100%;max-height:480px;width:auto;margin:0 auto 16px}

/* Materiais integrais dos cases, sem recorte ou reproducao automatica. */
.project-layout article{min-width:0}
.project-media.local-case-video{width:100%;height:auto;max-height:78svh;aspect-ratio:auto;object-fit:contain;background:#080808}
.project-gallery{display:grid;grid-template-columns:1fr;gap:24px}
.project-gallery img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.project-gallery:empty{display:none}
/* Capa com composicao fixa baseada na referencia de 702 px. */
.hero{container-type:inline-size;width:100%;max-width:702px;height:auto;min-height:0;max-height:none;aspect-ratio:702/520;margin-inline:auto}
.hero .hero-photo{width:34.188%;height:auto;aspect-ratio:3/4;top:6.125cqw;left:32.906%;object-fit:cover}
.hero h1{top:27.06cqw;left:0;width:100%;text-align:center;font-size:12cqw;line-height:1;letter-spacing:-.025em;transform:none;white-space:nowrap}
.hero .hero-bottom{top:55.55cqw;bottom:auto;left:0;right:0;gap:22px;font-size:clamp(12px,2.42cqw,17px)}
.hero .hero-bottom p{max-width:none}
.hero .hero-bottom .location{font-size:clamp(11px,2cqw,14px);margin-top:8px}
.hero .hero-bottom a{font-size:12px}
@media(max-width:560px){.hero{aspect-ratio:702/570}.hero .hero-bottom{gap:18px}}
/* Galeria unificada e visualizador em tela cheia. */
.project-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:24px}
.project-gallery.frames-only{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gallery-thumb{position:relative;padding:0;border:0;border-radius:0;overflow:hidden;background:#111;aspect-ratio:16/10}
.project-gallery .gallery-thumb img{width:100%;height:100%;object-fit:contain}
.gallery-thumb span{position:absolute;right:8px;bottom:8px;background:#08080899;border-radius:50%;width:28px;height:28px;line-height:28px;font-size:17px}
.gallery-thumb:hover{outline:1px solid #aaa;outline-offset:2px}
.gallery-lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:64px 72px;border:0;background:#080808f7;color:white;box-sizing:border-box}
.gallery-lightbox::backdrop{background:#080808}
.gallery-lightbox[open]{display:flex;align-items:center;justify-content:center}
.gallery-lightbox figure{margin:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;pointer-events:none}
.gallery-lightbox img{width:100%;height:calc(100% - 36px);object-fit:contain;min-height:0}
.gallery-lightbox figcaption{font-size:14px;color:#aaa}
.gallery-lightbox button{position:absolute;width:44px;height:44px;padding:0;border:1px solid #ffffff55;background:#080808aa;font-size:22px}
.gallery-close{top:16px;right:20px}.gallery-prev{left:16px;top:calc(50% - 22px)}.gallery-next{right:16px;top:calc(50% - 22px)}
@media(max-width:560px){.project-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.project-gallery.frames-only{grid-template-columns:1fr;gap:12px}.gallery-lightbox{padding:72px 12px 90px}.gallery-lightbox .gallery-prev{top:auto;bottom:22px;left:calc(50% - 60px)}.gallery-lightbox .gallery-next{top:auto;bottom:22px;right:calc(50% - 60px)}}
/* Player com controles integrados ao portfolio. */
.film-player{background:#101010;width:100%;overflow:hidden}
.film-player video{display:block;width:100%;margin:0;object-fit:contain;max-height:75svh}
.film-controls{padding:16px 20px 20px;background:#191b1a}
.film-times{display:flex;justify-content:space-between;color:#aaa;font-size:13px;font-variant-numeric:tabular-nums}
.film-progress{display:block;width:100%;margin:8px 0 19px;height:14px;appearance:none;background:transparent;cursor:pointer}
.film-progress::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,#e6e6e6 var(--progress,0%),#2b2d2c var(--progress,0%))}
.film-progress::-webkit-slider-thumb{appearance:none;background:white;width:7px;height:7px;border-radius:50%;margin-top:-2px}
.film-progress::-moz-range-track{height:3px;background:#353535}.film-progress::-moz-range-progress{background:white;height:3px}.film-progress::-moz-range-thumb{width:7px;height:7px;border:0;background:white}
.film-buttons{display:flex;align-items:center;justify-content:center;gap:12px}
.film-buttons button{display:grid;place-items:center;border:0;width:46px;height:46px;border-radius:50%;padding:13px;background:#232524;color:#fff;flex-shrink:0}
.film-buttons button:hover{background:#363836}.film-buttons .film-play{background:white;color:#080808;width:58px;height:58px;padding:18px}.film-buttons .film-play:hover{background:#ddd}
.film-buttons svg{display:block;width:100%;height:100%;fill:currentColor}
.film-volume{width:65px;accent-color:white;cursor:pointer}
.film-player input:focus-visible{outline:2px solid #a69f95;outline-offset:5px}
.film-status{font-size:13px;color:#bbb;text-align:center;margin:12px 0 0}
.film-player:fullscreen{display:flex;flex-direction:column;justify-content:center;background:#080808;height:100%;width:100%}
.film-player:fullscreen video{flex:1;min-height:0;max-height:none;height:calc(100% - 140px)}
.film-player:fullscreen .film-controls{flex-shrink:0}
@media(max-width:560px){.film-controls{padding:12px 10px 16px}.film-buttons{gap:8px}.film-buttons button{width:38px;height:38px;padding:11px}.film-buttons .film-play{width:50px;height:50px;padding:15px}.film-volume{width:48px}}
.hero .reel-launch{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #ffffff36;border-radius:30px;background:#ffffff0d;color:#f0f0f0;padding:11px 20px;font-size:14px;line-height:1.2;backdrop-filter:blur(8px)}
.hero .reel-launch:hover{background:#ffffff20;border-color:#ffffff80}
.reel-launch svg{width:17px;height:17px;fill:currentColor}
.reel-cover{display:block;width:100%;padding:0;border:0;border-radius:0;background:#080808;cursor:pointer}
.reel-cover img{width:100%;height:auto;object-fit:contain}
.reel-cover[hidden],.reel-waiting .film-player{display:none}
/* Demoreel como secao inteira, com chamada sobreposta. */
#highlight.reel-section{position:relative;padding:0;width:100%;margin:0;background:#080808}
#highlight .reel-cover{height:clamp(360px,75svh,900px);width:100%}
#highlight .reel-cover img{width:100%;height:100%;object-fit:cover}
#highlight .reel-launch{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #ffffff55;border-radius:30px;background:#ffffffbb;color:#080808;padding:14px 24px;font-size:15px;line-height:1.2;white-space:nowrap;opacity:.2;transition:opacity .3s ease,background-color .3s ease,color .3s ease;backdrop-filter:blur(8px)}
#highlight.reel-waiting:hover .reel-launch,#highlight .reel-launch:focus-visible{opacity:1;background:#080808;color:#fff;border-color:#ffffff55}
#highlight:not(.reel-waiting) .reel-launch{display:none}
@media(hover:none){#highlight .reel-launch{opacity:.85;background:#080808b3;color:#fff}}
@media(prefers-reduced-motion:reduce){#highlight .reel-launch{transition:none}}
/* Capa ocupa a primeira tela e deixa uma faixa do demoreel visivel. */
.hero{height:calc(100svh - 116px);min-height:460px;aspect-ratio:auto}
.hero .hero-photo{top:calc(50% - 25.64cqw)}
.hero h1{top:calc(50% - 4.71cqw)}
.hero .hero-bottom{top:calc(50% + 23.78cqw)}
.reel-modal{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;padding:66px 5vw 24px;background:#080808f5;color:white;box-sizing:border-box}
.reel-modal::backdrop{background:#080808e8}
.reel-modal[open]{display:flex;align-items:center;justify-content:center}
.reel-modal .film-player{width:min(1200px,100%);max-height:100%;display:flex;flex-direction:column}
.reel-modal video{height:auto;min-height:0;max-height:calc(100dvh - 230px);object-fit:contain}
.reel-modal .film-controls{flex-shrink:0}
.reel-modal-close{position:absolute;top:14px;right:20px;width:42px;height:42px;display:grid;place-items:center;padding:0;border:1px solid #ffffff55;background:#151515;border-radius:50%;color:white;font-size:21px}
@media(max-width:560px){.hero{height:calc(100svh - 100px);min-height:300px;aspect-ratio:auto}.reel-modal{padding:66px 12px 20px}}
.socials{gap:12px}.social-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #ffffff36;border-radius:50%;background:#ffffff08;transition:background .2s,border-color .2s;flex-shrink:0}
.social-icon:hover{background:#ffffff20;border-color:#ffffff99}
.social-icon span{display:block;width:26px;height:26px;overflow:hidden}
.social-icon img{display:block;width:50px!important;height:50px!important;max-width:none;transform:translate(-12px,-12px);filter:invert(1);mix-blend-mode:screen;object-fit:contain}
.masthead-socials{align-items:center;gap:10px}.masthead-socials .social-icon{width:40px;height:40px}
.instagram-projects{margin-top:54px;min-width:0}.instagram-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.instagram-heading h2{font-size:clamp(26px,3vw,40px)}
.instagram-rail{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;align-items:flex-start;padding:2px 2px 12px}
.instagram-rail::-webkit-scrollbar{display:none}.instagram-card{flex:0 0 min(360px,100%);min-width:0;scroll-snap-align:start}
.instagram-embed-wrap{position:relative;overflow:hidden;min-height:470px;border-radius:4px;background:#171717}
.instagram-embed-wrap blockquote{margin:0!important;width:100%!important;min-width:0!important}
.instagram-placeholder{min-height:470px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;border:1px solid #333;border-radius:4px;color:#bbb}.instagram-placeholder strong{color:#fff;font-size:23px}
.instagram-source{display:inline-block;font-size:14px;border-bottom:1px solid #555;margin-top:16px;padding-bottom:5px}.instagram-help{font-size:13px;color:#aaa;line-height:1.5}

.instagram-cover{position:relative;display:block;overflow:hidden;border-radius:4px;background:#171717}.instagram-cover img{display:block;width:100%;height:auto}.instagram-cover-label{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:10px 16px;border:1px solid #ffffff55;border-radius:999px;background:#080808a6;color:white;font-size:13px;backdrop-filter:blur(8px);transition:background .2s}.instagram-cover:hover .instagram-cover-label,.instagram-cover:focus-visible .instagram-cover-label{background:#080808}.instagram-cover:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Capas de Reels uniformes, preenchendo o quadro vertical. */
.instagram-cover{aspect-ratio:9/16}.instagram-cover img{width:100%;height:100%;object-fit:cover;object-position:center}

.youtube-projects{margin-top:54px;min-width:0}.youtube-rail{display:flex;gap:20px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory}.youtube-rail::-webkit-scrollbar{display:none}.youtube-card{flex:0 0 calc((100% - 20px)/2);min-width:0;scroll-snap-align:start}.youtube-stage{position:relative;aspect-ratio:16/9;min-height:200px;background:#171717;border-radius:4px;overflow:hidden}.youtube-cover{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:#171717;cursor:pointer;z-index:1}.youtube-cover[hidden]{display:none}.youtube-cover img{width:100%;height:100%;object-fit:cover;display:block}.youtube-cover span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#080808b3;color:white;border:1px solid #ffffff66}.youtube-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.youtube-status{font-size:13px;color:#aaa;line-height:1.5}.youtube-status:empty{display:none}@media(max-width:700px){.youtube-card{flex-basis:100%}}

.instagram-cover.instagram-crop-top{aspect-ratio:4/5}.instagram-crop-top img{object-position:center bottom}
.instagram-crop-top img{transform:scale(1.04);transform-origin:center bottom}
