/* =========================================================
   Consertec — site cinematográfico
   Paleta: grafite + branco quente + âmbar (derivado do logotipo) e cobre.
   ========================================================= */

:root {
  --ink-950: #0b0c0e;
  --ink-900: #131518;
  --ink-850: #181a1e;
  --ink-800: #1f2226;
  --ink-700: #2b2f35;
  --ink-600: #3a3f46;
  --paper: #f3ede4;
  --paper-2: #ebe3d7;
  --paper-3: #ddd2c2;
  --text: #f3ede4;
  --text-muted: #bcb3a6;
  --text-ink: #1b1d21;
  --text-ink-muted: #59534a;
  --amber: #f4be2a;
  --amber-600: #dca514;
  --amber-ink: #835600;
  --copper: #c47a4a;
  --line: rgba(243, 237, 228, .14);
  --line-ink: rgba(27, 29, 33, .14);
  --focus: var(--amber);

  --f-display: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-text: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --hdr-h: 68px;
  --gx: clamp(20px, 5.5vw, 88px);
  --wrap: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ui-b: 0px; /* altura da barra do navegador móvel (ver .cine) */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink-950); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gx)); margin: 0 auto; padding: 0 var(--gx); }

/* ---------- Tipografia ---------- */
.eyebrow {
  font: 500 .72rem/1.4 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .7em;
}
.eyebrow .num { color: var(--text-muted); }
.eyebrow--ink { color: var(--amber-ink); }
.display {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.5rem, 4.9vw, 4.6rem);
  line-height: 1.03; letter-spacing: -.042em;
  margin-bottom: .45em; text-wrap: balance;
}
.display--md { font-size: clamp(2rem, 3.6vw, 3.35rem); line-height: 1.07; letter-spacing: -.036em; }
.display em, .h2 em { font-style: normal; color: var(--amber); }
.h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.05rem, 3.6vw, 3.3rem);
  line-height: 1.07; letter-spacing: -.035em; margin-bottom: .5em; text-wrap: balance;
}
.lead { font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--text-muted); max-width: 40em; }
.note { font: 400 .8rem/1.5 var(--f-mono); color: var(--text-muted); letter-spacing: .01em; margin-top: 1rem; }

