/* =========================================================
   PALESTRA DANI FILMS — estilos
   Palco fixo 1920×1080 (16:9), escalado para qualquer tela.
   ========================================================= */

/* ---------- Fontes ----------
   Fontes oficiais: coloque os arquivos na pasta /fonts com os nomes abaixo
   (ou instale no Windows). Enquanto não existirem, entram as alternativas
   temporárias (Inter Tight / Inter), já incluídas offline. */
@font-face {
  font-family: "DF Title";
  src: local("BD Colonius Regular"), local("BDColonius-Regular"), local("BD Colonius");
  font-display: block;
}
@font-face {
  font-family: "DF Body";
  src: local("Neue Haas Grotesk Display Pro 65 Medium"), local("NHaasGroteskDSPro-65Md"),
       local("Neue Haas Grotesk Display Pro");
  font-display: block;
}
@font-face {
  font-family: "DF Title Fallback";
  src: url("../fonts/fallback-inter-tight.woff2") format("woff2");
  font-weight: 100 900; font-display: block;
}
@font-face {
  font-family: "DF Body Fallback";
  src: url("../fonts/fallback-inter.woff2") format("woff2");
  font-weight: 100 900; font-display: block;
}

:root {
  --red: #ff0000;          /* vermelho exato do ponto da logo */
  --red-bg: #f00000;       /* vermelho das aberturas de bloco */
  --black: #000;
  --ink: #070707;          /* "quase preto" dos slides de conteúdo */
  --white: #fff;
  --fg-rgb: 255 255 255;   /* cor do texto (branco nos slides escuros) */
  --surface: var(--ink);   /* fundo do slide atual */
  --light: #f4f3f0;        /* fundo dos slides claros */
  --muted: rgb(var(--fg-rgb) / .56);
  --hair: rgb(var(--fg-rgb) / .14);

  --f-title: "DF Title", "DF Title Fallback", "Helvetica Neue", Arial, sans-serif;
  --f-body: "DF Body", "DF Body Fallback", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-img: cubic-bezier(0.45, 0, 0.2, 1);
  --k: 1;                  /* multiplicador de velocidade (modo lento = 4) */
  --base: 320ms;           /* atraso de entrada após a saída do slide anterior */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; }
body {
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
}
body.idle { cursor: none; }

/* ---------- Palco ---------- */
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: 50% 50%;
  background: var(--ink);
  overflow: hidden;
  contain: strict;
  transition: background-color calc(900ms * var(--k)) var(--ease);
}
#stage.theme-light { background: var(--light); }

