/* Apresentação Festival Mundo Melhor.
   Base: paleta, Inter Variable (até 700) e ritmo tipográfico do site WDA ag (../WDAAG/public/css).
   Exceção local aprovada pela direção (2026-10-29): linguagem mais atual, com cantos arredondados,
   superfícies em cartão e controles em cápsula. Não promover ao Design System do site.
   As cores --fmm-* foram observadas nas peças do festival e marcam capítulos e conteúdo do cliente.
   @font-face em css/fonts.css (base64, para abrir também via file://). */

:root {
  --carbon: #1b1d1f;
  --carbon-2: #24272a;
  --carbon-3: #2e3236;
  --paper: #e6e6e6;
  --cream: #fcfcfa;
  --white: #fff;
  --mute: #5f5f5f;

  --fmm-roxo: #5a3591;
  --fmm-verde: #59a535;
  --fmm-azul: #4a9dd9;
  --fmm-rosa: #e3175a;
  --fmm-laranja: #f18a1e;
  --fmm-amarelo: #fbba16;
  --fmm-oliva: #b5c342;
  --fmm-ring: conic-gradient(var(--fmm-roxo), var(--fmm-rosa), var(--fmm-laranja), var(--fmm-amarelo), var(--fmm-oliva), var(--fmm-verde), var(--fmm-azul), var(--fmm-roxo));

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --pill: 999px;

  --ff: "Inter Variable", system-ui, sans-serif;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --dur-fast: .22s;
  --dur-panel: .5s;
  --dur-reveal: .8s;

  --edge: clamp(24px, 3.4vw, 60px);
  --top: 68px;
  --bottom: 92px;
  --pad-y: clamp(8px, 2vh, 24px);
  --stage-h: calc(100dvh - var(--top) - var(--bottom) - 2 * var(--pad-y));
  --side-w: clamp(300px, 25vw, 420px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  font-family: var(--ff); font-size: 16px; line-height: 1.5;
  color: var(--cream); background: var(--carbon);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--fmm-azul); outline-offset: 3px; }

/* ---------- Temas ---------- */
[data-theme=carbon] { --bg: var(--carbon); --ink: var(--cream); --ink-2: rgb(252 252 250 / .74); --mute-c: rgb(252 252 250 / .5); --line: rgb(252 252 250 / .12); --panel: var(--carbon-2); --panel-2: var(--carbon-3); }
[data-theme=paper]  { --bg: var(--paper); --ink: var(--carbon); --ink-2: #3a3d40; --mute-c: #6b6e72; --line: rgb(27 29 31 / .12); --panel: var(--white); --panel-2: #f1f1f1; }
[data-theme=white]  { --bg: #f4f4f2; --ink: var(--carbon); --ink-2: #3a3d40; --mute-c: #6b6e72; --line: rgb(27 29 31 / .1); --panel: var(--white); --panel-2: #ececea; }
[data-color=azul] { --cc: var(--fmm-azul); }
[data-color=verde] { --cc: var(--fmm-verde); }
[data-color=roxo] { --cc: var(--fmm-roxo); }
[data-color=laranja] { --cc: var(--fmm-laranja); }
[data-color=amarelo] { --cc: var(--fmm-amarelo); }
[data-color=rosa] { --cc: var(--fmm-rosa); }

/* ---------- Tipografia e componentes base ---------- */
.s-head { font-size: clamp(34px, 3.8vw, 70px); font-weight: 650; line-height: .96; letter-spacing: -.04em; text-wrap: balance; max-width: 15ch; color: var(--ink); }
.lede { font-size: clamp(15px, 1.12vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; align-self: start;
  padding: 5px 14px 5px 5px; border-radius: var(--pill);
  background: color-mix(in srgb, var(--cc, var(--ink)) 16%, transparent);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
}
.chip span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--pill); background: var(--cc, var(--ink)); color: var(--carbon); font-size: 11px; font-weight: 700; }
[data-color=roxo] .chip span, [data-color=rosa] .chip span { color: var(--white); }

.cta {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 10px 0 26px; border: 0; border-radius: var(--pill);
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.cta svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--bg); color: var(--ink); transition: transform var(--dur-fast) var(--ease-out); }
.cta:hover { transform: translateY(-2px); }
.cta:hover svg { transform: translateX(3px); }

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 12px; border: 1px solid var(--chrome-line, var(--line)); border-radius: var(--pill);
  background: var(--chrome-fill, transparent); color: inherit; cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.pill-btn svg { width: 18px; height: 18px; }