/* ---------- Botões e links ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.35em;
  border-radius: 999px; border: 1px solid var(--b);
  font: 600 .95rem/1.1 var(--f-text); letter-spacing: -.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: var(--ink-950); }
.btn--amber:hover { background: #ffd04d; }
.btn--ghost { --b: rgba(243, 237, 228, .38); background: rgba(19, 21, 24, .28); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { --b: var(--text); background: rgba(19, 21, 24, .5); }
.btn--wa { background: #f3ede4; color: var(--ink-950); }
.btn--wa svg { color: #1f9d55; }
.btn--wa:hover { background: #fff; }
.btn--sm { min-height: 40px; padding: .6em 1.1em; font-size: .88rem; }
.btn--lg { min-height: 56px; padding: 1em 1.6em; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.show-sm { display: none; }
@media (max-width: 420px) { .hide-sm { display: none; } .show-sm { display: inline; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; text-decoration: none; color: var(--amber);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Marcadores de revisão (somente com modoRevisao: true) */
.rev { display: none; }
.is-review .rev {
  display: inline-flex; align-items: center; gap: .5em;
  font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: #3b2a00; background: #ffd970; border-radius: 6px; padding: .45em .7em; margin-top: .6rem;
}
.is-review .rev::before { content: "●"; font-size: .7em; }
.rev-row { display: none !important; }
.is-review .rev-row { display: flex !important; color: #ffd970; }

/* =========================================================
   Cabeçalho
   ========================================================= */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
  background: linear-gradient(180deg, rgba(11, 12, 14, .62), rgba(11, 12, 14, 0));
}
.hdr.is-solid {
  background: rgba(19, 21, 24, .86);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.hdr__inner { height: 100%; display: flex; align-items: center; gap: 24px; padding: 0 var(--gx); max-width: 1600px; margin: 0 auto; }
.hdr__brand img { height: 40px; width: auto; }
.hdr__nav { display: flex; gap: 4px; margin-left: auto; }
.hdr__nav a {
  white-space: nowrap; text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--text);
  padding: .5em .8em; border-radius: 999px; opacity: .86; transition: opacity .2s, background-color .2s;
}
.hdr__nav a:hover { opacity: 1; background: rgba(243, 237, 228, .08); }
.hdr__actions { display: flex; align-items: center; gap: 10px; }
.hdr__wa {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none;
  font-weight: 600; font-size: .9rem; padding: .5em .7em; border-radius: 999px;
}
.hdr__wa svg { width: 20px; height: 20px; color: #4fd18b; }
.hdr__wa:hover { background: rgba(243, 237, 228, .08); }
.hdr__menu {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(19, 21, 24, .4); cursor: pointer; place-items: center;
}
.hdr__menu-bars, .hdr__menu-bars::before, .hdr__menu-bars::after {
  display: block; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.hdr__menu-bars::before, .hdr__menu-bars::after { content: ""; position: absolute; left: 0; }
.hdr__menu-bars::before { top: -6px; }
.hdr__menu-bars::after { top: 6px; }
.hdr__menu[aria-expanded="true"] .hdr__menu-bars { background: transparent; }
.hdr__menu[aria-expanded="true"] .hdr__menu-bars::before { transform: translateY(6px) rotate(45deg); }
.hdr__menu[aria-expanded="true"] .hdr__menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--hdr-h) 0 0; z-index: 59;
  background: rgba(13, 14, 16, .97); padding: 28px var(--gx) 40px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a {
  font: 500 2rem/1.25 var(--f-display); letter-spacing: -.03em; text-decoration: none;
  padding: .32em 0; border-bottom: 1px solid var(--line);
}
.mnav__cta { display: grid; gap: 12px; margin-top: 32px; }

/* Contato flutuante */
.dock__wa {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 52px; padding: 0 1.15em 0 .95em; border-radius: 999px;
  background: var(--ink-850); color: var(--text); text-decoration: none; font-weight: 700; font-size: .92rem;
  border: 1px solid rgba(244, 190, 42, .55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease), background-color .2s;
}
.dock__wa svg { width: 24px; height: 24px; color: #4fd18b; }
.dock__wa:hover { background: var(--ink-700); transform: translateY(-2px); }

/* =========================================================
   Experiência cinematográfica
   Modo padrão (sem JS / movimento reduzido): storyboard estático.
   Modo .is-live: palco fixo + quadros controlados pelo scroll.
   ========================================================= */
.cine { position: relative; background: var(--ink-950); }
.cine__poster, .cine__canvas, .cine__dim, .cine__scrim, .xv, .energy, .rooms, .cine__ui { display: none; }

/* ----- Storyboard estático ----- */
.scene {
  position: relative; min-height: min(100vh, 1000px); min-height: min(100svh, 1000px);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  padding: calc(var(--hdr-h) + 8vh) var(--gx) 9vh;
  list-style: none;
}
.scene__media { position: absolute; inset: 0; z-index: -1; }
.scene__media img { width: 100%; height: 100%; object-fit: cover; }
.scene__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 12, 14, .82) 0%, rgba(11, 12, 14, .45) 45%, rgba(11, 12, 14, .1) 75%),
              linear-gradient(0deg, rgba(11, 12, 14, .75), rgba(11, 12, 14, 0) 55%);
}
.scene__media--pair { display: grid; grid-template-columns: 1fr 1fr; }
.scene__media--pair picture { position: relative; }
.scene__media--pair picture::before {
  position: absolute; top: calc(var(--hdr-h) + 16px); left: 16px; z-index: 1;
  font: 500 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(11, 12, 14, .7); padding: .4em .7em; border-radius: 6px;
}
.scene__media--pair picture:first-child::before { content: "Antes"; }
.scene__media--pair picture:last-child::before { content: "Depois"; }
.scene__media--pair img { height: 100%; }
.scene__copy { position: relative; max-width: 620px; text-shadow: 0 1px 22px rgba(0, 0, 0, .45); }
.scene__copy p:not(.eyebrow):not(.note) { color: #e7dfd3; font-size: 1.08rem; max-width: 34em; }
.scene__copy .lead { color: #ece5da; }

.steps { list-style: none; counter-reset: s; display: grid; gap: .9rem; margin: .4rem 0 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; column-gap: .4em; align-items: baseline; }
.steps li::before { content: "0" counter(s); font: 500 .75rem var(--f-mono); color: var(--amber); letter-spacing: .1em; grid-row: span 2; }
.steps strong { font: 500 clamp(1.5rem, 2.3vw, 2.15rem)/1.12 var(--f-display); letter-spacing: -.03em; }
.steps span { color: var(--text-muted); font-size: .98rem; }

.lights { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: .4rem; }
.lights li {
  font: 500 .74rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: .5em .85em; border-radius: 999px; border: 1px solid rgba(243, 237, 228, .3); color: var(--text-muted);
  transition: color .4s, border-color .4s, background-color .4s, box-shadow .4s;
}

/* ----- Modo animado ----- */
.cine.is-live { height: var(--cine-h, 840vh); --ui-b: calc(100lvh - 100svh); }
.cine.is-live .cine__stage {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background: var(--ink-950);
}
.cine.is-live .cine__poster,
.cine.is-live .cine__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.cine__poster { object-fit: cover; transition: opacity .6s var(--ease); }
.cine__stage > picture { display: contents; }
.cine.is-drawn .cine__poster { opacity: 0; }
.cine.is-live .cine__dim { display: block; position: absolute; inset: 0; background: #0d0e10; opacity: var(--dim, 0); }
.cine.is-live .cine__scrim { display: block; position: absolute; inset: 0; pointer-events: none; }
.cine__scrim::before, .cine__scrim::after { content: ""; position: absolute; inset: 0; transition: opacity .6s var(--ease); }
.cine__scrim::before {
  background:
    linear-gradient(90deg, rgba(10, 11, 13, .86) 0%, rgba(10, 11, 13, .62) 28%, rgba(10, 11, 13, 0) 54%),
    linear-gradient(180deg, rgba(10, 11, 13, .5) 0%, rgba(10, 11, 13, 0) 16%);
}
.cine__scrim::after { background: linear-gradient(0deg, rgba(10, 11, 13, .55) 0%, rgba(10, 11, 13, 0) 22%); }

.cine.is-live .cine__scenes { position: absolute; inset: 0; pointer-events: none; }
.cine.is-live .scene {
  position: absolute; inset: 0; min-height: 0; padding: 0; display: block; overflow: visible;
  --v: 0;
}
.cine.is-live .scene__media { display: none; }
.cine.is-live .scene__copy {
  position: absolute; left: var(--gx); width: min(560px, 40vw); max-width: none;
  opacity: calc(min(1, var(--vin, 1) * 5) * var(--vout, 1));
  transform: translate3d(0, calc((1 - var(--vout, 1)) * -28px), 0);
  pointer-events: auto; will-change: opacity, transform;
}
.cine.is-live .scene[data-d="bl"] .scene__copy { bottom: calc(13vh + var(--ui-b)); }
.cine.is-live .scene[data-d="ml"] .scene__copy { top: 50%; transform: translate3d(0, calc(-50% - (1 - var(--vout, 1)) * 28px), 0); }
.cine.is-live .scene[data-d="tl"] .scene__copy { top: calc(var(--hdr-h) + 8vh); }
.cine.is-live .scene[data-scene="1"] .scene__copy { width: min(640px, 46vw); }
.cine.is-live .scene[data-scene="4"] .scene__copy { width: min(440px, 34vw); }

.steps li { transition: opacity .45s var(--ease); }
.cine.is-live .steps li { opacity: .34; }
.cine.is-live .steps li.is-done { opacity: .6; }
.cine.is-live .steps li.is-active { opacity: 1; }
.cine.is-live .steps li.is-active::before { color: var(--amber); }
.lights li.is-on { color: var(--ink-950); background: var(--amber); border-color: var(--amber); box-shadow: 0 0 24px rgba(244, 190, 42, .35); }

/* Interface */
.cine.is-live .cine__ui { display: block; position: absolute; inset: 0; pointer-events: none; }
.cine__ui > * { pointer-events: auto; }
.ai-chip {
  position: absolute; left: var(--gx); bottom: calc(28px + var(--ui-b)); margin: 0;
  font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .06em; color: #e1d9cd;
  background: rgba(11, 12, 14, .55); border: 1px solid var(--line); border-radius: 6px; padding: .5em .75em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.skip {
  position: absolute; right: var(--gx); top: calc(var(--hdr-h) + 18px);
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 1.1em;
  border-radius: 999px; border: 1px solid rgba(243, 237, 228, .35); background: rgba(11, 12, 14, .5);
  color: var(--text); font-weight: 600; font-size: .86rem; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.skip svg { width: 16px; height: 16px; }
.skip:hover { border-color: var(--text); }
.hint {
  position: absolute; left: 50%; bottom: calc(30px + var(--ui-b)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 .72rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #e1d9cd;
  opacity: var(--hint, 1); pointer-events: none;
}
.hint i { width: 1px; height: 46px; background: linear-gradient(var(--amber), transparent); position: relative; overflow: hidden; }
.hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { to { top: 110%; } }

.chapters { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
.chapters ol { list-style: none; display: grid; gap: 2px; }
.chapters button {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  min-height: 32px; background: none; border: 0; padding: 4px 8px; cursor: pointer; color: var(--text-muted);
  font: 500 .7rem var(--f-mono); letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.chapters button span { width: 26px; text-align: right; transition: color .3s; }
.chapters button::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .3s var(--ease), background-color .3s; }
.chapters em {
  position: absolute; right: calc(100% + 4px); top: 50%; margin-top: -.95em;
  font-style: normal; white-space: nowrap; opacity: 0; transform: translateX(6px);
  transition: opacity .25s, transform .25s; background: rgba(11, 12, 14, .7); padding: .3em .6em; border-radius: 4px; color: var(--text);
}
.chapters button:hover em, .chapters button:focus-visible em { opacity: 1; transform: none; }
.chapters button[aria-current="step"] { color: var(--amber); }
.chapters button[aria-current="step"]::before { width: 26px; background: var(--amber); }

.progress { position: absolute; left: 0; right: 0; bottom: var(--ui-b); height: 2px; background: rgba(243, 237, 228, .12); }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--amber); }

.loader {
  position: absolute; left: 50%; bottom: calc(110px + var(--ui-b)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #e1d9cd;
  background: rgba(11, 12, 14, .55); padding: 16px 20px; border-radius: 10px; transition: opacity .5s;
}
.loader i { width: 160px; height: 2px; background: rgba(243, 237, 228, .2); overflow: hidden; }
.loader b { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); transition: transform .3s; }
.cine.is-ready .loader { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s, visibility 0s .5s; }

/* ----- Vista explodida ----- */
.cine.is-live .xv { display: block; position: absolute; inset: 0; pointer-events: none; opacity: var(--xo, 0); }
.xv__grid {
  position: absolute; inset: 0; opacity: var(--grid, 0);
  background-image: linear-gradient(rgba(243, 237, 228, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 237, 228, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 46% 56% at var(--gcx, 60%) 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 56% at var(--gcx, 60%) 50%, #000 0%, transparent 100%);
}
.xv__frame {
  position: absolute; left: 0; top: 0; width: 400px; height: 640px;
  transform-origin: 0 0; transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) scale(var(--fs, 1));
  perspective: 2600px;
}
.xv__stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateZ(var(--rz, 0deg)); }
.xv__layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; transform: translateZ(calc(var(--z) * var(--gap, 0px))); }
.xv .ln { fill: none; stroke: rgba(243, 237, 228, .6); stroke-width: 1.4; }
.xv .ln--soft { stroke: rgba(243, 237, 228, .28); }
.xv .tag { font: 500 11px var(--f-mono); letter-spacing: .14em; fill: rgba(243, 237, 228, .8); opacity: var(--tags, 0); }
.xv .tag--amber { fill: var(--amber); }
.xv .tag--old { fill: #e2b39a; }
.xv .tag--copper { fill: #e09a68; }
.xv__layer--box rect:first-child { fill: rgba(19, 21, 24, .55); }

.xv__layer--old {
  opacity: var(--old-o, 1);
  transform: translateZ(calc(var(--z) * var(--gap, 0px) + var(--old-lift, 0px))) translateX(var(--old-x, 0px));
}
.old-plate { fill: rgba(176, 156, 122, .22); stroke: rgba(214, 192, 158, .55); stroke-width: 1.2; }
.old-fuse rect, .old-fuse circle { fill: rgba(156, 138, 110, .4); stroke: rgba(222, 202, 170, .6); stroke-width: 1.2; }
.old-brk rect { fill: rgba(30, 30, 30, .65); stroke: rgba(210, 196, 176, .55); stroke-width: 1.2; }
.old-wire path { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.old-wire path:nth-child(3n+1) { stroke: rgba(212, 118, 90, .7); }
.old-wire path:nth-child(3n+2) { stroke: rgba(225, 218, 205, .55); }
.old-wire path:nth-child(3n) { stroke: rgba(120, 120, 120, .7); }

.xv__layer--struct { opacity: var(--st-o, 0); }
.plate { fill: rgba(243, 237, 228, .045); stroke: rgba(243, 237, 228, .4); stroke-width: 1.2; }
.duct rect { fill: rgba(243, 237, 228, .06); stroke: rgba(243, 237, 228, .5); stroke-width: 1.1; stroke-dasharray: 5 3; }
.rail rect { fill: rgba(205, 196, 182, .22); stroke: rgba(243, 237, 228, .7); stroke-width: 1.1; }
.bus rect { fill: rgba(196, 122, 74, .35); stroke: #d08a55; stroke-width: 1.1; }

.dev {
  --k: clamp(0, calc(var(--pp, 0) * 16 - var(--i)), 1);
  opacity: var(--k); transform: translateY(calc((1 - var(--k)) * -16px));
}
.dev rect:first-child { fill: rgba(246, 242, 235, .94); stroke: rgba(11, 12, 14, .35); stroke-width: 1; }
.dev .tg { fill: var(--amber); }
.dev .mk { fill: #3a3f46; }

.wire path {
  fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--pw, 0) * 9 - var(--i)), 1));
}
.wire--ph { stroke: #d9915a; }
.wire--n { stroke: #93b8de; }
.wire--pe { stroke: #b2cc72; }

.lbl rect { fill: rgba(246, 242, 235, .94); opacity: var(--pl, 0); }
.lbl-txt text {
  font: 600 9.5px var(--f-mono); fill: #1b1d21; text-anchor: middle;
  opacity: clamp(0, calc(var(--pl, 0) * 16 - var(--i)), 1);
}
.xv__layer--cover {
  opacity: var(--co, 0);
  transform: translateZ(calc(var(--z) * var(--gap, 0px) + var(--co-lift, 0px)));
}
.cover { fill: rgba(243, 237, 228, .16); stroke: rgba(243, 237, 228, .75); stroke-width: 1.4; }
.screw circle { fill: none; stroke: rgba(243, 237, 228, .6); }

/* ----- Traços de energia (cena 5) ----- */
.cine.is-live .energy {
  display: block; position: absolute; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none;
  opacity: var(--eo, 0); filter: drop-shadow(0 0 6px rgba(244, 190, 42, .55));
}
.energy__set { display: none; }
.energy[data-set="d"] [data-energy-set="d"], .energy[data-set="m"] [data-energy-set="m"] { display: inline; }
.energy path {
  fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--en, 0));
}
.cine.is-live .rooms { display: block; position: absolute; inset: 0; list-style: none; pointer-events: none; }
.rooms li {
  --k: clamp(0, calc(var(--rv, 0) * 5 - var(--i)), 1);
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  transform: translate(-50%, calc(-100% - 14px + (1 - var(--k)) * 8px)); opacity: var(--k);
  font: 500 .72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--text); background: rgba(11, 12, 14, .66); border: 1px solid rgba(244, 190, 42, .5);
  padding: .45em .75em; border-radius: 999px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.rooms li::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + 6px); width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(244, 190, 42, .25);
}

/* =========================================================
   Seções
   ========================================================= */
.sec { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.sec--ink { background: var(--ink-900); }
.sec--ink2 { background: var(--ink-850); }
.sec--paper { background: var(--paper); color: var(--text-ink); --focus: #1b1d21; }
.sec--paper .lead { color: var(--text-ink-muted); }
.sec--paper .link-arrow { color: var(--amber-ink); }
.sec__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Apresentação */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__text .lead { margin-bottom: 1.8rem; }
.stats { margin: 0; display: grid; }
.stat { display: grid; grid-template-columns: 1fr; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat__value { order: -1; margin: 0; font: 300 clamp(3.4rem, 6.6vw, 5.8rem)/.98 var(--f-display); letter-spacing: -.055em; color: var(--text); }
.stat__label { font: 500 .8rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-top: 10px; }

/* Serviços */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #f8f4ee; border: 1px solid var(--line-ink); border-radius: var(--radius);
  padding: 30px 28px 32px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(27, 29, 33, .35); border-color: rgba(27, 29, 33, .25); }
.card__icon { width: 40px; height: 40px; color: var(--amber-ink); margin-bottom: 26px; }
.card h3 { font: 600 1.15rem/1.3 var(--f-text); margin-bottom: .6em; letter-spacing: -.015em; }
.card p { color: var(--text-ink-muted); font-size: 1rem; margin: 0; }
.card--cta { background: var(--ink-900); color: var(--text); border-color: transparent; justify-content: space-between; }
.card--cta p { color: var(--text-muted); margin-bottom: 1.4rem; }
.card--cta h3 { font: 500 1.6rem/1.15 var(--f-display); letter-spacing: -.028em; }
.card--cta .link-arrow { color: var(--amber); align-self: flex-start; }

/* Atendimento */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line); }
.flow__step { position: relative; padding: 0 28px 0 0; }
.flow__num {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-900); border: 1px solid rgba(244, 190, 42, .6); color: var(--amber);
  font: 500 .8rem var(--f-mono); margin-bottom: 26px;
}
.flow__step h3 { font: 600 1.25rem/1.25 var(--f-display); letter-spacing: -.02em; margin-bottom: .5em; }
.flow__step p { color: var(--text-muted); font-size: 1rem; }

/* Sinais */
.signs__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.signs__grid .lead { margin-bottom: 2rem; }
.signs__list { list-style: none; display: grid; }
.signs__list li { display: flex; gap: 18px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); font-size: 1.08rem; }
.signs__list li:last-child { border-bottom: 1px solid var(--line); }
.signs__list li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(244, 190, 42, .14); transform: translateY(-2px); }
.signs__note { margin-top: 48px; font: 400 .82rem/1.5 var(--f-mono); color: var(--text-muted); }

/* Projetos */
.proj-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj figure { margin: 0; }
.proj img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.proj figcaption { font-size: .92rem; color: var(--text-ink-muted); margin-top: 10px; }
.ba__view { position: relative; overflow: hidden; border-radius: var(--radius); }
.ba__img { width: 100%; }
.ba__img--before { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list details { border-top: 1px solid var(--line-ink); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-ink); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font: 600 1.1rem/1.4 var(--f-text); letter-spacing: -.012em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details > div { padding: 0 0 26px; color: var(--text-ink-muted); max-width: 42em; }
.faq__list details ul { padding-left: 1.1em; display: grid; gap: .45em; }
.faq__list a { color: var(--text-ink); font-weight: 700; }

/* Contato */
.contact { position: relative; overflow: hidden; background: var(--ink-950); }
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 14, .95) 25%, rgba(11, 12, 14, .55)); }
.contact__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro .lead { margin-bottom: 2rem; }
.contact__list { list-style: none; display: grid; gap: 14px; margin-top: 36px; }
.contact__list li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.contact__list svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.contact__list a { color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.contact__list a:hover { border-color: var(--text); }

.form {
  background: var(--paper); color: var(--text-ink); --focus: #1b1d21;
  border-radius: 20px; padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .7);
}
.form__title { font: 500 1.7rem/1.15 var(--f-display); letter-spacing: -.028em; margin-bottom: .25em; }
.form__info { font-size: .88rem; color: var(--text-ink-muted); margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label { font-size: .88rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(27, 29, 33, .28); background: #fbf8f3; color: var(--text-ink);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #1b1d21; box-shadow: 0 0 0 3px rgba(244, 190, 42, .55); }
.field [aria-invalid="true"] { border-color: #a12a1c; box-shadow: 0 0 0 3px rgba(161, 42, 28, .15); }
.field__error { font-size: .82rem; color: #a12a1c; font-weight: 600; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: #1b1d21; }
.field--check label { font-weight: 500; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form .btn--ghost { --b: rgba(27, 29, 33, .35); background: transparent; color: var(--text-ink); backdrop-filter: none; }
.form .btn--ghost:hover { --b: #1b1d21; background: rgba(27, 29, 33, .05); }
.form__hint { font-size: .84rem; color: var(--text-ink-muted); margin: 14px 0 0; }
.form__status { margin: 12px 0 0; font-weight: 700; font-size: .95rem; }
.form__status:empty { display: none; }
.form__status.is-error { color: #a12a1c; }
.form__status.is-ok { color: #1d5e3a; }

/* Rodapé */
.ftr { background: var(--ink-950); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.ftr__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.ftr__brand p { color: var(--text-muted); font-size: .95rem; }
.ftr__nav { display: grid; gap: 8px; }
.ftr__nav a, .ftr__contact a { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.ftr__nav a:hover, .ftr__contact a:hover { color: var(--text); }
.ftr__contact { display: grid; gap: 12px; }
.ftr__contact a { display: inline-flex; align-items: center; gap: 10px; }
.ftr__contact svg { width: 18px; height: 18px; color: var(--amber); }
.ftr__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ftr__legal p { margin: 0; font-size: .8rem; color: var(--text-muted); max-width: 64em; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1240px) {
  .hdr__wa span { display: none; }
  .hdr__nav a { padding: .5em .6em; }
}
@media (max-width: 1080px) {
  .hdr__nav { display: none; }
  .hdr__actions { margin-left: auto; }
  .hdr__menu { display: grid; }
}
@media (max-width: 980px) {
  .about__grid, .signs__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .flow::before { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --hdr-h: 60px; }
  body { font-size: 1rem; }
  .hdr__inner { gap: 10px; }
  .hdr__brand img { height: 32px; }
  .hdr__wa { display: none; }
  .hdr .btn--sm { padding: .55em .9em; font-size: .82rem; }
  .cards, .flow, .proj-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .dock__wa { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; padding: 0; justify-content: center; }
  .dock__wa span { display: none; }
  .stat__value { font-size: clamp(3.2rem, 16vw, 4.4rem); }
  .btn-row .btn { flex: 1 1 auto; }
  .scene__media--pair { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}
@media (max-width: 330px) {
  .hdr .btn--sm { display: none; }
}

/* ----- Palco em tela vertical (celulares e tablets em pé) ----- */
@media (max-aspect-ratio: 9/10) {
  .cine__scrim::before {
    background: linear-gradient(180deg, rgba(10, 11, 13, .82) 0%, rgba(10, 11, 13, .55) 22%, rgba(10, 11, 13, 0) 40%);
    opacity: var(--st, 1);
  }
  .cine__scrim::after {
    background: linear-gradient(0deg, rgba(10, 11, 13, .9) 0%, rgba(10, 11, 13, .62) 26%, rgba(10, 11, 13, 0) 46%);
    opacity: var(--sb, 1);
  }
  .cine.is-live .scene__copy { left: 20px; right: 20px; width: auto !important; }
  .cine.is-live .scene[data-m="top"] .scene__copy { top: calc(var(--hdr-h) + 18px); bottom: auto; transform: translate3d(0, calc((1 - var(--vout, 1)) * -22px), 0); }
  .cine.is-live .scene[data-m="bottom"] .scene__copy { top: auto; bottom: calc(88px + var(--ui-b)); transform: translate3d(0, calc((1 - var(--vout, 1)) * -22px), 0); }
  .cine.is-live .display { font-size: clamp(2.1rem, 9.4vw, 3rem); }
  .cine.is-live .display--md { font-size: clamp(1.8rem, 7.6vw, 2.5rem); }
  .cine.is-live .scene__copy .lead { font-size: 1rem; }
  .cine.is-live .scene[data-scene="3"] .scene__copy p:not(.eyebrow):not(.note) { font-size: .95rem; }
  .cine.is-live .steps { gap: .35rem; }
  .cine.is-live .steps li { grid-template-columns: 2em 1fr; }
  .cine.is-live .steps strong { font-size: 1.25rem; }
  .cine.is-live .steps span { font-size: .84rem; line-height: 1.35; }
  .cine.is-live .steps li:not(.is-active) span { display: none; }
  .cine.is-live .note { font-size: .7rem; margin-top: .6rem; }
  .chapters { display: none; }
  .ai-chip { left: 16px; bottom: calc(76px + var(--ui-b)); font-size: .66rem; padding: .35em .6em; }
  .skip { left: 16px; right: auto; top: auto; bottom: calc(18px + var(--ui-b)); }
  .cine.is-live { height: var(--cine-h-m, 760vh); }
  .cine.is-live .scene[data-scene="1"] .display { font-size: clamp(2rem, 8.6vw, 2.9rem); }
  .cine.is-live .scene[data-scene="1"] .lead { font-size: .95rem; line-height: 1.5; }
  .cine.is-live .scene[data-scene="1"] .btn-row { flex-wrap: nowrap; }
  .hint { bottom: calc(96px + var(--ui-b)); }
  .cine.is-live .btn-row { margin-top: 1.1rem; }
  .cine.is-live .scene__copy .btn { padding: .75em 1.05em; font-size: .9rem; }
}
@media (max-aspect-ratio: 9/10) and (max-height: 700px) {
  .cine.is-live .scene__copy .lead { display: none; }
  .cine.is-live .scene[data-scene="3"] .scene__copy p:not(.eyebrow):not(.note) { display: none; }
}
/* Celular deitado / telas baixas */
@media (min-aspect-ratio: 9/10) and (max-height: 520px) {
  :root { --hdr-h: 56px; }
  .hdr__brand img { height: 30px; }
  .cine.is-live .display { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
  .cine.is-live .display--md { font-size: clamp(1.5rem, 3.8vw, 2rem); }
  .cine.is-live .scene__copy .lead, .cine.is-live .scene[data-scene="3"] .scene__copy p:not(.eyebrow):not(.note) { display: none; }
  .cine.is-live .scene[data-d="bl"] .scene__copy { bottom: calc(64px + var(--ui-b)); }
  .cine.is-live .steps strong { font-size: 1.2rem; }
  .cine.is-live .steps li:not(.is-active) span { display: none; }
  .cine.is-live .steps span { font-size: .8rem; }
  .cine.is-live .note { display: none; }
  .cine.is-live .btn-row { margin-top: .8rem; }
  .cine.is-live .btn { min-height: 42px; padding: .6em 1em; }
  .chapters, .hint { display: none; }
  .ai-chip { bottom: calc(14px + var(--ui-b)); }
  .skip { top: calc(var(--hdr-h) + 10px); min-height: 38px; }
  .scene { min-height: 0; }
}

/* ----- Movimento reduzido ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* Sem JavaScript: o botão de menu não funciona, então fica oculto (CTA e WhatsApp continuam no cabeçalho). */
.no-js .hdr__menu { display: none !important; }


/* =========================================================
   Animações e transições
   Tudo abaixo só age com JavaScript e sem "reduzir movimento"
   (.motion é adicionada por site.js; o palco usa .is-live).
   ========================================================= */

/* ----- Abertura da marca ----- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: var(--ink-950);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1) .05s;
  animation: introFailsafe 0s linear 4.5s forwards; /* se algo falhar, a abertura some sozinha */
}
.intro__inner { display: grid; justify-items: center; gap: 26px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.intro img { width: min(220px, 52vw); height: auto; opacity: 0; transform: translateY(14px); animation: introLogo .9s var(--ease) .1s forwards; }
.intro i { display: block; width: 150px; height: 1px; background: rgba(243, 237, 228, .16); overflow: hidden; }
.intro b { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; animation: introBar 1.15s cubic-bezier(.65, 0, .35, 1) .25s both; box-shadow: 0 0 12px var(--amber); }
.intro.is-out { transform: translateY(-100%); }
.intro.is-out .intro__inner { opacity: 0; transform: translateY(-40px); }
@keyframes introLogo { to { opacity: 1; transform: none; } }
@keyframes introBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introFailsafe { to { visibility: hidden; } }

/* ----- Transição entre seções (saltos longos pelos links) ----- */
.wipe {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center;
  background: var(--ink-950); transform: translate3d(0, 101%, 0); visibility: hidden;
}
.wipe::before, .wipe::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--amber); box-shadow: 0 0 22px var(--amber); }
.wipe::before { top: 0; }
.wipe::after { bottom: 0; }
.wipe img { width: 40px; height: 40px; opacity: 0; transform: scale(.85); transition: opacity .3s .12s, transform .4s var(--ease) .12s; }
.wipe.is-in { visibility: visible; transform: translate3d(0, 0, 0); transition: transform .46s cubic-bezier(.76, 0, .24, 1); }
.wipe.is-in img { opacity: 1; transform: none; }
.wipe.is-out { visibility: visible; transform: translate3d(0, -101%, 0); transition: transform .55s cubic-bezier(.76, 0, .24, 1) .06s; }
.wipe.is-out img { opacity: 0; transition-delay: 0s; }

/* ----- Cabeçalho que se recolhe ao descer ----- */
.hdr { transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .5s var(--ease); }
.hdr.is-hidden { transform: translate3d(0, -100%, 0); }

/* ----- Títulos divididos em palavras ----- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
.w__i { display: inline-block; }

/* Palco: palavras sobem conforme o scroll (avança e volta junto) */
.cine.is-live .scene .w__i {
  --k: clamp(0, calc(var(--vin, 1) * 2.4 - var(--i) * .1), 1);
  transform: translate3d(0, calc((1 - var(--k)) * 112%), 0);
}
.cine.is-live .scene__copy > :not(h1):not(h2) {
  --k2: clamp(0, calc(var(--vin, 1) * 2.2 - var(--d, .8)), 1);
  opacity: var(--k2); transform: translate3d(0, calc((1 - var(--k2)) * 16px), 0);
}
.eyebrow::before { content: ""; flex: none; width: 26px; height: 1px; background: currentColor; transform-origin: 0 50%; }
.cine.is-live .scene .eyebrow::before { transform: scaleX(var(--k2, 1)); }

/* Entrada da cena 1 depois da abertura */
.cine.is-intro .scene[data-scene="1"] .w__i { animation: wordIn 1.05s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(.12s + var(--i) * 55ms); }
.cine.is-intro .scene[data-scene="1"] .scene__copy > :not(h1) { animation: fadeUp .9s var(--ease) backwards; animation-delay: calc(.5s + var(--d, 1) * .25s); }
.cine.is-intro .cine__ui > * { animation: fadeIn 1s var(--ease) .9s backwards; }
@keyframes wordIn { from { transform: translate3d(0, 112%, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ----- Efeitos de cinema no palco ----- */
.cine__flash, .cine__fx, .cine__bars { display: none; }
.cine.is-live .cine__fx { display: block; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cine__fx::before { /* vinheta */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(5, 6, 8, .55) 100%);
}
.cine__fx::after { /* grão de filme sutil */
  content: ""; position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); } 20% { transform: translate3d(-4%, 3%, 0); } 40% { transform: translate3d(3%, -5%, 0); }
  60% { transform: translate3d(-6%, -2%, 0); } 80% { transform: translate3d(5%, 4%, 0); } 100% { transform: translate3d(0, 0, 0); }
}
.cine.is-live .cine__flash {
  display: block; position: absolute; inset: 0; pointer-events: none; opacity: var(--flash, 0); mix-blend-mode: screen;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 214, 140, .6), rgba(255, 186, 80, .18) 45%, transparent 75%);
}
.cine.is-live .cine__bars { display: block; position: absolute; inset: 0; pointer-events: none; }
.cine__bars i { position: absolute; left: 0; right: 0; height: 9vh; background: #08090a; transform: scaleY(var(--bars, 1)); }
.cine__bars i:first-child { top: 0; transform-origin: 50% 0; }
.cine__bars i:last-child { bottom: 0; transform-origin: 50% 100%; }

/* Varredura de análise na vista explodida (Planejamento) */
.xv__scan {
  position: absolute; left: -4%; right: -4%; top: 0; height: 3px; opacity: var(--scan-o, 0);
  background: linear-gradient(90deg, transparent, var(--amber) 20%, #fff3cf 50%, var(--amber) 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(244, 190, 42, .45);
  transform: translateZ(calc(var(--z) * var(--gap, 0px) + 2px)) translateY(calc(var(--scan, 0) * 636px));
}

/* Fluxo de energia percorrendo os traços (cena 5) */
.energy .flow path { stroke: #fff4cf; stroke-width: 3; stroke-dasharray: .06 .94; stroke-dashoffset: 1; opacity: var(--flow, 0); animation: energyFlow 2.4s linear infinite; }
.energy .flow path:nth-child(2) { animation-delay: -.6s; }
.energy .flow path:nth-child(3) { animation-delay: -1.2s; }
.energy .flow path:nth-child(4) { animation-delay: -1.8s; }
@keyframes energyFlow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.rooms li::before {
  content: ""; position: absolute; left: 50%; top: calc(100% + 2px); width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; border: 1px solid rgba(244, 190, 42, .7); animation: roomPulse 2s var(--ease) infinite;
}
@keyframes roomPulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ----- Seções: revelação ao entrar na tela ----- */
.motion [data-reveal], .motion [data-stagger] > * {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity 1s var(--ease), transform 1.1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.motion [data-reveal="right"] { transform: translate3d(48px, 0, 0); }
.motion [data-reveal].is-in, .motion [data-stagger].is-in > * { opacity: 1; transform: none; }
.motion :is(.sec, .xp, .svc, .flowx, .signsx, .faqx, .contact, .ftr) [data-split] .w__i {
  transform: translate3d(0, 112%, 0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms + var(--i) * 38ms);
}
.motion :is(.sec, .xp, .svc, .flowx, .signsx, .faqx, .contact, .ftr) .is-in [data-split] .w__i { transform: none; }
.motion :is(.sec, .xp, .svc, .flowx, .signsx, .faqx, .contact, .ftr) [data-stagger] > [data-split] { opacity: 1; transform: none; } /* o título anima palavra a palavra */
.motion :is(.sec, .xp, .svc, .flowx, .signsx, .faqx, .contact, .ftr) .eyebrow::before { transform: scaleX(0); transition: transform 1s var(--ease) .15s; }
.motion :is(.sec, .xp, .svc, .flowx, .signsx, .faqx, .contact, .ftr) .is-in > .eyebrow::before { transform: scaleX(1); }

/* Indicadores: número sobe por trás de uma máscara e a linha se desenha */
.stat { position: relative; border-top: 0; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.stat__value { overflow: hidden; }
.stat__value > span[aria-hidden] { display: inline-block; }
.motion .stats > .stat { opacity: 1; transform: none; }
.motion .stat::before { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--d, 0) * 140ms); }
.motion .stat__value > span[aria-hidden] { transform: translate3d(0, 105%, 0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 140ms + .15s); }
.motion .stat__label { opacity: 0; transition: opacity .8s var(--ease); transition-delay: calc(var(--d, 0) * 140ms + .45s); }
.motion .stats.is-in .stat::before { transform: scaleX(1); }
.motion .stats.is-in .stat__value > span[aria-hidden] { transform: none; }
.motion .stats.is-in .stat__label { opacity: 1; }

/* Atendimento: a linha percorre as etapas */
.flow::before { transform-origin: 0 50%; }
.motion .flow::before { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.65, 0, .35, 1) .1s; }
.motion .flow.is-in::before { transform: scaleX(1); }
.motion .flow > * { transition-delay: calc(.25s + var(--d, 0) * 220ms); }
.motion .flow.is-in .flow__num { animation: numGlow 1.2s var(--ease) backwards; animation-delay: calc(.35s + var(--d, 0) * 220ms); }
@keyframes numGlow { 0% { box-shadow: 0 0 0 0 rgba(244, 190, 42, .6); background: var(--amber); color: var(--ink-950); } 100% { box-shadow: 0 0 0 14px rgba(244, 190, 42, 0); } }

/* Sinais: itens entram da direita, o marcador acende */
.motion .signs__list > * { transform: translate3d(36px, 0, 0); }
.motion .signs__list > li::before { transition: transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + .3s); transform: translateY(-2px) scale(0); }
.motion .signs__list.is-in > li::before { transform: translateY(-2px) scale(1); }

/* Cartões e botões */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card__icon { transition: transform .5s var(--ease); }
.card:hover .card__icon { transform: translateY(-3px) rotate(-6deg); }
.btn--amber { position: relative; overflow: hidden; isolation: isolate; }
.btn--amber::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--amber:hover::after { transform: translateX(120%); }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(4px); }
.dock__wa { animation: fabIn .8s var(--ease) 1.6s backwards; }
@keyframes fabIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* Perguntas frequentes: abertura suave (navegadores compatíveis) */
:root { interpolate-size: allow-keywords; }
.faq__list details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }
.faq__list summary { transition: color .25s; }
.faq__list summary:hover { color: var(--amber-ink); }

/* Contato: movimento lento da fotografia de fundo */
.motion .contact__bg img { animation: kenBurns 32s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }

@media (prefers-reduced-motion: reduce) {
  .js .intro, .wipe { display: none !important; }
  .dock__wa { animation: none; }
}

/* Campo-armadilha contra robôs (fica fora da tela) */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* =========================================================
   Seções cinematográficas (abaixo da apresentação)
   Sem JS ou com "reduzir movimento": layout estático.
   .fx = telas fixas guiadas pelo scroll; .hpin = galeria horizontal fixa.
   ========================================================= */
.img-note {
  position: absolute; right: var(--gx); bottom: 22px; z-index: 3; margin: 0; pointer-events: none;
  font: 500 .64rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(243, 237, 228, .72); background: rgba(11, 12, 14, .45); padding: .45em .65em; border-radius: 4px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ----- Experiência: três indicadores ----- */
.xp { position: relative; background: var(--ink-950); }
.xp__stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: center; padding: calc(var(--hdr-h) + 8vh) 0 12vh; }
.xp__bg { position: absolute; inset: 0; }
.xp__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transform: scale(calc(1.22 - var(--p, 0) * .14)) translate3d(calc(var(--p, 0) * -2%), 0, 0); transform-origin: 50% 50%; }
.xp__veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 12, 14, .94) 0%, rgba(11, 12, 14, .74) 36%, rgba(11, 12, 14, .28) 68%, rgba(11, 12, 14, .55) 100%),
              linear-gradient(0deg, rgba(11, 12, 14, .75), transparent 40%);
}
.xp__grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 5vw; align-items: center; }
.xp__intro .lead { margin-bottom: 1.8rem; max-width: 30em; }
.xp__stats { margin: 0; display: grid; gap: 36px; }
.xp__stat { display: flex; flex-direction: column-reverse; }
.xp__num { margin: 0; font: 200 clamp(5rem, 14.5vw, 15rem)/.86 var(--f-display); letter-spacing: -.075em; white-space: nowrap; }
.xp__num span[aria-hidden] {
  display: inline-block; padding: .04em .08em .06em 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3ede4 46%, #f4be2a 135%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.xp__label { display: flex; align-items: center; gap: 14px; margin-top: 18px; font: 500 .8rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.xp__label::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.xp__dots { display: none; }

.fx .xp { height: 280vh; }
.fx .xp__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--hdr-h) 0 0; }
.fx .xp__stats { display: block; position: relative; height: min(52vh, 480px); }
.fx .xp__stat {
  position: absolute; left: 0; right: 0; top: 50%;
  opacity: calc(var(--k, 0) * var(--k, 0) * (1 - var(--e, 0)));
  transform: translate3d(0, calc(-50% + (1 - var(--k, 0)) * 60px - var(--e, 0) * 60px), 0);
}
.fx .xp__num span[aria-hidden] { clip-path: inset(calc((1 - var(--k, 0)) * 100%) 0 -10% 0); }
.fx .xp__label::before { transform: scaleX(var(--k, 0)); transform-origin: 0 50%; }
.fx .xp__dots { display: flex; position: absolute; right: var(--gx); bottom: 9vh; gap: 22px; list-style: none; font: 500 .72rem var(--f-mono); letter-spacing: .1em; color: rgba(243, 237, 228, .38); }
.xp__dots li { position: relative; padding-bottom: 10px; transition: color .4s; }
.xp__dots li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.4); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.xp__dots li.is-on { color: var(--amber); }
.xp__dots li.is-on::after { transform: scaleX(1); }

/* ----- Serviços: galeria horizontal ----- */
.svc { position: relative; background: var(--ink-900); }
.svc__stage { position: relative; padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.svc__track {
  display: flex; align-items: stretch; gap: 20px; padding: 0 var(--gx);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gx);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.svc__track::-webkit-scrollbar { display: none; }
.svc__intro { flex: 0 0 min(460px, 86vw); scroll-snap-align: start; align-self: center; padding-right: 3vw; }
.svc__intro .lead { margin-bottom: 1rem; }
.svc__hint { display: flex; align-items: center; gap: 14px; margin-top: 2.2rem; font: 500 .72rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.svc__hint .on-touch { display: none; }
@media (max-width: 899px), (max-aspect-ratio: 11/10) { .svc__hint .on-pin { display: none; } .svc__hint .on-touch { display: inline; } }
.svc__hint i { position: relative; width: 56px; height: 1px; background: rgba(243, 237, 228, .25); overflow: hidden; }
.svc__hint i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: translateX(-100%); animation: hintSlide 2.2s var(--ease) infinite; }
@keyframes hintSlide { to { transform: translateX(100%); } }
.svc__card {
  position: relative; flex: 0 0 min(420px, 80vw); height: min(72vh, 660px); min-height: 440px;
  border-radius: 20px; overflow: hidden; isolation: isolate; scroll-snap-align: start; background: var(--ink-800);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
}
.svc__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.svc__media img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0px), 0, 0) scale(var(--zs, 1)); transition: --zs .8s; }
.svc__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 9, 10, .92) 0%, rgba(8, 9, 10, .55) 38%, rgba(8, 9, 10, 0) 66%); transition: opacity .5s; }
.svc__card::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; border: 1px solid rgba(243, 237, 228, .1); pointer-events: none; transition: border-color .5s; }
.svc__card:hover::before { border-color: rgba(244, 190, 42, .55); }
.svc__card:hover .svc__media img { --zs: 1.06; }
.svc__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 28px 30px; }
.svc__num { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 500 .74rem var(--f-mono); letter-spacing: .14em; color: var(--amber); }
.svc__num::after { content: ""; flex: 1; height: 1px; background: rgba(244, 190, 42, .35); }
.svc__body h3 { font: 500 clamp(1.5rem, 2vw, 1.85rem)/1.1 var(--f-display); letter-spacing: -.03em; margin-bottom: .45em; }
.svc__body p { margin: 0; color: #ddd5c9; font-size: .98rem; line-height: 1.55; }
.svc__cta {
  flex: 0 0 min(400px, 80vw); height: min(72vh, 660px); min-height: 440px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 32px; border-radius: 20px;
  border: 1px solid rgba(244, 190, 42, .35);
  background: radial-gradient(120% 80% at 20% 10%, rgba(244, 190, 42, .2), transparent 60%), var(--ink-850);
}
.svc__cta h3 { font: 500 clamp(1.8rem, 2.6vw, 2.4rem)/1.08 var(--f-display); letter-spacing: -.035em; margin-bottom: .5em; }
.svc__cta p:not(.eyebrow) { color: var(--text-muted); margin-bottom: 1.6rem; }
.svc__cta .btn { align-self: flex-start; }
.svc__bar { position: relative; height: 2px; margin: 40px var(--gx) 0; background: rgba(243, 237, 228, .12); overflow: hidden; }
.svc__bar i { position: absolute; inset: 0; background: var(--amber); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.svc .img-note { bottom: auto; top: 28px; }
.xp .img-note { left: var(--gx); right: auto; }
.signsx .img-note { top: 28px; bottom: auto; }

.hpin .svc { height: var(--svc-h, 300vh); }
.hpin .svc__stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr-h) + 2vh) 0 4vh; }
.hpin .svc__track { overflow: visible; scroll-snap-type: none; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.hpin .svc__card, .hpin .svc__cta { flex-basis: min(29vw, 440px); height: min(68vh, 640px); }
.hpin .svc .img-note { top: calc(var(--hdr-h) + 18px); }

/* ----- Faixa tipográfica ----- */
.band { position: relative; overflow: hidden; background: var(--ink-950); padding: 7vh 0 6vh; border-block: 1px solid var(--line); }
.band__row {
  display: flex; align-items: center; gap: 3.2vw; width: max-content; white-space: nowrap;
  font: 500 clamp(3rem, 8.6vw, 8.6rem)/1.05 var(--f-display); letter-spacing: -.055em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 237, 228, .32);
  transform: translate3d(var(--mx, 0px), 0, 0); will-change: transform;
}
.band__row span:nth-of-type(3), .band__row span:nth-of-type(7) { color: var(--amber); -webkit-text-stroke: 0; }
.band__row i { flex: none; width: .22em; height: .22em; border-radius: 50%; background: var(--amber); box-shadow: 0 0 24px rgba(244, 190, 42, .6); }
.band__row--alt {
  margin-top: 2.4vh; gap: 2.4vw; font-size: clamp(1.1rem, 2.6vw, 2.2rem); letter-spacing: -.02em;
  -webkit-text-stroke: 0; color: rgba(243, 237, 228, .5); transform: translate3d(var(--mx2, 0px), 0, 0);
}
.band__row--alt span:nth-of-type(n) { color: rgba(243, 237, 228, .5); }
.band__row--alt i { width: 6px; height: 6px; box-shadow: none; }