/* ---------- Slides claros (conteúdo) ---------- */
.slide.light {
  --fg-rgb: 11 11 11;
  --surface: var(--light);
  --muted: rgb(11 11 11 / .58);
  --hair: rgb(11 11 11 / .16);
  color: #0b0b0b;
}
.grain {
  position: absolute; inset: 0; z-index: 50; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#blackout { position: absolute; inset: 0; z-index: 60; background: #000; opacity: 0; pointer-events: none; transition: opacity 600ms var(--ease); }
body.black #blackout { opacity: 1; }

/* ---------- Slides ---------- */
.slide {
  position: absolute; inset: 0;
  padding: 120px 150px;
  visibility: hidden;
  z-index: 1;
}
.slide.active { visibility: visible; }
.slide.current { z-index: 3; }
.slide.leaving { z-index: 2; }
.slide.reset, .slide.reset * { transition: none !important; }

/* ---------- Sistema de animação ----------
   .a           = elemento animado
   data-a       = tipo (up, down, left, right, fade, zoom, rise, line, vline, img, wipe, draw)
   data-d       = atraso extra (ms) na entrada
   data-dur     = duração (ms) */
.slide .a {
  opacity: 0;
  transition-property: opacity, transform, clip-path, stroke-dashoffset;
  transition-duration: calc(var(--dur, 900ms) * var(--k));
  transition-timing-function: var(--ease);
  transition-delay: 0ms;
  backface-visibility: hidden;
}
.slide .a[data-a="up"]    { transform: translate3d(0, 70px, 0); }
.slide .a[data-a="down"]  { transform: translate3d(0, -70px, 0); }
.slide .a[data-a="left"]  { transform: translate3d(-90px, 0, 0); }
.slide .a[data-a="right"] { transform: translate3d(90px, 0, 0); }
.slide .a[data-a="zoom"]  { transform: scale(.92); }
.slide .a[data-a="line"]  { opacity: 1; transform: scaleX(0); transform-origin: 0 50%; }
.slide .a[data-a="vline"] { opacity: 1; transform: scaleY(0); transform-origin: 50% 0; }
.slide .a[data-a="wipe"]  { opacity: 1; clip-path: inset(100% 0 0 0); --dur: 1000ms; }
.slide .a[data-a="draw"]  { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1; --dur: 1200ms; }
.slide .a[data-a="rise"]  { opacity: 1; display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.slide .a[data-a="rise"] > .ri {
  display: inline-block; transform: translate3d(0, 112%, 0);
  transition: transform calc(var(--dur, 1000ms) * var(--k)) var(--ease);
}
.slide .a[data-a="img"] .media-in {
  transform: scale(1.12) translate3d(-1.2%, 0, 0);
  transition: transform calc(1500ms * var(--k)) var(--ease-img);
}

/* entrada */
.slide.in .a[data-a] {
  opacity: 1; transform: none; stroke-dashoffset: 0;
  transition-delay: calc((var(--base) + var(--d, 0ms)) * var(--k));
}
.slide.in .a[data-a="wipe"] { clip-path: inset(0 0 0 0); transition-delay: calc((90ms + var(--d, 0ms)) * var(--k)); }
.slide.in .a[data-a="rise"] > .ri { transform: none; transition-delay: calc((var(--base) + var(--d, 0ms)) * var(--k)); }
.slide.in .a[data-a="img"] .media-in { transform: none; transition-delay: calc((var(--base) + var(--d, 0ms)) * var(--k)); }

/* saída */
.slide.out .a[data-a] {
  opacity: 0; transform: translate3d(0, -36px, 0);
  transition-duration: calc(620ms * var(--k));
  transition-delay: calc(var(--od, 0ms) * var(--k));
}
.slide.out .a[data-a="fade"], .slide.out .a[data-a="img"] { transform: none; }
.slide.out .a[data-a="zoom"] { transform: scale(1.04); }
.slide.out .a[data-a="line"] { opacity: 1; transform: scaleX(0); transform-origin: 100% 50%; }
.slide.out .a[data-a="vline"] { opacity: 1; transform: scaleY(0); transform-origin: 50% 100%; }
.slide.out .a[data-a="wipe"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition-duration: calc(780ms * var(--k)); }
.slide.out .a[data-a="draw"] { opacity: 0; transform: none; }
.slide.out .a[data-a="rise"] { opacity: 1; transform: none; }
.slide.out .a[data-a="rise"] > .ri { transform: translate3d(0, -112%, 0); transition-duration: calc(620ms * var(--k)); transition-delay: calc(var(--od, 0ms) * var(--k)); }
.slide.out .a[data-a="img"] .media-in { transform: scale(1.06) translate3d(1.2%, 0, 0); transition-duration: calc(700ms * var(--k)); transition-delay: 0ms; }

/* ---------- Fundos ---------- */
.bg-red { position: absolute; inset: 0; background: var(--red-bg); }
.bg-red::after { /* leve profundidade, sem degradê visível */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, rgba(255,40,30,.0) 40%, rgba(90,0,0,.22) 100%);
}
.on-red { color: #000; }

/* Iluminação indireta: fita de LED escondida atrás de um painel */
.led {
  position: absolute; pointer-events: none;
  --dur: 1600ms;
}
.led-panel {
  left: 50%; top: 50%; width: 1360px; height: 640px; margin: -320px 0 0 -680px;
  border-radius: 6px; background: #030303;
  box-shadow:
    0 0 0 1px rgba(255,60,60,.07),
    0 0 90px 0 rgba(255,0,0,.20),
    0 0 240px 30px rgba(230,0,0,.12),
    0 0 520px 140px rgba(140,0,0,.08);
}
.led-floor { /* luz rasante vinda de baixo, como uma fita sob uma prateleira */
  left: 0; right: 0; bottom: 0; height: 620px;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(255,0,0,.30) 0%, rgba(200,0,0,.10) 45%, rgba(0,0,0,0) 75%);
}
.led-floor::after { /* a "borda" do painel que esconde a fita */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,40,40,.55), transparent);
}
.led-side {
  top: 0; bottom: 0; right: 0; width: 900px;
  background: radial-gradient(70% 60% at 100% 50%, rgba(255,0,0,.26) 0%, rgba(180,0,0,.08) 45%, transparent 75%);
}

