/* BREVES — Matriz (Tecnologia). Complementa shared.css + site.css.
   Reaproveita os tokens e componentes genéricos; estiliza apenas as
   seções próprias da matriz. */

/* Títulos de seção mais compactos (matriz e jurídico) — menos altura. */
.section-head h2,
.method h2,
.calculator h2,
.commitments h2,
.faq h2 {
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.section-head { margin-bottom: 46px; }

/* Hero — moldura técnica (HUD) com fundo ASCII animado */
.mz-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 24px 92px;
  background: radial-gradient(circle at 70% 30%, #121815, var(--ink) 60%);
  color: var(--paper);
}
.mz-ascii { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; opacity: .55; pointer-events: none; }

/* Fundo ASCII replicado nas seções de fundo escuro do jurídico. */
.hero > .mz-ascii { z-index: -1; opacity: .42; }
.calculator { position: relative; isolation: isolate; }
.calculator > .mz-ascii { z-index: 0; opacity: .5; }
.calculator > .section-frame { position: relative; z-index: 1; }
.site-footer { position: relative; isolation: isolate; }
.site-footer > .mz-ascii { z-index: 0; opacity: .3; }
.site-footer > .section-frame { position: relative; z-index: 1; }
.mz-hero-stars { position: absolute; inset: 0; z-index: 0; display: none; }
.mz-hero .hero-atmosphere { z-index: 0; opacity: .8; }
.mz-hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, transparent 40%, rgba(10,12,11,.55) 100%);
  pointer-events: none;
}

/* Cantos da moldura */
.mz-corner { position: absolute; z-index: 3; width: 34px; height: 34px; pointer-events: none; }
.mz-corner.tl { top: 96px; left: 20px; border-top: 2px solid rgba(239,182,111,.42); border-left: 2px solid rgba(239,182,111,.42); }
.mz-corner.tr { top: 96px; right: 20px; border-top: 2px solid rgba(239,182,111,.42); border-right: 2px solid rgba(239,182,111,.42); }
.mz-corner.bl { bottom: 70px; left: 20px; border-bottom: 2px solid rgba(239,182,111,.42); border-left: 2px solid rgba(239,182,111,.42); }
.mz-corner.br { bottom: 70px; right: 20px; border-bottom: 2px solid rgba(239,182,111,.42); border-right: 2px solid rgba(239,182,111,.42); }
.mz-hud-coords { position: absolute; z-index: 3; top: 102px; right: 62px; color: rgba(242,239,231,.42); font: 8px/1 var(--mono); letter-spacing: .14em; }