/* ----- Forma de atendimento: tela fixa com etapas ----- */
.flowx { position: relative; background: var(--ink-900); }
.flowx__stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.flowx__media { position: relative; overflow: hidden; background: #050506; min-height: 60vh; }
.flowx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 calc((1 - var(--k, 1)) * 100%)); transform: scale(calc(1.14 - var(--k, 1) * .14)); }
.flowx__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 14, 0) 55%, rgba(19, 21, 24, .9) 100%), linear-gradient(0deg, rgba(11, 12, 14, .55), transparent 40%); pointer-events: none; }
.flowx__big {
  position: absolute; left: var(--gx); bottom: 5vh; z-index: 2;
  font: 200 clamp(7rem, 17vw, 16rem)/.8 var(--f-display); letter-spacing: -.08em; color: rgba(243, 237, 228, .92);
  text-shadow: 0 10px 50px rgba(0, 0, 0, .45);
}
.flowx .img-note { left: var(--gx); right: auto; top: calc(var(--hdr-h) + 18px); bottom: auto; }
.flowx__content { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr-h) + 5vh) var(--gx) 7vh 5vw; }
.flowx__steps { list-style: none; display: grid; margin-top: 3.5vh; }
.flowx__steps li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); transition: opacity .5s var(--ease); }
.flowx__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(244, 190, 42, .55); color: var(--amber); font: 500 .76rem var(--f-mono); transition: background-color .4s, color .4s, box-shadow .4s; }
.flowx__steps h3 { font: 600 1.24rem/1.3 var(--f-display); letter-spacing: -.02em; margin-top: 8px; }
.flowx__steps p { margin: .45em 0 0; color: var(--text-muted); font-size: 1rem; }
.flowx__bar { position: relative; height: 2px; margin-top: 3vh; background: rgba(243, 237, 228, .12); overflow: hidden; }
.flowx__bar i { position: absolute; inset: 0; background: var(--amber); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }

.fx .flowx { height: 360vh; }
.fx .flowx__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.fx .flowx__steps li { opacity: .38; }
.fx .flowx__steps li.is-done { opacity: .62; }
.fx .flowx__steps li.is-active { opacity: 1; }
.fx .flowx__steps li.is-active .flowx__n { background: var(--amber); color: var(--ink-950); box-shadow: 0 0 0 8px rgba(244, 190, 42, .14); }
.fx .flowx__steps p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .45s var(--ease); }
.fx .flowx__steps li.is-active p { max-height: 7em; opacity: 1; }

/* ----- Sinais: imagem em tela cheia ----- */
.signsx { position: relative; overflow: hidden; background: var(--ink-950); padding: clamp(110px, 14vw, 190px) 0 clamp(90px, 11vw, 150px); }
.signsx__bg { position: absolute; inset: -10% 0; }
.signsx__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; transform: translate3d(0, calc(var(--pp, 0) * -7%), 0) scale(1.06); }
.signsx__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 14, .96) 0%, rgba(11, 12, 14, .86) 42%, rgba(11, 12, 14, .25) 78%, rgba(11, 12, 14, .4) 100%), linear-gradient(0deg, rgba(11, 12, 14, .85), transparent 35%); }
.signsx__inner { position: relative; }
.signsx__head { max-width: 680px; }
.signsx__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); column-gap: 44px; margin: 6vh 0 5vh; }
.signsx__list li { display: grid; grid-template-columns: 46px 1fr; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); font-size: 1.04rem; }
.signsx__n { font: 500 .74rem var(--f-mono); letter-spacing: .1em; color: var(--amber); }
.signsx__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; }
.signsx .signs__note { margin: 0; max-width: 34em; font: 400 .8rem/1.55 var(--f-mono); color: var(--text-muted); }

