/* =============================================================================
   Tour cinematográfico do topo da home (partials/home-cinematic.php)
   "Vídeo" em HTML: o mascote anda de cena em cena, com legenda e capítulos.
   A tela é sempre escura (como um player), nos dois temas do site.
   Tamanhos em cqw (container query) para o conteúdo escalar com o player.
   ============================================================================= */

.strategy-hero--cine .strategy-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.strategy-hero--cine .strategy-hero-copy h1 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
/* coluna do texto ficou mais estreita: os 3 números dividem a linha em vez de quebrar */
.strategy-hero--cine .strategy-stats { flex-wrap: nowrap; gap: .7rem; }
.strategy-hero--cine .strategy-stats div { min-width: 0; flex: 1 1 0; padding: .85rem .9rem; }
.strategy-hero--cine .strategy-actions { gap: .7rem; }
.strategy-hero--cine .strategy-actions .btn-lg { padding-left: 1.1rem; padding-right: 1.1rem; }

.cine { --cine-a: #0e95a3; --cine-b: #3ddc97; --cine-c: #4f8dff; position: relative; }

.cine-screen {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
  color: #f2fbfb;
  background: #061a1f;
  box-shadow: 0 30px 70px -28px rgba(0, 60, 70, .55), 0 0 0 1px rgba(14, 149, 163, .35);
}

/* fundo: brilho de cor + grade suave que desliza devagar */
.cine-bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(14, 149, 163, .45), transparent 70%),
    radial-gradient(35% 45% at 85% 75%, rgba(61, 220, 151, .25), transparent 70%),
    radial-gradient(30% 40% at 70% 15%, rgba(79, 141, 255, .22), transparent 70%),
    linear-gradient(160deg, #082a31 0%, #04151a 100%);
  z-index: -2;
  animation: cineDrift 18s ease-in-out infinite alternate;
}
.cine-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 6cqw 6cqw;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
@keyframes cineDrift { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }

/* faixas pretas de cinema, só na abertura */
.cine-letterbox { position: absolute; left: 0; right: 0; height: 9%; background: #000; z-index: 5; transition: transform .9s cubic-bezier(.7, 0, .2, 1); pointer-events: none; }
.cine-letterbox--top { top: 0; transform: translateY(-100%); }
.cine-letterbox--bottom { bottom: 0; transform: translateY(100%); }
.cine[data-scene="0"] .cine-letterbox--top,
.cine[data-scene="0"] .cine-letterbox--bottom,
.cine[data-scene="7"] .cine-letterbox--top,
.cine[data-scene="7"] .cine-letterbox--bottom { transform: none; }

/* ------------------------------------------------------------- cenas */
.cine-scene {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
  z-index: 1;
}
.cine-scene.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease .15s, visibility 0s; }

.cine-panel {
  position: absolute; top: 11%; bottom: 19%;
  width: 58%;
  display: flex; flex-direction: column; justify-content: center; gap: 2.2cqw;
  font-size: clamp(12px, 2.3cqw, 18px);
}
.cine-panel--right { right: 4%; }
.cine-panel--left { left: 4%; }
.cine-panel--center { left: 6%; width: 52%; }

