/* Estilos restritos à galeria e à prévia; demais seções preservadas. */
.album-section{padding:80px 0 76px;scroll-margin-top:32px}.album-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:38px}.album-heading .eyebrow{margin-bottom:18px}
.album-heading h1,.album-heading h2{display:flex;align-items:flex-start;gap:18px;font-size:clamp(48px,5.6vw,80px);font-weight:500;line-height:1.05;letter-spacing:-.055em;margin:0}
.album-total{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;margin-top:7px;padding:0 8px;border:1px solid #a880ff55;border-radius:20px;color:#cbb4ed;font:16px 'DM Sans',sans-serif;letter-spacing:0}
.album-heading>p{color:#b3aaba;font-size:16px;line-height:1.85;margin:0 0 3px;max-width:380px}
.album-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}.album-filters[hidden]{display:none}.album-filters button{font:16px 'DM Sans',sans-serif;color:#bdb4c8;background:transparent;border:1px solid #ffffff25;border-radius:24px;padding:11px 17px;cursor:pointer;transition:color .2s,background .2s,border-color .2s}.album-filters button[aria-pressed=true]{background:#b393e719;border-color:#b393e785;color:#e8d8ff}.album-filters span{margin-left:7px;font-size:16px;opacity:.7}
.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 28px}.album-card{min-width:0}.album-card[hidden]{display:none}.album-open{display:block;border-radius:4px}.album-photo{position:relative;padding:12px;background:#17141b;border:1px solid #ffffff1c;border-radius:6px;overflow:hidden;transition:transform .3s,border-color .3s}.album-photo img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;border-radius:2px;background:#08080b}
.album-open:hover .album-photo{transform:translateY(-4px);border-color:#b48bea80}.album-photo-action{position:absolute;right:22px;bottom:22px;display:flex;gap:18px;align-items:center;padding:10px 14px;border:1px solid #ffffff30;border-radius:30px;background:#121016e8;color:#fff;font-size:16px;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s}.album-open:hover .album-photo-action,.album-open:focus-visible .album-photo-action{opacity:1;transform:none}
.album-caption{display:flex;gap:12px;align-items:flex-start;padding:0 1px 16px;min-height:76px}.album-index{color:#7f728f;font-size:16px;padding-top:3px;min-width:18px}.album-caption>div{flex:1;min-width:0}.album-caption p{font-size:16px;letter-spacing:.12em;line-height:1.5;color:#b8a3cf;margin:0 0 8px}.album-caption h3{font-size:clamp(18px,1.7vw,24px);line-height:1.25;font-weight:500;letter-spacing:-.025em;margin:0}.album-arrow{color:#bc9ae9;font-size:23px;line-height:1;margin:2px 4px 0 7px}.album-results:empty{display:none}.album-results{font-size:16px;color:#a99bb8;margin:22px 0 0}
.album-project-menu{display:flex;flex-wrap:wrap;gap:9px 22px;font-size:16px;line-height:1.8;margin:0 0 28px;padding-bottom:25px;border-bottom:1px solid #ffffff20}.album-project-menu a{color:#bbacc9;transition:color .2s}.album-project-menu a:hover{color:#e4caff}
.album-project-menu a:nth-child(3){display:inline}.album-caption{min-height:100px}
.album-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #ffffff20;margin-top:46px;padding-top:25px}.album-bottom>span{font-size:16px;color:#a69bad}.album-back{display:inline-block;font-size:16px;color:#bca6d2;margin-bottom:34px}.album-page{padding-top:54px}.album-page .album-heading{margin-bottom:42px}.album-contact{padding:60px 0 90px;border-top:1px solid #ffffff20}.album-contact h2{font-size:clamp(30px,3.2vw,46px);margin-bottom:30px}.gallery-page .album-grid{gap:48px 30px}.gallery-page nav [aria-current=page]{color:#c3a0f4}
/* O conteúdo e os controles permanecem em HTML; o 3D carrega somente ao abrir uma prévia. */
.project-dialog{width:min(1200px,calc(100% - 40px));max-height:calc(100svh - 40px);padding:0;border:1px solid #76648766;border-radius:22px;background:#100e15;color:#f5f2fa;overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 120px #000b}.project-dialog::backdrop{background:#040307e8;backdrop-filter:blur(10px)}
.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:19px 25px;border-bottom:1px solid #ffffff12}.preview-counter{font-size:16px;letter-spacing:.15em;color:#bca4d8}.preview-close{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:transparent;border:1px solid #ffffff30;color:#fff;font-size:25px;cursor:pointer}.preview-thumbs{display:flex;gap:9px;overflow-x:auto;padding:16px 25px 9px;scrollbar-width:thin;scrollbar-color:#6e587d #1b1621}.preview-thumbs button{flex:0 0 66px;padding:3px;background:transparent;border:1px solid #ffffff25;border-radius:5px;cursor:pointer;opacity:.55}.preview-thumbs button[aria-pressed=true]{opacity:1;border-color:#bf9af0}.preview-thumbs img{width:100%;height:37px;object-fit:cover;object-position:top;display:block;border-radius:2px}
.preview-stage{position:relative;isolation:isolate;height:clamp(260px,48vh,540px);background:radial-gradient(ellipse at 50% 70%,#59427226,transparent 65%);overflow:hidden}.preview-webgl{position:absolute;inset:0}.preview-webgl canvas{display:block;width:100%;height:100%}.preview-fallback{position:absolute;left:50%;top:50%;width:min(820px,90%);aspect-ratio:1648/947;transform:translate(-50%,-50%)}.preview-fallback::after{content:"";position:absolute;inset:0;background:url('assets/macbook-air-frame.svg') center/contain no-repeat;pointer-events:none}.preview-fallback-screen{position:absolute;left:11.104369%;top:11.087645%;width:77.669903%;height:79.091869%;overflow:hidden;background:#000}.preview-fallback img{display:block;width:100%;height:auto}.preview-stage.has-webgl .preview-fallback{visibility:hidden}
.preview-details{display:grid;grid-template-columns:1fr auto;gap:18px 30px;align-items:end;padding:10px 35px 30px}.preview-tag{font-size:16px;letter-spacing:.14em;color:#bb9bdf;margin:0 0 12px}.preview-title{font-size:clamp(25px,3vw,40px);font-weight:500;letter-spacing:-.04em;line-height:1.15;margin:0 0 12px}.preview-description{max-width:700px;font-size:16px;line-height:1.75;color:#beb3c8;margin:0}.preview-note{font-size:16px;line-height:1.6;color:#ac9bbd;margin:12px 0 0}.preview-note:empty{display:none}.preview-visit{white-space:nowrap;align-self:center;gap:24px;padding:16px 20px;background:#b28be9;color:#160f1f;border-radius:7px;font-size:16px;font-weight:600}.preview-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 25px;border-top:1px solid #ffffff16}.preview-footer button{background:transparent;border:0;color:#ded0ec;cursor:pointer;font:16px 'DM Sans',sans-serif;padding:7px 0}.preview-footer>span{font-size:16px;color:#9d8ba9}.preview-footer button:disabled{opacity:.3;cursor:default}
.album-filters button:focus-visible,.preview-thumbs button:focus-visible,.preview-close:focus-visible,.preview-footer button:focus-visible{outline:2px solid #d0afff;outline-offset:4px}body.preview-open{overflow:hidden}
@media(min-width:1700px){.album-grid{gap:44px 32px}}
@media(max-width:1050px){.album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.album-heading h1,.album-heading h2{font-size:60px}.preview-details{grid-template-columns:1fr}.preview-visit{justify-self:start}}
@media(max-width:650px){.album-section{padding:52px 0}.album-heading{display:block;margin-bottom:27px}.album-heading h1,.album-heading h2{font-size:49px}.album-heading>p{margin-top:23px;font-size:16px}.album-heading .eyebrow{font-size:16px}.album-grid{grid-template-columns:1fr;gap:31px}.album-photo{padding:10px}.album-photo-action{opacity:1;transform:none;font-size:16px;padding:8px 12px;right:18px;bottom:18px}.album-caption h3{font-size:23px}.album-filters{gap:8px;margin-bottom:25px}.album-filters button{font-size:16px;padding:9px 12px}.album-bottom{align-items:flex-start;flex-direction:column}.album-page{padding-top:35px}.album-back{margin-bottom:27px}.album-contact{padding:40px 0 60px}.project-dialog{width:calc(100% - 20px);max-height:calc(100svh - 20px);border-radius:15px}.preview-toolbar{padding:13px 16px}.preview-thumbs{padding:13px 16px 7px}.preview-stage{height:clamp(220px,34svh,320px)}.preview-details{padding:7px 20px 24px;gap:20px}.preview-description{font-size:16px}.preview-footer{padding:13px 16px}.preview-footer>span{display:none}.preview-visit{padding:14px 19px}.preview-title{font-size:29px}.preview-close{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.album-open:hover .album-photo{transform:none}.album-photo,.album-photo-action{transition:none!important}}
/* Prévia ampla: o foco é o notebook, sem um segundo álbum dentro da janela. */
.project-dialog{width:calc(100% - 24px);max-width:1720px;height:calc(100svh - 24px);max-height:calc(100svh - 24px);overflow:hidden}
.project-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.preview-thumbs{display:none}.preview-stage{height:auto;min-height:0}.preview-details{width:min(1200px,100%);margin:0 auto;padding:10px 30px 18px;grid-template-columns:1fr auto;align-items:center}.preview-description{display:none}.preview-title{font-size:clamp(24px,2.6vw,36px);margin-bottom:0}.preview-tag{margin-bottom:7px}.preview-note{font-size:16px;margin-top:7px}.preview-fallback{width:min(1320px,94%,calc((100svh - 250px)*1.74))}.preview-toolbar{padding:12px 22px}.preview-footer{padding:10px 22px}
@media(max-width:650px){.project-dialog{width:calc(100% - 12px);height:calc(100svh - 12px);max-height:calc(100svh - 12px)}.preview-details{grid-template-columns:1fr;padding:12px 18px 17px;gap:14px}.preview-title{font-size:26px}.preview-visit{padding:12px 16px}.preview-fallback{width:97%}.preview-stage{height:auto;min-height:0}}
/* Vidro fosco transparente: as partículas passam atrás do painel, não sobre o site. */
.preview-atmosphere{position:fixed;inset:0;z-index:9990;background:rgba(0,0,0,.975);pointer-events:none}.preview-atmosphere[hidden]{display:none}.preview-atmosphere canvas{display:block;width:100%;height:100%}
.project-dialog{isolation:isolate;background:rgba(24,21,31,.25);backdrop-filter:blur(2.5px) saturate(110%);-webkit-backdrop-filter:blur(2.5px) saturate(110%);border:1px solid #d4bde32e;box-shadow:inset 0 1px 0 #ffffff17,0 24px 90px #0007;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#68566f #18131d}
.project-dialog[open]{display:block}.project-dialog::backdrop{background:rgba(0,0,0,.04);backdrop-filter:none}.project-dialog::before{content:"";position:absolute;inset:0;z-index:-1;background:url('assets/card-noise.png') repeat;background-size:220px;opacity:.065;pointer-events:none;mix-blend-mode:soft-light}
.preview-toolbar{position:sticky;top:0;z-index:3;background:rgba(19,16,25,.25);backdrop-filter:blur(5px)}.preview-stage{height:clamp(340px,67svh,820px);background:none}.preview-details{display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center;padding:8px 30px 24px}.preview-details>div{width:100%}.preview-tag{text-align:center}.preview-title{margin:0 0 15px}.preview-description{display:block;max-width:850px;margin:0 auto;font-size:16px;line-height:1.8}.preview-note{max-width:760px;margin:13px auto 0}.preview-visit{align-self:center;justify-self:center;display:inline-flex;align-items:center}.preview-proposal{max-width:800px;margin:17px auto 0}.preview-proposal[hidden]{display:none}.preview-proposal>span{font-size:16px;color:#c6b9d1}.preview-proposal>p{font-size:16px;line-height:1.7;color:#baafc5;margin:7px 0 0}.preview-fallback{width:min(1320px,95%,calc(67svh * 1.65))}
@media(max-width:650px){.preview-stage{height:clamp(240px,46svh,390px)}.preview-details{padding:10px 19px 24px;gap:18px}.preview-description{font-size:16px}.preview-proposal>p{font-size:16px}.preview-fallback{width:97%}.preview-toolbar{background:rgba(19,16,25,.42)}}
/* O vidro acompanha o notebook e o texto, sem preencher a altura da janela. */
.project-dialog{width:min(1600px,calc(100% - 48px));height:fit-content;max-height:calc(100svh - 48px);border-radius:30px}
.preview-toolbar{height:0;padding:0;border:0;background:none;backdrop-filter:none;overflow:visible;z-index:4}
.preview-counter{position:absolute;left:24px;top:24px;font-size:16px}.preview-close{position:absolute;right:16px;top:15px;background:rgba(19,16,25,.42);backdrop-filter:blur(5px)}
.preview-stage{height:clamp(320px,58svh,720px)}.preview-details{padding-top:12px;padding-bottom:25px}.preview-footer{background:none;border-top-color:#ffffff12}.preview-fallback{width:min(1320px,95%,calc(58svh * 1.65))}
@media(max-width:650px){.project-dialog{width:calc(100% - 20px);height:fit-content;max-height:calc(100svh - 28px);border-radius:22px}.preview-stage{height:clamp(210px,34svh,300px)}.preview-counter{left:17px;top:19px;font-size:16px}.preview-close{right:12px;top:10px;width:31px;height:31px}.preview-fallback{width:97%}.preview-details{padding-top:7px}}
