/* ============================================================
   Motor da apresentação SemiDoc: palco 1920×1080 escalado
   ============================================================ */
@font-face { font-family: "Epilogue"; font-weight: 100 900; font-display: block; src: url(vendor/fonts/epilogue-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Epilogue"; font-weight: 100 900; font-display: block; src: url(vendor/fonts/epilogue-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-display: block; src: url(vendor/fonts/dm-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-display: block; src: url(vendor/fonts/dm-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: block; src: url(vendor/fonts/dm-mono-400.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: block; src: url(vendor/fonts/dm-mono-500.woff2) format("woff2"); }

:root {
  --sd-font-mono: "DM Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --line: rgba(255, 255, 255, .12);
  --muted: rgba(255, 255, 255, .62);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font-family: var(--sd-font-body); color: var(--sd-white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
svg.i { width: 1em; height: 1em; flex: none; }

.deck { position: fixed; inset: 0; overflow: hidden; }
.stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%); transform-origin: center; }

.slide {
  position: absolute; inset: 0; padding: 112px 128px;
  display: flex; flex-direction: column; justify-content: center;
  visibility: hidden; overflow: hidden; isolation: isolate; transform-origin: 50% 40%;
}
.slide.is-active { visibility: visible; }

/* Textura de grão (evita o aspecto "plástico") */
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Temas */
.slide.dark  { background: var(--sd-bg-dark); color: var(--sd-white); }
.slide.deep  { background: var(--sd-navy-950); color: var(--sd-white); }
.slide.light { background: var(--sd-paper); color: var(--sd-ink); --line: rgba(23, 23, 25, .1); --muted: var(--sd-gray-500); }
.slide.light::after { opacity: .05; mix-blend-mode: multiply; }
.accent { color: var(--sd-sky-300); }
.slide.light .accent { color: var(--sd-blue-500); }

/* Tipografia */
.label  { font: 500 18px/1 var(--sd-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.label .n { color: var(--sd-sky-300); }
.slide.light .label .n { color: var(--sd-blue-500); }
.label::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .6; }
.label.bare::before { display: none; }
.display { font: 600 132px/.94 var(--sd-font-display); letter-spacing: -.055em; }
.title   { font: 600 92px/1 var(--sd-font-display); letter-spacing: -.05em; }
.h2      { font: 600 68px/1.04 var(--sd-font-display); letter-spacing: -.045em; }
.h3      { font: 600 34px/1.15 var(--sd-font-display); letter-spacing: -.03em; }
.lead    { font: 400 30px/1.45 var(--sd-font-body); color: var(--muted); max-width: 980px; }
.small   { font: 400 22px/1.45 var(--sd-font-body); color: var(--muted); }
.mono    { font-family: var(--sd-font-mono); }

/* Cabeçalho padrão de slide de conteúdo */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; margin-bottom: 56px; }
.head .h2 { max-width: 1100px; margin-top: 22px; }
.head .lead { max-width: 560px; font-size: 24px; }

/* Rodapé */
.foot { position: absolute; left: 128px; right: 128px; bottom: 48px; display: flex; align-items: center; justify-content: space-between;
  font: 500 15px/1 var(--sd-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); z-index: 5; }
.foot img { height: 30px; opacity: .9; }

/* Entradas animadas: data-anim (+ style="--d:N") */
[data-anim] { opacity: 0; transform: translateY(36px); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 420ms); }
[data-anim="left"]  { transform: translateX(-60px); }
[data-anim="right"] { transform: translateX(60px); }
[data-anim="scale"] { transform: scale(.94); }
.slide.is-active [data-anim] { opacity: 1; transform: none; filter: none; }

/* Interface */
.hud { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); z-index: 10; }
.hud .bar { height: 100%; background: var(--sd-blue-500); transition: width .6s var(--ease-io); }
.counter { position: fixed; right: 18px; bottom: 12px; font: 500 12px var(--sd-font-mono); letter-spacing: .1em; color: rgba(255,255,255,.55); mix-blend-mode: difference; z-index: 10; }
body.clean .hud, body.clean .counter { display: none; }

@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { overflow: visible; height: auto; background: none; }
  .deck { position: static; }
  .stage { position: static; transform: none !important; height: auto; }
  .slide { position: relative; width: 1920px; height: 1080px; visibility: visible; page-break-after: always; }
  [data-anim] { opacity: 1; transform: none; filter: none; }
  .hud, .counter { display: none; }
}