.cine-eyebrow {
  align-self: flex-start;
  padding: .35em .8em; border-radius: 999px;
  font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #bff7f0; background: rgba(14, 149, 163, .25); border: 1px solid rgba(61, 220, 151, .35);
}
/* .cine-screen na frente: vence html[data-theme="light"] p do app.css, que pintava os títulos de cinza */
.cine-screen .cine-title { margin: 0; font-size: 2.05em; line-height: 1.05; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.cine-screen .cine-title em { font-style: normal; background: linear-gradient(90deg, var(--cine-b), var(--cine-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cine-screen .cine-text { margin: 0; color: rgba(226, 244, 245, .82); font-size: 1em; line-height: 1.4; }

/* entrada em cascata dos itens de cada cena */
.cine-scene.is-on .cine-in { animation: cineIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--d, 0) * .22s); }
@keyframes cineIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* cena 0 — abertura */
.cine-presents { font-size: .85em; letter-spacing: .3em; text-transform: uppercase; color: rgba(191, 247, 240, .75); }
.cine-screen .cine-scene[data-scene="0"] .cine-title { font-size: 2.7em; }

/* fundo fotográfico (cenas 1 e 6): foto escurecida com zoom lento atrás do texto */
.cine-backdrop { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.cine-backdrop img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; }
.cine-backdrop::after { content: ""; position: absolute; inset: 0; }
.cine-backdrop--right::after { background: linear-gradient(90deg, rgba(4, 21, 26, .35) 0%, rgba(4, 21, 26, .72) 42%, rgba(4, 21, 26, .9) 70%); }
.cine-backdrop--left::after { background: linear-gradient(270deg, rgba(4, 21, 26, .35) 0%, rgba(4, 21, 26, .72) 42%, rgba(4, 21, 26, .9) 70%); }
.cine-scene.is-on .cine-backdrop img { animation: cineKen 9s ease-out both; }
@keyframes cineKen { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.02); } }
.cine-panel { z-index: 1; }

/* cena 1 — problema: "dores" */
.cine-pains { display: flex; flex-wrap: wrap; gap: .6em; }
.cine-pain {
  padding: .45em .8em; border-radius: .6em; font-size: .86em; font-weight: 600;
  background: rgba(255, 107, 129, .14); border: 1px solid rgba(255, 107, 129, .4); color: #ffd3da;
}

/* cena 2 — biblioteca */
.cine-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.cine-kind {
  padding: 1em .9em; border-radius: 1em;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
}
.cine-kind b { display: block; font-size: 1.6em; line-height: 1; margin-bottom: .35em; }
.cine-kind strong { display: block; font-size: 1.05em; color: #fff; }
.cine-kind span { display: block; margin-top: .25em; font-size: .8em; color: rgba(226, 244, 245, .7); line-height: 1.35; }
.cine-count { display: flex; align-items: baseline; gap: .5em; }
.cine-count strong { font-size: 2.6em; font-weight: 800; line-height: 1; color: var(--cine-b); font-variant-numeric: tabular-nums; }
.cine-count span { color: rgba(226, 244, 245, .8); }

/* cena 3 — para quem */
.cine-aud { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7em; }
.cine-aud figure { margin: 0; position: relative; border-radius: 1em; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(255, 255, 255, .14); }
.cine-aud img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cine-aud figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4em .7em .5em;
  font-size: .85em; font-weight: 700; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent);
}