.mz-hero-inner { position: relative; z-index: 2; width: var(--frame); margin-inline: auto; }
.mz-hero-copy { max-width: 720px; }
.mz-rule { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; opacity: .55; }
.mz-rule span { height: 1px; width: 34px; background: rgba(242,239,231,.7); }
.mz-rule .grow { flex: 1; }
.mz-rule b { color: var(--amber-bright); font: 10px/1 var(--mono); }
.mz-hero h1 {
  margin-top: 20px;
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 330;
  line-height: 1.01;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.mz-hero h1 em { color: var(--amber-bright); font-family: var(--serif); font-weight: 400; }
.mz-hero-lead {
  max-width: 560px;
  margin-top: 26px;
  color: rgba(242,239,231,.68);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 350;
  line-height: 1.6;
  text-wrap: balance;
}
.mz-hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.mz-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 22px;
  border: 1px solid rgba(242,239,231,.4);
  color: var(--paper); font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.mz-btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mz-notation { display: flex; align-items: center; gap: 12px; margin-top: 42px; max-width: 560px; opacity: .4; }
.mz-notation .grow { flex: 1; height: 1px; background: rgba(242,239,231,.7); }
.mz-notation b { color: var(--paper); font: 9px/1 var(--mono); }
.mz-notation small { color: var(--paper); font: 9px/1 var(--mono); letter-spacing: .12em; }

/* Barra de status inferior */
.mz-hud-bottom {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px clamp(18px, 4vw, 46px);
  border-top: 1px solid rgba(242,239,231,.14);
  background: rgba(10,12,11,.42);
  backdrop-filter: blur(6px);
  color: rgba(242,239,231,.5); font: 8px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.mz-hud-side { display: flex; align-items: center; gap: 14px; }
.mz-bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.mz-bars i { width: 3px; background: rgba(239,182,111,.45); transform-origin: bottom; animation: mz-bar 1.5s ease-in-out infinite; }
.mz-bars i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.mz-bars i:nth-child(2) { height: 12px; animation-delay: .15s; }
.mz-bars i:nth-child(3) { height: 8px;  animation-delay: .3s; }
.mz-bars i:nth-child(4) { height: 14px; animation-delay: .45s; }
.mz-bars i:nth-child(5) { height: 5px;  animation-delay: .6s; }
.mz-bars i:nth-child(6) { height: 11px; animation-delay: .75s; }
.mz-bars i:nth-child(7) { height: 7px;  animation-delay: .9s; }
.mz-bars i:nth-child(8) { height: 13px; animation-delay: 1.05s; }
.mz-dots { display: flex; gap: 5px; }
.mz-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(242,239,231,.55); animation: mz-pulse 1.3s ease-in-out infinite; }
.mz-dots i:nth-child(2) { animation-delay: .2s; }
.mz-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes mz-bar { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes mz-pulse { 0%,100% { opacity: .22; } 50% { opacity: .95; } }

@media (max-width: 1023px) {
  .mz-ascii { display: none; }
  .mz-hero-stars {
    display: block; opacity: .3;
    background-image:
      radial-gradient(1px 1px at 20% 30%, #fff, transparent),
      radial-gradient(1px 1px at 60% 70%, #fff, transparent),
      radial-gradient(1px 1px at 80% 12%, #fff, transparent),
      radial-gradient(1px 1px at 33% 82%, #fff, transparent),
      radial-gradient(1px 1px at 72% 42%, #fff, transparent),
      radial-gradient(1px 1px at 15% 60%, #fff, transparent);
    background-repeat: no-repeat;
  }
  .mz-hud-coords { display: none; }
  .mz-hud-hide { display: none; }
}
@media (max-width: 620px) {
  .mz-hero { min-height: 92svh; padding: 130px 16px 84px; }
  .mz-corner { width: 24px; height: 24px; }
  .mz-corner.tl, .mz-corner.tr { top: 84px; }
  .mz-hero-actions .button-primary, .mz-btn-ghost { width: min(100%, 320px); }
}

/* Serviços */
.mz-services { padding: 96px 0; background: var(--paper); }
.mz-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.mz-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper);
  transition: background-color .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.mz-card span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--amber-dark);
  font: 8px/1 var(--mono);
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
.mz-card h3 { font-size: 17px; font-weight: 560; letter-spacing: -.01em; }
.mz-card p { margin-top: 9px; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }
.mz-card:hover { background: var(--paper-bright); transform: translateY(-4px); }
.mz-card:hover span { border-color: var(--amber-dark); background: var(--ink); color: var(--amber-bright); }

/* Produtos */
.mz-products { padding: 96px 0; background: var(--paper-bright); }
.mz-products-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mz-products-list li {
  padding: 22px 20px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(251,250,246,.6);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.mz-products-list small { display: block; margin-bottom: 12px; color: var(--amber-dark); font: 7px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mz-products-list b { display: block; font-size: 15px; font-weight: 560; letter-spacing: -.01em; }
.mz-products-list p { margin-top: 7px; color: var(--ink-muted); font-size: 12px; line-height: 1.55; }
.mz-products-list li:hover { border-color: rgba(143,91,39,.34); box-shadow: 0 14px 32px rgba(17,23,20,.07); transform: translateY(-4px); }

/* Unidades (matriz + filiais) */
.mz-units { position: relative; overflow: hidden; padding: 96px 0; background: var(--ink); color: var(--paper); }
.mz-units h2 { color: var(--paper); }
.mz-units h2 em { color: var(--amber-bright); }
.mz-units .section-head > p { border-color: var(--line-light); color: rgba(242,239,231,.55); }
.mz-units-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.mz-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 32px;
  border: 1px solid var(--line-light);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  transition: border-color .35s ease, box-shadow .4s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.mz-unit-head { display: grid; gap: 8px; margin-bottom: 16px; }
.mz-unit-head small { color: rgba(242,239,231,.5); font: 7px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mz-unit-head b { font-size: clamp(24px, 2.4vw, 30px); font-weight: 480; letter-spacing: -.02em; }
.mz-unit p { max-width: 440px; color: rgba(242,239,231,.62); font-size: 14px; line-height: 1.65; }
.mz-unit .button { margin-top: 24px; }
.mz-unit-tag {
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: rgba(242,239,231,.55);
  font: 8px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mz-unit.is-branch {
  border-color: rgba(216,154,80,.3);
  background: radial-gradient(circle at 82% 0%, rgba(216,154,80,.12), transparent 46%), linear-gradient(150deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
}
.mz-unit.is-branch:hover {
  border-color: rgba(239,182,111,.5);
  box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 0 30px rgba(216,154,80,.08);
  transform: translateY(-4px);
}
.mz-unit.is-matrix:hover { border-color: rgba(242,239,231,.24); transform: translateY(-4px); }

/* Responsivo */
@media (max-width: 1080px) {
  .mz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-products-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mz-hero { min-height: auto; padding-top: 150px; }
  .mz-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .mz-hero-stats { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .mz-units-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .mz-hero { padding: 132px 16px 52px; }
  .mz-services, .mz-products, .mz-units { padding: 68px 0; }
  .mz-grid { grid-template-columns: 1fr 1fr; }
  .mz-card { min-height: 186px; padding: 22px 18px; }
  .mz-card span { margin-bottom: 18px; }
  .mz-products-list { grid-template-columns: 1fr; }
  .mz-unit { padding: 26px 22px; }
}

/* Console interativo do hero (lado direito) */
@media (min-width: 1100px) {
  .mz-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(388px, 440px);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
  }
  .mz-hero-copy { max-width: none; }
}
@media (max-width: 1099px) { .mz-console { display: none; } }

.mz-console {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(242,239,231,.16);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(21,28,24,.94), rgba(11,15,13,.94));
  box-shadow: 0 34px 90px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
}
.mz-console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(242,239,231,.1); }
.mz-console-dots { display: flex; gap: 6px; }
.mz-console-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(242,239,231,.16); }
.mz-console-dots i:first-child { background: rgba(239,182,111,.72); }
.mz-console-title { color: rgba(242,239,231,.66); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.mz-console-live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--amber-bright); font-size: 8px; letter-spacing: .16em; }
.mz-console-live i { width: 6px; height: 6px; border-radius: 50%; background: #5cb97f; box-shadow: 0 0 8px rgba(92,185,127,.6); animation: mz-pulse 1.4s ease-in-out infinite; }
.mz-console-tabs { display: flex; gap: 2px; padding: 12px 14px 0; }
.mz-tab { flex: 1; padding: 9px 6px; border: 0; border-bottom: 1px solid rgba(242,239,231,.1); background: transparent; color: rgba(242,239,231,.48); font: 8px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color .22s ease, border-color .22s ease; }
.mz-tab:hover { color: var(--paper); }
.mz-tab.active { color: var(--amber-bright); border-color: var(--amber-bright); }
.mz-console-chart { display: flex; align-items: flex-end; gap: 4px; height: 122px; padding: 22px 16px 12px; }
.mz-console-chart i { flex: 1; min-width: 0; height: 20%; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(239,182,111,.22), rgba(239,182,111,.62)); transition: height .6s cubic-bezier(.22,1,.36,1); }
.mz-console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(242,239,231,.08); border-block: 1px solid rgba(242,239,231,.08); }
.mz-metric { padding: 14px; background: rgba(11,15,13,.62); }
.mz-metric small { display: block; margin-bottom: 6px; color: rgba(242,239,231,.4); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.mz-metric b { color: var(--paper); font: 600 18px/1 var(--sans); letter-spacing: -.02em; }
.mz-console-term { display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: rgba(242,239,231,.62); font-size: 10px; }
.mz-term-prompt { color: var(--amber-bright); }
.mz-console-term [data-term] { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-term-cursor { flex: none; width: 7px; height: 13px; background: var(--amber-bright); opacity: .85; animation: mz-cursor 1s steps(1) infinite; }
@keyframes mz-cursor { 50% { opacity: 0; } }

/* Console de fluxo processual (jurídico) */
.mz-console-legal .mz-flow { padding: 8px 10px 6px; }
.mz-flow-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 8px; transition: background-color .4s ease; }
.mz-flow-idx { color: rgba(242,239,231,.35); font: 8px/1 var(--mono); transition: color .4s ease; }
.mz-flow-txt small { display: block; margin-bottom: 4px; color: rgba(242,239,231,.32); font: 6px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mz-flow-txt b { color: rgba(242,239,231,.82); font: 520 12px/1.2 var(--sans); }
.mz-flow-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(242,239,231,.28); transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease; }
.mz-flow-row.is-done .mz-flow-dot { background: #5cb97f; border-color: transparent; }
.mz-flow-row.is-active { background: rgba(216,154,80,.09); }
.mz-flow-row.is-active .mz-flow-idx { color: var(--amber-bright); }
.mz-flow-row.is-active .mz-flow-dot { background: var(--amber-bright); border-color: transparent; box-shadow: 0 0 0 4px rgba(216,154,80,.12); }
.mz-flow-bar { height: 2px; margin: 6px 16px 0; border-radius: 2px; background: rgba(242,239,231,.1); overflow: hidden; }
.mz-flow-bar i { display: block; height: 100%; width: 25%; border-radius: 2px; background: linear-gradient(90deg, var(--amber-dark), var(--amber-bright)); transition: width .6s cubic-bezier(.22,1,.36,1); }

/* Ícones do rodapé (contato) — substituem os emojis. */
.footer-contact li svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--amber); }

/* Globo refinado no hero jurídico (protagonista, mais moderno). */
.mz-hero { --orbit-x: 0deg; --orbit-y: 0deg; --orbit-scroll: 0deg; --orbit-lift: 0px; }
.mz-hero .legal-orbit { width: min(400px, 100%); height: min(400px, 82vw); margin: 0 auto; justify-self: center; }
.mz-hero .legal-orbit::after {
  content: ""; position: absolute; z-index: -1; inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,154,80,.12), transparent 62%);
  filter: blur(34px);
}
.mz-hero .orbit-halo {
  inset: 9%;
  background: radial-gradient(circle at 42% 36%, rgba(239,182,111,.34), rgba(216,154,80,.05) 46%, transparent 68%);
  filter: blur(7px);
}
.mz-hero .orbit-ring { border-color: rgba(242,239,231,.15); box-shadow: inset 0 0 40px rgba(239,182,111,.035); }
.mz-hero .orbit-ring::before { width: 8px; height: 8px; box-shadow: 0 0 18px rgba(239,182,111,.9), 0 0 4px rgba(255,255,255,.55); }
.mz-hero .orbit-ring span { color: rgba(242,239,231,.5); letter-spacing: .18em; }
.mz-hero .orbit-core {
  border-color: rgba(239,182,111,.42);
  background: radial-gradient(circle at 50% 30%, #1b231e, #0d1210 72%);
  box-shadow:
    inset 0 0 0 9px rgba(242,239,231,.02),
    inset 0 -24px 56px rgba(0,0,0,.5),
    0 30px 72px rgba(0,0,0,.46),
    0 0 46px rgba(216,154,80,.1);
}
.mz-hero .orbit-core img { filter: drop-shadow(0 3px 11px rgba(239,182,111,.28)); }
.mz-hero .orbit-note {
  border-color: rgba(242,239,231,.14);
  background: rgba(13,18,16,.62);
  box-shadow: 0 12px 34px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
}
.mz-hero .note-a { left: -6px; top: 34%; }
.mz-hero .note-b { right: -6px; bottom: 22%; }
@media (min-width: 1100px) and (max-width: 1240px) {
  .mz-hero .legal-orbit { width: min(360px, 100%); height: 360px; }
}
@media (max-width: 1099px) {
  .mz-hero .legal-orbit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mz-hero .legal-orbit { transform: none !important; }
}

/* Hero jurídico em duas colunas — texto à esquerda, órbita à direita — para que
   a animação apareça inteira sem depender de rolagem. Escopo em `.hero` (o
   jurídico); a matriz usa `.mz-hero`. Abaixo de 980px volta a empilhar. */
@media (min-width: 980px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(320px, 560px) minmax(300px, 400px);
    justify-content: center;
    column-gap: clamp(40px, 4.5vw, 76px);
    align-items: center;
    justify-items: start;
    padding-inline: clamp(32px, 6vw, 84px);
  }
  .hero .hero-copy { width: 100%; max-width: 560px; text-align: left; }
  .hero .hero-copy h1 { margin-inline: 0; max-width: none; font-size: clamp(40px, 4.1vw, 62px); }
  .hero .hero-kicker { margin-bottom: 20px; }
  .hero .hero-lead { margin-left: 0; margin-right: 0; }
  .hero .hero-actions { justify-content: flex-start; }
  .hero .hero-assurances { justify-content: flex-start; flex-wrap: wrap; }
  .hero .legal-orbit { margin: 0; justify-self: center; }
  .hero .scroll-cue { left: clamp(32px, 6vw, 84px); }
}

.mz-integrations { position: relative; overflow: hidden; padding: 72px 0 30px; background: var(--ink); color: var(--paper); }
.mz-integrations::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 62%;
  width: min(760px, 96vw); height: min(760px, 96vw);
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216,154,80,.08), transparent 62%);
  pointer-events: none;
}
.mz-integrations .section-frame { position: relative; z-index: 2; }
.mz-integrations .section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; margin-bottom: 6px; }
.mz-integrations .section-label { margin-bottom: 16px; }
.mz-integrations h2 { color: var(--paper); font-size: clamp(28px, 3vw, 40px); }
.mz-integrations h2 em { color: var(--amber-bright); font-family: var(--serif); font-weight: 400; }
.mz-integrations .section-head > p { max-width: 440px; margin-top: 14px; padding: 0; border: 0; color: rgba(242,239,231,.55); font-size: 13px; }

