@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500;600&display=swap');
:root{--bg:#141412;--fg:#D6C49A;--gold:#C8AD62;--muted:#77766C;--line:#4b483d;--card:#272722;--grain-image:none;--editorial-space:clamp(24px,5vw,88px);--motion-speed:.38s}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--fg);font-family:'DM Sans',sans-serif;font-weight:300}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.shell{min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:28px clamp(20px,6vw,100px);font-size:12px;letter-spacing:.13em;text-transform:uppercase}.brand{color:var(--gold);letter-spacing:.17em}.nav{display:flex;gap:30px;align-items:center}.nav a:hover,.nav a:focus-visible{color:var(--gold)}.lang{background:none;border:1px solid var(--line);color:var(--gold);padding:7px 10px;border-radius:2px}.main{flex:1}.hero{min-height:calc(100vh - 170px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 16px 45px}.eyebrow{font-size:11px;letter-spacing:.25em;color:var(--muted);text-transform:uppercase;text-align:center}.hero h1,.page h1{font:400 clamp(42px,6vw,78px)/1.03 'Cormorant Garamond',serif;margin:16px 0 10px;text-align:center}.hero p{color:var(--muted);font-size:13px;text-align:center}.venn{width:min(100%,780px);margin:12px auto 0;overflow:visible}.region{cursor:pointer;outline:none}.region path{fill:rgba(222,199,125,.035);stroke:var(--gold);stroke-opacity:.7;stroke-width:1.1;transition:fill var(--motion-speed),stroke-opacity var(--motion-speed)}.region text{font-family:'DM Sans',sans-serif;font-weight:400;letter-spacing:3px;fill:var(--fg);font-size:15px;pointer-events:none;transition:fill .3s,opacity .3s}.region.center text{font-size:13px;letter-spacing:1.7px}.venn:has(.region:hover) .region:not(:hover) path,.venn:has(.region:focus-visible) .region:not(:focus-visible) path{stroke-opacity:.3}.region:hover path,.region:focus-visible path{fill:rgba(222,199,125,.23);stroke-opacity:1}.region:hover text,.region:focus-visible text{fill:var(--gold)}.region:focus-visible path{stroke-width:3}.mobile-links{display:none;gap:12px;flex-wrap:wrap;justify-content:center}.mobile-links a,.back{border-bottom:1px solid var(--gold);padding:8px 0;color:var(--gold);font-size:12px;letter-spacing:.08em}.footer{padding:24px clamp(20px,6vw,100px);display:flex;justify-content:space-between;gap:20px;align-items:center;color:var(--muted);font-size:11px}.footer .social{display:flex;gap:18px;color:var(--gold)}.page{max-width:1100px;margin:auto;padding:60px 24px 110px}.page-head{text-align:center;margin-bottom:55px}.page-head p{color:var(--muted);font-size:13px}.filters{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:28px 0 38px}.filters button{background:none;border:1px solid var(--line);color:var(--muted);padding:9px 15px;font-size:12px}.filters button.active,.filters button:hover{border-color:var(--gold);color:var(--gold)}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.tile{display:block}.tile-art{aspect-ratio:4/3;background:var(--card);display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--line);transition:border-color .2s}.tile:hover .tile-art{border-color:var(--gold)}.tile-art img{width:100%;height:100%;object-fit:cover}.placeholder{font:400 50px 'Cormorant Garamond',serif;color:var(--gold)}.tile h2{font:400 25px 'Cormorant Garamond',serif;margin:12px 0 3px}.tile p{color:var(--muted);font-size:11px;margin:0}.project{max-width:850px;margin:auto;text-align:center}.project .media{margin:38px 0;min-height:250px}.project iframe,.project video{width:100%;aspect-ratio:16/9;border:0}.project audio{width:100%;margin:30px 0}.project .description{line-height:1.9;color:var(--fg);max-width:650px;margin:24px auto}.project .photos{display:grid;gap:18px}.project .photos img{width:100%;max-height:75vh;object-fit:contain}.pager{display:flex;justify-content:space-between;margin-top:55px;gap:18px}.contact{max-width:570px;margin:auto;text-align:center}.contact a{color:var(--gold)}.contact form{text-align:left;display:grid;gap:12px;margin-top:35px}.contact label{font-size:12px;color:var(--muted)}.contact input,.contact textarea,.admin input,.admin textarea,.admin select{width:100%;padding:12px;background:var(--card);border:1px solid var(--line);color:var(--fg);border-radius:0}.primary{padding:13px 20px;background:var(--gold);border:0;color:#141414}.empty{text-align:center;color:var(--muted);padding:60px 10px}.admin-layout{max-width:900px;margin:auto}.admin-list{display:grid;gap:10px}.admin-item{border:1px solid var(--line);padding:16px;display:flex;justify-content:space-between;gap:10px;align-items:center}.admin-actions{display:flex;gap:8px}.admin-actions button{background:none;border:1px solid var(--line);color:var(--fg);padding:8px}.admin-form{display:grid;gap:13px;margin:25px 0}.admin-form label{font-size:12px;color:var(--muted)}.notice{border:1px solid var(--line);padding:16px;color:var(--muted);font-size:13px;line-height:1.7}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--gold);outline-offset:4px}@media(max-width:700px){.topbar{padding:20px}.nav{gap:15px}.hero{min-height:70vh}.venn{margin:30px auto}.mobile-links{display:flex}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.page{padding:40px 20px 80px}.footer{padding:22px 20px;flex-wrap:wrap}.region text{font-size:17px}.region.center text{font-size:13px}}@media(max-width:440px){.gallery{grid-template-columns:1fr}.brand{font-size:10px}.nav{font-size:10px;gap:10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* ANALOG / GEOMETRY — identidade visual editável.
   Textura: coloque um arquivo real, autoral/licenciado em assets/textures/film-grain.png
   e altere --grain-image para url('/assets/textures/film-grain.png').
   Nenhuma textura sintética ou imagem gerada por IA é incluída. */
body{background-color:var(--bg);background-image:var(--grain-image);background-size:360px auto}
.topbar{border-bottom:1px solid rgba(200,173,98,.18);padding-top:24px;padding-bottom:24px}
.brand{font-weight:500}.topbar,.footer{position:relative;z-index:2}
.hero{position:relative;min-height:calc(100svh - 148px);padding:var(--editorial-space) 22px;gap:8px}
.hero::before,.hero::after{content:'';position:absolute;width:22px;height:22px;opacity:.46;pointer-events:none}
.hero::before{top:9%;left:7%;border-top:1px solid var(--gold);border-left:1px solid var(--gold)}
.hero::after{right:7%;bottom:11%;border-right:1px solid var(--gold);border-bottom:1px solid var(--gold)}
.hero h1{font-size:clamp(52px,7vw,96px);font-weight:400;letter-spacing:-.025em}
.hero p{max-width:450px;line-height:1.7}.eyebrow{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;letter-spacing:.14em}
.archive-meta{display:flex;justify-content:space-between;align-items:center;width:min(100%,780px);gap:12px;color:var(--muted);font:10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase}
.archive-meta.bottom{border-top:1px solid var(--line);padding-top:13px}
.venn{margin:8px auto 14px;max-height:min(51vh,510px)}
.region path{stroke-width:.85;fill:rgba(200,173,98,.025)}
.region text{font-family:'Cormorant Garamond',serif;font-size:24px;letter-spacing:.06em;text-transform:lowercase}
.region.center text{font-size:20px;letter-spacing:.02em}
.region:hover path,.region:focus-visible path{fill:rgba(200,173,98,.17)}
.region:hover text,.region:focus-visible text{fill:#f1dda8}
.venn .technical{pointer-events:none;fill:var(--muted);font:9px ui-monospace,Consolas,monospace;letter-spacing:1px}
.venn .register{pointer-events:none;stroke:var(--gold);stroke-width:.6;opacity:.48;fill:none}
.page{padding-top:var(--editorial-space)}.page-head{border-bottom:1px solid var(--line);padding-bottom:30px}
.page h1{font-size:clamp(58px,8vw,110px)}.page-head p{letter-spacing:.12em;text-transform:uppercase;font-size:10px}
.gallery{gap:clamp(24px,4vw,52px) clamp(18px,3vw,36px)}
.tile-art{border:0;background:var(--card);position:relative;transition:filter var(--motion-speed),background var(--motion-speed)}
.tile-art::before{content:'';position:absolute;inset:8px;border:1px solid rgba(214,196,154,.15);pointer-events:none;z-index:1}
.tile:hover .tile-art{filter:brightness(1.13);background:#343127}
.tile h2{font-size:clamp(25px,3vw,36px);margin:15px 0 5px}
.tile p{font-family:ui-monospace,Consolas,monospace;font-size:10px;letter-spacing:.06em}
.archive-code{display:block;color:var(--gold);font:10px ui-monospace,Consolas,monospace;letter-spacing:.12em;margin-top:12px}
.placeholder{font-size:clamp(34px,5vw,64px);font-style:italic;opacity:.7}
.filters button{border:0;border-bottom:1px solid transparent;padding:10px 6px;margin:0 6px}
.filters button.active,.filters button:hover{border-bottom-color:var(--gold);border-top:0;border-left:0;border-right:0}
.project .media{background:var(--card)}.project .description{line-height:2}
.footer{border-top:1px solid rgba(200,173,98,.18)}
@media(max-width:700px){.hero{min-height:68svh}.hero::before,.hero::after{display:none}.archive-meta{font-size:8px}.region text{font-size:22px}.region.center text{font-size:17px}.venn{max-height:none}}

/* ANALOG / GEOMETRY v2 — layout editorial mais expressivo.
   Ajustes principais: --diagram-max, --hero-title-size e --archive-gutter.
   Elementos visuais feitos com CSS/SVG; nenhum asset gerado por IA. */
:root{--diagram-max:900px;--hero-title-size:clamp(82px,10vw,180px);--archive-gutter:clamp(24px,5.8vw,108px)}
.hero-archive{display:block;min-height:calc(100svh - 145px);padding:26px var(--archive-gutter) 32px;overflow:hidden}
.archive-topline,.archive-bottomline{display:flex;justify-content:space-between;gap:16px;color:var(--gold);font:10px ui-monospace,Consolas,monospace;letter-spacing:.14em}
.archive-topline{padding-bottom:17px;border-bottom:1px solid var(--line)}
.archive-bottomline{border-top:1px solid var(--line);padding-top:17px;color:var(--muted)}
.hero-layout{display:grid;grid-template-columns:minmax(300px,.83fr) minmax(470px,1.4fr);align-items:center;min-height:min(72vh,760px);gap:clamp(10px,3vw,60px)}
.hero-editorial{position:relative;align-self:center;padding:35px 0 80px;z-index:1}
.hero-kicker,.hero-instruction,.hero-vertical,.stage-top,.stage-bottom{font:10px ui-monospace,Consolas,monospace;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.hero-kicker{color:var(--gold)}.tiny-cross{margin-left:12px;font-size:17px}
.hero-archive h1{font-family:'Cormorant Garamond',serif;font-size:var(--hero-title-size);font-weight:400;line-height:.78;text-align:left;letter-spacing:-.065em;margin:40px 0 35px;white-space:nowrap}
.title-period{color:var(--gold)}
.hero-archive .hero-statement{text-align:left;font-family:'Cormorant Garamond',serif;font-size:clamp(21px,2.2vw,34px);line-height:1.25;color:var(--fg);max-width:330px;margin:0}
.editorial-rule{height:1px;background:var(--line);width:min(100%,310px);margin:45px 0 20px}.hero-instruction{color:var(--gold)}
.hero-vertical{position:absolute;left:0;bottom:0;opacity:.65}
.venn-stage{position:relative;min-width:0;padding:20px 0 10px;border-left:1px solid rgba(200,173,98,.25)}
.stage-top,.stage-bottom{display:flex;justify-content:space-between;gap:10px;padding:0 3%;color:var(--gold);font-size:9px}
.stage-top{margin-bottom:14px}.stage-bottom{margin-top:6px}
.hero-archive .venn{width:100%;max-width:var(--diagram-max);max-height:none;margin:0 auto;display:block;filter:drop-shadow(0 0 22px rgba(200,173,98,.035))}
.hero-archive .region path{stroke-width:1.25;stroke-opacity:.92;fill:rgba(200,173,98,.025)}
.hero-archive .region text{font-family:'DM Sans',sans-serif;font-size:17px;font-weight:400;letter-spacing:2.7px;text-transform:uppercase}
.hero-archive .region.center text{font-size:14px;letter-spacing:1.15px}
.hero-archive .region:hover path,.hero-archive .region:focus-visible path{fill:rgba(200,173,98,.28);stroke-opacity:1}
.hero-archive .region:hover text,.hero-archive .region:focus-visible text{fill:#f5e4b8}
.hero-archive .venn .register{opacity:.95;stroke-width:1.2}.hero-archive .venn .technical{font-size:10px;fill:var(--gold)}
.hero-archive::before{top:22%;left:2%;width:12px;height:12px}.hero-archive::after{right:2%;bottom:18%;width:12px;height:12px}
@media(max-width:1050px){.hero-layout{grid-template-columns:1fr;gap:15px}.hero-editorial{padding:55px 0 0}.hero-archive h1{font-size:clamp(75px,13vw,135px);margin:20px 0 25px}.hero-archive .hero-statement{max-width:none}.editorial-rule,.hero-instruction,.hero-vertical{display:none}.venn-stage{border-left:0;border-top:1px solid var(--line);padding-top:25px}.hero-archive .venn{max-width:740px}}
@media(max-width:600px){.hero-archive{padding:18px 20px 30px}.archive-topline,.archive-bottomline{font-size:8px}.hero-editorial{padding:38px 0 20px}.hero-archive h1{font-size:clamp(64px,16vw,100px)}.hero-archive .hero-statement{font-size:22px}.stage-top,.stage-bottom{font-size:7px}.venn-stage{padding-top:15px}.hero-archive .region text{font-size:19px}.hero-archive .region.center text{font-size:14px}.hero-archive .mobile-links{margin:12px 0 25px}}

/* TEXTURA ANALÓGICA FORNECIDA PELO USUÁRIO — imagem original rotacionada para horizontal.
   Intensidade: ajuste opacity abaixo entre 0 e 1.
   A textura não foi gerada por IA. */
body{background-image:none!important;background-color:var(--bg)}
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:url('/assets/textures/analog-texture.jpg') center center / cover no-repeat;opacity:.26}
.shell{position:relative;z-index:1}

/* VIDEO DE FUNDO — HOME. Ajuste o escurecimento em --film-overlay. */
:root{--film-overlay:.48}
body[data-page="home"]::before{display:none}
.film-background{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#141412}
.film-background video{width:100%;height:100%;object-fit:cover;object-position:center center;display:block;opacity:.92}
.film-background::after{content:"";position:absolute;inset:0;background:rgba(20,20,18,var(--film-overlay))}
body[data-page="home"] .shell{position:relative;z-index:2}
@media(prefers-reduced-motion:reduce){.film-background video{display:none}.film-background{background:#141412}}

/* V3 — Informações editoriais no topo; diagrama centralizado na tela. */
.hero-archive{display:flex;flex-direction:column;min-height:calc(100svh - 145px);padding-top:20px;padding-bottom:20px}
.hero-layout{display:flex;flex:1;flex-direction:column;align-items:stretch;justify-content:center;min-height:0;gap:14px}
.hero-editorial{align-self:stretch;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:clamp(18px,4vw,70px);align-items:center;padding:24px 0 0;max-width:1050px;width:100%;margin:0 auto}
.hero-kicker{grid-column:1/-1;font-size:9px;letter-spacing:.12em}
.hero-archive h1{font-size:clamp(48px,5.6vw,84px);line-height:1;margin:12px 0 10px;white-space:normal}
.hero-archive .hero-statement{font-size:clamp(16px,1.7vw,23px);max-width:440px;margin:10px 0;text-align:left}
.editorial-rule,.hero-instruction,.hero-vertical{display:none}
.venn-stage{width:min(100%,850px);margin:0 auto;border-left:0;padding:0;display:flex;flex-direction:column;justify-content:center}
.hero-archive .venn{width:100%;max-width:760px;margin:0 auto;max-height:min(52svh,520px)}
.stage-top,.stage-bottom{font-size:8px}
@media(max-width:700px){.hero-archive{padding:16px 20px 22px}.hero-layout{gap:20px}.hero-editorial{display:block;padding:25px 0 0}.hero-archive h1{font-size:clamp(48px,12vw,76px);margin:10px 0}.hero-archive .hero-statement{font-size:19px;margin:0}.venn-stage{padding:0;border:0}.hero-archive .venn{max-height:none}.archive-topline,.archive-bottomline{font-size:8px}}

/* V4: remove metadata superior e compacta a abertura do hero. */
.hero-archive .hero-editorial{padding-top:0}
.hero-archive h1{margin-top:4px}
@media(max-width:700px){.hero-archive .hero-editorial{padding-top:10px}}


/* EDITORIAL INTERNAL PAGES — HOME IS UNCHANGED */
body:not([data-page="home"])::before{background-image:url('/assets/textures/analog-texture.png');background-position:center;background-size:cover;background-attachment:fixed;opacity:.24}
body:not([data-page="home"])::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:rgba(20,20,18,.44)}
body:not([data-page="home"]) .shell{z-index:1}
.editorial-page{max-width:1360px;padding:clamp(40px,6vw,90px) clamp(24px,7vw,100px) 120px}
.editorial-heading{margin-bottom:34px}
.editorial-heading .back{display:inline-block;margin-bottom:clamp(36px,6vw,80px)}
.editorial-heading-main{text-align:left}
.editorial-overline{font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold)}
.editorial-heading h1{font-size:clamp(72px,10vw,148px);text-align:left;line-height:.95;margin:18px 0 20px;font-weight:400}
.editorial-intro{font-family:'Cormorant Garamond',serif;font-size:clamp(20px,2.5vw,30px);color:var(--fg);margin:0 0 60px}
.editorial-heading-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:18px;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg)}
.editorial-page .filters{justify-content:flex-start;margin:24px 0 34px}
.editorial-gallery{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(18px,3vw,36px);row-gap:clamp(34px,5vw,66px)}
.editorial-gallery .tile:first-child{grid-column:1/-1}
.editorial-gallery .tile-art{aspect-ratio:16/10;background:#24231f;border:1px solid rgba(214,196,154,.13)}
.editorial-gallery .tile:first-child .tile-art{aspect-ratio:2.15/1}
.editorial-gallery .tile-art::before{inset:12px;border-color:rgba(214,196,154,.10)}
.editorial-gallery .tile-info{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-top:15px}
.editorial-gallery .tile h2{font-size:clamp(24px,3vw,38px);margin:0 0 5px}
.editorial-gallery .archive-code{font-family:ui-monospace,Consolas,monospace;white-space:nowrap;color:var(--gold);font-size:10px;padding-top:8px}
.editorial-gallery .tile p{text-transform:uppercase;letter-spacing:.1em}
.editorial-placeholder{position:relative;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;width:100%;height:100%;color:#8b8068}
.placeholder-index{font:400 clamp(30px,5vw,60px) 'Cormorant Garamond',serif;opacity:.48}
.placeholder-caption{font-size:9px;letter-spacing:.2em}
.editorial-detail{max-width:1080px;padding-top:65px}
.editorial-detail h1{font-size:clamp(65px,9vw,125px);margin:35px 0 10px}
.editorial-detail .media{margin:45px auto;background:rgba(39,39,34,.72)}
.editorial-contact{padding-top:80px}
.editorial-contact h1{font-size:clamp(70px,10vw,125px)}
@media(max-width:650px){.editorial-page{padding:36px 20px 80px}.editorial-heading .back{margin-bottom:45px}.editorial-heading h1{font-size:clamp(62px,13vw,95px)}.editorial-intro{margin-bottom:40px}.editorial-gallery{grid-template-columns:1fr;gap:32px}.editorial-gallery .tile:first-child{grid-column:auto}.editorial-gallery .tile:first-child .tile-art{aspect-ratio:16/10}.editorial-heading-bottom{font-size:9px}.editorial-contact{padding-top:45px}}

/* Fundo provisório das páginas internas: cinza escuro sólido, sem textura. */
body:not([data-page="home"]){background:#242424!important;background-image:none!important}
body:not([data-page="home"])::before,
body:not([data-page="home"])::after{content:none!important;display:none!important}

/* Editor: rascunhos e publicação */
.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:25px}.admin-heading h1{text-align:left;margin:8px 0}.admin-item-text{display:flex;flex-direction:column;gap:7px}.admin-item-text small{color:var(--muted)}.status-pill{font-size:11px;letter-spacing:.05em;color:var(--muted)}.status-pill.is-live{color:var(--gold)}.admin-actions{flex-wrap:wrap;justify-content:flex-end}.admin-form{padding:24px;border:1px solid var(--line)}.admin-form h2{font:400 32px 'Cormorant Garamond',serif;margin:0}.admin-hint{color:var(--muted);font-size:13px;line-height:1.5}.admin-form-actions{display:flex;gap:12px;flex-wrap:wrap}.admin-form-actions button:not(.primary){background:transparent;color:var(--fg);border:1px solid var(--line);padding:12px 20px}@media(max-width:700px){.admin-item{align-items:flex-start;flex-direction:column}.admin-actions{justify-content:flex-start}}

/* Project media and admin upload controls */
.portfolio-media-items{display:grid;gap:1.5rem;width:100%}.portfolio-media-item{width:100%;min-width:0}.portfolio-media-item img,.portfolio-media-item video{display:block;max-width:100%;height:auto;margin:auto}.portfolio-media-item iframe{display:block;max-width:100%}.media-editor{border:1px solid #6b6455;padding:1rem;margin:1rem 0}.media-editor-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;border-bottom:1px solid #5a5448;padding:.6rem 0;flex-wrap:wrap}.media-editor-row span{overflow-wrap:anywhere;flex:1;min-width:180px}.media-editor-row button{margin:.15rem}.media-editor #upload-status{min-height:1.5em}

/* Project media: keep Cloudinary images inside the editorial column. */
.project .portfolio-media-items{display:flex;flex-direction:column;gap:32px}
.project .portfolio-media-item{max-width:100%;min-width:0}
.project .portfolio-media-item img{display:block;max-width:100%;width:auto;height:auto;max-height:85vh;object-fit:contain;margin:0 auto}
.project .portfolio-media-item iframe,.project .portfolio-media-item video{max-width:100%;display:block;margin:0 auto}

/* Editor: thumbnails and contact anti-spam field */
.admin-media-thumb{width:76px;height:58px;object-fit:cover;border-radius:4px;flex-shrink:0}
.media-editor-row{overflow-wrap:anywhere;gap:12px}
.contact-honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* Grade de miniaturas na página interna do projeto */
.project-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;margin:0 0 24px}
.project-image-thumb{display:block;width:100%;aspect-ratio:1/1;padding:0;border:0;background:#303030;cursor:zoom-in;overflow:hidden;border-radius:2px}
.project-image-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}
.project-image-thumb:hover img{transform:scale(1.045)}
.project-image-thumb:focus-visible{outline:2px solid #e6c56e;outline-offset:3px}
@media(max-width:700px){.project-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
.project-lightbox[hidden]{display:none!important}
.project-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.95);display:flex;align-items:center;justify-content:center;padding:56px 65px}
.project-lightbox figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
.project-lightbox figure img{max-width:100%;max-height:calc(100dvh - 120px);object-fit:contain}
.project-lightbox figcaption{color:#ddd;font:14px sans-serif}
.project-lightbox button{position:absolute;border:0;background:rgba(50,50,50,.7);color:#fff;cursor:pointer;border-radius:50%;width:44px;height:44px;font-size:30px;display:grid;place-items:center}
.project-lightbox button:focus-visible{outline:2px solid #e6c56e}
.project-lightbox .lightbox-close{right:18px;top:15px}
.project-lightbox .lightbox-prev{left:12px;top:50%;transform:translateY(-50%)}
.project-lightbox .lightbox-next{right:12px;top:50%;transform:translateY(-50%)}
body.lightbox-open{overflow:hidden}
@media(max-width:600px){.project-lightbox{padding:65px 12px}.project-lightbox .lightbox-prev{left:8px;bottom:12px;top:auto;transform:none}.project-lightbox .lightbox-next{right:8px;bottom:12px;top:auto;transform:none}}

/* Icones das redes sociais no rodape */
.footer .social{display:flex;align-items:center;gap:16px}
.footer .social a{display:inline-flex;align-items:center;justify-content:center;color:inherit;line-height:1}
.footer .social a svg{display:block;width:22px;height:22px}
.footer .social a:focus-visible{outline:2px solid currentColor;outline-offset:5px}


/* Página de contato: cartões e formulário */
.editorial-contact.contact{max-width:1000px;width:100%;padding-top:65px;text-align:center}
.editorial-contact .contact-overline{margin:30px 0 5px;letter-spacing:.22em;font-size:11px;color:var(--gold)}
.editorial-contact h1{font-size:clamp(58px,7vw,90px);margin:0 0 18px}
.editorial-contact .contact-intro{margin:0 auto 26px;line-height:1.6}
.contact-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:650px;margin:0 auto 46px}
.contact-link-card{border:1px solid var(--line);padding:19px 10px;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}
.contact-link-card span{color:var(--gold);font-size:15px}
.contact-link-card a{font-size:15px;overflow-wrap:anywhere;text-underline-offset:4px}
.contact-form-area{max-width:545px;margin:0 auto;border-top:1px solid var(--line);padding-top:35px;text-align:left}
.contact-form-area h2{text-align:center;font-size:18px;font-weight:normal;margin:0 0 18px}
.editorial-contact .contact-form-area form{margin-top:0}
@media(max-width:650px){.editorial-contact.contact{padding-top:35px}.contact-links{grid-template-columns:1fr;max-width:360px;gap:10px;margin-bottom:32px}.contact-link-card{padding:14px}.contact-form-area{max-width:100%}}

/* Layout editorial v2: capa única no topo, apresentação em duas colunas */
.project-detail-v2{width:100%;min-width:0;padding-bottom:50px}
.project-cover-hero{width:100%;height:clamp(240px,30vw,440px);overflow:hidden;background:#222}
.project-cover-hero img{width:100%;height:100%;object-fit:cover;display:block}
.project-detail-inner{width:min(1200px,calc(100% - 48px));margin:0 auto;padding-top:30px}
.project-detail-columns{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);gap:clamp(30px,5vw,85px);align-items:start;margin:35px 0 48px}
.project-detail-copy h1{font-size:clamp(40px,5vw,76px);line-height:1.05;margin:12px 0 28px;overflow-wrap:anywhere}
.project-detail-copy .description{max-width:540px;line-height:1.7}
.project-detail-feature{min-width:0}
.project-detail-feature iframe,.project-detail-feature video{width:100%;max-width:100%;aspect-ratio:16/9;border:0}
.project-detail-feature audio{width:100%;max-width:100%}
.project-detail-gallery{margin:28px 0 40px}
.project-detail-gallery h2{font-size:clamp(20px,2vw,28px);font-weight:400;margin:0 0 20px}
.project-detail-gallery .project-image-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.project-detail-gallery .portfolio-media-items{margin-top:25px}
@media(max-width:800px){.project-detail-columns{grid-template-columns:1fr;gap:22px}.project-detail-gallery .project-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-detail-inner{width:calc(100% - 32px)}.project-cover-hero{height:260px}}

/* Players externos: SoundCloud não deve herdar proporção 16:9 de vídeo */
.project-detail-feature iframe.soundcloud-embed,
.project-detail-gallery iframe.soundcloud-embed,
.portfolio-media-items iframe.soundcloud-embed{display:block;width:100%;height:166px;min-height:166px;aspect-ratio:auto;max-width:100%;border:0}
.project-detail-feature iframe.video-embed,
.project-detail-gallery iframe.video-embed{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0}
.project-detail-gallery .portfolio-media-item{margin-bottom:18px}

/* Página Sobre */
.about-page{width:min(1200px,calc(100% - 48px));margin:0 auto;padding:65px 0 100px}
.about-heading{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:45px}
.about-kicker{font-size:11px;letter-spacing:.22em;color:#c8ad62}
.about-heading h1{font-size:clamp(65px,9vw,125px);line-height:1;margin:0;font-weight:400}
.about-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,6vw,100px);align-items:start}
.about-photo{margin:0;min-width:0}
.about-photo img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;background:#303030}
.about-photo span{display:block;margin-top:12px;font-size:10px;letter-spacing:.15em;color:#a49b8b}
.about-copy{padding-top:10px;max-width:560px}
.about-copy p{font-size:clamp(16px,1.45vw,19px);line-height:1.8;margin:0 0 24px}
.about-copy .about-lead{font-family:Georgia,serif;font-size:clamp(25px,3vw,39px);line-height:1.35;color:#d7c39b;margin-bottom:35px}
.about-contact-link{display:inline-block;margin-top:15px;color:#d7c39b;text-decoration:underline;text-underline-offset:7px}
@media(max-width:760px){.about-page{width:calc(100% - 32px);padding:38px 0 75px}.about-layout{grid-template-columns:1fr;gap:30px}.about-photo img{aspect-ratio:4/3}.about-heading{margin-bottom:30px}}

/* Projeto: apresentação textual centralizada, sem player lateral */
.project-detail-v2 .project-detail-columns{display:block;max-width:850px;margin:42px auto 60px;text-align:center}
.project-detail-v2 .project-detail-copy{width:100%;margin:0 auto;text-align:center}
.project-detail-v2 .project-detail-copy h1{margin-left:auto;margin-right:auto}
.project-detail-v2 .project-detail-copy .description{max-width:700px;margin-left:auto;margin-right:auto}
.project-detail-v2 .project-detail-copy .eyebrow{text-align:center}
.project-detail-v2 .project-detail-gallery{margin-top:48px}
.project-detail-v2 .project-detail-gallery h2{text-align:center}
@media(max-width:800px){.project-detail-v2 .project-detail-columns{margin:30px auto 45px}}

/* Álbum/playlist SoundCloud: exibe lista completa de faixas */
.project-detail-v2 iframe.soundcloud-embed.soundcloud-playlist,
.project-detail-feature iframe.soundcloud-embed.soundcloud-playlist,
.project-detail-gallery iframe.soundcloud-embed.soundcloud-playlist,
.portfolio-media-items iframe.soundcloud-embed.soundcloud-playlist {
  display:block;
  width:100%;
  height:450px;
  min-height:450px;
  max-width:100%;
  aspect-ratio:auto;
  border:0;
}

/* Navegação one-page: menu fixo e seções ancoradas */
.topbar{position:sticky;top:0;z-index:30;background:rgba(20,20,18,.96);backdrop-filter:blur(12px)}
#portfolio,#sobre,#contato{scroll-margin-top:95px}
body[data-page="home"] .about-page{border-top:1px solid rgba(200,173,98,.2)}
body[data-page="home"] .editorial-contact{border-top:1px solid rgba(200,173,98,.2);max-width:900px;padding-top:95px;padding-bottom:120px}
body[data-page="home"] .editorial-contact .contact-form-area{max-width:570px;margin:45px auto 0}
@media(max-width:700px){#portfolio,#sobre,#contato{scroll-margin-top:80px}body[data-page="home"] .editorial-contact{padding-top:65px;padding-bottom:80px}}

/* Botão discreto de retorno ao topo */
.back-to-top{position:fixed;right:28px;bottom:28px;z-index:90;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid rgba(200,173,98,.65);border-radius:50%;background:rgba(20,20,18,.94);color:#d6b86a;font-size:25px;line-height:1;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s,transform .25s,visibility .25s,background .25s;box-shadow:0 5px 20px rgba(0,0,0,.25)}
.back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover,.back-to-top:focus-visible{background:#302b22;outline-offset:3px}
@media(max-width:700px){.back-to-top{right:16px;bottom:calc(86px + env(safe-area-inset-bottom, 0px));width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}}

/* Indicadores de interacao do diagrama: sem alterar a geometria. */
.hero-archive .venn .region > path:not(.region-arrow){transition:fill .25s,stroke-opacity .25s;fill:rgba(200,173,98,.065)}
.hero-archive .venn .region:is(:hover,:focus-visible,:active) > path:not(.region-arrow){fill:rgba(200,173,98,.23);stroke-opacity:1}
.hero-archive .venn .region .region-arrow{fill:none;stroke:var(--gold);stroke-width:1.5;stroke-opacity:.9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:transform .25s,opacity .25s}
.hero-archive .venn .region:is(:hover,:focus-visible,:active) .region-arrow{transform:translate(2px,-2px);stroke-opacity:1;stroke-width:1.5;fill:none}
.hero-archive .venn-hint{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--fg);font-size:11px;letter-spacing:.15em;text-transform:uppercase;margin:0 auto 18px;line-height:1.5}
.venn-hint svg{width:16px;height:16px;color:var(--gold);flex-shrink:0}
.hero-archive .hero-instruction{display:none}
@media(max-width:600px){.hero-archive .venn-hint{font-size:10px;letter-spacing:.1em;margin-bottom:12px}}

/* Home: abertura ampliada, sem limite de altura do SVG. */
@media(min-width:701px){
 .hero-archive{padding-inline:clamp(20px,3vw,60px)}
 .hero-archive .hero-layout{gap:24px}
 .hero-archive .hero-editorial{max-width:1400px}
 .hero-archive h1{font-size:clamp(72px,8vw,132px)}
 .hero-archive .hero-statement{font-size:clamp(23px,2.5vw,36px)}
 .hero-archive .venn-stage{width:min(100%,1200px)}
 .hero-archive .venn{width:100%;height:auto;max-width:1150px;max-height:none;flex-shrink:0}
}
@media(max-width:700px){
 .hero-archive{padding-inline:8px}
 .hero-archive h1{font-size:clamp(60px,16vw,100px)}
 .hero-archive .hero-statement{font-size:24px}
 .hero-archive .venn-stage{width:100%}
 .hero-archive .venn{width:100%;height:auto;max-width:none;max-height:none}
}

/* Menu de categorias do portfólio */
.portfolio-dropdown{position:relative;display:flex;align-items:center;gap:3px;color:var(--gold)}
.portfolio-toggle{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;color:inherit;cursor:pointer;padding:8px 4px;min-height:32px}
.portfolio-toggle svg{transition:transform .2s ease}
.portfolio-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.portfolio-menu{position:absolute;top:100%;left:0;min-width:174px;background:#1c1c19;border:1px solid rgba(200,173,98,.35);padding:6px;z-index:60;box-shadow:0 8px 24px #0005}
.portfolio-menu[hidden]{display:none}
.portfolio-menu a{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 10px;color:#d6c49a;white-space:nowrap;transition:background .2s ease}
.portfolio-menu a:hover,.portfolio-menu a:focus-visible{background:rgba(200,173,98,.12);color:var(--gold)}
.portfolio-toggle:focus-visible{outline:1px solid var(--gold);outline-offset:2px}
@media(max-width:600px){.portfolio-dropdown{gap:0}.portfolio-toggle{padding:8px 2px}.portfolio-menu{left:0;min-width:145px}.portfolio-menu a{padding:13px 8px}}
@media(prefers-reduced-motion:reduce){.portfolio-toggle svg,.portfolio-menu a{transition:none}}

/* Home mobile: anotacoes discretas e diagrama em destaque. */
@media(max-width:700px){
 .hero-archive .stage-top{font-size:5.5px;letter-spacing:.08em;line-height:1.2;margin-bottom:3px;padding-inline:2%;gap:4px}
 .hero-archive .venn .technical{font-size:6px;letter-spacing:.4px}
 .hero-archive .venn-stage{width:calc(100% + 16px);max-width:none;margin-inline:-8px}
 .hero-archive .venn{width:106%;max-width:none;height:auto;margin-inline:-3%;max-height:none}
}

/* Mobile: circulos ocupam quase toda a largura da tela. */
@media(max-width:700px){
 .hero-archive .venn-stage{width:calc(100vw - 12px);max-width:none;margin-inline:auto;align-self:center}
 .hero-archive .venn{width:120%;max-width:none;height:auto;max-height:none;flex-shrink:0;margin-inline:-10%;overflow:visible}
 .hero-archive .venn .register{display:none}
 .hero-archive .venn .technical{display:none}
}

/* Ações do editor: esvaziar lixeira. */
.admin-heading-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#empty-trash:disabled{opacity:.45;cursor:not-allowed}

/* Optional individual media descriptions */
.media-description-fields{flex:0 0 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.media-description-fields textarea{width:100%;box-sizing:border-box;resize:vertical}
.project-image-entry{min-width:0}
.project-image-entry .project-image-thumb{width:100%}
.media-caption{font-size:.88rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;color:var(--fg);text-align:left}
.project-cover-hero .media-caption{padding:0 16px}
@media(max-width:700px){.media-description-fields{grid-template-columns:1fr}}

/* Optional media titles and unified gallery order. */
.media-item-title{font-size:.85rem;line-height:1.45;text-align:center;color:var(--fg);margin:8px 0 0;overflow-wrap:anywhere}
.ordered-project-media{display:flex;flex-direction:column;gap:24px}
.project-detail-gallery .ordered-project-media > .project-image-grid,.project-detail-gallery .ordered-project-media > .portfolio-media-items{margin:0}
.media-description-fields input{width:100%;box-sizing:border-box}

/* Projetos: impedir que textos sem espaços e mídias expandam a tela mobile. */
@media(max-width:800px){
 .project-detail-v2,.project-detail-inner,.project-detail-columns,.project-detail-copy,.project-detail-gallery,.ordered-project-media,.portfolio-media-items,.portfolio-media-item,.project-image-entry{min-width:0;max-width:100%}
 .project-detail-v2 .project-detail-copy .description,.project-detail-v2 .eyebrow,.project-detail-v2 .media-item-title,.project-detail-v2 h1,.project-detail-v2 h2,.project-detail-v2 .pager{overflow-wrap:anywhere;word-break:normal;white-space:normal}
 .project-detail-v2 iframe,.project-detail-v2 video,.project-detail-v2 audio,.project-detail-v2 img{max-width:100%;min-width:0}
 .project-detail-v2 .pager>*{min-width:0}
}

/* Editor: enquadramento não destrutivo da capa. */
.cover-editor{display:grid;gap:12px;margin:20px 0;min-width:0}.cover-preview{width:100%;aspect-ratio:2.15/1;overflow:hidden;background:var(--card)}.cover-preview img:not([hidden]){display:block;width:100%;height:100%;object-fit:cover}.cover-editor input[type=range]{width:100%;padding:0;accent-color:var(--gold)}

/* Links internos nas descrições de projetos. */
.project-detail-v2 .description-link,.description .description-link{color:var(--gold);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.description-link:hover{color:var(--fg)}
.description-editor textarea{width:100%;box-sizing:border-box;resize:vertical}
.description-link-tools{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.description-editor [data-link-panel]:not([hidden]){border:1px solid var(--line);padding:12px;margin:8px 0;min-width:0}
.description-editor select{max-width:100%}

/* Editor Sobre */
#about-editor{margin:24px 0} #about-editor textarea{width:100%;min-height:90px} .about-preview{max-width:280px;margin:16px 0} .about-preview img[hidden]{display:none} .about-no-photo{grid-template-columns:1fr} .about-copy p{white-space:pre-line;overflow-wrap:anywhere}

/* YouTube: lightweight click-to-play preview. */
.project-detail-feature .youtube-preview,.project-detail-gallery .youtube-preview,.youtube-preview{position:relative;display:block;width:100%;aspect-ratio:16/9;height:auto;padding:0;border:0;overflow:hidden;background:#141412;cursor:pointer;color:#fff}
.youtube-preview img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.youtube-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:68px;height:48px;border-radius:12px;background:#e62117;color:#fff;font-size:25px;line-height:1;pointer-events:none}
.youtube-preview:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.youtube-preview:hover .youtube-play{background:#ff0033}

/* External YouTube playback alternative. */
.youtube-watch-row{display:flex;justify-content:flex-end;width:100%;margin:8px 0 0;}
.youtube-watch-link{color:var(--gold);font-size:.82rem;text-decoration:none;line-height:1.5;}
.youtube-watch-link:hover,.youtube-watch-link:focus-visible{text-decoration:underline;}