.pill-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.pill-btn.ghost { padding: 0 18px; height: 56px; font-size: 15px; border-color: var(--line); }
.flip { transform: scaleX(-1); }

/* ---------- Barra superior ---------- */
body[data-theme=carbon] { --chrome: var(--cream); --chrome-mute: rgb(252 252 250 / .55); --chrome-line: rgb(252 252 250 / .16); --chrome-fill: rgb(252 252 250 / .04); }
body[data-theme=paper], body[data-theme=white] { --chrome: var(--carbon); --chrome-mute: #6b6e72; --chrome-line: rgb(27 29 31 / .14); --chrome-fill: rgb(255 255 255 / .5); }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--edge); color: var(--chrome);
  transition: color var(--dur-panel) var(--ease-out);
}
.topbar-brand { color: inherit; }
.topbar-brand svg { width: 58px; height: 20px; }
.topbar-title { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; color: var(--chrome-mute); }
.topbar-title b { font-weight: 600; color: var(--chrome); }
.topbar-title b::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 10px; border-radius: 50%; background: currentColor; opacity: .4; vertical-align: middle; }
.topbar-actions { display: flex; gap: 8px; }
.topbar-actions .pill-btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body[data-theme=carbon] .topbar-actions .pill-btn { background: rgb(27 29 31 / .62); }
body.on-cover .topbar-title { opacity: 0; }
:fullscreen [data-action=fullscreen] svg { transform: rotate(180deg); }

/* ---------- Dock de navegação ---------- */
.dock {
  position: fixed; left: 50%; bottom: 16px; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  max-width: calc(100vw - 2 * var(--edge));
  padding: 6px; border-radius: var(--pill);
  background: rgb(22 24 26 / .86); color: var(--cream);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px rgb(0 0 0 / .22), inset 0 0 0 1px rgb(255 255 255 / .08);
}
.dock-btn { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); cursor: pointer; transition: background-color var(--dur-fast); }
.dock-btn:hover { background: rgb(255 255 255 / .16); }
.dock-btn svg { width: 20px; height: 20px; }
.dock-btn:disabled { opacity: .3; cursor: default; }
.dock [hidden] { display: none; }
.dock-count { padding: 0 12px; font-size: 12px; font-variant-numeric: tabular-nums; color: rgb(252 252 250 / .5); flex: none; }
.dock-count b { color: var(--cream); font-weight: 600; }
.dock-next {
  display: flex; align-items: center; gap: 10px; flex: none;
  height: 46px; padding: 0 6px 0 18px; border: 0; border-radius: var(--pill);
  background: var(--cream); color: var(--carbon); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.dock-next:hover { transform: translateX(2px); }
.dock-next-label { font-size: 11px; font-weight: 500; color: #6b6e72; }
.dock-next b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-next svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--carbon); color: var(--cream); }