/* ---------- Tipografia ---------- */
.title { font-family: var(--f-title); font-weight: 500; letter-spacing: -0.025em; line-height: .98; }
.h-xxl { font-size: 230px; }
.h-xl  { font-size: 168px; }
.h-l   { font-size: 124px; }
.h-m   { font-size: 88px; }
.h-s   { font-size: 60px; }
.lead  { font-size: 44px; line-height: 1.25; letter-spacing: -0.005em; }
.body  { font-size: 31px; line-height: 1.4; }
.small { font-size: 24px; line-height: 1.4; }
.kicker {
  font-family: var(--f-body); font-size: 22px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--red);
}
.on-red .kicker { color: #000; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--red); vertical-align: .62em; margin-left: .06em; }
.on-red .dot { background: #000; }
.rule { height: 2px; background: var(--red); width: 120px; }
.hair { height: 1px; background: var(--hair); }

/* ---------- Layout utilitário ---------- */
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.fill { position: absolute; inset: 0; }
.col { display: flex; flex-direction: column; }
.row { display: flex; }
.z { position: relative; z-index: 2; }
.bottom-left { position: absolute; left: 150px; bottom: 110px; }
.top-left { position: absolute; left: 150px; top: 110px; }
.top-right { position: absolute; right: 150px; top: 110px; }
.bottom-right { position: absolute; right: 150px; bottom: 110px; }

/* ---------- Aberturas de bloco ---------- */
.opener .num {
  position: absolute; left: 150px; top: 120px;
  font-family: var(--f-body); font-size: 30px; letter-spacing: .2em; color: #000;
}
.opener .big-dot {
  width: 74px; height: 74px; border-radius: 50%; background: #000; margin-bottom: 56px;
}
.opener .op-title {
  position: absolute; left: 150px; right: 150px; bottom: 140px; color: #000;
}
.opener .op-sub { position: absolute; right: 150px; top: 124px; font-size: 22px; letter-spacing: .26em; text-transform: uppercase; color: #000; }

/* ---------- Mídia / imagens ---------- */
.media { position: absolute; overflow: hidden; background: #0b0b0b; }
.media.full { inset: 0; }
.media-in { position: absolute; inset: 0; will-change: transform; }
.media-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.contain .media-in img { object-fit: contain; }
.media::after { /* vinheta sutil para integrar a foto ao fundo escuro */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 160px rgba(0,0,0,.35);
}
.media.no-vignette::after { display: none; }

/* placeholder elegante */
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 1px, transparent 1px 22px),
    radial-gradient(80% 80% at 50% 50%, #151515 0%, #0a0a0a 100%);
  color: rgba(255,255,255,.75); text-align: center;
}
.ph::before { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(255,255,255,.10); }
.ph i { position: absolute; width: 34px; height: 34px; border-color: rgba(255,0,0,.8); border-style: solid; border-width: 0; }
.ph i:nth-child(1) { left: 28px; top: 28px; border-left-width: 2px; border-top-width: 2px; }
.ph i:nth-child(2) { right: 28px; top: 28px; border-right-width: 2px; border-top-width: 2px; }
.ph i:nth-child(3) { left: 28px; bottom: 28px; border-left-width: 2px; border-bottom-width: 2px; }
.ph i:nth-child(4) { right: 28px; bottom: 28px; border-right-width: 2px; border-bottom-width: 2px; }
.ph .ph-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.ph .ph-k { font-size: 18px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ph .ph-id { font-family: "Consolas", "SFMono-Regular", monospace; font-size: 30px; color: #fff; }
.ph .ph-path { font-family: "Consolas", "SFMono-Regular", monospace; font-size: 18px; color: rgba(255,255,255,.4); }
.media.small-ph .ph .ph-id { font-size: 22px; }
.media.small-ph .ph .ph-path { font-size: 14px; }
/* slots "secretos" (marcas/criadores): nome só aparece no modo teste */
.ph .ph-secret { display: none; }
.media.secret .ph .ph-id, .media.secret .ph .ph-path { display: none; }
.media.secret .ph .ph-secret { display: block; font-size: 22px; color: rgba(255,255,255,.45); }
body.test .media.secret .ph .ph-id, body.test .media.secret .ph .ph-path { display: block; }
body.test .media.secret .ph .ph-secret { display: none; }

/* ---------- Componentes ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 22px 34px; border: 1px solid rgb(var(--fg-rgb) / .22); border-radius: 100px;
  font-size: 30px; background: var(--surface);
}
.pill .pd { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cell { padding: 40px 44px 0 0; border-top: 1px solid var(--hair); }
.cell .n { font-size: 22px; letter-spacing: .2em; color: var(--red); margin-bottom: 26px; }
.cell .t { font-family: var(--f-title); font-size: 50px; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 18px; }
.cell .d { font-size: 26px; line-height: 1.4; color: var(--muted); }

.versus { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.versus > div { padding: 150px 130px 130px 150px; display: flex; flex-direction: column; justify-content: center; }
.versus > div + div { padding-left: 130px; }
.versus .vdiv { padding: 0 !important; position: absolute; left: 50%; top: 150px; bottom: 150px; width: 1px; background: var(--hair); }
.list-l { list-style: none; margin-top: 54px; }
.list-l li { font-size: 34px; padding: 20px 0; border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 22px; }
.list-l li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.list-l.dim li { color: var(--muted); }
.list-l.dim li::before { background: rgb(var(--fg-rgb) / .3); }

.placeholder-box {
  border: 1px dashed rgba(255,255,255,.28); padding: 26px 30px; font-size: 22px; line-height: 1.45; color: rgba(255,255,255,.6);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 1px, transparent 1px 16px);
}
.placeholder-box b { display: block; font-weight: 500; font-size: 18px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps .track { position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--red); }
.step { padding-right: 40px; position: relative; }
.step .sd { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--red); position: relative; z-index: 2; margin-bottom: 46px; }
.step .sd::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--red); }
.step .sn { font-size: 22px; letter-spacing: .2em; color: var(--red); margin-bottom: 14px; }
.step .st { font-family: var(--f-title); font-size: 64px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 18px; }
.step .sx { font-size: 28px; color: var(--muted); line-height: 1.35; }

.eq { display: flex; align-items: center; gap: 46px; font-family: var(--f-title); font-size: 120px; letter-spacing: -0.03em; line-height: 1; }
.eq .op { color: var(--red); font-family: var(--f-body); font-size: 100px; }

.logo-main { width: 1060px; height: auto; display: block; }
.df-mark { width: 120px; height: auto; display: block; }

/* ---------- Interface: dica, HUD de teste, índice ---------- */
#hint {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100;
  font: 500 13px/1 "Segoe UI", Arial, sans-serif; letter-spacing: .08em; color: rgba(255,255,255,.55);
  background: rgba(20,20,20,.8); border: 1px solid rgba(255,255,255,.1); padding: 11px 18px; border-radius: 30px;
  transition: opacity .6s var(--ease); pointer-events: none;
}
#hint.hide { opacity: 0; }
#hint b { color: #fff; font-weight: 600; }

#hud {
  position: fixed; left: 0; right: 0; top: 0; z-index: 120; display: none;
  font: 500 13px/1.2 "Segoe UI", Arial, sans-serif; color: #eee;
  background: linear-gradient(rgba(0,0,0,.88), rgba(0,0,0,.6)); border-bottom: 1px solid rgba(255,0,0,.5);
  padding: 10px 16px; gap: 14px; align-items: center;
}
body.test #hud { display: flex; }
#hud .tag { background: var(--red); color: #000; font-weight: 700; padding: 4px 8px; border-radius: 3px; letter-spacing: .12em; }
#hud .info { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hud .info em { color: #ff5a5a; font-style: normal; }
#hud button {
  font: inherit; color: #fff; background: #1b1b1b; border: 1px solid #333; border-radius: 4px; padding: 6px 10px; cursor: pointer;
}
#hud button:hover { border-color: var(--red); }
#hud button.on { background: var(--red); color: #000; border-color: var(--red); }
#hudbar { position: fixed; left: 0; top: 0; height: 3px; background: var(--red); z-index: 121; display: none; transition: width .5s var(--ease); }
body.test #hudbar { display: block; }

#index {
  position: fixed; inset: 0; z-index: 130; display: none; overflow: auto;
  background: rgba(0,0,0,.94); padding: 70px 60px 60px; font: 500 14px/1.3 "Segoe UI", Arial, sans-serif; color: #ddd;
}
body.show-index #index { display: block; }
#index h3 { font-size: 13px; letter-spacing: .25em; color: #ff4040; margin: 0 0 18px; font-weight: 600; }
#index .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
#index a {
  display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; border: 1px solid #222; border-radius: 6px; color: #ddd; text-decoration: none; cursor: pointer;
}
#index a:hover, #index a.cur { border-color: var(--red); color: #fff; }
#index a span { color: #777; min-width: 26px; }
#index a.missing::after { content: "imagem pendente"; margin-left: auto; color: #ff5a5a; font-size: 11px; }
#index .legend { margin-top: 28px; color: #888; line-height: 1.8; }
#index .legend kbd { background: #222; border: 1px solid #333; border-radius: 3px; padding: 1px 6px; color: #fff; font-family: inherit; }

