/* ==========================================================================
   Nexma Studio — folha de estilos
   Troque a identidade visual alterando as variáveis abaixo.
   ========================================================================== */
:root {
  --paper: #F5F6F8;
  --surface: #FFFFFF;
  --soft: #E9ECF1;
  --ink: #0E1116;
  --ink-rgb: 14, 17, 22;   /* mesmo tom de --ink, para linhas finas */
  --block: #0E1116; --on-block: #F5F6F8; /* blocos escuros (cena, contato, rodapé) */
  --ink-2: #171B22;
  --muted: #646B78;
  --line: rgba(14, 17, 22, .10);
  --line-dark: rgba(244, 243, 239, .12);
  --accent: #2F5BFF;
  --accent-2: #2449D6;
  --accent-rgb: 47, 91, 255; /* mesmo tom de --accent, para brilhos e sombras */
  --lime: #D4FF3F;
  --clay: #E8643A;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 10px; --r: 18px; --r-lg: 28px; --r-xl: 40px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shadow: 0 1px 2px rgba(18,18,17,.04), 0 12px 32px -12px rgba(18,18,17,.18);
  --shadow-lg: 0 2px 6px rgba(18,18,17,.05), 0 40px 80px -30px rgba(18,18,17,.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id], main [id] { scroll-margin-top: 90px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.muted { color: #9A9890; }
.mono { font-family: var(--mono); font-size: 14px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.eyebrow--lime { color: var(--lime); }
.h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }

/* ---------- Botões ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .3s, scale .2s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { scale: .96; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--xs { height: 32px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb),.7); }
.btn--accent:hover { background: var(--accent-2); box-shadow: 0 14px 36px -10px rgba(var(--accent-rgb),.85); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #2a2a27; }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.2); }
.btn--line { box-shadow: inset 0 0 0 1px currentColor; background: transparent; }
.btn--line:hover { background: rgba(127,127,127,.12); }
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; background: rgba(255,255,255,.45);
  animation: ripple .7s var(--ease) forwards;
}
.btn--ghost .ripple, .btn--line .ripple { background: rgba(var(--accent-rgb),.25); }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 36px; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: gap .4s var(--ease), border-color .3s; }
.link-arrow svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.link-arrow:hover { gap: 16px; border-color: var(--ink); }

/* ---------- Chips ---------- */
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line); background: transparent;
  transition: background .3s, color .3s, box-shadow .3s, scale .2s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.3); }
.chip:active { scale: .95; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip--dark { color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-dark); }
.chip--dark:hover { box-shadow: inset 0 0 0 1px rgba(244,243,239,.35); }
.chip--dark[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* ---------- Animações de entrada ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em .02em .12em; margin: -.02em -.02em -.12em; }
.js [data-split] .w__in { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: 0 100%; transition: transform .85s var(--ease) calc(var(--i) * 50ms + var(--d, 0s)); }
.js [data-split].is-in .w__in { transform: none; }
.hero__title .line { display: block; }

/* Ritmo de entrada: cada bloco revela seus detalhes depois do contêiner. */
.page-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 180; pointer-events: none; }
.page-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.js:not(.lite) .nav { animation: nav-arrive .8s var(--ease) both; }
@keyframes nav-arrive { from { opacity: 0; translate: 0 -18px; } to { opacity: 1; translate: 0 0; } }
.js:not(.lite) .facts li,
.js:not(.lite) .card__text > *,
.js:not(.lite) .card__art,
.js:not(.lite) .tags li,
.js:not(.lite) .step > :not(i),
.js:not(.lite) .form__fields > *,
.js:not(.lite) .footer__cols > div {
  opacity: 0; translate: 0 18px;
  transition: opacity .65s var(--ease), translate .8s var(--ease);
}
.js:not(.lite) .facts.is-in li,
.js:not(.lite) .card.is-in .card__text > *,
.js:not(.lite) .card.is-in .card__art,
.js:not(.lite) .card.is-in .tags li,
.js:not(.lite) .step.is-in > :not(i),
.js:not(.lite) .form.is-in .form__fields > *,
.js:not(.lite) .footer__cols.is-in > div { opacity: 1; translate: 0 0; }
.facts li:nth-child(2), .card__text > :nth-child(2), .step > :nth-child(3), .form__fields > :nth-child(2), .footer__cols > :nth-child(2) { transition-delay: 70ms; }
.card__text > :nth-child(3), .card__art, .step > :nth-child(4), .form__fields > :nth-child(3), .footer__cols > :nth-child(3) { transition-delay: 140ms; }
.card .tags li, .form__fields > :nth-child(4), .footer__cols > :nth-child(4) { transition-delay: 210ms; }
.form__fields > :nth-child(5) { transition-delay: 280ms; }
.form__fields > :nth-child(6) { transition-delay: 350ms; }
.js:not(.lite) .pcard.reveal { translate: 0 34px; }
.js:not(.lite) .pcard.reveal.is-in { translate: 0 0; }
.js:not(.lite) .pcard.reveal .pcard__media img { clip-path: inset(0 0 100% 0 round 24px); transition: clip-path .9s var(--ease), transform 1.2s var(--ease); }
.js:not(.lite) .pcard.reveal.is-in .pcard__media img { clip-path: inset(0 round 24px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 160; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); transition: opacity .3s, translate .5s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   Navegação
   ========================================================================== */
.nav { position: fixed; inset: 14px 0 auto; z-index: 100; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-160%); }
.nav__inner {
  width: min(100% - 28px, 1240px); margin-inline: auto; height: 60px; padding: 0 8px 0 20px;
  display: flex; align-items: center; gap: 24px; border-radius: 999px;
  background: rgba(244,243,239,.6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px transparent; transition: background .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__inner { background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(var(--ink-rgb),.3); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.04em; }
.brand__mark { position: relative; width: 22px; height: 22px; perspective: 80px; }
.brand__mark i { position: absolute; inset: 0; border-radius: 6px; background: var(--ink); transition: transform .6s var(--ease); }
.brand__mark i + i { background: var(--accent); transform: translate(5px, -5px) scale(.62); border-radius: 4px; }
.brand:hover .brand__mark i:first-child { transform: rotateY(180deg); }
.brand:hover .brand__mark i + i { transform: translate(-5px, 5px) scale(.62) rotate(90deg); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--ink); background: rgba(var(--ink-rgb),.05); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; margin-left: auto; transition: scale .2s; }
.burger:active { scale: .92; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--paper); border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gutter) 36px;
  clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu-open .nav__inner { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .brand { color: var(--paper); }
.menu-open .brand__mark i:first-child { background: var(--paper); }
.menu-open .burger { background: var(--paper); }
.menu-open .burger span { background: var(--ink); }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-dark);
  font-size: clamp(34px, 9vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1;
  opacity: 0; translate: 0 30px; transition: opacity .6s, translate .8s var(--ease);
}
.menu__links small { font-family: var(--mono); font-size: 12px; color: var(--lime); letter-spacing: 0; }
.menu.is-open .menu__links a { opacity: 1; translate: 0 0; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .2s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .25s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .3s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .35s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: .4s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(116px, 15vh, 160px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 62%, rgba(var(--accent-rgb),.10), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 96px;
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  opacity: .6;
}
.hero__copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.hero__title { font-size: clamp(46px, 8vw, 112px); line-height: .94; letter-spacing: -.055em; font-weight: 600; }
.hero__lead { max-width: 560px; margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.stage { position: relative; height: clamp(360px, 50vw, 640px); margin-top: clamp(-40px, -2.5vw, -10px); perspective: 1600px; perspective-origin: 50% 40%; }
.stage__canvas { position: absolute; inset: -10% 0; width: 100%; height: 120%; pointer-events: none; }
.rig {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -10deg)) translate3d(0, var(--ty, 0px), var(--tz, 0px)) scale(var(--sc, 1));
  opacity: var(--op, 1); will-change: transform;
}
.plane { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.plane > * { box-shadow: var(--shadow-lg); }
.plane--main { width: min(560px, 62vw); aspect-ratio: 16 / 10.4; transform: translate(-50%, -50%) translateZ(0); }
.plane--back { width: min(420px, 46vw); aspect-ratio: 16 / 11; transform: translate(-118%, -78%) translateZ(-240px) rotateY(16deg); }
.plane--side { width: min(300px, 34vw); aspect-ratio: 4 / 3.4; transform: translate(42%, -30%) translateZ(-150px) rotateY(-18deg); }
.plane--front { width: min(240px, 34vw); transform: translate(-150%, 30%) translateZ(170px) rotateY(10deg); }
.float {
  position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px 10px 10px; border-radius: 16px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.25; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float small { display: block; color: var(--muted); font-size: 11.5px; }
.float__ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 14px; }
.float__ico--lime { background: var(--lime); color: var(--ink); }
.float--a { --t: translate(-170%, -210%) translateZ(260px); transform: var(--t); }
.float--b { --t: translate(78%, 150%) translateZ(220px); transform: var(--t); animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: var(--t) translateY(0); } 50% { transform: var(--t) translateY(-12px); } }
.orbit { position: absolute; left: 50%; top: 50%; width: min(880px, 110vw); aspect-ratio: 1; margin: calc(min(880px, 110vw) / -2) 0 0 calc(min(880px, 110vw) / -2); transform: rotateX(76deg); transform-style: preserve-3d; pointer-events: none; }
.orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb),.35); animation: spin 40s linear infinite; }
.orbit span::after { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb),.15); }