/* ---------- Deck ---------- */
.deck { position: fixed; inset: 0; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(var(--top) + var(--pad-y)) var(--edge) calc(var(--bottom) + var(--pad-y));
  background: var(--bg); color: var(--ink);
  overflow: hidden; visibility: hidden; opacity: 0;
  transform: translateX(var(--from, 48px)) scale(.985);
  transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out), visibility 0s linear var(--dur-panel);
}
.slide.is-before { --from: -48px; }
.slide.is-active { visibility: visible; opacity: 1; transform: none; z-index: 1; transition: opacity var(--dur-panel) var(--ease-out), transform var(--dur-panel) var(--ease-out), visibility 0s; }
.slide.is-active .rv { animation: rise var(--dur-reveal) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- 01 Capa ---------- */
.s-cover { padding-right: 0; justify-content: center; }
.cover-main { position: relative; z-index: 2; width: min(48%, 940px); display: grid; gap: clamp(16px, 2.6vh, 30px); align-content: center; }
.cover-brand { display: flex; align-items: center; gap: 18px; }
.cover-logo { width: auto; height: clamp(72px, 11vh, 124px); flex: none; padding: 8px; border-radius: 26%; background: var(--cream); }
.topbar-logo { width: 24px; height: 26px; }
.tag-pill { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 7px 16px; border-radius: var(--pill); background: rgb(252 252 250 / .07); border: 1px solid rgb(252 252 250 / .12); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cover-title { font-size: clamp(56px, 6.3vw, 128px); font-weight: 650; line-height: .9; letter-spacing: -.05em; margin-left: -.04em; }
.cover-lede { font-size: clamp(16px, 1.25vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.cover-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-facts li { display: grid; gap: 1px; padding: 9px 16px 10px; border-radius: var(--r-md); background: var(--panel); font-size: 14px; font-weight: 500; }
.cover-facts small { font-size: 11px; color: var(--mute-c); font-weight: 400; }
.cover-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 720px; }
.cover-stats li { display: grid; gap: 2px; padding: 14px 16px 12px; border-radius: var(--r-lg); border: 1px solid var(--line); font-size: 12px; color: var(--mute-c); }
.cover-stats b { font-size: clamp(30px, 2.8vw, 52px); font-weight: 650; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.cover-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cover-hint { font-size: 13px; color: var(--mute-c); max-width: 30ch; line-height: 1.45; }

.cover-wall {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 14px 0 0;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.cover-wall::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; z-index: 2; background: linear-gradient(90deg, var(--carbon), transparent); pointer-events: none; }
.wall-col { display: flex; flex-direction: column; gap: 14px; animation: wall 70s linear infinite; }
.wall-col.down { animation-direction: reverse; animation-duration: 80s; }
.wall-col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); flex: none; }
@keyframes wall { to { transform: translateY(calc(-50% - 7px)); } }
.cover-reel {
  position: absolute; z-index: 3; left: 4%; top: 50%; translate: 0 -50%;
  width: min(clamp(200px, 18vw, 360px), calc((100dvh - 2 * var(--top)) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden;
  background: #000; box-shadow: 0 0 0 6px var(--carbon), 0 24px 50px rgb(0 0 0 / .45);
}
.cover-reel video { width: 100%; height: 100%; object-fit: cover; }
.cover-reel-tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: var(--pill); background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); font-size: 11px; font-weight: 600; color: #fff; }
.ig-media .cover-reel-tag { top: 14px; left: 14px; z-index: 2; pointer-events: none; font-size: 12px; padding: 5px 12px 5px 10px; }
.cover-reel-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--fmm-rosa); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Peças (carrossel e vídeo) ---------- */
.s-work { display: grid; grid-template-columns: minmax(240px, 1fr) auto; column-gap: clamp(28px, 4vw, 80px); align-items: center; }
.s-work .backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.s-work .backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.4); opacity: .55; transform: scale(1.15); }
[data-theme=carbon] .backdrop img { opacity: .22; }
.s-work > :not(.backdrop) { position: relative; z-index: 1; }
.work-info { display: grid; align-content: center; gap: clamp(14px, 2.2vh, 24px); max-width: 440px; }
.w-head { font-size: clamp(36px, 3.8vw, 72px); font-weight: 650; line-height: .95; letter-spacing: -.045em; text-wrap: balance; }
.w-copy { font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.w-meta { display: inline-flex; gap: 8px; justify-self: start; padding: 7px 14px; border-radius: var(--pill); background: color-mix(in srgb, var(--panel) 70%, transparent); font-size: 13px; color: var(--mute-c); }
.w-meta b { color: var(--ink); font-weight: 600; }
.quotes { display: grid; gap: 6px; }
.quotes p { justify-self: start; padding: 9px 14px; border-radius: 18px 18px 18px 6px; background: var(--panel); font-size: 14px; line-height: 1.4; }
.quotes small { font-size: 12px; color: var(--mute-c); padding-left: 4px; }

/* Trilho de miniaturas, colado à imagem */
.work-post { display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px); }
.rail { --tw: clamp(54px, 4.4vw, 78px); display: grid; gap: 10px; padding: 12px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(10px); }
.rail-head { display: grid; padding: 0 2px; font-size: 11px; line-height: 1.3; color: var(--mute-c); }
.rail-head b { font-size: 14px; white-space: nowrap; }
.rail-head b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.thumbs { display: grid; grid-template-columns: var(--tw); gap: 8px; }
.thumbs.two { grid-template-columns: repeat(2, var(--tw)); }
.thumbs button { position: relative; padding: 0; border: 0; border-radius: var(--r-md); background: none; cursor: pointer; opacity: .5; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out), outline-color var(--dur-fast); }
.thumbs button:hover { opacity: .9; transform: scale(1.04); }
.thumbs button[aria-current=true] { opacity: 1; outline-color: var(--cc, var(--ink)); }
.thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.thumbs span { position: absolute; left: 5px; bottom: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); display: grid; place-items: center; background: rgb(17 17 17 / .72); color: #fff; font-size: 10px; font-weight: 600; }
.rail-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rail-nav button { display: grid; place-items: center; height: 38px; border: 0; border-radius: var(--pill); background: var(--ink); color: var(--bg); cursor: pointer; transition: opacity var(--dur-fast); }
.rail-nav button svg { width: 18px; height: 18px; }
.rail-nav button:disabled { opacity: .25; cursor: default; }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--panel) 75%, transparent); }
.segmented button {
  display: grid; gap: 1px; padding: 9px 12px; text-align: left; border: 0; border-radius: var(--r-md); background: none; cursor: pointer;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--mute-c);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.segmented small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected=true] { background: var(--ink); color: var(--bg); }