/* cena 4 — como funciona: busca digitando */
.cine-search {
  display: flex; align-items: center; gap: .7em;
  padding: .8em 1em; border-radius: 999px;
  background: #fff; color: #15171b; font-size: 1.05em;
  box-shadow: 0 .8cqw 2.4cqw rgba(0, 0, 0, .35);
}
.cine-search svg { width: 1.2em; height: 1.2em; flex: none; color: #007c89; }
.cine-type {
  display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600;
  width: 0; border-right: 2px solid #007c89;
}
.cine-scene.is-on .cine-type { animation: cineType 1.3s steps(10) .6s forwards, cineCaret .7s step-end infinite; }
@keyframes cineType { to { width: calc(10ch + 3px); } }
@keyframes cineCaret { 50% { border-color: transparent; } }
.cine-hits { display: flex; flex-wrap: wrap; gap: .5em; }
.cine-hit { padding: .35em .75em; border-radius: 999px; font-size: .82em; font-weight: 600; background: rgba(61, 220, 151, .15); color: #c8ffe5; border: 1px solid rgba(61, 220, 151, .4); }
.cine-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.cine-step { padding: .7em; border-radius: .8em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: .85em; }
.cine-step i { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; margin-bottom: .35em; font-style: normal; font-weight: 800; color: #04151a; background: var(--cine-b); }
.cine-step strong { display: block; color: #fff; }

/* cena 5 — GoTo Factory: etapas acendendo em sequência */
.cine-factory { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em; }
.cine-fstep {
  position: relative; padding: .8em .7em; border-radius: .8em; font-size: .85em; font-weight: 700;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: rgba(226, 244, 245, .55);
}
.cine-fstep small { display: block; font-size: .78em; font-weight: 600; opacity: .7; }
.cine-scene.is-on .cine-fstep { animation: cineLit .5s ease both; animation-delay: calc(.5s + var(--d, 0) * .45s); }
@keyframes cineLit {
  to { color: #fff; background: rgba(14, 149, 163, .35); border-color: rgba(61, 220, 151, .7); box-shadow: 0 0 1.6cqw rgba(61, 220, 151, .35); }
}
.cine-badge { align-self: flex-start; padding: .5em .9em; border-radius: .7em; font-weight: 800; background: linear-gradient(90deg, var(--cine-b), var(--cine-c)); color: #04151a; }

/* cena 6 — criadores */
.cine-perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55em; }
.cine-perk { display: flex; gap: .6em; align-items: center; padding: .6em .75em; border-radius: .7em; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .9em; font-weight: 600; }
.cine-perk b { font-size: 1.2em; }

/* cena 7 — convite final */
.cine-cta { display: flex; flex-wrap: wrap; gap: .7em; align-items: center; }
.cine-cta a.btn { font-size: .95em; }
.cine-free { font-size: .85em; color: rgba(191, 247, 240, .85); }

/* ------------------------------------------------------------- mascote */
.cine-mascot {
  position: absolute; bottom: -3%; left: 2%;
  height: 84%; aspect-ratio: 560 / 858;
  margin: 0; z-index: 3; pointer-events: none;
  transition: left 1.1s cubic-bezier(.65, 0, .25, 1), height 1.1s cubic-bezier(.65, 0, .25, 1);
}
.cine-mascot img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 1.4cqw 2.2cqw rgba(0, 0, 0, .5)); transform-origin: 50% 100%; animation: cineIdle 3.2s ease-in-out infinite; }
@keyframes cineIdle { 50% { transform: translateY(-1.2%) rotate(-1.2deg); } }
.cine-mascot.is-walking img { animation: cineWalk .32s ease-in-out 3 alternate; }
@keyframes cineWalk { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-5%) rotate(3deg); } }

/* posição do mascote por cena (o lado oposto ao painel) */
.cine[data-scene="0"] .cine-mascot { left: 60%; }
.cine[data-scene="1"] .cine-mascot { left: 0%; }
.cine[data-scene="2"] .cine-mascot { left: 66%; }
.cine[data-scene="3"] .cine-mascot { left: 0%; }
.cine[data-scene="4"] .cine-mascot { left: 66%; }
.cine[data-scene="5"] .cine-mascot { left: 0%; }
.cine[data-scene="6"] .cine-mascot { left: 66%; }
.cine[data-scene="7"] .cine-mascot { left: 58%; height: 92%; }
/* entrada: começa fora da tela, à direita */
.cine.is-intro .cine-mascot { left: 104%; transition: none; }

/* ------------------------------------------------------------- legenda */
.cine-subtitle {
  position: absolute; left: 50%; bottom: 4.2%; z-index: 6;
  transform: translateX(-50%);
  max-width: 86%; width: max-content;
  padding: .45em .95em; border-radius: .6em;
  font-size: clamp(12px, 2cqw, 16px); font-weight: 600; line-height: 1.35; text-align: center;
  color: #fff; background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(4px);
}
.cine-subtitle::before { content: "🎙 "; opacity: .8; }

/* ------------------------------------------------------------- controles */
.cine-play {
  position: absolute; top: 3%; right: 2.5%; z-index: 7;
  display: inline-flex; align-items: center; gap: .4em;
  padding: .45em .8em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .45); color: #fff; font: inherit; font-size: clamp(11px, 1.5cqw, 14px); font-weight: 600;
  cursor: pointer; backdrop-filter: blur(4px);
}
.cine-play[hidden] { display: none; }
.cine-play:hover { background: rgba(0, 0, 0, .65); }
.cine-play:focus-visible, .cine-chapter:focus-visible { outline: 2px solid var(--cine-b); outline-offset: 2px; }