.quote { font-size: 104px; }

/* imagens com fundo transparente ficam direto sobre o palco */
.media.loaded { background: transparent; }
/* revelação "antes → depois": o slide anterior fica parado enquanto o novo surge por cima */
.slide.out.hold .a[data-a] { opacity: 1 !important; transform: none !important; transition: none !important; }
.slide.out.hold .a[data-a="img"] .media-in { transform: none !important; transition: none !important; }

/* ---------- Agência 360 ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.svc li { list-style: none; display: flex; gap: 22px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--hair); font-size: 33px; line-height: 1.25; }
.svc li span { font-size: 20px; letter-spacing: .2em; color: var(--red); flex: none; width: 38px; }

/* ---------- O que é marketing? ---------- */
.mk-row { position: absolute; left: 150px; width: 820px; height: 90px; display: flex; align-items: center; }
.mk-row .act { width: 360px; font-size: 32px; color: var(--muted); }
.mk-row .arr { width: 60px; color: var(--red); font-size: 34px; }
.mk-row .dis { font-family: var(--f-title); font-size: 50px; letter-spacing: -.02em; white-space: nowrap; }
.mk-box { position: absolute; left: 1210px; right: 150px; top: 50%; transform-origin: 0 50%; background: var(--red); color: #000; padding: 56px 54px; }
.mk-box p { font-family: var(--f-title); font-size: 46px; line-height: 1.12; letter-spacing: -.02em; }
.mk-box p b { display: block; font-weight: inherit; margin-top: 22px; font-size: 54px; white-space: nowrap; }

/* ---------- Citação com foto ---------- */
.media.fade-right::after { box-shadow: none; background: linear-gradient(90deg, transparent 55%, var(--ink) 100%); }
.qmark { font-family: var(--f-title); font-size: 220px; line-height: .6; color: var(--red); height: 110px; }

/* ---------- Encerramento com QR ---------- */
.qr { width: 340px; height: 340px; background: #fff; display: block; }

/* logo oficial (preta) no canto superior direito das capas de bloco */
.opener .op-logo { position: absolute; right: 150px; top: 121px; height: 34px; width: auto; display: block; }