/* ----- Perguntas frequentes ----- */
.faqx { position: relative; background: var(--ink-900); padding: clamp(100px, 13vw, 170px) 0; }
.faqx__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faqx__aside { position: sticky; top: calc(var(--hdr-h) + 40px); }
.faqx__img { position: relative; margin: 2.4rem 0 0; max-width: 420px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; }
.faqx__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.faqx__img:hover img { transform: scale(1.04); }
.faqx__img .img-note { right: 14px; bottom: 14px; }
.faqx__list { counter-reset: q; }
.faqx__list details { border-top: 1px solid var(--line); }
.faqx__list details:last-child { border-bottom: 1px solid var(--line); }
.faqx__list summary { display: flex; align-items: baseline; gap: 20px; padding: 28px 52px 28px 0; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.faqx__list summary::before { counter-increment: q; content: "0" counter(q); flex: none; font: 500 .74rem var(--f-mono); letter-spacing: .1em; color: var(--amber); }
.faqx__list summary:hover { color: var(--amber); }
.faqx__list details > div { color: var(--text-muted); padding-left: 44px; }
.faqx__list a { color: var(--text); }

/* ----- Contato: vídeo em loop e formulário em vidro ----- */
.contact { min-height: 100vh; display: flex; align-items: center; padding: clamp(110px, 13vw, 170px) 0; }
.contact__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.contact__video.is-playing { opacity: 1; }
.contact .contact__bg img { opacity: .95; }
.contact .contact__bg::after { background: linear-gradient(90deg, rgba(11, 12, 14, .93) 18%, rgba(11, 12, 14, .6) 52%, rgba(11, 12, 14, .3) 100%), linear-gradient(0deg, rgba(11, 12, 14, .7), transparent 45%); }
/* fundo isolado em camada própria; conteúdo sempre acima */
.contact__bg { z-index: 0; }
.contact__bg::after { z-index: 1; }
.contact .contact__grid { z-index: 2; }
.contact .img-note { left: var(--gx); right: auto; }
.form--glass {
  background: rgba(17, 19, 22, .58); color: var(--text); --focus: var(--amber);
  border: 1px solid rgba(243, 237, 228, .14);
  backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .9);
}
.form--glass .form__info, .form--glass .form__hint { color: var(--text-muted); }
.form--glass .field input, .form--glass .field select, .form--glass .field textarea { background: rgba(243, 237, 228, .06); border-color: rgba(243, 237, 228, .2); color: var(--text); }
.form--glass .field input::placeholder { color: rgba(243, 237, 228, .38); }
.form--glass .field input:focus, .form--glass .field select:focus, .form--glass .field textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(244, 190, 42, .3); }
.form--glass select option { color: #1b1d21; }
.form--glass .field--check input { accent-color: var(--amber); }
.form--glass .btn--ghost { --b: rgba(243, 237, 228, .35); color: var(--text); }
.form--glass .btn--ghost:hover { --b: var(--text); background: rgba(243, 237, 228, .06); }
.form--glass .field [aria-invalid="true"] { border-color: #ff9a8a; box-shadow: 0 0 0 3px rgba(255, 154, 138, .18); }
.form--glass .field__error, .form--glass .form__status.is-error { color: #ff9a8a; }
.form--glass .form__status.is-ok { color: #8fe0ad; }

/* ----- Rodapé ----- */
.ftr { padding-top: clamp(90px, 11vw, 150px); }
.ftr__top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; padding-bottom: 64px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.ftr__claim { margin: 0; max-width: 15em; font: 500 clamp(2rem, 4.4vw, 4rem)/1.05 var(--f-display); letter-spacing: -.04em; text-wrap: balance; }
.ftr__claim em { font-style: normal; color: var(--amber); }
.ftr__brand img { height: 56px; }
.ftr__top-link svg { transform: rotate(180deg); }

/* ----- Ações fixas ----- */
.dock { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 10px; }
.dock .dock__wa { position: static; }
.dock__cta { box-shadow: 0 14px 34px rgba(0, 0, 0, .35); opacity: 0; transform: translate3d(0, 130%, 0); pointer-events: none; transition: transform .55s var(--ease), opacity .4s var(--ease); }
.is-past-film .dock__cta { opacity: 1; transform: none; pointer-events: auto; }
.is-at-contact .dock__cta { opacity: 0; transform: translate3d(0, 130%, 0); pointer-events: none; }

/* ----- Responsivo das seções ----- */
@media (max-width: 980px) {
  .xp__grid { grid-template-columns: 1fr; gap: 3vh; align-content: center; }
  .fx .xp__stats { height: min(30vh, 260px); }
  .xp__num { font-size: clamp(4.2rem, 21vw, 8rem); }
  .xp__intro .lead { font-size: 1rem; }
  .fx .xp__dots { bottom: 4vh; }
  .flowx__stage { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
  .flowx__media { min-height: 0; }
  .fx .flowx__stage { grid-template-rows: 38vh 1fr; }
  .flowx__media::after { background: linear-gradient(0deg, rgba(19, 21, 24, 1) 0%, rgba(19, 21, 24, 0) 45%); }
  .flowx__big { font-size: clamp(3.6rem, 17vw, 5.5rem); left: auto; right: var(--gx); bottom: auto; top: calc(var(--hdr-h) + 6px); }
  .flowx__content { padding: 2vh var(--gx) 5vh; justify-content: flex-start; }
  .flowx__steps { margin-top: 1.5vh; }
  .flowx__steps li { padding: 12px 0; grid-template-columns: 48px 1fr; }
  .flowx__steps h3 { font-size: 1.08rem; }
  .flowx .h2 { font-size: clamp(1.7rem, 6.4vw, 2.3rem); }
  .signsx__list { grid-template-columns: 1fr; }
  .signsx__veil { background: linear-gradient(0deg, rgba(11, 12, 14, .96) 0%, rgba(11, 12, 14, .85) 55%, rgba(11, 12, 14, .45) 100%); }
  .faqx__grid { grid-template-columns: 1fr; }
  .faqx__aside { position: static; }
  .faqx__img { aspect-ratio: 16 / 10; max-width: none; }
  .faqx__list details > div { padding-left: 0; }
}
@media (max-width: 640px) {
  .xp__intro .lead { display: none; }
  .fx .xp .xp__intro .h2 { font-size: clamp(1.8rem, 7.6vw, 2.4rem); }
  .svc__card, .svc__cta { min-height: 420px; height: 68vh; }
  .svc__intro { flex-basis: 76vw; }
  .contact .contact__bg::after { background: linear-gradient(0deg, rgba(11, 12, 14, .96) 28%, rgba(11, 12, 14, .6) 68%, rgba(11, 12, 14, .4) 100%); }
  .flowx .rev { display: none; }
  .dock { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .dock__cta { min-height: 52px; }
  .ftr__claim { font-size: clamp(1.8rem, 8vw, 2.6rem); }
}
@media (max-width: 980px) and (max-height: 700px) {
  .fx .flowx__steps p { font-size: .9rem; }
  .flowx__head .eyebrow { display: none; }
}
@property --zs { syntax: "<number>"; inherits: true; initial-value: 1; }

/* ----- Telas de toque (iPhone/Android): efeitos mais leves sobre o vídeo -----
   O canvas é redesenhado a cada quadro do scroll; desfoque de fundo, mesclagem e grão animado
   por cima dele obrigam o celular a recompor a tela inteira a cada quadro. */
@media (hover: none), (max-width: 900px) {
  .cine__fx::after { display: none; }
  .cine.is-live .cine__flash { mix-blend-mode: normal; background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 214, 140, .3), transparent 70%); }
  .cine.is-live .energy { filter: none; }
  .ai-chip, .skip, .rooms li, .btn--ghost, .img-note, .hdr.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ai-chip, .img-note { background: rgba(11, 12, 14, .78); }
  .skip { background: rgba(11, 12, 14, .74); }
  .rooms li { background: rgba(11, 12, 14, .82); }
  .btn--ghost { background: rgba(19, 21, 24, .62); }
  .hdr.is-solid { background: rgba(19, 21, 24, .96); }
}

/* ----- Projetos: fotos reais ----- */
.obras { position: relative; background: var(--ink-950); padding: clamp(100px, 13vw, 170px) 0; }
.obras__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.obras__grid { list-style: none; columns: 4 260px; column-gap: 16px; }
.obras__grid li { break-inside: avoid; margin-bottom: 16px; }
.obra { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--ink-800); position: relative; }
.obra img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; filter: saturate(.92); }
.obra::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(243, 237, 228, .08); transition: border-color .4s; pointer-events: none; }
.obra:hover img, .obra:focus-visible img { transform: scale(1.05); filter: none; }
.obra:hover::after { border-color: rgba(244, 190, 42, .6); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 9, 10, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.lightbox__btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(243, 237, 228, .3); background: rgba(19, 21, 24, .8); color: var(--text); font: 300 1.9rem/1 var(--f-text); cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { border-color: var(--amber); color: var(--amber); }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 20px; top: 20px; }
@media (max-width: 640px) { .obras__grid { columns: 2; column-gap: 10px; } .obras__grid li { margin-bottom: 10px; } .obra { border-radius: 12px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; } }

/* Celular em pé: título e botões da abertura ficam na parte de baixo, perto do polegar */
@media (max-aspect-ratio: 9/10) {
  .hint { display: none; }
}
