/* EMMI — estúdio visto de trás da câmera. A edição pode trocar --est-parede, --est-papel, --est-tinta, --est-suave, --est-f-titulo. */
.estudio { --est-parede: #B8B3AB; --est-papel: #E9E5DF; --est-tinta: #000; --est-suave: #4E4A45; --est-f-titulo: var(--f-titulo, "Helvetica Neue", Helvetica, Arial, sans-serif);
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); color: var(--est-tinta); }
.est-cena { position: relative; min-width: 0; overflow: hidden; }

/* Fundo infinito, com a luz das softboxes batendo nele; levemente fora de foco */
.est-fundo { position: absolute; inset: 0; filter: blur(.6px);
  background:
    radial-gradient(ellipse 34% 42% at 50% 36%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #ECE8E2 0%, #E2DED7 56%, #D3CEC6 66%, #CBC6BD 100%); }
.est-fundo::before { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 16%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.05) 45%, rgba(0,0,0,0)); }
.est-fundo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--est-parede) 0%, rgba(184,179,171,0) 14%, rgba(184,179,171,0) 86%, var(--est-parede) 100%); opacity: .7; }

/* Feixes: a luz saindo das softboxes em direção à foto */
.est-feixe { position: absolute; top: 6%; height: 64%; width: 40%; pointer-events: none; opacity: .14; mix-blend-mode: screen; filter: blur(14px); }
.est-feixe-e { left: 12%; background: linear-gradient(100deg, rgba(255,255,255,0) 8%, rgba(255,255,255,.95) 40%, rgba(255,255,255,0) 92%); clip-path: polygon(0 18%, 100% 40%, 100% 78%, 0 82%); }
.est-feixe-d { right: 12%; background: linear-gradient(260deg, rgba(255,255,255,0) 8%, rgba(255,255,255,.95) 40%, rgba(255,255,255,0) 92%); clip-path: polygon(100% 18%, 0 40%, 0 78%, 100% 82%); }
.disparo .est-feixe { animation: est-feixe .7s ease-out; }
@keyframes est-feixe { 6% { opacity: .95; } 100% { opacity: .14; } }