.mz-integrations .mz-btn-ghost {
  margin-top: 26px;
  border-color: rgba(239,182,111,.42);
  color: var(--amber-bright);
}
.mz-integrations .mz-btn-ghost:hover { background: var(--amber-bright); color: var(--ink); border-color: var(--amber-bright); }

/* Faixas horizontais de ícones percorrendo (estilo referência). */
.mz-marquee { position: relative; z-index: 1; display: grid; gap: 16px; margin-top: 30px; }
.mz-marquee-row {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mz-marquee-track { display: flex; width: max-content; gap: 16px; padding: 5px 0; will-change: transform; animation: mz-marquee-scroll 66s linear infinite; }
.mz-marquee-row.is-rev .mz-marquee-track { animation-direction: reverse; }
.mz-marquee-row:hover .mz-marquee-track { animation-play-state: paused; }
.mz-mq-badge {
  flex: 0 0 auto;
  width: clamp(42px, 4.6vw, 52px); height: clamp(42px, 4.6vw, 52px);
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: radial-gradient(circle at 50% 32%, #efece5, #d8d3c8);
  box-shadow: 0 6px 16px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7);
  color: #2a322c;
  opacity: .82;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, opacity .3s ease;
}
.mz-mq-badge svg { width: 42%; height: 42%; fill: currentColor; }
.mz-mq-badge:hover { transform: translateY(-4px); opacity: 1; box-shadow: 0 12px 26px rgba(0,0,0,.4), 0 0 18px rgba(216,154,80,.22); }
@keyframes mz-marquee-scroll { to { transform: translateX(-50%); } }

@media (max-width: 620px) {
  .mz-integrations { padding: 56px 0 26px; }
  .mz-marquee { gap: 12px; margin-top: 26px; }
  .mz-marquee-track { gap: 12px; }
  .mz-mq-badge { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .mz-marquee-track { animation: none !important; }
  .mz-marquee-row { overflow-x: auto; }
}

/* Destaque de produtos personalizados (matriz). */
.mz-products-custom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 22px; padding: 30px 34px;
  border: 1px solid rgba(17,23,20,.14); border-radius: 16px;
  background: linear-gradient(135deg, var(--ink), #1a221d);
  color: var(--paper);
  box-shadow: 0 24px 60px rgba(17,23,20,.12);
}
.mz-products-custom-copy { max-width: 560px; }
.mz-products-custom small { display: block; margin-bottom: 9px; color: var(--amber-bright); font: 7px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.mz-products-custom strong { display: block; font-size: clamp(20px, 2.2vw, 26px); font-weight: 480; letter-spacing: -.02em; }
.mz-products-custom p { margin-top: 9px; color: rgba(242,239,231,.62); font-size: 13px; line-height: 1.6; }
.mz-products-custom .button { flex: 0 0 auto; }
@media (max-width: 620px) {
  .mz-products-custom { padding: 24px 22px; }
  .mz-products-custom .button { width: 100%; }
}

/* Serviços jurídicos personalizados (exemplos). */
.svc-highlight {
  display: grid; gap: 12px;
  margin-bottom: 34px; padding: 26px 30px;
  border: 1px solid rgba(216,154,80,.28); border-radius: 14px;
  background: linear-gradient(135deg, rgba(216,154,80,.09), rgba(216,154,80,.02));
}
.svc-highlight b { font-size: clamp(18px, 2vw, 23px); font-weight: 560; letter-spacing: -.02em; color: var(--ink); }
.svc-highlight b em { color: var(--amber-dark); font-family: var(--serif); font-weight: 400; }
.svc-highlight p { color: var(--ink-muted); font-size: 14px; line-height: 1.65; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 28px 26px;
  border: 1px solid var(--line-dark); border-radius: 14px;
  background: var(--paper-bright);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.svc-card h3 { font-size: 19px; font-weight: 560; letter-spacing: -.015em; }
.svc-card p { margin-top: 10px; color: var(--ink-muted); font-size: 13.5px; line-height: 1.65; }
.svc-card:hover { border-color: rgba(143,91,39,.34); box-shadow: 0 18px 40px rgba(17,23,20,.08); transform: translateY(-4px); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* Método em 3 blocos (sem scroll para compreender). */
.method-3 .method-intro { position: static; }
/* Cabeçalho do Método centralizado (jurídico). */
.method-3 .method-intro-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.method-3 .method-intro-center .section-label { justify-content: center; }
.method-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.method-block {
  display: flex; flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line-dark); border-radius: 14px;
  background: var(--paper-bright);
}
.method-block > span { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--amber-dark); font: 9px/1 var(--mono); }
.method-block small { color: var(--amber-dark); font: 8px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.method-block h3 { margin-top: 12px; font-size: 21px; font-weight: 520; letter-spacing: -.02em; }
.method-block p { margin-top: 10px; color: var(--ink-muted); font-size: 13.5px; line-height: 1.65; }
@media (max-width: 860px) { .method-tri { grid-template-columns: 1fr; gap: 14px; } }

/* Galeria com efeito hover-reveal — card em destaque, os demais recuam.
   Cards on-brand (sem fotos): ícone + rótulo. Efeito herdado do componente
   React HoverRevealCards (app/src/components/ui/cards.tsx). */
.gallery { padding: 76px 0; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.gallery-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  height: 268px; padding: 26px; overflow: hidden; border-radius: 22px;
  background: linear-gradient(158deg, #1c2621, #0d1310);
  border: 1px solid rgba(255,255,255,.06); color: var(--paper);
  box-shadow: 0 16px 36px rgba(17,23,20,.16);
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s ease, filter .5s ease, box-shadow .5s ease, border-color .5s ease;
}
.gallery-card::before {
  content: ""; position: absolute; right: -28%; top: -34%; width: 78%; height: 78%; pointer-events: none;
  background: radial-gradient(circle, rgba(216,154,80,.16), transparent 66%);
}
/* ao passar o mouse no grid, todos os cards recuam levemente */
.gallery-grid:hover .gallery-card { transform: scale(.98); opacity: .5; filter: blur(1.5px); }
/* o card sob o mouse/foco volta ao destaque (precedência sobre a regra acima) */
.gallery-card:hover, .gallery-card:focus-visible {
  transform: translateY(-6px) !important; opacity: 1 !important; filter: none !important;
  border-color: rgba(239,182,111,.5); box-shadow: 0 22px 48px rgba(17,23,20,.3), 0 0 26px rgba(216,154,80,.15);
}
.gallery-card:focus-visible { outline: none; }
.gallery-ic {
  position: relative; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(239,182,111,.10); border: 1px solid rgba(239,182,111,.30); color: var(--amber-bright);
}
.gallery-ic svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gallery-card-body { position: relative; }
.gallery-card-body small {
  display: block; font: 600 10px/1 var(--mono, monospace); letter-spacing: .2em;
  text-transform: uppercase; color: var(--amber-bright); opacity: .9;
}
.gallery-card-body h3 { margin-top: 9px; font-size: 20px; font-weight: 560; letter-spacing: -.01em; color: var(--paper); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-card { height: auto; min-height: 190px; } }

/* Cabeçalhos: rótulo acima do título, alinhados à esquerda (em vez do rótulo
   órfão na coluna lateral). Rítmo editorial consistente com as demais seções. */
.mz-products .section-head.compact,
.gallery .section-head.compact,
.mz-units .section-head.compact,
.practice .section-head,
.proj .section-head,
.commitments .section-head.compact { display: block; }
.mz-products .section-head.compact .section-label,
.gallery .section-head.compact .section-label,
.mz-units .section-head.compact .section-label,
.practice .section-head .section-label,
.proj .section-head .section-label,
.commitments .section-head.compact .section-label { margin-bottom: 16px; }
/* Deixa os títulos de seção usarem toda a largura disponível — evita a quebra
   desnecessária em duas linhas quando cabem em uma só (telas largas). Continuam
   quebrando naturalmente quando o espaço é realmente estreito. */
.section-head.compact h2,
.practice .section-head h2 { max-width: none; }

/* Seção CTA + galeria escalonada (porte estático do bloco React
   cta-section-with-gallery). Copy à esquerda, grade de imagens deslocadas
   à direita; entrada em blur/fade com stagger via sistema .reveal. */
.cta-gallery { padding: 92px 0; }
.cta-gallery-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.cta-copy { min-width: 0; }
.cta-eyebrow { display: block; margin-bottom: 14px; color: var(--amber-dark); font: 600 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.cta-copy h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.cta-copy h2 em { color: var(--amber-dark); font-family: var(--serif); font-weight: 400; }
.cta-copy > p { margin: 20px 0 30px; max-width: 460px; color: var(--ink-muted); font-size: 15px; line-height: 1.7; }

.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 50px 150px 50px 150px 50px; gap: 16px;
}
.cta-cell { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 18px 40px rgba(17,23,20,.16); background: #e6dfd1; }
.cta-cell:nth-child(1) { grid-column: 2 / 3; grid-row: 1 / 3; }
.cta-cell:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 4; }
.cta-cell:nth-child(3) { grid-column: 1 / 2; grid-row: 4 / 6; }
.cta-cell:nth-child(4) { grid-column: 2 / 3; grid-row: 3 / 5; }
.cta-cell img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* entrada blur + fade (imita o filterVariants do motion) */
.cta-copy .reveal, .cta-grid .cta-cell {
  filter: blur(10px);
  transition: opacity .7s cubic-bezier(.2,.75,.2,1), transform .7s cubic-bezier(.2,.75,.2,1), filter .7s ease;
}
.cta-copy .reveal.in, .cta-grid .cta-cell.in { filter: blur(0); }

@media (max-width: 860px) {
  .cta-gallery { padding: 68px 0; }
  .cta-gallery-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-grid { max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-copy .reveal, .cta-grid .cta-cell { filter: none !important; transition: none !important; }
}

/* Título de contato (jurídico): o fundo é âmbar, então o efeito de destaque
   âmbar original ficava invisível — a palavra-chave "uma boa conversa."
   sumia e o título parecia cortado em "...começa com". Aqui a palavra-chave
   passa a usar cor de contraste (tinta escura) e o overlay âmbar é desligado. */
.contact-commit-1adc h2 em { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.contact-commit-1adc h2 em::after { display: none; }

/* Catálogo de projetos — cards claymorphism com acompanhamento de progresso. */
.proj { padding: 58px 0; background: linear-gradient(180deg, #efe9dd, #f3eee3); }
.proj .section-head h2 em { color: var(--amber-dark); }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.clay-card {
  display: flex; flex-direction: column;
  padding: 30px 28px; border-radius: 30px;
  background: #f4efe6;
  box-shadow:
    16px 16px 32px rgba(120,96,60,.18),
    -12px -12px 28px rgba(255,255,255,.92),
    inset 2px 2px 6px rgba(255,255,255,.7),
    inset -3px -3px 9px rgba(120,96,60,.07);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, opacity .8s ease;
}
.clay-card:hover {
  transform: translateY(-6px);
  box-shadow:
    20px 22px 44px rgba(120,96,60,.24),
    -14px -14px 32px rgba(255,255,255,.96),
    inset 2px 2px 6px rgba(255,255,255,.7),
    inset -3px -3px 9px rgba(120,96,60,.07);
}
.clay-top { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 22px; }
.clay-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #f1ebe0; color: var(--amber-dark); font: 11px/1 var(--mono);
  box-shadow: 5px 5px 12px rgba(120,96,60,.18), -5px -5px 12px rgba(255,255,255,.92), inset 1px 1px 3px rgba(255,255,255,.85), inset -2px -2px 6px rgba(120,96,60,.1);
}
.proj-status { padding: 6px 12px; border-radius: 999px; font: 7px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.proj-status.s-dev { background: rgba(216,154,80,.16); color: var(--amber-dark); }
.proj-status.s-idea { background: rgba(17,23,20,.07); color: var(--ink-muted); }
.proj-status.s-pilot { background: rgba(92,185,127,.16); color: #2f7042; }
.proj-status.s-example { background: rgba(17,23,20,.06); color: var(--ink-muted); }
.clay-card h3 { font-size: 18px; font-weight: 560; letter-spacing: -.015em; color: var(--ink); }
.clay-card > p { margin-top: 11px; color: var(--ink-muted); font-size: 13px; line-height: 1.6; flex: 1; }
.proj-progress { margin-top: 24px; }
.proj-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.proj-progress-head span { color: var(--ink-muted); font: 7px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.proj-progress-head b { color: var(--amber-dark); font: 600 15px/1 var(--sans); }
.proj-bar {
  height: 13px; border-radius: 20px; overflow: hidden;
  background: #e6dfd1;
  box-shadow: inset 4px 4px 8px rgba(120,96,60,.2), inset -3px -3px 7px rgba(255,255,255,.85);
}
.proj-bar i {
  display: block; height: 100%; width: 0; border-radius: 20px;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber));
  box-shadow: 0 0 10px rgba(216,154,80,.4);
  transition: width 1.3s cubic-bezier(.22,1,.36,1);
}
.clay-card.in .proj-bar i { width: var(--p, 0%); }
@media (max-width: 900px) { .proj { padding: 66px 0; } .proj-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Carrossel de projetos — cards empilhados, um visível por vez */
.proj-carousel { max-width: 760px; margin: 0 auto; }
/* todos os cards ocupam a mesma célula do grid: o container assume a altura
   do card mais alto e a troca não desloca nada na página. */
.proj-deck { display: grid; }
.proj-card {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  padding: 28px 32px; border-radius: 28px; background: #f4efe6;
  box-shadow:
    13px 13px 26px rgba(120,96,60,.17), -10px -10px 22px rgba(255,255,255,.92),
    inset 2px 2px 6px rgba(255,255,255,.7), inset -3px -3px 9px rgba(120,96,60,.07);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.proj-card.is-active { opacity: 1; transform: none; pointer-events: auto; }
.proj-card-icon {
  width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center;
  background: #f1ebe0; color: var(--amber-dark);
  box-shadow:
    6px 6px 14px rgba(120,96,60,.18), -6px -6px 14px rgba(255,255,255,.92),
    inset 1px 1px 3px rgba(255,255,255,.85), inset -2px -2px 6px rgba(120,96,60,.1);
}
.proj-card-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.proj-card-body { min-width: 0; }
.proj-card-body .proj-status { display: inline-block; margin-bottom: 11px; }
.proj-card-body h3 { font-size: 18px; font-weight: 560; letter-spacing: -.015em; color: var(--ink); }
.proj-card-body > p { margin-top: 9px; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }
.proj-card-body .proj-progress { margin-top: 18px; }
/* a barra reanima o preenchimento quando o card fica ativo */
.proj-card .proj-bar i { width: 0; }
.proj-card.is-active .proj-bar i { width: var(--p, 0%); }

/* indicadores de navegação */
.proj-nav { display: flex; align-items: center; justify-content: center; margin-top: 22px; }
.proj-tabs { display: flex; gap: 12px; }
.proj-tab {
  border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink-muted);
  background: #f4efe6; padding: 0; width: 44px; height: 44px; border-radius: 14px;
  box-shadow: 4px 4px 10px rgba(120,96,60,.16), -4px -4px 10px rgba(255,255,255,.9);
  transition: transform .3s ease, color .3s ease, box-shadow .3s ease;
}
.proj-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.proj-tab:hover { color: var(--amber-dark); transform: translateY(-2px); }
.proj-tab[aria-selected="true"] {
  color: var(--amber-dark);
  box-shadow: inset 3px 3px 7px rgba(120,96,60,.2), inset -3px -3px 7px rgba(255,255,255,.9);
}
@media (max-width: 720px) {
  .proj-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 26px 22px; }
  .proj-card-icon { width: 76px; height: 76px; border-radius: 22px; }
  .proj-card-icon svg { width: 36px; height: 36px; }
  .proj-card-body .proj-progress { text-align: left; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .mz-card, .mz-products-list li, .mz-unit { transition: none !important; transform: none !important; }
  .mz-console-live i, .mz-term-cursor { animation: none !important; }
  .svc-card { transition: none !important; transform: none !important; }
  .clay-card { transition: none !important; transform: none !important; }
  .proj-bar i { transition: none !important; }
  .proj-card, .proj-tab { transition: none !important; }
  .proj-card { transform: none !important; }
  .proj-tab { transform: none !important; }
  .gallery-card { transition: none !important; }
  .gallery-grid:hover .gallery-card { transform: none; opacity: 1; filter: none; }
  .gallery-card:hover, .gallery-card:focus-visible { transform: none !important; }
}

/* A chamada do hero jurídico agora tem uma frase inteira em destaque na
   segunda linha. A coluna de texto de 560px a fazia quebrar em duas; o
   espaço livre ao lado da órbita comporta a largura maior. */
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(320px, 720px) minmax(300px, 400px); }
  .hero .hero-copy { max-width: 720px; }
}