.cine-chapters { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: .8rem; }
.cine-chapter { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--text-2, #5f6570); }
.cine-bar { display: block; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(0, 124, 137, .18); }
.cine-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #007c89, #3ddc97); }
.cine-chapter.is-done .cine-bar i { width: 100%; }
.cine-label { display: block; margin-top: 5px; font-size: .72rem; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cine-chapter.is-current .cine-label { color: var(--primary, #007c89); }
.cine-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: .45rem; font-size: .8rem; color: var(--text-2, #5f6570); }
.cine-foot a { color: var(--primary, #007c89); font-weight: 600; text-decoration: none; }
.cine-foot a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- celular: tela em pé */
@media (max-width: 900px) {
  .strategy-hero--cine .strategy-hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cine-screen { aspect-ratio: 4 / 5; border-radius: 18px; }
  .cine-panel, .cine-panel--left, .cine-panel--right, .cine-panel--center { left: 5%; right: 5%; width: auto; top: 11%; bottom: 40%; justify-content: flex-start; font-size: clamp(11px, 3.4cqw, 15px); }
  .cine-mascot, .cine[data-scene] .cine-mascot { left: auto; right: -2%; height: 44%; }
  .cine.is-intro .cine-mascot { right: -60%; }
  .cine-kinds, .cine-factory, .cine-steps { grid-template-columns: repeat(2, 1fr); }
  .cine-perks { grid-template-columns: 1fr; }
  .cine-backdrop::after { background: rgba(4, 21, 26, .78) !important; }
  .cine-subtitle { bottom: 3%; max-width: 62%; left: 4%; transform: none; text-align: left; }
  .cine-chapters { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
}

/* ------------------------------------------------------------- menos movimento */
@media (prefers-reduced-motion: reduce) {
  .cine-bg, .cine-mascot img, .cine-scene.is-on .cine-backdrop img { animation: none !important; }
  .cine-scene, .cine-mascot, .cine-letterbox { transition: none !important; }
  .cine-scene.is-on .cine-in, .cine-scene.is-on .cine-fstep { animation-duration: .01s !important; animation-delay: 0s !important; }
  .cine-scene.is-on .cine-type { animation: none; width: calc(10ch + 3px); }
}

/* =============================================================================
   Hero em vídeo (?hero=video) — modelo cinematic do nggtech.com.br.
   O MP4 (mascote) fica atrás; o texto real do site vai por cima, em claro.
   ============================================================================= */
.strategy-hero--vid {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  min-height: min(88vh, 840px);
  padding: 6.5rem 0 5.5rem;
  background: #04151a; border-bottom: 0;
}
.strategy-hero--vid > .container { position: relative; z-index: 2; width: 100%; }
.cvid-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: 0; }
.cvid-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, #04151a 0%, rgba(4, 21, 26, .86) 30%, rgba(4, 21, 26, .38) 50%, transparent 68%);
}
.cvid-grain {
  position: absolute; inset: 0; z-index: 1; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cvid-letterbox { position: absolute; left: 0; width: 100%; height: 6vh; min-height: 28px; background: #000; z-index: 3; pointer-events: none; }
.cvid-letterbox--top { top: 0; }
.cvid-letterbox--bottom { bottom: 0; }
.cvid-meta {
  position: absolute; z-index: 4; left: 5vw; right: 5vw; top: calc(6vh + 16px);
  display: flex; justify-content: space-between; pointer-events: none;
  font: 600 .7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(191, 247, 240, .72);
}
.cvid-tag { margin-left: auto; }
.cvid-tag::before { content: "● "; color: #3ddc97; }
.cvid-pause {
  position: absolute; z-index: 4; right: 5vw; bottom: calc(6vh + 12px);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .45); color: #fff; font-size: .8rem;
  backdrop-filter: blur(4px);
}
.cvid-pause:hover { background: rgba(0, 0, 0, .7); }
.cvid-pause:focus-visible { outline: 2px solid #3ddc97; outline-offset: 2px; }
.cvid-pause[hidden] { display: none; }

/* texto da página em claro sobre o vídeo (vence html[data-theme="light"] p do app.css) */
.strategy-hero--vid .strategy-hero-copy h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.strategy-hero--vid .strategy-lead { color: rgba(226, 244, 245, .88); }
.strategy-hero--vid .strategy-kicker { color: #bff7f0; background: rgba(14, 149, 163, .22); border-color: rgba(61, 220, 151, .4); }
.strategy-hero--vid .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.strategy-hero--vid .btn-outline:hover { background: rgba(255, 255, 255, .14); }
.strategy-hero--vid .strategy-stats div { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.strategy-hero--vid .strategy-stats span { color: rgba(226, 244, 245, .78); }
.strategy-hero--vid .strategy-stats { flex-wrap: nowrap; gap: .7rem; }
.strategy-hero--vid .strategy-stats div { min-width: 0; flex: 1 1 0; padding: .85rem .9rem; }
.strategy-hero--vid .strategy-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }

@media (max-width: 900px) {
  /* celular/tablet: o vídeo vira uma janela no topo e o texto começa logo abaixo,
     sem passar por cima do mascote (o close-up atrapalhava a leitura do título) */
  .strategy-hero--vid { min-height: 0; padding: 22.5rem 0 4rem; }
  .strategy-hero--vid .strategy-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cvid-video { height: 22rem; object-position: 74% 28%; }
  .cvid-scrim { height: 22rem; bottom: auto; background: linear-gradient(180deg, rgba(4, 21, 26, .25) 0%, transparent 35%, transparent 55%, #04151a 100%); }
}
@media (max-width: 640px) {
  .cvid-letterbox { height: 2.5vh; min-height: 14px; }
  .cvid-meta { top: calc(2.5vh + 14px); }
  .cvid-pause { bottom: calc(2.5vh + 10px); }
  .strategy-hero--vid .strategy-stats { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .cvid-pause { display: none; } }

/* =============================================================================
   Moldura cinematic para o tour em HTML (padrão de /layout-preview).
   Seção escura de ponta a ponta (fundo animado, granulação, faixas, timecode);
   texto do site à esquerda e o tour à direita, sem cartão, "dentro" da cena.
   Reaproveita .cvid-grain/.cvid-letterbox/.cvid-meta do modo vídeo.
   ============================================================================= */
.strategy-hero--cinema {
  position: relative; overflow: hidden; isolation: isolate;
  background: #04151a; border-bottom: 0;
  padding: calc(6vh + 3.6rem) 0 calc(6vh + 2.4rem);
}
.strategy-hero--cinema > .container { position: relative; z-index: 2; }
.cinema-bg {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 55% at 16% 32%, rgba(14, 149, 163, .42), transparent 70%),
    radial-gradient(34% 48% at 88% 78%, rgba(61, 220, 151, .22), transparent 70%),
    radial-gradient(30% 42% at 72% 14%, rgba(79, 141, 255, .22), transparent 70%),
    linear-gradient(160deg, #082a31 0%, #04151a 100%);
  animation: cineDrift 18s ease-in-out infinite alternate;
}
.cinema-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(75% 75% at 60% 50%, #000, transparent);
}
.strategy-hero--cinema .strategy-hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; }

/* texto do site em claro (mesmas regras do modo vídeo) */
.strategy-hero--cinema .strategy-hero-copy h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.strategy-hero--cinema .strategy-lead { color: rgba(226, 244, 245, .88); }
.strategy-hero--cinema .strategy-kicker { color: #bff7f0; background: rgba(14, 149, 163, .22); border-color: rgba(61, 220, 151, .4); }
.strategy-hero--cinema .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.strategy-hero--cinema .btn-outline:hover { background: rgba(255, 255, 255, .14); }
.strategy-hero--cinema .strategy-stats div { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.strategy-hero--cinema .strategy-stats span { color: rgba(226, 244, 245, .78); }

/* o tour sem cartão: a cena da seção é o fundo; o chão some num degradê */
.strategy-hero--cinema .cine-screen {
  background: transparent; box-shadow: none; border-radius: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.strategy-hero--cinema .cine-bg,
.strategy-hero--cinema .cine-letterbox { display: none; }
.strategy-hero--cinema .cine-mascot { bottom: 0; }
/* fotos de fundo das cenas 1 e 6 sem borda dura: somem nas bordas, dentro da cena da seção */
.strategy-hero--cinema .cine-backdrop {
  -webkit-mask-image: radial-gradient(62% 68% at 62% 48%, #000 35%, transparent 100%);
  mask-image: radial-gradient(62% 68% at 62% 48%, #000 35%, transparent 100%);
}
.strategy-hero--cinema .cine-backdrop--left {
  -webkit-mask-image: radial-gradient(62% 68% at 38% 48%, #000 35%, transparent 100%);
  mask-image: radial-gradient(62% 68% at 38% 48%, #000 35%, transparent 100%);
}
.strategy-hero--cinema .cine-subtitle { bottom: 9%; }
.strategy-hero--cinema .cine-bar { background: rgba(255, 255, 255, .14); }
.strategy-hero--cinema .cine-chapter { color: rgba(226, 244, 245, .55); }
.strategy-hero--cinema .cine-chapter.is-current .cine-label { color: #3ddc97; }
.strategy-hero--cinema .cine-foot { color: rgba(226, 244, 245, .6); }
.strategy-hero--cinema .cine-foot a { color: #7ff0c8; }

@media (max-width: 900px) {
  .strategy-hero--cinema .strategy-hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .strategy-hero--cinema { padding: calc(2.5vh + 3rem) 0 calc(2.5vh + 2rem); }
  .strategy-hero--cinema .cine-subtitle { bottom: 4%; }
}
@media (prefers-reduced-motion: reduce) { .cinema-bg { animation: none; } }

/* =============================================================================
   Biblioteca (/explorar limpa): o mesmo topo cinematic da home, com o h1 da
   página, as pílulas de tipo e a faixa de atalhos por categoria em versão escura
   (partials/library-cinematic-hero.php). As regras base de .strategy-hero--cinema
   acima já cuidam de fundo, texto claro, tour e mobile.
   ============================================================================= */
.strategy-hero--library .strategy-hero-copy h1 { font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1; }
/* pílulas e cartões trazem fundo claro do CSS inline da página: aqui viram vidro escuro */
.strategy-hero--library .marketplace-hero-pills span {
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16);
  color: #e2f4f5; backdrop-filter: blur(6px);
}
.strategy-hero--library .marketplace-focus-grid {
  position: relative; z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.2rem;
}
.strategy-hero--library .marketplace-focus-card {
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16);
  color: #fff; backdrop-filter: blur(6px);
}
.strategy-hero--library .marketplace-focus-card:hover { background: rgba(255, 255, 255, .13); border-color: #3ddc97; color: #fff; }
.strategy-hero--library .marketplace-focus-card strong { color: #fff; }
.strategy-hero--library .marketplace-focus-card span { color: rgba(226, 244, 245, .8); }
@media (max-width: 900px) {
  .strategy-hero--library .marketplace-focus-grid { grid-template-columns: minmax(0, 1fr); margin-top: 1.4rem; }
}

/* Tour recolhível (só Biblioteca): botão ☰ acima do tour; recolhido, sobra só o botão. */
.lib-tour { min-width: 0; }
.lib-tour-toggle {
  display: flex; align-items: center; gap: .5em; margin: 0 0 .6rem auto;
  padding: .5em .95em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.lib-tour-toggle[hidden] { display: none; }
.lib-tour-toggle:hover { background: rgba(255, 255, 255, .14); }
.lib-tour-toggle:focus-visible { outline: 2px solid #3ddc97; outline-offset: 2px; }
.strategy-hero--library.is-tour-collapsed .lib-tour-body,
.strategy-hero--library.is-tour-collapsed .cvid-meta { display: none; }
.strategy-hero--library.is-tour-collapsed .strategy-hero-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.strategy-hero--library.is-tour-collapsed .lib-tour-toggle { margin-bottom: 0; }
@media (max-width: 900px) {
  .strategy-hero--library.is-tour-collapsed .strategy-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .strategy-hero--library.is-tour-collapsed .lib-tour-toggle { margin-left: 0; }
}