/* Mini sites (mockups em HTML/CSS) */
.mock { width: 100%; height: 100%; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.mock__top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 11px; }
.mock__top b { margin-right: auto; letter-spacing: -.02em; }
.mock__top i { width: 22px; height: 3px; border-radius: 2px; background: currentColor; opacity: .3; }
.mock__body { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; padding: 4px 16px 0; }
.mock__copy { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-bottom: 16px; }
.mock__copy strong { font-size: clamp(16px, 2.6vw, 30px); line-height: .98; letter-spacing: -.05em; font-weight: 600; }
.mock__pill { align-self: flex-start; font-size: 9px; padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--paper); }
.mock__pill--clay { background: var(--clay); color: var(--ink); }
.mock--light { background: #EEE8DE; color: #1D1B17; }
.mock--dark { background: #17130F; color: #F3E9DC; }
.mock--violet { background: var(--accent); color: #fff; }
.mock__arch { position: relative; align-self: end; height: 88%; border-radius: 999px 999px 0 0; background: linear-gradient(135deg, #D8CCB8, #B9A88F); overflow: hidden; }
.mock__arch span { position: absolute; inset: 14% 16% 0; border-radius: 999px 999px 0 0; background: linear-gradient(#FFF8EA, #E7D9C0); }
.mock__arch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: #8F806A; z-index: 1; }
.mock__pan { position: relative; align-self: center; justify-self: center; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3A332E, #1B1714); box-shadow: 0 0 60px rgba(232,100,58,.3); }
.mock__pan span { position: absolute; inset: 26% 18%; border-radius: 40%; background: linear-gradient(135deg, #B4532F, #7A2C17); transform: rotate(-18deg); }
.mock__bars { flex: 1; display: flex; align-items: flex-end; gap: 8%; padding: 10px 16px 18px; }
.mock__bars i { flex: 1; height: var(--h); border-radius: 6px; background: rgba(255,255,255,.3); }
.mock__bars i:last-child { background: var(--lime); }
.metric { background: var(--surface); border-radius: 18px; padding: 16px 18px; }
.metric__label { font-size: 11px; color: var(--muted); }
.metric strong { display: block; font-size: 34px; letter-spacing: -.05em; line-height: 1.1; margin: 2px 0 10px; }
.metric__spark i:last-child { background: var(--accent); }

.hero__bar {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 560px; margin: -40px auto 0; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.hero__status { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.hero__status i { width: 8px; height: 8px; border-radius: 50%; background: #2DBE6C; box-shadow: 0 0 0 0 rgba(45,190,108,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(45,190,108,0); } 100% { box-shadow: 0 0 0 0 rgba(45,190,108,0); } }

/* ==========================================================================
   Números
   ========================================================================== */

/* ==========================================================================
   Sobre / manifesto
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 2.4fr; gap: 40px; padding: clamp(100px, 13vw, 180px) 0; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 260px; }
.facts li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts span { color: var(--muted); }
.manifesto { font-size: clamp(28px, 3.5vw, 50px); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; }
.manifesto .mw { opacity: .16; transition: opacity .4s; }
.manifesto .mw.on { opacity: 1; }

/* ==========================================================================
   Cena escura (sticky + câmera)
   ========================================================================== */
.scene {
  --p: 0; --e: 0;
  position: relative; height: 260vh; background: var(--ink); color: var(--paper);
  clip-path: inset(0 calc((1 - var(--e)) * 5%) round calc((1 - var(--e)) * 48px));
}
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(24px, 4vh, 48px); overflow: hidden; padding: 80px 0 40px; }
.scene__sticky::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 70%, rgba(var(--accent-rgb),.28), transparent 70%); opacity: calc(.4 + var(--p) * .6); pointer-events: none; }
.scene__head { position: relative; text-align: center; transform: translateY(calc(var(--p) * -30px)); opacity: calc(1.4 - var(--p)); }
.scene__head .h2 { font-size: clamp(38px, 5.4vw, 76px); }
.scene__head .muted { color: rgba(244,243,239,.4); }
.scene__lead { max-width: 520px; margin: 18px auto 0; color: rgba(244,243,239,.62); font-size: 16px; }
.device { position: relative; width: min(960px, 90vw); perspective: 1400px; }
.device__frame {
  border-radius: 18px; background: #1E1E1C; border: 1px solid rgba(255,255,255,.08); overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 34deg)) scale(calc(.74 + var(--p) * .26)) translateY(calc((1 - var(--p)) * 40px));
}
.device__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.device__bar span { margin-left: 14px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); padding: 4px 12px; border-radius: 6px; }
.device__screen { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #EEE8DE; color: #1D1B17; aspect-ratio: 16 / 7.6; max-height: 46vh; width: 100%; }
.device__copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 0 8%; }
.device__copy small { font-size: 12px; color: #6B6458; }
.device__copy strong { font-size: clamp(28px, 5vw, 64px); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.device__copy .mock__pill { font-size: 12px; padding: 8px 14px; }
.device__art { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 6% 12% 0; overflow: hidden; }
.mock__arch--lg { width: 100%; height: 92%; transform: scale(calc(1.25 - var(--p) * .25)); transform-origin: 50% 100%; }
.device__metrics { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 10px; justify-content: flex-end; }
.pill-metric {
  background: rgba(var(--ink-rgb),.88); color: var(--paper); border-radius: 12px; padding: 8px 14px; min-width: 96px;
  opacity: clamp(0, (var(--p) - var(--o)) * 6, 1); transform: translateY(calc(clamp(0, 1 - (var(--p) - var(--o)) * 6, 1) * 16px));
}
.pill-metric small { display: block; font-family: var(--mono); font-size: 10px; color: rgba(244,243,239,.55); text-transform: uppercase; }
.pill-metric b { font-size: 20px; letter-spacing: -.03em; color: var(--lime); }

/* ==========================================================================
   Cabeçalhos de seção
   ========================================================================== */
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; margin-bottom: 56px; }
.section-head__text { color: var(--muted); max-width: 400px; justify-self: end; }

/* ==========================================================================
   Serviços (bento)
   ========================================================================== */
.services { padding: clamp(100px, 13vw, 170px) 0 clamp(80px, 10vw, 130px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  --rx: 0deg; --ry: 0deg;
  position: relative; grid-column: span 5; min-height: 440px; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  display: flex; flex-direction: column; transform-style: preserve-3d;
}
.card--wide { grid-column: span 7; }
.card__kicker { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.035em; line-height: 1.1; font-weight: 600; margin: 12px 0 10px; max-width: 360px; }
.card p { color: var(--muted); font-size: 15px; max-width: 380px; }
.card__art { position: relative; flex: 1; min-height: 170px; margin: 20px 0; transform-style: preserve-3d; perspective: 900px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: 99px; background: var(--paper); color: var(--muted); }

/* Tilt + brilho (compartilhado) */
[data-tilt] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); transition: transform .8s var(--ease), box-shadow .5s, opacity .7s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }
[data-tilt].is-tilting { --s: 1.012; transition: transform .15s linear, box-shadow .5s, opacity .7s, translate .8s var(--ease); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 45%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; }
[data-tilt].is-tilting::after { opacity: 1; }

/* Arte: janelas empilhadas */
.art-windows .win { position: absolute; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); transition: transform .9s var(--ease); }
.win--1 { left: 6%; top: 10%; width: 58%; height: 62%; background: var(--soft); transform: translateZ(0); display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.win--1 i { height: 6px; border-radius: 3px; background: rgba(var(--ink-rgb),.12); width: 80%; }
.win--1 i:first-child { width: 40%; height: 10px; background: var(--ink); }
.win--2 { left: 30%; top: 26%; width: 50%; height: 64%; transform: translateZ(40px); padding: 10px; }
.win--2 span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(135deg, #D8CCB8, #8F806A); }
.win--3 { right: 4%; top: 6%; width: 34%; height: 34%; transform: translateZ(80px); background: var(--ink); padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.win--3 b { height: 6px; border-radius: 3px; background: var(--lime); width: 70%; }
.win--3 b + b { background: rgba(255,255,255,.25); width: 50%; }
.card:hover .win--1 { transform: translateZ(-20px) translateX(-10px); }
.card:hover .win--2 { transform: translateZ(70px) translateY(-6px); }
.card:hover .win--3 { transform: translateZ(130px) translate(8px, -8px) rotate(3deg); }

/* Arte: amostras de cor em leque */
.art-swatch { display: grid; place-items: center; }
.art-swatch i { position: absolute; width: 46%; aspect-ratio: 3 / 4; border-radius: 14px; background: var(--c); box-shadow: var(--shadow); transform: rotate(calc((var(--n) - 1) * 8deg)) translateZ(calc(var(--n) * 20px)); transition: transform .9s var(--ease); }
.card:hover .art-swatch i { transform: translateX(calc((var(--n) - 1) * 46%)) rotate(calc((var(--n) - 1) * 12deg)) translateZ(calc(var(--n) * 40px)) rotateY(calc((var(--n) - 1) * -18deg)); }

/* Arte: loja */
.art-shop { display: grid; place-items: center; }
.shop { width: 54%; padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .9s var(--ease); }
.shop__img { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #F4C7B5, #E8643A); }
.shop b { height: 6px; width: 70%; border-radius: 3px; background: rgba(var(--ink-rgb),.15); }
.shop em { font-style: normal; font-size: 11px; font-weight: 600; text-align: center; padding: 7px; border-radius: 99px; background: var(--ink); color: var(--paper); }
.shop__tag { position: absolute; right: 12%; top: 14%; padding: 8px 12px; border-radius: 12px; background: var(--lime); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transform: translateZ(60px) rotate(6deg); transition: transform .9s var(--ease); }
.card:hover .shop { transform: translateZ(30px) rotateY(-10deg); }
.card:hover .shop__tag { transform: translateZ(120px) rotate(-4deg) scale(1.08); }

/* Arte: fluxo de automação */
.art-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow__path { fill: none; stroke: rgba(var(--ink-rgb),.18); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow__pulse { fill: var(--accent); }
.flow__pulse--b { fill: var(--clay); }
.node { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); white-space: nowrap; transition: transform .8s var(--ease); }
.node--hub { background: var(--ink); color: var(--lime); padding: 12px 18px; }
.card:hover .node { transform: translateZ(50px); }
.card:hover .node--hub { transform: translateZ(90px) scale(1.06); }

/* ==========================================================================
   Projetos (galeria)
   ========================================================================== */
.work { padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 8vw, 110px); background: var(--soft); }
.work__controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.18); display: grid; place-items: center; transition: background .3s, color .3s, scale .2s, opacity .3s; }
.arrow svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: var(--ink); color: var(--paper); }
.arrow:active { scale: .9; }
.arrow:disabled { opacity: .3; pointer-events: none; }
.track {
  --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 10px var(--pad) 30px; scroll-padding-inline: var(--pad); scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; perspective: 1400px;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.track.is-dragging .pcard__media { pointer-events: none; }
.pcard { flex: 0 0 auto; width: clamp(270px, 32vw, 440px); scroll-snap-align: start; }
.pcard[hidden] { display: none; }
.pcard.is-pop { animation: pop .8s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.pcard__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); text-align: left; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); user-select: none; -webkit-user-drag: none; }
.pcard__media:hover img { transform: scale(1.1); }
.pcard__view { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; opacity: 0; translate: 0 10px; transition: opacity .4s, translate .5s var(--ease); }
.pcard__media:hover .pcard__view, .pcard__media:focus-visible .pcard__view { opacity: 1; translate: 0 0; }
.pcard__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 4px 0; }
.pcard__meta h3 { font-size: 20px; letter-spacing: -.03em; font-weight: 600; }
.pcard__meta p { color: var(--muted); font-size: 13px; }
.track__progress { height: 2px; background: rgba(var(--ink-rgb),.1); border-radius: 2px; overflow: hidden; }
.track__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--tp, .2)); transition: transform .3s; }

/* ==========================================================================
   Diferenciais (cubo 3D)
   ========================================================================== */
.diff { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 100px); padding: clamp(100px, 13vw, 170px) 0; }
.diff__visual { position: relative; }
.cube-stage { position: sticky; top: 18vh; height: 64vh; min-height: 380px; display: grid; place-items: center; perspective: 1100px; }
.cube {
  --size: clamp(170px, 20vw, 260px);
  position: relative; width: var(--size); height: var(--size); transform-style: preserve-3d;
  transform: rotateX(var(--crx, -18deg)) rotateY(var(--cry, 32deg));
}
.cube__face {
  position: absolute; inset: 0; border-radius: 22px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.04em; color: var(--paper);
  background: linear-gradient(145deg, #2A2A27, var(--ink)); border: 1px solid rgba(255,255,255,.08);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.cube__face small { font-family: var(--mono); font-size: 11px; color: var(--lime); letter-spacing: 0; margin-bottom: auto; }
.cube__face--front { transform: translateZ(calc(var(--size) / 2)); }
.cube__face--right { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); background: linear-gradient(145deg, var(--accent), var(--accent-2)); }
.cube__face--back { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); background: linear-gradient(145deg, #E2FF7A, #C2EE2E); color: var(--ink); }
.cube__face--back small { color: var(--ink); }
.cube__face--left { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); background: linear-gradient(145deg, #F0EEE8, #DAD7CF); color: var(--ink); }
.cube__face--left small { color: var(--accent); }
.cube__face--top { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); background: linear-gradient(145deg, #F1825C, var(--clay)); color: var(--ink); }
.cube__face--top small { color: var(--ink); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); justify-content: center; align-items: center; }
.cube-shadow { position: absolute; bottom: 8%; left: 50%; width: 46%; height: 30px; translate: -50% 0; border-radius: 50%; background: radial-gradient(rgba(var(--ink-rgb),.25), transparent 70%); filter: blur(6px); }
.diff__list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.diff__item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: opacity .5s; }
.diff__item > span { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 6px; }
.diff__item h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.03em; font-weight: 600; margin-bottom: 8px; }
.diff__item p { color: var(--muted); max-width: 460px; }
html:not(.lite) .diff__item.reveal.is-in:not(.is-active) { opacity: .4; }
.diff__item.is-active > span { color: var(--accent); }

/* ==========================================================================
   Processo
   ========================================================================== */
.process { --p: 0; padding: 0 0 clamp(100px, 12vw, 160px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; }
.steps__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.step { position: relative; }
.step > i { position: absolute; top: -34px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb),.3); transition: background .4s, box-shadow .4s; }
.step.is-done > i { background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb),.15); }
.step small { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.step h3 { font-size: 22px; letter-spacing: -.03em; font-weight: 600; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step__tag { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* ==========================================================================
   Faixa animada
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin-bottom: clamp(60px, 8vw, 100px); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -.05em; }
.marquee i { font-style: normal; color: var(--accent); font-size: 28px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact-wrap { padding-bottom: clamp(60px, 8vw, 100px); }
.contact {
  --e: 1;
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  padding: clamp(36px, 6vw, 80px); border-radius: var(--r-xl); background: var(--ink); color: var(--paper); overflow: hidden;
  transform: scale(calc(.92 + var(--e) * .08)); transform-origin: 50% 100%;
}
.contact::before { content: ""; position: absolute; width: 700px; aspect-ratio: 1; right: -260px; top: -320px; border-radius: 50%; background: radial-gradient(rgba(var(--accent-rgb),.45), transparent 65%); pointer-events: none; }
.contact__title { font-size: clamp(44px, 6vw, 88px); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.contact__lead { color: rgba(244,243,239,.62); margin-top: 24px; max-width: 400px; }
.form { position: relative; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__fields { display: flex; flex-direction: column; gap: 14px; }
.form__fields[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; color: rgba(244,243,239,.6); padding: 0; }
.field small { opacity: .6; }
.field legend { margin-bottom: 8px; }
.form__consent { display: flex; align-items: flex-start; gap: 10px; color: #86868b; font-size: 13px; line-height: 1.45; cursor: pointer; }
.form__consent-input { width: 18px !important; height: 18px; min-height: 18px !important; flex: 0 0 18px; margin: 1px 0 0; padding: 0 !important; accent-color: var(--accent); }
.form__consent-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04);
  color: var(--paper); outline: none; transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical;
}
.field select { color-scheme: dark; cursor: pointer; }
.field select option { color: var(--paper); background: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,243,239,.35); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.2); }
.field__error { display: none; font-style: normal; font-size: 12.5px; color: #FF9B7A; }
.field.is-invalid :is(input, select, textarea) { border-color: #FF7A55; animation: shake .45s; }
.field.is-invalid .field__error { display: block; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.form__submit { margin-top: 6px; height: 56px; }
.form__done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0; animation: pop .8s var(--ease) both; }
.form__done[hidden] { display: none; }
.form__done h3 { font-size: 34px; letter-spacing: -.04em; font-weight: 600; }
.form__done p { color: rgba(244,243,239,.62); max-width: 380px; }
.prepared-message { width: 100%; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(255,255,255,.04); color: var(--paper); resize: vertical; }
.prepared-message:focus { outline: 1px solid var(--accent); outline-offset: 2px; }
.form__check { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.form__check svg { width: 26px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form__send { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.link-btn { font-size: 14px; color: rgba(244,243,239,.6); text-decoration: underline; text-underline-offset: 4px; margin-top: 4px; }
.link-btn:hover { color: var(--paper); }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer { background: var(--ink); color: var(--paper); padding-top: 80px; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__cols b { display: block; font-size: 14px; margin-bottom: 12px; }
.footer__cols a { display: block; font-size: 14px; color: rgba(244,243,239,.55); padding: 3px 0; transition: color .3s, translate .4s var(--ease); }
.footer__cols span { display: block; font-size: 14px; color: rgba(244,243,239,.55); padding: 3px 0; }
.footer__cols a:hover { color: var(--paper); translate: 4px 0; }
.footer__about p { font-size: 14px; color: rgba(244,243,239,.55); max-width: 280px; }
.wordmark { display: flex; justify-content: space-between; font-size: clamp(120px, 27vw, 390px); font-weight: 700; letter-spacing: -.07em; line-height: .8; margin: 0 -.02em; padding-bottom: 20px; user-select: none; }
.wordmark span { display: inline-block; transition: transform 1.2s var(--ease), color .4s; transition-delay: calc(var(--i, 0) * 60ms); }
.js .wordmark span { transform: translateY(60%); }
.js .wordmark.is-in span { transform: none; }
.wordmark span:hover { color: var(--lime); transform: translateY(-4%) !important; transition-delay: 0s; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(244,243,239,.5); }
.to-top:hover { color: var(--paper); }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(244,243,239,.7); }
.motion-toggle__track { width: 34px; height: 20px; border-radius: 99px; background: var(--accent); position: relative; transition: background .3s; }
.motion-toggle__track i { position: absolute; top: 3px; left: 17px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .3s var(--ease); }
.lite .motion-toggle__track { background: rgba(255,255,255,.2); }
.lite .motion-toggle__track i { left: 3px; }

/* ==========================================================================
   Modal de projeto
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(var(--ink-rgb),.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s; }
.modal__panel {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); width: min(1100px, 100%); height: min(86vh, 760px);
  background: var(--paper); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .5s, transform .7s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__media { height: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; }
.modal__body { position: relative; padding: clamp(28px, 4vw, 56px); overflow-y: auto; display: flex; flex-direction: column; }
.modal__body > * { transition: opacity .5s var(--ease), translate .6s var(--ease); }
.modal:not(.is-open) .modal__body > :not(.modal__close) { opacity: 0; translate: 0 16px; }
.modal.is-open .modal__body > :nth-child(2) { transition-delay: .2s; }
.modal.is-open .modal__body > :nth-child(3) { transition-delay: .26s; }
.modal.is-open .modal__body > :nth-child(4) { transition-delay: .32s; }
.modal.is-open .modal__body > :nth-child(5) { transition-delay: .38s; }
.modal.is-open .modal__body > :nth-child(6) { transition-delay: .44s; }
.modal.is-open .modal__body > :nth-child(7) { transition-delay: .5s; }
.modal__close { position: absolute; right: 20px; top: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: rotate .5s var(--ease), background .3s; }
.modal__close:hover { rotate: 90deg; background: var(--soft); }
.modal__close svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.modal__title { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.05em; line-height: 1; font-weight: 600; margin-bottom: 18px; padding-right: 50px; }
.modal__text { color: var(--muted); max-width: 460px; }
.modal__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.modal__list li { font-size: 13px; padding: 7px 12px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.modal__nav { display: flex; gap: 8px; margin-top: auto; padding-top: 32px; }
.modal__media img.is-swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: scale(1.06); } }

/* ==========================================================================
   Interações extras: aviso de movimento, paleta, cubo, modelo 3D
   ========================================================================== */
.nudge { position: fixed; left: 16px; bottom: 16px; z-index: 140; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 22px; background: var(--ink); color: var(--paper); font-size: 14px; text-align: left; box-shadow: var(--shadow-lg); }
.nudge[hidden] { display: none; }
.nudge b { color: var(--lime); margin-left: 4px; }

/* Mockups do hero abrem o estudo correspondente */
.plane { transition: translate .6s var(--ease); }
.plane:has([data-open]) { cursor: pointer; }
.plane:has([data-open]):hover { translate: 0 -10px; }
.mock__bars i { transform-origin: 50% 100%; animation: bar 2.8s var(--ease-io) infinite alternate; }
.mock__bars i:nth-child(even) { animation-delay: -1.4s; }
@keyframes bar { to { transform: scaleY(.72); } }

/* Paleta: o leque de amostras troca as cores do site inteiro */
.art-swatch { cursor: pointer; }
.art-swatch i { width: auto; height: 94%; transition: transform .9s var(--ease), background-color .5s; } /* altura manda: o leque não invade o texto */
.art-swatch:active i { scale: .96; }


/* Faixa e galeria reagem à velocidade (valores vêm do loop em main.js) */
.js:not(.lite) .marquee__track { animation: none; will-change: transform; }
.js:not(.lite) .pcard { transform: rotateY(calc(var(--tv, 0) * 1deg)); }

/* Profundidade: --dv (-1 a 1) e --da (0 a 1) vêm do loop em main.js */
.js:not(.lite) [data-depth] {
  transform: perspective(1300px) translate3d(0, 0, calc(var(--da, 0) * -150px)) rotateX(calc(var(--dv, 0) * -7deg));
  will-change: transform;
}
/* Camadas do hero em planos diferentes, guiadas pelo ponteiro (--mx, --my) */
.js:not(.lite) .hero__copy { transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px), 0); }
.js:not(.lite) .hero::before { transform: translate3d(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 12px), 0) scale(1.05); }

/* MacBook 3D: quando o WebGL carrega (.has-gl), a prévia em CSS sai e ficam só as três medidas */
.scene__gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); }
html:not(.lite) .scene.has-gl .scene__gl { opacity: 1; }
.lite .scene__gl { display: none; }
.scene__cta { position: absolute; z-index: 3; border-radius: 999px; color: transparent; font-size: 0; cursor: pointer; }
.scene__cta[hidden], .lite .scene__cta { display: none; }
html:not(.lite) .scene.has-gl .scene__sticky { justify-content: space-between; }
html:not(.lite) .scene.has-gl .scene__head { opacity: calc(1 - var(--p) * 3.2); }
html:not(.lite) .scene.has-gl .device__frame { background: none; border: 0; box-shadow: none; transform: none; overflow: visible; }
html:not(.lite) .scene.has-gl .device__bar,
html:not(.lite) .scene.has-gl .device__copy,
html:not(.lite) .scene.has-gl .device__art { display: none; }
html:not(.lite) .scene.has-gl .device__screen { display: block; background: none; aspect-ratio: auto; max-height: none; }
html:not(.lite) .scene.has-gl .device__metrics { position: static; justify-content: center; }

/* Cubo: arraste para girar */
.cube-stage { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cube-stage:active { cursor: grabbing; }


/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .about { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head__text { justify-self: start; }
  .card, .card--wide { grid-column: span 12; min-height: 400px; }
  .diff { grid-template-columns: 1fr; }
  .cube-stage { position: relative; top: 0; height: 340px; min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .steps__line { display: none; }
  .contact { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: span 2; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { grid-template-columns: 1fr; height: auto; max-height: 92vh; overflow-y: auto; border-radius: 28px 28px 0 0; }
  .modal__media { height: auto; width: 100%; max-height: 52vh; aspect-ratio: auto; }
  .modal__media img { aspect-ratio: 4 / 5; height: auto; }
  .modal__body { overflow: visible; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .burger { margin-left: auto; }
  .hero__lead { font-size: 16px; }
  .stage { height: 400px; perspective: 1000px; margin-top: 36px; }
  .plane--main { width: 82vw; }
  .plane--back { width: 58vw; transform: translate(-80%, -100%) translateZ(-240px) rotateY(16deg); }
  .plane--side { width: 42vw; transform: translate(20%, -10%) translateZ(-160px) rotateY(-18deg); }
  .plane--front { width: 42vw; transform: translate(-82%, 48%) translateZ(80px) rotateY(10deg); }
  .float--a { --t: translate(-30%, -260%) translateZ(90px); }
  .float--b { --t: translate(-20%, 230%) translateZ(110px); }
  .mock__copy strong { font-size: 18px; }
  .hero__bar { border-radius: 24px; justify-content: center; text-align: center; padding: 14px; margin-top: -10px; }
  .scene { height: 220vh; }
  .device__screen { grid-template-columns: 1fr; aspect-ratio: 4 / 4.6; max-height: 54vh; }
  .device__art { display: none; }
  .device__metrics { justify-content: flex-start; flex-wrap: wrap; }
  .pill-metric { min-width: 0; padding: 6px 10px; }
  .pill-metric b { font-size: 16px; }
  .card { padding: 22px; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .modal__nav .btn { flex: 1; }
}

/* ==========================================================================
   Modo leve: preferências de movimento reduzido, aparelhos modestos ou
   escolha manual no rodapé. Mantém o layout e remove o movimento pesado.
   ========================================================================== */
.lite *, .lite *::before, .lite *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
.lite { scroll-behavior: auto; }
.lite .reveal, .lite [data-split] .w__in, .lite .wordmark span, .lite .menu__links a { opacity: 1 !important; translate: none !important; transform: none !important; transition: none !important; }
.lite .stage__canvas, .lite .orbit { display: none; }
.lite .rig { transform: rotateX(8deg) rotateY(-10deg); }
.lite .float { animation: none; transform: var(--t); }
.lite .scene { --p: 1 !important; --e: 1 !important; height: auto; clip-path: none; }
.lite .scene__sticky { position: relative; height: auto; padding: 110px 0; }
.lite .contact { --e: 1 !important; transform: none; }
.lite .process { --p: 1 !important; }
.lite .step > i { background: var(--accent); }
.lite .marquee__track { animation: none; }
.lite [data-tilt] { transform: none !important; }
.lite .card:hover .win, .lite .card:hover .art-swatch i, .lite .card:hover .shop, .lite .card:hover .shop__tag, .lite .card:hover .node { transition: none; }
.lite .manifesto .mw { opacity: 1; }
.lite .menu { transition: none; }
.lite .flow__pulse { display: none; }
.lite .pcard.is-pop { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   CRM e integrações (cena do hero + seção)
   ========================================================================== */
.mock--paper { background: var(--surface); color: var(--ink); }
.crm { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 14px 14px; min-height: 0; }
.crm__col { display: flex; flex-direction: column; gap: 7px; padding: 9px; border-radius: 10px; background: var(--paper); min-width: 0; }
.crm__col small { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.crm__lead { display: block; padding: 8px 9px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-left: 3px solid var(--line); }
.crm__lead b { display: block; font-size: clamp(9px, 1.05vw, 12px); letter-spacing: -.02em; line-height: 1.2; }
.crm__lead em { display: block; font-style: normal; font-size: clamp(8px, .85vw, 10px); color: var(--muted); margin-top: 2px; }
.crm__lead--on { border-left-color: var(--accent); }
.crm__lead--done { border-left-color: #2BB673; }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 4px 16px 16px; }
.chat__msg { align-self: flex-start; max-width: 78%; padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: rgba(243,233,220,.12); font-size: clamp(9px, 1vw, 12px); line-height: 1.3; }
.chat__msg--out { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: var(--lime); color: var(--ink); }
.chat__tag { align-self: flex-end; font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; opacity: .55; }
.metric--flow strong { font-size: clamp(15px, 1.6vw, 20px); letter-spacing: -.03em; margin: 4px 0 2px; white-space: nowrap; }
.metric--flow strong i { font-style: normal; color: var(--accent); }

.integ__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.integ__item { padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.integ__item:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.integ__ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 12px; margin-bottom: 44px; }
.integ__item h3 { font-size: 22px; letter-spacing: -.03em; margin: 0 0 8px; }
.integ__item p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { .integ__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .integ__grid { grid-template-columns: 1fr; }
  .integ__ico { margin-bottom: 24px; }
  .crm { gap: 5px; padding: 2px 8px 10px; }
  .crm__col { padding: 6px; }
  .crm__lead { padding: 6px; }
}
.lite .integ__item:hover { transform: none; }

/* ==========================================================================
   Barra de navegação em vidro líquido
   ========================================================================== */
.nav__inner, .nav.is-scrolled .nav__inner {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.16));
  backdrop-filter: blur(16px) saturate(2) brightness(1.06); -webkit-backdrop-filter: blur(16px) saturate(2) brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.4),
    inset 1px 0 0 rgba(255,255,255,.45), inset -1px 0 0 rgba(255,255,255,.45),
    inset 0 -10px 18px -12px rgba(var(--ink-rgb),.12), inset 0 10px 18px -10px rgba(255,255,255,.7),
    0 0 0 1px rgba(var(--ink-rgb),.05), 0 14px 36px -16px rgba(var(--ink-rgb),.3);
}
/* brilho especular que acompanha a curva da borda */
.nav__inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -30%, rgba(255,255,255,.75), transparent 55%),
    radial-gradient(90% 80% at 92% 130%, rgba(255,255,255,.45), transparent 60%);
  opacity: .8;
}
.nav__links { position: relative; }
.nav__links a, .nav__links a:hover { background: none; z-index: 1; }
.nav__links a.is-active::after { display: none; }
.nav__lens {
  position: absolute; left: 0; top: 50%; height: 40px; margin-top: -20px; width: 0; border-radius: 999px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.4));
  box-shadow:
    inset 0 1px 0 #fff, inset 0 -1px 1px rgba(var(--ink-rgb),.08), inset 0 0 10px rgba(255,255,255,.7),
    0 0 0 .5px rgba(var(--ink-rgb),.08), 0 6px 14px -6px rgba(var(--ink-rgb),.3), 0 0 16px -2px rgba(var(--accent-rgb),.22);
  backdrop-filter: blur(4px) saturate(1.8) brightness(1.1); -webkit-backdrop-filter: blur(4px) saturate(1.8) brightness(1.1);
  transition: transform .55s cubic-bezier(.3, 1.35, .5, 1), width .45s var(--ease), opacity .3s;
}
.lite .nav__lens { transition: none; }
.menu-open .nav__inner::before { display: none; }
.menu-open .nav__inner { box-shadow: none; background: transparent; }

/* ==========================================================================
   iPhone 3D (CSS) com conversa de WhatsApp
   ========================================================================== */
.phone {
  --w: clamp(230px, 21vw, 290px); --d: 12px; --ti: #8C8A86; --ti-2: #D9D6D0;
  position: relative; width: var(--w); aspect-ratio: 9 / 19.3; transform-style: preserve-3d;
  transform: rotateX(var(--crx, 6deg)) rotateY(var(--cry, 24deg));
}
.phone__front, .phone__back, .phone__edge { position: absolute; inset: 0; border-radius: calc(var(--w) * .165); }
.phone__front {
  transform: translateZ(calc(var(--d) / 2)); padding: calc(var(--w) * .028); backface-visibility: hidden;
  background: linear-gradient(135deg, var(--ti-2), var(--ti) 30%, #5E5C59 55%, var(--ti-2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 0 0 2.5px #1a1a1a;
}
.phone__back {
  transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); backface-visibility: hidden;
  background: linear-gradient(150deg, #E4E1DB, #BDB9B2 45%, #D2CEC7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 0 0 3px var(--ti);
}
/* espessura: a mesma silhueta repetida entre a frente e o verso */
.phone__edge { background: var(--ti); transform: translateZ(0);
  box-shadow: 0 0 0 .5px var(--ti); }
.phone__edge::before, .phone__edge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #6F6D69, var(--ti-2) 12%, var(--ti) 50%, var(--ti-2) 88%, #6F6D69); }
.phone__edge::before { transform: translateZ(calc(var(--d) * .3)); }
.phone__edge::after { transform: translateZ(calc(var(--d) * -.3)); }
.phone__plateau { position: absolute; left: 5%; right: 5%; top: 3%; height: 21%; border-radius: calc(var(--w) * .12); background: linear-gradient(160deg, #CFCBC4, #AEAAA3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 4px 10px -4px rgba(0,0,0,.35); }
.phone__plateau i { position: absolute; width: 27%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a5568, #0b0d12 55%, #000); box-shadow: 0 0 0 3px #8f8c86, 0 0 0 4px rgba(255,255,255,.5); }
.phone__plateau i:nth-child(1) { left: 6%; top: 8%; }
.phone__plateau i:nth-child(2) { left: 6%; bottom: 8%; }
.phone__plateau i:nth-child(3) { left: 36%; top: 29%; }
.phone__plateau b { position: absolute; right: 9%; top: 18%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #F3EBD2; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.phone__logo { position: absolute; left: 50%; top: 56%; translate: -50% -50%; opacity: .55; scale: 1.5; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .14); overflow: hidden; display: flex; flex-direction: column; background: #F5F6F8; color: #111; font-family: -apple-system, "SF Pro Text", var(--font); }
.phone__island { width: 30%; height: calc(var(--w) * .075); border-radius: 99px; background: #000; }
.wa__status { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--w) * .035) 8% 4px; background: #F5F6F8; font-size: calc(var(--w) * .043); font-weight: 600; }
.wa__status > span:first-child { width: 20%; text-align: center; }
.wa__sys { width: 20%; display: flex; align-items: flex-end; justify-content: center; gap: 1.5px; }
.wa__sys i { width: 2.5px; border-radius: 1px; background: #111; height: 4px; }
.wa__sys i:nth-child(2) { height: 6px; } .wa__sys i:nth-child(3) { height: 8px; }
.wa__sys b { width: 17px; height: 8px; margin-left: 4px; border-radius: 3px; background: #111; }
.wa__head { display: flex; align-items: center; gap: 7px; padding: 6px 10px 8px 8px; background: #F5F6F8; border-bottom: .5px solid rgba(0,0,0,.14); }
.wa__back { width: 9px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wa__avatar { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 .5px rgba(0,0,0,.15); }
.wa__avatar .brand__mark { scale: .6; }
.wa__who { flex: 1; min-width: 0; line-height: 1.15; }
.wa__who b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wa__who small { font-size: 9.5px; color: #646B78; }
.wa__ico { height: 14px; width: auto; fill: var(--accent); stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.wa__chat {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 5px; padding: 8px 8px 6px;
  background-color: #F5F6F8;
  background-image: radial-gradient(rgba(14,17,22,.025) 1px, transparent 1.2px), radial-gradient(rgba(14,17,22,.02) 1px, transparent 1.2px);
  background-size: 18px 18px, 18px 18px; background-position: 0 0, 9px 9px;
}
.wa__chat > :first-child { margin-top: auto; }
.wa__day { align-self: center; font-size: 9px; padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.9); color: #646B78; box-shadow: 0 .5px 1px rgba(0,0,0,.12); }
.wa__msg { position: relative; align-self: flex-start; max-width: 84%; margin: 0; padding: 5px 8px 14px; border-radius: 10px 10px 10px 3px; background: #fff; font-size: 11px; line-height: 1.3; box-shadow: 0 .5px 1px rgba(0,0,0,.14); }
.wa__msg--out { align-self: flex-end; background: #E9ECF1; border-radius: 10px 10px 3px 10px; }
.wa__msg time { position: absolute; right: 7px; bottom: 3px; font-size: 7.5px; color: #8696A0; white-space: nowrap; }
.wa__msg time i { font-style: normal; color: var(--accent); letter-spacing: -2px; }
.wa__file { display: flex; align-items: center; gap: 7px; margin: -1px -3px 5px; padding: 6px 7px; border-radius: 7px; background: #F0F2F5; font-size: 10px; font-weight: 600; }
.wa__file b { flex: none; padding: 5px 4px; border-radius: 4px; background: #E5484D; color: #fff; font-size: 7.5px; }
.wa__file small { display: block; font-weight: 400; font-size: 8px; color: #8696A0; }
[data-s] { display: none; }
[data-s].is-on { display: block; animation: wa-pop .45s var(--ease) both; }
.wa__day.is-on { display: inline-block; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.lite [data-s].is-on { animation: none; }
.wa__bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px 4px; background: #F5F6F8; border-top: .5px solid rgba(0,0,0,.1); }
.wa__plus { color: var(--accent); font-size: 18px; line-height: 1; font-weight: 300; }
.wa__field { flex: 1; height: 22px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.wa__home { display: block; width: 36%; height: 3.5px; margin: 0 auto; border-radius: 9px; background: #111; flex: none; position: relative; }
.wa__screen-pad, .phone__screen::after { content: ""; display: block; height: 6px; background: #F5F6F8; flex: none; }
.wa__home { margin-top: 5px; z-index: 1; }
.phone__screen { background: #F5F6F8; }
.cube-stage .cube-shadow { bottom: 2%; width: 40%; }
@media (max-width: 960px) {
  .cube-stage { height: 560px; }
  .phone { --w: 240px; }
}

/* ==========================================================================
   Rodapé compacto
   ========================================================================== */
.footer { padding-top: 0; }
.footer__bottom { border-top: 0; padding: 26px 0; }
.footer .brand { color: var(--paper); font-size: 18px; }
.footer .brand__mark i:first-child { background: var(--paper); }
.cube-stage .cube-shadow { display: none; }
@media (max-width: 960px) { [data-s] { display: block; } .wa__day { display: inline-block; } }

/* iPhone 3D (three.js): ocupa o palco e substitui o aparelho em CSS */
.phone-gl { position: absolute; inset: -6% -18%; width: 136%; height: 112%; pointer-events: none; }
.cube-stage.has-gl .phone { visibility: hidden; }
@media (min-width: 961px) { .cube-stage { top: 9vh; height: 82vh; min-height: 480px; } }
.phone-gl { inset: -4% -18%; height: 108%; }

/* iPhone 3D: canvas do tamanho do palco e reserva em CSS fora da árvore quando o 3D está ativo */
.phone-gl { inset: 0; width: 100%; height: 100%; }
.cube-stage.has-gl .phone { display: none; }
@media (min-width: 961px) { .cube-stage { top: 7vh; height: 88vh; } }
/* tema: a troca de paleta muda também fundos e textos */
.art-swatch i:first-child { --c: var(--ink) !important; }

/* ==========================================================================
   Temas claros e escuros (aplicados pelo cartão "Identidade visual")
   No tema escuro, --ink e --paper trocam de papel na página; os blocos que já
   eram escuros (cena, contato, rodapé, menu e pílulas) continuam escuros,
   um tom acima do fundo, redefinindo as duas variáveis só dentro deles.
   ========================================================================== */
:root[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] :is(.scene, .contact, .footer, .menu, .integ__ico, .node--hub, .win--3, .pill-metric, .mock--dark) {
  --ink: var(--block); --paper: var(--on-block);
}
[data-theme="dark"] .pill-metric { background: rgba(0,0,0,.7); }
[data-theme="dark"] .contact, [data-theme="dark"] .integ__ico, [data-theme="dark"] .node--hub { box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
[data-theme="dark"] .footer { box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.float, .hero__bar { background: color-mix(in srgb, var(--surface) 88%, transparent); }
[data-theme="dark"] .float, [data-theme="dark"] .hero__bar { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow); }
[data-theme="dark"] .card, [data-theme="dark"] .integ__item { box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
/* vidro da navegação no escuro: fumê translúcido com brilho fino na borda */
[data-theme="dark"] .nav__inner, [data-theme="dark"] .nav.is-scrolled .nav__inner {
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  backdrop-filter: blur(18px) saturate(1.8) brightness(.9); -webkit-backdrop-filter: blur(18px) saturate(1.8) brightness(.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(255,255,255,.08),
    inset 1px 0 0 rgba(255,255,255,.1), inset -1px 0 0 rgba(255,255,255,.1),
    inset 0 10px 18px -12px rgba(255,255,255,.16),
    0 0 0 1px rgba(0,0,0,.5), 0 16px 40px -16px rgba(0,0,0,.8);
}
[data-theme="dark"] .nav__inner::before { opacity: .22; }
[data-theme="dark"] .nav__lens {
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 10px rgba(255,255,255,.08), 0 6px 14px -6px rgba(0,0,0,.6), 0 0 18px -2px rgba(var(--accent-rgb),.45);
}
[data-theme="dark"] .menu-open .nav__inner { background: transparent; box-shadow: none; }
/* leque do cartão: a primeira carta é o fundo do tema (clara ou preta) */
.art-swatch i:first-child { --c: var(--paper) !important; outline: 1px solid var(--line); outline-offset: -1px; }

/* ==========================================================================
   Ajustes de celular
   ========================================================================== */
/* vidro da navegação um pouco mais denso, para o texto da página não atravessar o menu */
.nav__inner, .nav.is-scrolled .nav__inner {
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.38));
  backdrop-filter: blur(22px) saturate(2) brightness(1.06); -webkit-backdrop-filter: blur(22px) saturate(2) brightness(1.06);
}
[data-theme="dark"] .nav__inner, [data-theme="dark"] .nav.is-scrolled .nav__inner {
  background: linear-gradient(180deg, rgba(40,40,44,.62), rgba(20,20,22,.5));
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
}
/* menu aberto: a barra some e ficam só a marca e o botão de fechar */
.menu-open .nav .nav__inner, .menu-open .nav.is-scrolled .nav__inner {
  background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.menu-open .nav__inner::before { display: none; }
@media (max-width: 960px) {
  /* efeitos caros desligados em telas pequenas */
  .float, .hero__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  [data-depth] { transform: none !important; opacity: 1 !important; filter: none !important; }
  .card:hover .node, .card:hover .node--hub { transform: none; }
  .integ__item:hover { transform: none; }
  .scene { height: 220vh; }
}
@media (max-width: 640px) {
  .float--a { --t: translate(-8%, -345%) translateZ(90px); }
  /* etapas em linha do tempo vertical */
  .steps { padding-top: 0; padding-left: 34px; row-gap: 30px; }
  .steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
  .step > i { top: 2px; left: -34px; }
  .integ__item { padding: 22px; }
  .footer__bottom { gap: 10px; padding: 22px 0 26px; }
  .contact__title { overflow-wrap: anywhere; }
}
/* menu aberto no tema escuro: marca e botão claros sobre o painel */
[data-theme="dark"] .menu-open .brand { color: var(--on-block); }
[data-theme="dark"] .menu-open .brand__mark i:first-child, [data-theme="dark"] .menu-open .burger { background: var(--on-block); }
[data-theme="dark"] .menu-open .burger span { background: var(--block); }

/* ---------- Chat próprio do site ---------- */
.nx-chat-launcher { position: fixed; z-index: 999; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; background: var(--accent); box-shadow: var(--shadow-lg); transition: transform .25s var(--ease), background .2s; }
.nx-chat-launcher:hover { transform: translateY(-3px); background: var(--accent-2); }
.nx-chat-launcher svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-chat-panel { position: fixed; z-index: 1000; right: max(22px, env(safe-area-inset-right)); bottom: max(94px, calc(env(safe-area-inset-bottom) + 82px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 130px)); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-lg); }
.nx-chat-panel[hidden], .nx-chat-launcher[hidden] { display: none; }
.nx-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: var(--on-block); background: var(--block); }
.nx-chat-head strong { display: block; font-size: 16px; }
.nx-chat-head small { opacity: .72; font-size: 12px; }
.nx-chat-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; color: inherit; }
.nx-chat-close:hover { background: rgba(255,255,255,.12); }
.nx-chat-body { display: grid; align-content: start; gap: 10px; overflow-y: auto; padding: 16px; background: var(--paper); }
.nx-chat-bubble { max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 14px; line-height: 1.45; }
.nx-chat-bubble--user { justify-self: end; background: #E6E1FF; }
.nx-chat-bubble--system { justify-self: center; max-width: 100%; color: var(--muted); background: var(--soft); text-align: center; }
.nx-chat-error { padding: 9px 12px; border-radius: 10px; color: #842a1a; background: #FBE1DB; font-size: 13px; }
.nx-chat-start, .nx-chat-form { display: grid; gap: 11px; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.nx-chat-panel input, .nx-chat-panel textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); font: inherit; font-size: 14px; }
.nx-chat-panel textarea { min-height: 58px; max-height: 120px; resize: vertical; }
.nx-chat-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.nx-chat-consent { display: flex !important; align-items: flex-start; gap: 8px !important; }
.nx-chat-consent input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; padding: 0; }
.nx-chat-submit { min-height: 42px; padding: 0 18px; border-radius: 999px; color: #fff; background: var(--accent); font-weight: 600; }
.nx-chat-submit:hover { background: var(--accent-2); }
.nx-chat-submit:disabled { cursor: wait; opacity: .6; }
.nx-chat-muted { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .nx-chat-launcher { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .nx-chat-panel { right: 10px; bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px)); width: calc(100vw - 20px); height: min(620px, calc(100dvh - 100px)); border-radius: 20px; }
}

/* ==========================================================================
   Logo da Nexma (símbolo em SVG + nome em Space Grotesk)
   ========================================================================== */
.brand { gap: 9px; font-family: "Space Grotesk", var(--font); font-weight: 600; font-size: 22px; letter-spacing: -.03em; }
svg.brand__mark { width: 22px; height: 22.4px; perspective: none; overflow: visible; flex: none; transition: transform .6s var(--ease); }
.brand:hover svg.brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__name { line-height: 1; padding-bottom: 2px; }
.footer .brand { font-size: 20px; }
.brand__tag { margin-left: 12px; padding-bottom: 0; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }
.wa__avatar svg.brand__mark { scale: 1; width: 15px; height: 15.3px; color: #0E1116; }
.phone__logo svg.brand__mark { color: #6F6D69; --mark: #8C8A86; }
@media (max-width: 640px) { .brand__tag { display: none; } }

/* ==========================================================================
   Contato direto (e-mail e WhatsApp) e aviso de envio alternativo
   ========================================================================== */
.contact__direct { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__direct li { display: grid; gap: 2px; }
.contact__direct span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,243,239,.45); }
.contact__direct a { font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--paper); width: fit-content; border-bottom: 1px solid rgba(244,243,239,.25); padding-bottom: 2px; transition: border-color .3s; }
.contact__direct a:hover { border-color: var(--lime); }
.form__fallback { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,122,85,.1); box-shadow: inset 0 0 0 1px rgba(255,122,85,.35); color: rgba(244,243,239,.85); font-size: 14px; line-height: 1.45; }
.form__fallback[hidden] { display: none; }
.form__fallback a { color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__contact a { color: rgba(244,243,239,.75); transition: color .3s; }
.footer__contact a:hover { color: var(--paper); }
.marquee__track i { font-style: normal; opacity: .35; }

/* ==========================================================================
   Símbolo da marca: entrada desenhada (uma vez, ao carregar) e no chat
   ========================================================================== */
.js .nav .brand .mk-1, .js .nav .brand .mk-2, .js .nav .brand .mk-3 { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw .55s var(--ease) forwards; }
.js .nav .brand .mk-2 { animation-delay: .25s; }
.js .nav .brand .mk-3 { animation-delay: .5s; }
.js .nav .brand .mk-4 { transform-origin: 303px 43px; transform: scale(0); animation: mark-pop .45s cubic-bezier(.3,1.5,.5,1) .75s forwards; }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-pop { to { transform: scale(1); } }
.lite .nav .brand .mk { animation: none; stroke-dashoffset: 0; transform: none; }
.brand:hover svg.brand__mark { transform: none; }
.brand:hover .mk-4 { animation: mark-bounce .6s var(--ease); }
@keyframes mark-bounce { 30% { transform: translateY(-40px); } }
.nx-chat-head { justify-content: flex-start; }
.nx-chat-head > div { flex: 1; }
.nx-chat-mark { width: 26px; height: 26.5px; flex: none; color: var(--on-block); --mark: var(--accent); }