/* Carrosséis: altura limitada também pela largura disponível (texto + trilho + post) */
@media (min-width: 901px) {
  .s-work:not(.s-video) .ig {
    height: min(var(--stage-h), calc((100vw - 2 * var(--edge) - 240px - clamp(28px, 4vw, 80px) - (2 * clamp(54px, 4.4vw, 78px) + 32px) - clamp(12px, 1.2vw, 20px) - var(--side-w)) * 1.25));
  }
}

/* Post no formato Instagram web */
.ig { display: flex; height: var(--stage-h); background: var(--white); color: #111; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 20px 60px rgb(0 0 0 / .12); }
.ig-media { position: relative; height: 100%; aspect-ratio: 4 / 5; background: #f2f2f2; overflow: hidden; touch-action: pan-y; }
.ig.is-video .ig-media { aspect-ratio: 9 / 16; background: #000; }
.ig-track { display: flex; height: 100%; transition: transform .55s var(--ease-out); }
.ig-track img { width: 100%; height: 100%; flex: none; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ig-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / .94); color: #111; cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / .18);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.ig-nav:hover { transform: scale(1.08); }
.ig-nav svg { width: 18px; height: 18px; }
.ig-nav.prev { left: 14px; }
.ig-nav.next { right: 14px; }
.ig-nav[disabled] { opacity: 0; pointer-events: none; }
.ig-count { position: absolute; top: 14px; right: 14px; padding: 4px 11px; border-radius: var(--pill); background: rgb(17 17 17 / .7); color: #fff; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ig-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 5px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .55); box-shadow: 0 0 2px rgb(0 0 0 / .3); transition: all var(--dur-fast); }
.ig-dots i.on { background: #fff; width: 16px; border-radius: 3px; }

.ig-side { width: var(--side-w); display: flex; flex-direction: column; min-height: 0; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #efefef; font-size: 14px; flex: none; }
.ig-head img, .ig-cap-av { width: 32px; height: 32px; padding: 3px; border-radius: 50%; flex: none; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px #e6e6e6; }
.ig-head b { font-weight: 600; }
.ig-kind { margin-left: auto; padding: 3px 10px; border-radius: var(--pill); background: #f2f2f2; font-size: 11px; font-weight: 500; color: #6b6e72; }
.ig-cap { position: relative; flex: 1; min-height: 0; }
.ig-cap-scroll { height: 100%; overflow-y: auto; padding: 16px 18px 48px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-content: start; scrollbar-width: thin; scrollbar-color: #d4d4d4 transparent; }
.ig-cap::after { content: ""; position: absolute; left: 0; right: 8px; bottom: 0; height: 64px; background: linear-gradient(rgb(255 255 255 / 0), #fff); pointer-events: none; transition: opacity var(--dur-fast); }
.ig-cap.at-end::after { opacity: 0; }
.ig-text { font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; color: #1a1a1a; }
.ig-text b:first-child { font-weight: 600; margin-right: 4px; }
.ig-text .tag { color: #00376b; }
.ig-foot { flex: none; border-top: 1px solid #efefef; padding: 12px 16px 14px; display: grid; gap: 10px; }
.ig-icons { display: flex; align-items: center; gap: 18px; color: #111; }
.ig-icons svg { width: 24px; height: 24px; flex: none; }
.ig-icons span { display: inline-flex; align-items: center; gap: 6px; }
.ig-icons b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ig-icons .ig-like { color: #ff3040; }
.ig-icons .ig-save { margin-left: auto; }
.ig-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b6e72; }
.ig-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fmm-verde); }

/* Vídeo */
.ig-media video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.v-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; }
.v-play span { display: grid; place-items: center; gap: 2px; width: 84px; height: 84px; border-radius: 50%; background: rgb(255 255 255 / .22); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.v-play svg { width: 32px; height: 32px; margin-left: 4px; }
.v-play:hover span { transform: scale(1.06); }
.is-playing .v-play span { opacity: 0; }
.is-playing .v-play:hover span { opacity: 1; }
.is-playing .v-play svg { margin-left: 0; }
.v-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 14px; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .5)); }
.v-bar { flex: 1; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); cursor: pointer; position: relative; }
.v-bar::before { content: ""; position: absolute; inset: -8px 0; }
.v-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: #fff; }
.v-time { font-size: 11px; color: #fff; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.v-sound { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .2); backdrop-filter: blur(6px); color: #fff; cursor: pointer; }
.v-sound svg { width: 18px; height: 18px; }

.s-video .work-post { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 22px); }
.vpick { width: clamp(220px, 17vw, 300px); display: grid; gap: 10px; align-content: center; }
.list-hint { font-size: 12px; color: var(--mute-c); padding-left: 8px; }
.vlist { display: grid; gap: 4px; }
.vlist button {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: clamp(7px, 1.1vh, 11px) 14px clamp(7px, 1.1vh, 11px) 8px; border: 0; border-radius: var(--r-md);
  background: none; cursor: pointer; text-align: left; color: var(--mute-c);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.vlist button:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.vlist button[aria-current=true] { color: var(--ink); background: var(--panel); }
.vlist .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vlist button[aria-current=true] .n { background: var(--cc); color: var(--carbon); }
.vlist .t { font-size: clamp(14px, 1.05vw, 16px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.vlist .t small { display: block; font-size: 12px; font-weight: 400; opacity: .7; }
.vlist .d { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; }

/* ---------- Linguagem ---------- */
.s-lang { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 4vw, 72px); align-items: center; }
.lang-text { display: grid; gap: clamp(16px, 2.4vh, 28px); align-content: center; }
.lang-text .s-head { max-width: 12ch; }
.lang-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-self: center; }
.lang-board figure { display: grid; gap: 10px; padding: 10px 10px 14px; border-radius: var(--r-xl); background: var(--panel); }
.lang-board img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.lang-board figure:nth-child(2) { transform: translateY(5vh); }
.lang-board figcaption { font-size: 13px; color: var(--mute-c); padding: 0 6px; }
.lang-board figcaption b { color: var(--ink); font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.swatches li { display: grid; gap: 8px; }
.swatches li::before { content: ""; aspect-ratio: 1; border-radius: var(--r-md); background: var(--c); }
.swatches span { font-size: 11px; color: var(--mute-c); }

/* ---------- Anatomia ---------- */
.s-anatomy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 4vw, 72px); align-items: center; }
.anatomy-text { display: grid; gap: clamp(14px, 2.2vh, 26px); }
.anatomy-text .s-head { max-width: 12ch; }
.anatomy-keys { display: grid; gap: 4px; }
.anatomy-keys li {
  display: grid; grid-template-columns: 26px 110px 1fr; align-items: center; gap: 12px;
  padding: clamp(6px, 1vh, 10px) 12px clamp(6px, 1vh, 10px) 8px; border-radius: var(--r-md);
  font-size: 14px; color: var(--ink-2); cursor: default;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.anatomy-keys li::before { content: attr(data-k); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--carbon); background: var(--kc); }
.anatomy-keys b { color: var(--ink); font-weight: 600; }
[data-k="1"] { --kc: var(--fmm-azul); }
[data-k="2"] { --kc: var(--fmm-verde); }
[data-k="3"] { --kc: var(--fmm-amarelo); }
[data-k="4"] { --kc: var(--fmm-laranja); }
[data-k="5"] { --kc: var(--fmm-rosa); }
[data-k="6"] { --kc: var(--fmm-oliva); }
.anatomy-cap { align-self: center; background: var(--cream); color: var(--carbon); border-radius: var(--r-xl); overflow: hidden; max-height: var(--stage-h); display: flex; flex-direction: column; }
.anatomy-cap header { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid #e8e8e6; font-size: 14px; }
.anatomy-cap header img { width: 32px; height: 32px; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #e6e6e6; }
.anatomy-cap header span { margin-left: auto; padding: 3px 10px; border-radius: var(--pill); background: #efefed; font-size: 11px; font-weight: 500; color: var(--mute); }
.anatomy-body { padding: 10px 14px 14px; overflow: auto; display: grid; gap: 2px; }
.anatomy-body p { position: relative; padding: clamp(7px, 1.1vh, 11px) 12px clamp(7px, 1.1vh, 11px) 48px; border-radius: var(--r-md); font-size: clamp(13px, 1vw, 16px); line-height: 1.5; transition: opacity var(--dur-fast), background-color var(--dur-fast); }
.anatomy-body p::before { content: attr(data-k); position: absolute; left: 12px; top: clamp(8px, 1.2vh, 12px); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 11px; font-weight: 700; background: var(--kc); }
.s-anatomy.is-focus .anatomy-body p.on { background: color-mix(in srgb, var(--kc) 18%, transparent); }
.s-anatomy.is-focus .anatomy-body p:not(.on) { opacity: .3; }
.s-anatomy.is-focus .anatomy-keys li.on { background: var(--panel); }
.s-anatomy.is-focus .anatomy-keys li:not(.on) { color: var(--mute-c); }

/* ---------- Resultado ---------- */
.s-result { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(28px, 4vw, 72px); align-items: center; }
.result-text { display: grid; gap: clamp(14px, 2.4vh, 28px); }
.result-num { font-size: clamp(120px, 16vw, 320px); font-weight: 650; line-height: .82; letter-spacing: -.065em; margin-left: -.05em; }
.result-sub { font-size: clamp(22px, 2.1vw, 38px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; max-width: 20ch; text-wrap: balance; }
.result-quote { justify-self: start; padding: 16px 20px; border-radius: var(--r-lg); background: var(--panel); font-size: clamp(15px, 1.15vw, 19px); color: var(--ink); max-width: 44ch; }
.result-quote { display: flex; align-items: center; gap: 16px; }
.result-quote img { width: 52px; height: auto; flex: none; }
.result-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--mute-c); }
.result-text { position: relative; z-index: 1; }
.result-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; z-index: 0; }
.result-media video { width: 100%; height: 100%; object-fit: cover; }
.result-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--carbon), rgb(27 29 31 / .55) 30%, rgb(27 29 31 / 0) 62%),
    linear-gradient(rgb(27 29 31 / .7), rgb(27 29 31 / 0) calc(var(--top) + 60px)),
    linear-gradient(0deg, rgb(27 29 31 / .75), rgb(27 29 31 / 0) calc(var(--bottom) + 60px));
}

/* ---------- Impulsionamento ---------- */
.s-boost { gap: clamp(12px, 2.2vh, 24px); }
.boost-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.boost-head > div { display: grid; gap: 14px; }
.boost-head .s-head { font-size: clamp(30px, 3vw, 56px); max-width: 20ch; }
.boost-src { font-size: 13px; line-height: 1.5; color: var(--mute-c); text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpis li { padding: 14px 16px; border-radius: var(--r-lg); background: var(--panel); display: grid; gap: 4px; align-content: start; }
.kpis .k { font-size: 12px; color: var(--mute-c); }
.kpis .v { font-size: clamp(24px, 2.3vw, 44px); font-weight: 650; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpis .note { font-size: 11px; color: var(--mute-c); }
.boost-card { min-height: 0; overflow: auto; padding: 8px 20px 14px; border-radius: var(--r-xl); background: var(--panel); }
.boost-table { width: 100%; border-collapse: collapse; font-size: clamp(13px, .95vw, 15px); font-variant-numeric: tabular-nums; }
.boost-table th { font-size: 12px; font-weight: 500; color: var(--mute-c); text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.boost-table td { padding: clamp(6px, 1.05vh, 11px) 12px clamp(6px, 1.05vh, 11px) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.boost-table tr:last-child td { border-bottom: 0; }
.boost-table td:first-child { font-weight: 600; }
.boost-table .num { text-align: right; padding-right: 0; padding-left: 24px; white-space: nowrap; }
.boost-table .bar-col { width: 28%; }
.boost-table .pc { margin-right: 10px; }
.boost-table .res b { font-weight: 650; }
.boost-table .res span { margin-left: 6px; font-size: 12px; color: var(--mute-c); }
.bar { display: flex; align-items: center; gap: 10px; }
.bar i { display: block; height: 12px; border-radius: var(--pill); background: var(--carbon); width: 0; transition: width 1s var(--ease-out); }
.bar span { white-space: nowrap; }
.fmt { display: inline-block; padding: 2px 10px; border-radius: var(--pill); background: var(--panel-2); font-size: 12px; color: var(--ink-2); }
.boost-table .muted { color: var(--mute-c); }
.boost-note { margin-top: 8px; font-size: 12px; color: var(--mute-c); }
/* Ajuste fino feito pelo JS quando a janela não comporta a tabela */
.boost-table.fit { font-size: var(--fs); }
.boost-table.fit td { padding-block: var(--rp); }

/* ---------- Encerramento ---------- */
.s-end { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(28px, 4vw, 72px); align-items: center; }
.end-card { display: grid; gap: clamp(18px, 3vh, 32px); align-content: center; }
.end-lockup { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); margin-bottom: clamp(8px, 4vh, 48px); }
.end-logo { width: clamp(120px, 11vw, 210px); height: auto; aspect-ratio: 1750 / 584; color: var(--cream); }
.end-x { width: 1px; align-self: stretch; margin: 6px 0; background: rgb(252 252 250 / .28); }
.end-client { width: auto; height: clamp(72px, 8vw, 140px); padding: 10px; border-radius: 26%; background: var(--cream); }
.result-quote img { padding: 4px; border-radius: 26%; background: var(--cream); }
.end-title { font-size: clamp(48px, 6.6vw, 124px); font-weight: 650; line-height: .9; letter-spacing: -.055em; max-width: 12ch; text-wrap: balance; }
.end-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.end-meta { display: grid; gap: 8px; }
.end-meta > div { padding: 14px 18px; border-radius: var(--r-lg); background: var(--panel); }
.end-meta dt { font-size: 12px; color: var(--mute-c); margin-bottom: 2px; }
.end-meta dd { font-size: 15px; font-weight: 500; }

/* ---------- Índice ---------- */
.index { position: fixed; inset: 0; z-index: 40; overflow: auto; background: rgb(17 18 20 / .96); backdrop-filter: blur(10px); color: var(--cream); --ink: var(--cream); --mute-c: rgb(252 252 250 / .55); --panel: var(--carbon-2); }
.index-inner { padding: 24px var(--edge) 48px; display: grid; gap: 24px; }
.index-head { display: flex; justify-content: space-between; align-items: center; }
.index-head .pill-btn { --chrome-line: rgb(252 252 250 / .2); }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.index-grid button:not([data-color]) { --cc: var(--cream); }
.index-grid button {
  position: relative; width: 100%; min-height: 188px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 16px 18px 18px; text-align: left;
  border: 0; border-radius: var(--r-xl); cursor: pointer; color: var(--cream);
  background: var(--panel);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.index-grid button::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--cc); opacity: .9; }
.index-grid button:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--cc) 14%, var(--panel)); }
.index-grid button[aria-current=true] { box-shadow: inset 0 0 0 2px var(--cc); }
.ix-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ix-chap { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: rgb(252 252 250 / .72); }
.ix-chap i { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.ix-kind { padding: 3px 10px; border-radius: var(--pill); background: rgb(255 255 255 / .07); font-size: 11px; color: rgb(252 252 250 / .6); }
.ix-num { align-self: end; font-size: clamp(52px, 4.6vw, 76px); font-weight: 650; line-height: .85; letter-spacing: -.06em; color: var(--cc); font-variant-numeric: tabular-nums; }
.ix-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.index-grid button[aria-current=true] .ix-kind::before { content: "Você está aqui · "; color: var(--cream); }

/* ---------- Desktop baixo ou estreito ---------- */
@media (min-width: 901px) and (max-width: 1240px) {
  .topbar-actions span { display: none; }
  .topbar-actions .pill-btn { padding: 0 10px; }
}
@media (min-width: 901px) and (max-height: 780px) {
  :root { --top: 58px; --bottom: 80px; --side-w: clamp(280px, 24vw, 360px); }
  .dock { bottom: 10px; }
  .anatomy-keys span { display: none; }
  .anatomy-keys li { grid-template-columns: 26px 1fr; }
  .cover-hint { display: none; }
  .cover-main { gap: 14px; }
  .cover-logo { height: 64px; }
  .cover-title { font-size: clamp(48px, 5.4vw, 96px); }
  .cover-lede { font-size: 15px; max-width: 46ch; }
  .cover-stats { display: none; }
}

/* Impulsionamento: a tabela precisa caber sem rolagem */
@media (min-width: 901px) and (max-height: 900px) {
  .s-boost { gap: 10px; }
  .boost-head > div { gap: 8px; }
  .boost-head .s-head { font-size: clamp(26px, 2.5vw, 40px); max-width: none; }
  .kpis li { padding: 10px 14px; gap: 2px; }
  .kpis .v { font-size: clamp(22px, 2vw, 32px); }
  .boost-card { padding: 2px 18px 10px; }
  .boost-table th { padding-block: 7px; }
  .boost-table td { padding-block: clamp(3px, .9vh - 2px, 8px); }
  .boost-note { margin-top: 4px; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .boost-head .chip, .kpis .note { display: none; }
  .boost-head .s-head { font-size: clamp(22px, 2.2vw, 32px); }
  .kpis li { padding: 8px 14px; }
  .kpis .v { font-size: clamp(20px, 1.8vw, 28px); }
  .boost-table { font-size: 13px; }
  .boost-table th { padding-block: 5px; }
  .boost-table td { padding-block: 2px; }
}

/* ---------- Tablet e celular ---------- */
@media (max-width: 900px) {
  :root { --edge: 18px; --top: 58px; --bottom: 84px; --pad-y: 16px; }
  .topbar { background: color-mix(in srgb, var(--bg-c, var(--carbon)) 88%, transparent); backdrop-filter: blur(12px); }
  body[data-theme=paper] .topbar { --bg-c: var(--paper); }
  body[data-theme=white] .topbar { --bg-c: #f4f4f2; }
  .topbar-title span, .topbar-actions span { display: none; }
  .topbar-title { position: static; transform: none; margin-right: auto; }
  .topbar-title b::before { display: none; }
  .topbar-actions .pill-btn { padding: 0 10px; }

  .dock { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; justify-content: space-between; }
  .dock-next { padding: 0 6px 0 14px; }
  .dock-next-label { display: none; }
  .dock-next b { max-width: 13ch; font-size: 13px; }

  .slide { display: block; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(var(--bottom) + 24px); }
  .slide > * + * { margin-top: 32px; }
  .s-head { font-size: clamp(30px, 8.6vw, 44px); }

  .s-cover { padding-right: var(--edge); }
  .cover-main { width: auto; }
  .cover-title { font-size: clamp(50px, 15vw, 110px); }
  .cover-stats { grid-template-columns: repeat(2, 1fr); }
  .cover-wall { position: relative; width: auto; height: 340px; margin: 32px calc(-1 * var(--edge)) 0; padding: 0 14px; }
  .cover-wall::before { display: none; }
  .cover-reel { left: auto; right: 20px; top: 20px; translate: none; width: 170px; }
  .cover-wall { height: 420px; }

  .s-work, .s-lang, .s-anatomy, .s-result, .s-end { display: block; }
  .work-info { max-width: none; }
  .work-post { display: block; }
  .rail { --tw: 58px; margin-bottom: 12px; grid-template-columns: 1fr auto; align-items: center; }
  .rail-head { grid-column: 1 / -1; }
  .thumbs, .thumbs.two { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--tw); overflow-x: auto; padding: 3px; scrollbar-width: none; }
  .rail-nav { grid-template-columns: 40px 40px; }
  .ig { flex-direction: column; height: auto; width: 100%; border-radius: var(--r-lg); }
  .ig-media { width: 100%; height: auto; }
  .ig.is-video .ig-media { width: min(100%, calc(70dvh * 9 / 16)); margin: 0 auto; }
  .s-video .work-post { display: block; }
  .vpick { width: auto; margin-bottom: 20px; }
  .ig-side { width: 100%; border-top: 1px solid #efefef; }
  .ig-cap { height: 44dvh; flex: none; }

  .lang-board { gap: 8px; }
  .lang-board figure { padding: 6px 6px 10px; border-radius: var(--r-lg); }
  .lang-board img { border-radius: var(--r-md); }
  .lang-board figure:nth-child(2) { transform: none; }
  .lang-board figcaption { font-size: 11px; padding: 0 2px; }
  .anatomy-cap { max-height: none; }

  .result-num { font-size: clamp(96px, 30vw, 180px); }
  .result-media { position: relative; width: auto; height: 62dvh; margin: 32px calc(-1 * var(--edge)) 0; }
  .result-media::after { background: linear-gradient(var(--carbon), rgb(27 29 31 / 0) 30%), linear-gradient(0deg, rgb(27 29 31 / .7), rgb(27 29 31 / 0) 30%); }

  .boost-head { display: grid; }
  .boost-src { text-align: left; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .boost-card { padding: 4px 16px 12px; }
  .boost-table thead { display: none; }
  .boost-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 12px; row-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .boost-table tr:last-child { border-bottom: 0; }
  .boost-table td { padding: 0; border: 0; }
  .boost-table td:nth-child(1), .boost-table td:nth-child(2) { grid-column: 1 / -1; }
  .boost-table td:nth-child(5) { display: none; }
  .boost-table .num { padding-left: 0; text-align: left; display: grid; }
  .boost-table .num::before { content: attr(data-l); font-size: 11px; font-weight: 400; color: var(--mute-c); }
  .boost-table .res span { margin-left: 0; }

  .cover-hint { display: none; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .index-grid button { min-height: 150px; padding: 14px; border-radius: var(--r-lg); }
  .index-grid button::before { left: 14px; right: 14px; }
  .ix-kind { display: none; }
  .ix-num { font-size: 44px; }
  .ix-title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .slide { transform: none; }
}

a.pill-btn { text-decoration:none; white-space:nowrap; }