/* Softboxes, vistas por trás e viradas para a foto */
.est-flash { position: absolute; top: 9%; height: 58%; aspect-ratio: 200 / 300; z-index: 2; filter: blur(.4px); }
.est-flash svg { width: 100%; height: 100%; overflow: visible; }
.est-flash-e { left: max(-1%, calc(50% - 54vh)); }
.est-flash-d { right: max(-1%, calc(50% - 54vh)); transform: scaleX(-1); }
.est-tripe line { stroke: #2A2927; stroke-width: 3; stroke-linecap: round; }
.est-caixa { stroke: #0A0A09; stroke-width: 1.2; }
.est-varetas line { stroke: #3A3835; stroke-width: .8; }
.est-anel { fill: #2B2A28; stroke: #45423E; stroke-width: 1.4; }
.est-cabeca { fill: #24221F; stroke: #3A3733; stroke-width: 1; }
.est-led { fill: #6FE38B; }
.est-detalhe { fill: #3A3733; }
.est-difusor { fill: #F7F3EC; }
.est-clarao { position: absolute; left: 80%; top: 35%; width: 14%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,.8) 45%, rgba(255,255,255,0) 72%); box-shadow: 0 0 60px 30px rgba(255,255,255,.6); opacity: 0; }
.est-flash.pisca .est-clarao { animation: est-pisca .5s ease-out; }
.est-flash.pisca .est-difusor { animation: est-difusor .5s ease-out; }
@keyframes est-pisca { 0% { opacity: 0; } 8% { opacity: 1; box-shadow: 0 0 140px 80px rgba(255,255,255,.95); } 100% { opacity: 0; } }
@keyframes est-difusor { 8% { fill: #fff; } }

/* A foto em branco, ao fundo, onde a luz cai */
.est-quadro { position: absolute; z-index: 3; left: 50%; top: 35%; transform: translate(-50%, -50%) rotate(-.6deg); height: min(48%, 520px); aspect-ratio: 4 / 5; max-width: 40%;
  background: #FBFAF7; overflow: hidden; cursor: pointer; outline-offset: 6px;
  box-shadow: 0 1px 1px rgba(0,0,0,.15), 0 14px 26px -12px rgba(0,0,0,.32), 0 34px 60px -36px rgba(0,0,0,.45); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.est-quadro:hover { transform: translate(-50%, -50%) rotate(0deg); }
.est-quadro.sobre { outline: 2px dashed var(--emmi-azul, #0A32FF); }
.est-quadro.chama { animation: est-chama .6s ease-in-out; }
@keyframes est-chama { 25% { transform: translate(-52%, -50%) rotate(-1.4deg); } 60% { transform: translate(-48%, -50%) rotate(.6deg); } }
.est-vazio { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: #3A3733; padding: 10px; }
.est-vazio strong { font-family: var(--est-f-titulo); font-weight: 400; font-size: clamp(16px, 2vw, 26px); letter-spacing: .01em; }
.est-vazio span { font-size: 12px; color: #6B6762; }
.est-vazio .cm { position: absolute; width: 14px; height: 14px; border: 0 solid #000; opacity: .45; }
.est-vazio .cm1 { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.est-vazio .cm2 { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.est-vazio .cm3 { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.est-vazio .cm4 { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.est-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: grab; touch-action: none; user-select: none; }
.est-img:active { cursor: grabbing; }
.feito .est-img { cursor: default; }

/* Capa composta depois do flash */
.est-capa { position: absolute; inset: 0; pointer-events: none; color: #000;
  background: linear-gradient(180deg, rgba(242,239,234,.9) 0%, rgba(242,239,234,.55) 26%, rgba(242,239,234,0) 40%, rgba(0,0,0,0) 62%, rgba(0,0,0,.45) 100%); }
.est-capa-nome { position: absolute; left: 6%; top: 4%; height: 25%; display: block; line-height: 0; }
.est-capa-nome .emmi-logotipo { width: auto; height: 100%; }
.est-capa-fio { position: absolute; left: 6%; right: 6%; top: 31%; height: 2px; background: linear-gradient(90deg, var(--emmi-vermelho, #FF2A1F) 50%, var(--emmi-azul, #0A32FF) 50%); }
.est-capa-quem { position: absolute; left: 6%; right: 6%; bottom: 9%; margin: 0; color: #F2EFEA; font-family: var(--est-f-titulo); font-size: clamp(18px, 2.6vw, 36px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.est-capa-ed { position: absolute; left: 6%; bottom: 4.5%; margin: 0; color: #F2EFEA; font-size: clamp(9px, .85vw, 12px); letter-spacing: .04em; }
.est-revelar { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.disparo .est-revelar { animation: est-revela 1.9s ease-out; }
@keyframes est-revela { 0% { opacity: 1; } 18% { opacity: .92; } 100% { opacity: 0; } }
.disparo .est-capa > * { animation: est-capa-entra 1.4s cubic-bezier(.2,.7,.2,1) .5s both; }
@keyframes est-capa-entra { from { opacity: 0; transform: translateY(10px); } }
.est-conta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--est-f-titulo); font-size: clamp(56px, 8vw, 120px); line-height: 1; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.5); pointer-events: none; }
.est-conta.pulsa { animation: est-conta .6s ease-out; }
@keyframes est-conta { from { transform: translate(-50%, -50%) scale(1.4); opacity: 0; } 30% { opacity: 1; } }

/* A câmera, em primeiro plano e em foco */
.est-camera { position: absolute; z-index: 6; left: 50%; bottom: -5%; width: min(40%, 50vh, 400px); aspect-ratio: 320 / 240; transform: translateX(-50%);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); }
.est-camera svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.est-cam-tripe line { stroke: #1D1C1B; stroke-width: 9; stroke-linecap: round; }
.est-cam-tripe rect, .est-cam-tripe ellipse { fill: #1F1E1D; }
.est-cam-botao { fill: #3E3C39; transition: fill .15s; }
.est-cam-luz { fill: #FF2A1F; opacity: .8; }
.est-lcd { position: absolute; left: 12.5%; top: 37.5%; width: 57.5%; height: 38.4%; overflow: hidden; border-radius: 2px; background: #0E0E0D; color: #F2EFEA; font: 500 clamp(7px, .75vw, 10px)/1 var(--f-texto, "Helvetica Neue", Arial, sans-serif); font-variant-numeric: tabular-nums; }
.est-lcd-cena { position: absolute; inset: 0; background: linear-gradient(180deg, #DCD8D1 0%, #D2CDC5 60%, #BDB7AE 100%); }
.est-lcd-print { position: absolute; left: 50%; top: 46%; height: 76%; aspect-ratio: 4 / 5; transform: translate(-50%, -50%); background: #FBFAF7; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.est-lcd-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.est-lcd-capa { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(242,239,234,.85), rgba(242,239,234,0) 40%, rgba(0,0,0,0) 65%, rgba(0,0,0,.4)); }
.est-lcd-capa [data-emmi] { position: absolute; left: 7%; top: 5%; height: 24%; line-height: 0; }
.est-lcd-capa .emmi-logotipo { height: 100%; width: auto; }
.est-lcd-capa i { position: absolute; left: 7%; right: 7%; top: 31%; height: 1px; background: linear-gradient(90deg, #FF2A1F 50%, #0A32FF 50%); }
.est-lcd-capa b { position: absolute; left: 7%; right: 7%; bottom: 7%; color: #F2EFEA; font-family: var(--est-f-titulo); font-weight: 400; font-size: 1.4em; text-transform: uppercase; line-height: 1; }
.est-lcd-grade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(33.3% - .5px), rgba(255,255,255,.35) 33.3%, transparent calc(33.3% + .5px), transparent calc(66.6% - .5px), rgba(255,255,255,.35) 66.6%, transparent calc(66.6% + .5px)),
              linear-gradient(180deg, transparent calc(33.3% - .5px), rgba(255,255,255,.35) 33.3%, transparent calc(33.3% + .5px), transparent calc(66.6% - .5px), rgba(255,255,255,.35) 66.6%, transparent calc(66.6% + .5px)); }
.est-lcd-foco { position: absolute; left: 50%; top: 38%; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid #7CFF9B; opacity: .9; }
.feito .est-lcd-foco, .feito .est-lcd-grade { display: none; }
.est-lcd-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 4% 5% 3%; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0)); letter-spacing: .04em; }
.est-lcd-modo { position: absolute; left: 5%; top: 6%; padding: 1px 4px; border: 1px solid rgba(242,239,234,.7); }
.est-lcd-conta { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: 1.6em; text-align: center; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.est-lcd-escuro { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.disparo .est-lcd-escuro { animation: est-apagao .35s steps(1, end); }
@keyframes est-apagao { 0% { opacity: 1; } 100% { opacity: 0; } }
.est-obturador { position: absolute; left: 79%; top: 17%; width: 9%; height: 8%; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.est-obturador:focus-visible { outline: 2px solid var(--emmi-vermelho, #FF2A1F); outline-offset: 2px; }
.est-camera:has(.est-obturador:hover) .est-cam-botao { fill: #FF2A1F; }

/* O clarão em tela cheia: um só, curto */
.est-branco { position: absolute; inset: 0; z-index: 10; background: #fff; opacity: 0; pointer-events: none; }
.disparo .est-branco { animation: est-branco .7s ease-out; }
@keyframes est-branco { 0% { opacity: 0; } 6% { opacity: .96; } 100% { opacity: 0; } }
.disparo .est-flash .est-clarao { animation: est-pisca .7s ease-out; }
.disparo .est-flash .est-difusor { animation: est-difusor .7s ease-out; }

/* Painel */
.est-painel { position: relative; z-index: 7; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 80px 28px 72px; background: var(--est-papel); border-left: 1px solid rgba(0,0,0,.12); color: var(--est-tinta); }
.est-titulo { margin: 0; font-family: var(--est-f-titulo); font-weight: 400; font-size: clamp(30px, 3vw, 48px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
.est-chamada { margin: -6px 0 6px; font-size: 15px; line-height: 1.45; color: var(--est-suave); max-width: 32ch; }
.est-linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.est-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--est-tinta); background: var(--est-tinta); color: var(--est-papel); font: inherit; font-size: 14px; cursor: pointer; }
.est-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.est-btn-sec { background: transparent; color: var(--est-tinta); }
.est-campo { display: grid; gap: 4px; font-size: 13px; color: var(--est-suave); }
.est-campo input:not([type=range]) { font: inherit; font-size: 17px; color: var(--est-tinta); background: transparent; border: 0; border-bottom: 1px solid var(--est-tinta); padding: 8px 0; border-radius: 0; width: 100%; }
.est-ajustes { gap: 18px; }
.est-luz { flex: 1; min-width: 140px; }
.est-luz input { width: 100%; accent-color: var(--est-tinta); min-height: 32px; }
.est-pb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 44px; cursor: pointer; }
.est-pb input { width: 18px; height: 18px; accent-color: var(--est-tinta); }
.est-disparar { min-height: 56px; border: 0; background: var(--emmi-vermelho, #FF2A1F); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: opacity .2s, transform .15s; }
.est-disparar:hover:not(:disabled) { transform: translateY(-1px); }
.est-disparar:disabled { opacity: .35; cursor: default; }
.est-depois { display: flex; flex-wrap: wrap; gap: 10px; }
.est-nota { margin: 0; font-size: 12px; color: var(--est-suave); }

@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  .estudio { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .est-quadro { top: 38%; height: 50%; max-width: 54%; }
  .est-flash { top: 12%; height: 56%; }
  .est-flash-e { left: -10%; }
  .est-flash-d { right: -10%; }
  .est-camera { width: min(70%, 340px); bottom: -6%; }
  .est-painel { padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(60px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 10px; border-left: 0; border-top: 1px solid rgba(0,0,0,.12); }
  .est-campo input:not([type=range]) { padding: 4px 0; }
  .est-nota, .est-chamada { display: none; }
  .est-titulo { font-size: 26px; }
  .est-disparar { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .est-flash.pisca .est-clarao, .est-flash.pisca .est-difusor, .disparo * { animation: none !important; }
}

/* ---------- Modo fotografia: o estúdio é uma foto real (data-cena) ----------
   A caixa da foto cobre a cena sem distorcer; tudo dentro dela é posicionado em % da própria foto. */
.est-cena-foto { container-type: size; background: #D7D5D2; }
.est-foto-caixa { --W: max(100cqw, calc(100cqh * 1.5028)); --foco-x: .44;
  position: absolute; top: 50%; width: var(--W); aspect-ratio: 2400 / 1597; transform: translateY(-50%);
  left: clamp(calc(100cqw - var(--W)), calc(50cqw - var(--foco-x) * var(--W)), 0px); }
.est-foto { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
/* O quadro em branco preso no fundo infinito, para onde câmera e softbox apontam */
.est-modo-foto .est-quadro { left: 21%; top: 32%; height: 36%; max-width: none; transform: translate(-50%, -50%) rotate(-.4deg);
  box-shadow: 0 1px 1px rgba(0,0,0,.12), 10px 18px 26px -14px rgba(0,0,0,.28); }
.est-modo-foto .est-quadro:hover { transform: translate(-50%, -50%) rotate(0deg); }
.est-modo-foto .est-quadro.chama { animation: est-chama .6s ease-in-out; }
/* A imagem ao vivo na tela do notebook, com a leve inclinação da foto */
.est-lcd-notebook { left: 35.35%; top: 52.1%; width: 6.15%; height: 6.75%; transform-origin: 0 0; transform: skewX(4deg); border-radius: 0; font-size: max(5px, .45cqh); background: #111; }
.est-lcd-notebook .est-lcd-cena { background: #151515; }
.est-lcd-notebook .est-lcd-print { height: 82%; top: 50%; box-shadow: none; }
.est-lcd-notebook .est-lcd-info, .est-lcd-notebook .est-lcd-modo, .est-lcd-notebook .est-lcd-grade, .est-lcd-notebook .est-lcd-foco { display: none; }
.est-lcd-notebook .est-lcd-conta { font-size: 1.4em; }
.est-lcd-notebook::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.08), rgba(255,255,255,0) 45%); pointer-events: none; }
/* A câmera do tripé é o botão de disparo */
.est-obt-foto { left: 60.5%; top: 28.5%; width: 3.4%; height: 6.8%; border-radius: 6px; }
.est-obt-foto:hover { outline: 1px solid rgba(255,42,31,.8); outline-offset: 3px; }
/* Luz sobre a foto: frente da softbox e flash pequeno de tripé */
.est-clarear { position: absolute; pointer-events: none; border-radius: 50%; mix-blend-mode: screen; opacity: 0; transform: translate(-50%, -50%); }
.est-clarear-softbox { left: 64%; top: 27%; width: 34%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 30%, rgba(255,255,255,0) 68%); }
.est-clarear-flash { left: 74.8%; top: 56.6%; width: 7%; aspect-ratio: 1; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,.7) 35%, rgba(255,255,255,0) 70%); }
.est-clarear.pisca { animation: est-luz-pisca .45s ease-out; }
@keyframes est-luz-pisca { 8% { opacity: .55; } 100% { opacity: 0; } }
.disparo .est-clarear { animation: est-luz-disparo .8s ease-out; }
@keyframes est-luz-disparo { 6% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  .est-foto-caixa { --foco-x: .30; }
  .est-modo-foto .est-quadro { height: 34%; top: 46%; left: 22%; }
}
/* Textos do quadro proporcionais ao próprio quadro (no modo fotografia ele é menor) */
.est-quadro { container-type: size; }
.est-vazio strong { font-size: clamp(13px, 9cqw, 26px); }
.est-vazio span { font-size: clamp(9px, 4.6cqw, 12px); }
.est-capa-quem { font-size: clamp(12px, 11cqw, 44px); }
.est-capa-ed { font-size: clamp(7px, 3.4cqw, 12px); }
.est-modo-foto .est-quadro { height: 44%; top: 33%; }
