/* APRESENTAÇÃO (dono: dev-3d-motion-web). Estrutura/controles base em home.css; aqui: pin, véu, estados e marcas. */
.apres-frame { transform-style: flat; }
.apres-mark { position: absolute; z-index: 2; top: 12px; font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.7); text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none; }
.apres-m1 { left: 16px; } .apres-m2 { right: 16px; }
.apres-bar { transition: opacity .4s; }
.apres-bar.is-idle { opacity: 0; }
.apres-frame:not(.is-playing):not(.is-started) .apres-bar { display: none; }
.apres-bar button:focus-visible, .ab-prog:focus-visible, .apres-play:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
.ab-prog:focus-visible { outline-offset: -2px; }
.apres-frame.is-paused::after { opacity: .67; }
.apres-frame.is-paused .apres-ico { width: 72px; height: 72px; }
.apres-frame.is-paused .apres-ico::before { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; margin-left: 6px; }
.apres-frame.is-paused .apres-play { gap: 10px; }
.apres-frame.is-ended .apres-play, .apres-frame.is-ended .apres-bar { display: none; }
.apres-end { position: absolute; inset: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: rgba(7,9,15,.55); }
.apres-end[hidden] { display: none; }
.apres-ico { box-shadow: 0 0 0 0 rgba(45,140,255,.5); }
.apres-play:hover .apres-ico, .apres-play:focus-visible .apres-ico { animation: apres-ring 1.6s ease-out infinite; }
@keyframes apres-ring { to { box-shadow: 0 0 0 26px rgba(45,140,255,0); } }
.apres-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; background: rgba(7,9,15,.7); }

/* Desktop/tablet: seção pinada (100svh) com o quadro centralizado; o JS anima escala/inclinação */
.apres-pin #apresentacao { height: 100vh; height: 100svh; padding: 0 var(--rail) 0 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.apres-pin .apres-head { position: absolute; top: 0; left: 0; right: 0; padding-top: clamp(92px, 13vh, 150px); z-index: 2; }
.apres-pin .apres-stage { width: auto; max-width: none; margin: 13vh 0 0; padding: 0; display: flex; justify-content: center; }
.apres-pin .apres-frame { width: min(88vw, 1500px, calc(100vw - var(--rail) - 2 * var(--gutter)), calc(66svh * 16 / 9)); flex: none; will-change: transform; }
.apres-pin .apres-aviso { position: absolute; left: 0; right: 0; bottom: 3vh; margin: 0; text-align: center; padding-right: 0; }
.apres-pin .apres-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
@media (max-width: 767px) { .apres-mark { top: 8px; font-size: 8px; } .apres-m1 { left: 10px; } .apres-m2 { right: 10px; } }
@media (prefers-reduced-motion: reduce) { .apres-play:hover .apres-ico { animation: none; } }
/* a barra é controlada só por classe (o home.js do front mexe em opacity inline) */
.apres-bar { opacity: 1 !important; }
.apres-bar.is-idle { opacity: 0 !important; }
.apres-frame.is-ended .apres-play { display: none !important; }
.apres-end .btn-ghost { background: rgba(7, 9, 15, .6); font-family: var(--f-body); }

/* Botão de play dimensionado pelo quadro (cqw) e centrado na faixa livre do poster, entre o logo "ezAI" (até ~52% da altura) e as plaquinhas ARTHUR/ABDEEL (a partir de ~79%): folga >= 12 px em todas as larguras. */
.apres-frame { container-type: inline-size; }
.apres-frame .apres-play { top: 65.5%; gap: clamp(4px, 1cqw, 10px); }
.apres-frame .apres-ico { --i: clamp(44px, 9cqw, 96px); width: var(--i); height: var(--i); }
.apres-frame .apres-ico::before { border-left-width: calc(var(--i) * .27); border-top-width: calc(var(--i) * .167); border-bottom-width: calc(var(--i) * .167); margin-left: calc(var(--i) * .083); }
.apres-frame .apres-txt { font-size: clamp(.62rem, 1.5cqw, .95rem); line-height: 1.2; white-space: nowrap; }
/* quadro pequeno (mobile, ou tablet antes do quadro crescer): só o ícone; o texto continua no leitor de tela e o aviso abaixo diz que o vídeo tem áudio */
@container (max-width: 760px) { .apres-frame:not(.is-paused) .apres-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* toque 44 */
.apres-frame .apres-play { min-height: 44px; }
