/* ==========================================================================
   VENIA — Inteligência Artificial para o Direito Brasileiro
   Sistema de design monocromático · editorial · arquitetônico
   ========================================================================== */

/* ---------- Fontes ---------- */
/* As famílias são carregadas pelo documento para manter este pacote estático leve. */

/* ---------- Tokens ---------- */
:root {
  --bg: #fbfbfa;
  --bg-soft: #f3f3f1;
  --ink: #101010;
  --ink-strong: #060606;
  --charcoal: #262626;
  --gray-1: #4a4a4a;
  --gray-2: #6f6f6f;
  --gray-3: #9c9c9c;
  --gray-4: #c8c8c6;
  --gray-5: #e6e6e4;
  --gray-6: #efefed;
  --paper: #ffffff;
  --dark-bg: #0c0c0c;
  --dark-soft: #161616;
  --dark-line: #2c2c2c;
  --dark-text: #f2f2f0;
  --dark-muted: #8f8f8d;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --w-max: 1440px;
  --w-wide: 1280px;
  --w-narrow: 880px;
  --gutter: clamp(20px, 4vw, 64px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --dur: .8s;

  --radius: 14px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(16, 16, 16, .12); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100%; left: 16px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 18px; font-size: 13px; transition: top .3s var(--ease-out); }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.launch :focus-visible, .site-footer :focus-visible { outline-color: var(--dark-text); }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: var(--w-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }

.overline {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray-2); display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.overline .idx { color: var(--ink); border: 1px solid var(--gray-4); padding: 4px 8px; letter-spacing: .08em; }
.overline::after { content: ''; height: 1px; width: 56px; background: var(--gray-4); }

/* insígnias de capítulo — gravuras de traço (propriedades herdáveis atravessam o <use>) */
.overline-glyph {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: butt; stroke-linejoin: miter;
}
html.js:not(.reduced-motion) .overline-glyph { stroke-dasharray: 1; stroke-dashoffset: 1; }

.title-xl {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.015em;
  color: var(--ink-strong); max-width: 17ch;
}
.lead { max-width: 58ch; margin-top: 26px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; color: var(--gray-1); }

.section { padding: clamp(110px, 13vh, 190px) 0; position: relative; }
.section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
.section-head { margin-bottom: clamp(48px, 7vh, 96px); }
.hero-title, .statement, .title-xl, .launch-statement { text-wrap: balance; }

/* Estados iniciais de revelação — apenas com JS ativo */
html.js .reveal, html.js .reveal-device { opacity: 0; transform: translateY(28px); }
html.js .reveal-lines .rl-word, html.js .statement .st-line > span { transform: translateY(128%); }
html.js.reduced-motion .reveal, html.js.reduced-motion .reveal-device { opacity: 1; transform: none; }
/* Máscaras de revelação com folga para descendentes (j, g, p) e itálicos */
.rl-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .14em .06em; margin: 0 -.1em -.14em -.06em; }
.rl-word { display: inline-block; will-change: transform; }
html:not(.js) .loader { display: none; }
html:not(.js) .countdown { display: none; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .launch-form { display: none; }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding-inline: 30px; font-size: 14px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--ink); border-radius: 999px; overflow: hidden;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), transform .3s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); z-index: -1;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid::before { background: var(--charcoal); transform-origin: top; }
.btn-solid:hover::before { transform: scaleY(1); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--bg); }
.btn-ghost:hover::before { transform: scaleY(1); }
.btn-light { background: var(--dark-text); color: var(--dark-bg); border-color: var(--dark-text); }
.btn-light::before { background: #cfcfcd; transform-origin: top; }
.btn-light:hover::before { transform: scaleY(1); }
.btn-light:hover { color: var(--dark-bg); }

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: clip-path 1s var(--ease-inout);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
html.reduced-motion .loader.is-done { display: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader-mark { width: 92px; color: var(--ink); transform-origin: center; will-change: transform; animation: venia-v-turn 1.4s var(--ease-inout) infinite; }
@keyframes venia-v-turn {
  0% { transform: rotate(0deg) scale(.9); }
  58% { transform: rotate(300deg) scale(1); }
  100% { transform: rotate(360deg) scale(.9); }
}
.loader-mark .ld-bar, .loader-mark .ld-flute, .loader-mark .ld-stroke { opacity: 0; animation: ld-in .7s var(--ease-out) forwards; }
.loader-mark .ld-bar:nth-child(1) { animation-delay: .05s; }
.loader-mark .ld-bar:nth-child(2) { animation-delay: .12s; }
.loader-mark .ld-bar:nth-child(3) { animation-delay: .19s; }
.loader-mark .ld-flute:nth-child(1) { animation-delay: .26s; }
.loader-mark .ld-flute:nth-child(2) { animation-delay: .30s; }
.loader-mark .ld-flute:nth-child(3) { animation-delay: .34s; }
.loader-mark .ld-flute:nth-child(4) { animation-delay: .38s; }
.loader-mark .ld-flute:nth-child(5) { animation-delay: .42s; }
.loader-mark .ld-flute:nth-child(6) { animation-delay: .46s; }
.loader-mark .ld-flute:nth-child(7) { animation-delay: .50s; }
.loader-mark .ld-flute:nth-child(8) { animation-delay: .54s; }
.loader-mark .ld-flute:nth-child(9) { animation-delay: .58s; }
.loader-mark .ld-stroke { animation-delay: .66s; }
@keyframes ld-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loader-word { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .42em; text-indent: .42em; }
.loader-track { width: 180px; height: 1px; background: var(--gray-5); overflow: hidden; }
.loader-fill { height: 100%; width: 0%; background: var(--ink); transition: width .3s var(--ease-out); }
.loader-caption { font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gray-3); }

/* ---------- Progresso / Cursor ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; z-index: 250; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 350; border-radius: 50%; display: none; opacity: 0; transition: opacity .3s; }
.cursor-dot.is-live, .cursor-ring.is-live { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; background: var(--ink); margin: -3px 0 0 -3px; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid var(--gray-3); margin: -18px 0 0 -18px; transition: width .3s, height .3s, margin .3s, border-color .3s, opacity .3s; }
.cursor-ring.is-active { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  html.js:not(.reduced-motion) .cursor-dot, html.js:not(.reduced-motion) .cursor-ring { display: block; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(251, 251, 250, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--gray-5); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.menu-open { z-index: 260; }
.site-header.is-inverted:not(.is-scrolled) { color: var(--dark-text); }
.site-header.is-inverted.is-scrolled { background: rgba(12, 12, 12, .82); border-bottom-color: var(--dark-line); color: var(--dark-text); }
.header-inner { max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .34em; text-indent: .34em; transform: translateY(1px); }
.main-nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.main-nav a { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: inherit; opacity: .72; position: relative; padding: 6px 0; transition: opacity .3s; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav .nav-launch { opacity: 1; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 7px 14px; }
.main-nav .nav-launch::after { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-cta { font-size: 13px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: .85; transition: opacity .3s; }
.header-cta:hover { opacity: 1; }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 260; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 240; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 12px) var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-inout), visibility 0s .7s;
  overflow-y: auto;
}
.menu-overlay.is-open { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path .7s var(--ease-inout), visibility 0s; }
.menu-nav { display: flex; flex-direction: column; gap: 4px; max-width: var(--w-narrow); margin-inline: auto; width: 100%; }
.menu-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 6vh, 52px); line-height: 1.25;
  display: flex; align-items: baseline; gap: 20px; padding: 6px 0; border-bottom: 1px solid var(--gray-5);
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu-overlay.is-open .menu-nav a { opacity: 1; transform: none; }
.menu-nav a em { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--gray-3); letter-spacing: .1em; }
.menu-nav a:hover { padding-left: 10px; transition: padding .35s var(--ease-out), opacity .5s, transform .5s; }
.menu-foot { max-width: var(--w-narrow); margin: 40px auto 0; width: 100%; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--gray-2); flex-wrap: wrap; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .scene {
  z-index: 0;
  -webkit-mask-image: linear-gradient(100deg, transparent 16%, #000 52%);
  mask-image: linear-gradient(100deg, transparent 16%, #000 52%);
}
@media (max-width: 760px) {
  .hero .scene {
    -webkit-mask-image: linear-gradient(180deg, #000 26%, transparent 58%);
    mask-image: linear-gradient(180deg, #000 26%, transparent 58%);
  }
}
.hero-content { position: relative; z-index: 2; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(52px, 8.6vw, 128px); line-height: .98; letter-spacing: -0.02em; color: var(--ink-strong);
  margin: 10px 0 34px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-title .line span { display: block; }
html.js:not(.reduced-motion) .hero-title .line span { transform: translateY(132%); }
.hero-sub { max-width: 54ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--gray-1); }
.hero-ctas { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; }
.hero-meta {
  position: relative; z-index: 2; max-width: var(--w-wide); margin: clamp(40px, 8vh, 90px) auto 0; padding-inline: var(--gutter);
  width: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; padding-bottom: 90px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item strong { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.01em; }
.meta-item span { font-size: 12px; color: var(--gray-2); max-width: 22ch; line-height: 1.45; }
.meta-divider { width: 1px; height: 44px; background: var(--gray-4); }
.meta-source { margin-left: auto; color: var(--gray-3); align-self: flex-end; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--gray-3); }
.scroll-hint .mono { font-size: 9px; letter-spacing: .3em; }
.scroll-hint i { width: 1px; height: 42px; background: var(--gray-4); position: relative; overflow: hidden; display: block; }
.scroll-hint i::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--ink); animation: hint-drop 1.8s var(--ease-inout) infinite; }
@keyframes hint-drop { 0% { top: -50%; } 60%, 100% { top: 110%; } }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { padding: clamp(130px, 18vh, 240px) 0; background: var(--bg); position: relative; }
.statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink-strong); }
.statement .st-line { display: block; overflow: hidden; padding-bottom: .13em; margin-bottom: -.13em; }
.statement .st-line > span { display: block; }
.statement em { font-style: italic; font-weight: 400; }
.manifesto-body { margin-top: clamp(44px, 6vh, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.manifesto-body p { font-size: 15.5px; line-height: 1.75; color: var(--gray-1); }

/* ==========================================================================
   DISPOSITIVO / MOCKUPS
   ========================================================================== */
.device {
  background: var(--paper); border: 1px solid var(--gray-5); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 24px 64px -32px rgba(0,0,0,.14);
  overflow: hidden;
}
.device-chrome { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--gray-6); }
.dc-dots { display: flex; gap: 6px; }
.dc-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gray-4); display: block; }
.dc-dots i:first-child { background: var(--gray-4); }
.dc-title { color: var(--gray-2); font-size: 10px; }
.device-caption { padding: 12px 18px; border-top: 1px solid var(--gray-6); color: var(--gray-2); font-size: 9.5px; letter-spacing: .14em; }

/* --- Divisão da plataforma: texto + painel fixo --- */
.platform-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.platform-device { position: relative; }
.platform-device .device { position: sticky; top: 104px; }
@media (max-width: 1080px) {
  .platform-split { grid-template-columns: 1fr; }
  .platform-device .device { position: static; }
}

/* --- Painel de casos --- */
.ui-dash { display: grid; grid-template-columns: 168px 1fr; min-height: 430px; }
.ui-side { border-right: 1px solid var(--gray-6); padding: 18px 0; background: #fdfdfc; }
.ui-side-brand { padding: 0 18px 14px; color: var(--ink); }
.ui-side-brand svg { width: 22px; height: 22px; }
.ui-side ul li { padding: 8px 18px; font-size: 9.5px; letter-spacing: .14em; color: var(--gray-3); border-left: 2px solid transparent; }
.ui-side ul li.on { color: var(--ink); border-left-color: var(--ink); background: var(--gray-6); }
.ui-main { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.ui-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--gray-5); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi-n { font-family: var(--font-display); font-weight: 300; font-size: 26px; line-height: 1; }
.kpi-l { font-size: 10.5px; color: var(--gray-2); }
.ui-table { border: 1px solid var(--gray-5); border-radius: 10px; overflow: hidden; }
.ui-tr { display: grid; grid-template-columns: 1.35fr 1.5fr 1fr .55fr; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--gray-6); font-size: 12px; }
.ui-tr:last-child { border-bottom: 0; }
.ui-tr .mono { font-size: 10px; letter-spacing: .02em; text-transform: none; color: var(--gray-1); }
.ui-th { background: #fdfdfc; color: var(--gray-3); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.ui-th span { font-size: 9px; }
.ui-tr .urgent { font-weight: 600; }
.chip { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink); padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.chip-mid { background: transparent; color: var(--ink); }
.chip-low { background: transparent; color: var(--gray-3); border-color: var(--gray-4); }
.ui-next { border: 1px solid var(--gray-5); border-radius: 10px; padding: 14px 16px; }
.ui-next-t { color: var(--gray-3); font-size: 9px; margin-bottom: 10px; }
.ui-next ul { display: flex; flex-direction: column; gap: 8px; }
.ui-next li { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; border-bottom: 1px dashed var(--gray-6); padding-bottom: 8px; }
.ui-next li:last-child { border-bottom: 0; padding-bottom: 0; }
.ui-next li .mono { color: var(--gray-2); font-size: 9.5px; white-space: nowrap; }

/* --- Linha do tempo --- */
.timeline-band { margin-top: clamp(70px, 9vh, 120px); padding: clamp(40px, 6vh, 64px) 0; border-top: 1px solid var(--gray-5); border-bottom: 1px solid var(--gray-5); background: var(--bg-soft); overflow: hidden; }
.timeline-scroll { overflow-x: auto; margin-top: 34px; scrollbar-width: none; }
.timeline-scroll::-webkit-scrollbar { display: none; }
.timeline-band.is-scrubbed .timeline-scroll { overflow: hidden; }
.tl-progress, .tl-hint { display: none; }
@media (max-width: 760px) {
  .timeline-scroll {
    scroll-snap-type: x mandatory;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 44px), transparent);
  }
  .tl-event { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .tl-progress { display: block; margin: 20px var(--gutter) 0; height: 1px; background: var(--gray-4); }
  .tl-progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
  .tl-hint { display: inline-block; color: var(--gray-1); font-size: 9px; letter-spacing: .22em; transition: opacity .5s; }
  .timeline-band.is-touched .tl-hint { opacity: 0; }
}
.timeline-track { display: flex; gap: 0; padding-inline: var(--gutter); position: relative; width: max-content; }
.tl-event { position: relative; width: 300px; flex: none; padding: 0 34px 0 0; }
.tl-event::before { content: ''; position: absolute; top: 34px; left: 0; right: 0; height: 1px; background: var(--gray-4); }
.tl-date { display: block; color: var(--gray-2); font-size: 10px; margin-bottom: 18px; }
.tl-dot { position: absolute; top: 30px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-soft); border: 1.5px solid var(--ink); }
.tl-now .tl-dot { background: var(--ink); box-shadow: 0 0 0 5px rgba(16,16,16,.08); }
.tl-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 26px 0 8px; }
.tl-desc { font-size: 12.5px; color: var(--gray-2); line-height: 1.55; display: block; max-width: 24ch; }
.tl-future { opacity: .55; }
.tl-now .tl-name::after { content: 'em curso'; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 999px; padding: 3px 8px; margin-left: 10px; vertical-align: middle; }

/* ==========================================================================
   INTELIGÊNCIA
   ========================================================================== */
.intelligence { padding-top: 0; }
.graph-stage { position: relative; min-height: 130svh; display: flex; align-items: center; }
.graph-stage .scene { position: absolute; inset: 0; }
.graph-overlay { position: relative; z-index: 2; }
.graph-overlay .title-xl, .graph-overlay .lead { text-shadow: 0 0 24px var(--bg), 0 0 48px var(--bg); }
.graph-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.graph-labels span { position: absolute; color: var(--gray-2); font-size: 10px; opacity: 0; transition: opacity .8s var(--ease-out); background: color-mix(in srgb, var(--bg) 78%, transparent); padding: 4px 8px; border: 1px solid var(--gray-5); border-radius: 999px; }
.graph-labels.is-on span { opacity: 1; }
.graph-labels span[data-cluster="0"] { top: 18%; right: 12%; }
.graph-labels span[data-cluster="1"] { top: 38%; right: 26%; transition-delay: .15s; }
.graph-labels span[data-cluster="2"] { top: 58%; right: 9%; transition-delay: .3s; }
.graph-labels span[data-cluster="3"] { top: 74%; right: 30%; transition-delay: .45s; }
.graph-labels span[data-cluster="4"] { top: 30%; right: 40%; transition-delay: .6s; }
.intelligence-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(40px, 6vh, 80px); }

/* --- Chat --- */
.ui-chat { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.ui-chat-context { display: flex; gap: 10px; flex-wrap: wrap; }
.ui-chat-context span { border: 1px solid var(--gray-5); border-radius: 999px; padding: 5px 12px; color: var(--gray-2); font-size: 9px; background: #fdfdfc; }
.ui-msg-user { align-self: flex-end; max-width: 78%; background: var(--ink); color: var(--bg); border-radius: 14px 14px 4px 14px; padding: 14px 18px; font-size: 13px; line-height: 1.6; }
.ui-msg-ai { display: flex; gap: 14px; max-width: 94%; }
.ui-msg-brand { width: 26px; height: 26px; flex: none; border: 1px solid var(--gray-5); border-radius: 8px; padding: 4px; color: var(--ink); }
.ui-msg-content { display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.65; color: var(--charcoal); }
.ui-cite { border-left: 2px solid var(--ink); background: #fdfdfc; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; border-radius: 0 8px 8px 0; }
.ui-cite p { font-size: 12px; color: var(--gray-1); }
.ui-cite-tag { font-size: 8.5px; color: var(--ink); letter-spacing: .12em; }
.ui-cite-inf { border-left-style: dashed; border-left-color: var(--gray-3); }
.ui-cite-inf .ui-cite-tag { color: var(--gray-2); }
.ui-msg-foot { color: var(--gray-3); font-size: 8.5px; letter-spacing: .08em; border-top: 1px dashed var(--gray-5); padding-top: 10px; }
.intelligence-points { display: flex; flex-direction: column; }

/* --- Feature rows --- */
.feature-row { border-top: 1px solid var(--gray-5); padding: 26px 0; }
.feature-row:last-child { border-bottom: 1px solid var(--gray-5); }
.feature-row h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin-bottom: 8px; }
.feature-row p { font-size: 14px; color: var(--gray-1); line-height: 1.65; max-width: 52ch; }

/* ==========================================================================
   JUNTA MULTIAGENTE
   ========================================================================== */
.junta { background: var(--bg-soft); border-block: 1px solid var(--gray-5); }
.junta-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.orbit-wrap { position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto; width: 100%; }
.orbit { position: absolute; inset: 0; border: 1px dashed var(--gray-4); border-radius: 50%; }
.orbit-b { inset: 17%; }
.orbit::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px;
  border-radius: 50%; background: var(--ink);
  offset-path: circle(50% at 50% 50%); offset-distance: 0%;
  animation: orbit-travel 26s linear infinite;
}
.orbit-b::after { animation-duration: 18s; animation-direction: reverse; width: 5px; height: 5px; }
@keyframes orbit-travel { to { offset-distance: 100%; } }
.agent {
  position: absolute; top: var(--y); left: var(--x); translate: -50% -50%;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; padding: 7px 14px;
  white-space: nowrap;
}
.orbit-core { position: absolute; inset: 34%; border-radius: 50%; background: var(--paper); border: 1px solid var(--gray-4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 18px 44px -22px rgba(0,0,0,.18); }
.orbit-core svg { width: 34%; color: var(--ink); }
.orbit-core .mono { color: var(--gray-2); font-size: 9px; }
.synth-card .device-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.synth-block { border: 1px solid var(--gray-5); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.synth-block p { font-size: 13px; line-height: 1.6; color: var(--charcoal); }
.synth-diverge { border-color: var(--ink); border-style: dashed; }

/* ==========================================================================
   SOLUÇÕES
   ========================================================================== */
.sol-index { border-top: 1px solid var(--gray-4); }
.sol-row { border-bottom: 1px solid var(--gray-4); }
.sol-head { width: 100%; display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 18px; padding: clamp(20px, 3vh, 32px) 0; text-align: left; }
.sol-num { color: var(--gray-3); font-size: 12px; transition: color .3s; }
.sol-title { margin: 0; }
.sol-head .sol-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 42px); letter-spacing: -.01em; line-height: 1.1; transition: transform .45s var(--ease-out); }
.sol-head:hover .sol-name { transform: translateX(12px); }
.sol-head:hover .sol-num { color: var(--ink); }
.sol-ico { position: relative; width: 20px; height: 20px; justify-self: end; }
.sol-ico::before, .sol-ico::after { content: ''; position: absolute; background: var(--ink); transition: transform .45s var(--ease-out); }
.sol-ico::before { top: 50%; left: 0; right: 0; height: 1.5px; margin-top: -0.75px; }
.sol-ico::after { left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -0.75px; }
.sol-row[data-open="true"] .sol-ico::after { transform: scaleY(0); }
.sol-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .65s var(--ease-inout); }
.sol-row[data-open="true"] .sol-body { grid-template-rows: 1fr; }
.sol-body-inner { overflow: hidden; padding-left: 88px; }
.sol-body-inner > p { max-width: 62ch; font-size: 15px; color: var(--gray-1); line-height: 1.7; padding-bottom: 8px; }
.sol-body-inner > *:last-child { padding-bottom: clamp(24px, 3.5vh, 40px); }
.sol-tags { color: var(--gray-2); font-size: 10px; padding-top: 8px; }
.sol-mock { border: 1px solid var(--gray-5); border-radius: 12px; background: var(--paper); padding: 18px 20px; margin-bottom: 20px; max-width: 640px; }
.cm-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0 4px; }
.cm-row .mono { text-transform: none; letter-spacing: .04em; font-size: 11px; }
.cm-note { font-size: 12px; color: var(--gray-2); border-bottom: 1px dashed var(--gray-6); padding-bottom: 10px; }
.cm-foot { padding-top: 12px; color: var(--gray-3); font-size: 9px; }
.jur-mock .jm-title { color: var(--gray-2); font-size: 9.5px; margin-bottom: 16px; }
.jm-bar { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 10px; }
.jm-label { font-size: 12px; }
.jm-bar i { display: block; height: 18px; border-radius: 3px; background: var(--charcoal); width: var(--w); min-width: 4px; transform-origin: left; }
.jm-bar:nth-child(3) i { background: var(--gray-2); }
.jm-bar:nth-child(4) i { background: var(--gray-4); }
.jm-val { text-align: right; color: var(--gray-1); font-size: 10px; }
.jm-note { color: var(--gray-3); font-size: 9px; margin-top: 14px; border-top: 1px dashed var(--gray-6); padding-top: 10px; }
.team-mock .tm-row { display: grid; grid-template-columns: 1.6fr .4fr .6fr .8fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--gray-6); font-size: 12px; }
.team-mock .tm-row:last-child { border-bottom: 0; }
.tm-head { color: var(--gray-3); font-size: 9px; }
.load { display: block; height: 4px; border-radius: 2px; background: var(--gray-6); position: relative; overflow: hidden; }
.load::after { content: ''; position: absolute; inset: 0; width: var(--l); background: var(--charcoal); border-radius: 2px; }

/* ==========================================================================
   INTEGRAÇÕES
   ========================================================================== */
.int-map-wrap { margin-bottom: clamp(40px, 6vh, 72px); }
.int-map { width: 100%; height: auto; color: var(--ink); }
.im-lines path { stroke: var(--gray-4); stroke-width: 1; stroke-dasharray: 5 7; animation: dash-flow 2.6s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -24; } }
.im-center circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.im-nodes circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.im-nodes text { fill: var(--gray-1); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-mono); }
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--gray-5); margin-bottom: clamp(48px, 7vh, 88px); }
.int-item { padding: 30px 26px; border-right: 1px solid var(--gray-5); }
.int-item:first-child { padding-left: 0; }
.int-item:last-child { border-right: 0; }
.int-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.int-item p { font-size: 13px; color: var(--gray-1); line-height: 1.65; }
.ui-connectors { padding: 10px 22px; }
.cn-row { display: grid; grid-template-columns: 14px 1.1fr 1.3fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--gray-6); font-size: 13px; }
.cn-row:last-child { border-bottom: 0; }
.cn-status { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.cn-status.mid { background: transparent; border: 1.5px solid var(--ink); }
.cn-name { font-weight: 600; font-size: 13px; }
.cn-info { color: var(--gray-2); font-size: 12.5px; }
.cn-row .mono { color: var(--gray-3); font-size: 9px; text-align: right; }

/* ==========================================================================
   ASSINATURA
   ========================================================================== */
.signature { background: var(--bg); padding: 0; }
.sign-pin { min-height: 100vh; display: flex; align-items: center; padding: clamp(90px, 10vh, 140px) 0; }
.sign-stage { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(36px, 5vw, 90px); align-items: center; }
.sign-steps { margin-top: 40px; display: flex; flex-direction: column; }
.sign-step { display: flex; gap: 22px; padding: 18px 0; border-top: 1px solid var(--gray-5); opacity: .3; transition: opacity .5s var(--ease-out); }
.sign-step.is-active { opacity: 1; }
.sign-step > .mono { color: var(--gray-3); padding-top: 3px; }
.sign-step.is-active > .mono { color: var(--ink); }
.sign-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 5px; }
.sign-step p { font-size: 13px; color: var(--gray-1); line-height: 1.6; max-width: 46ch; }
.sign-doc-wrap { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.sign-doc {
  width: min(430px, 100%); background: var(--paper); border: 1px solid var(--gray-5); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 34px 70px -34px rgba(0,0,0,.22);
  padding: 34px 36px; position: relative; transition: box-shadow .6s var(--ease-out), transform .6s var(--ease-out);
}
.sd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.sd-head svg { width: 30px; color: var(--ink); }
.sd-head .mono { color: var(--gray-2); font-size: 9px; border: 1px solid var(--gray-4); padding: 4px 10px; border-radius: 999px; transition: color .4s, background-color .4s, border-color .4s; }
.sign-doc.st-2 .sd-head .mono, .sign-doc.st-3 .sd-head .mono, .sign-doc.st-4 .sd-head .mono { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sd-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.sd-meta { color: var(--gray-3); font-size: 8.5px; margin: 6px 0 22px; text-transform: none; letter-spacing: .06em; }
.sd-lines i { display: block; height: 7px; border-radius: 3px; background: var(--gray-6); margin-bottom: 9px; width: 100%; }
/* sinete de integridade — carimbado nos estados assinado/protocolado */
.sd-seal {
  position: absolute; right: 24px; bottom: 22px; width: 84px; height: 84px;
  color: var(--ink); pointer-events: none; opacity: 0;
  transform: scale(1.12) rotate(-14deg);
  transition: opacity .45s cubic-bezier(.2, .9, .3, 1), transform .45s cubic-bezier(.2, .9, .3, 1);
}
.sign-doc.st-3 .sd-seal, .sign-doc.st-4 .sd-seal { opacity: .85; transform: scale(1) rotate(-6deg); }
html.reduced-motion .sd-seal { transition: none; }
@media (max-width: 420px) { .sd-seal { width: 68px; height: 68px; bottom: 86px; } }

.sd-sign { margin-top: 26px; border-top: 1px solid var(--gray-5); padding-top: 18px; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.sign-doc.st-2 .sd-sign, .sign-doc.st-3 .sd-sign, .sign-doc.st-4 .sd-sign { opacity: 1; transform: none; }
.sd-sig-line svg { width: 150px; color: var(--ink); }
.sd-sig-line path { stroke-dasharray: 320; stroke-dashoffset: 320; }
.sign-doc.st-2 .sd-sig-line path, .sign-doc.st-3 .sd-sig-line path, .sign-doc.st-4 .sd-sig-line path { animation: sig-draw 1.1s var(--ease-inout) forwards; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }
.sd-sig-name { font-size: 12px; font-weight: 600; margin-top: 6px; }
.sd-tech { margin-top: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 8.5px; color: var(--gray-2); letter-spacing: .05em; text-transform: none; }
.sd-tech span { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); border-left: 2px solid var(--gray-4); padding-left: 10px; overflow-wrap: anywhere; }
.sign-doc.st-3 .sd-hash, .sign-doc.st-4 .sd-hash,
.sign-doc.st-3 .sd-chain, .sign-doc.st-4 .sd-chain { opacity: 1; transform: none; }
.sign-doc.st-3 .sd-chain { transition-delay: .12s; }
.sign-doc.st-3 .sd-stamp, .sign-doc.st-4 .sd-stamp { opacity: 1; transform: none; transition-delay: .24s; }
.sign-doc.st-4 .sd-receipt { opacity: 1; transform: none; transition-delay: .1s; border-left-color: var(--ink); color: var(--ink); }
.sign-principle { margin-top: 4px; color: var(--gray-2); font-size: 10px; text-align: center; max-width: 46ch; line-height: 1.7; }

/* ==========================================================================
   SEGURANÇA
   ========================================================================== */
.security { background: var(--bg); }
.sec-banner { padding: clamp(30px, 5vh, 60px) var(--gutter); }
.sec-statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.16; letter-spacing: -.015em; border-block: 1px solid var(--gray-4); padding: clamp(36px, 6vh, 64px) 0; }
.sec-statement em { font-style: italic; font-weight: 400; color: var(--gray-1); }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); margin: clamp(48px, 7vh, 88px) auto; }
.sec-col h3 { color: var(--gray-2); margin-bottom: 22px; font-size: 10px; }
.sec-col ul { display: flex; flex-direction: column; }
.sec-col li { border-top: 1px solid var(--gray-5); padding: 15px 0 15px 26px; position: relative; font-size: 14.5px; color: var(--charcoal); }
.sec-col li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 10px; height: 1.5px; background: var(--ink); }
.audit-wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.ui-audit { padding: 18px 22px; background: #fdfdfc; }
.au-line { display: grid; grid-template-columns: 64px 110px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--gray-6); font-size: 10px; text-transform: none; letter-spacing: .04em; color: var(--gray-1); }
.au-line:last-child { border-bottom: 0; }
.au-line span:first-child { color: var(--gray-3); }
.au-line span:nth-child(2) { color: var(--ink); font-weight: 500; }
.sec-refs p { color: var(--gray-3); margin-bottom: 18px; }
.sec-refs ul { display: flex; flex-direction: column; }
.sec-refs li { border-top: 1px solid var(--gray-5); padding: 13px 0; font-size: 10px; color: var(--gray-1); text-transform: none; letter-spacing: .06em; }

/* ==========================================================================
   INSTITUCIONAL
   ========================================================================== */
.institutional { background: var(--bg-soft); border-top: 1px solid var(--gray-5); position: relative; overflow: hidden; }
.institutional > .container-narrow { position: relative; z-index: 1; }

/* colonnade — marca-d'água arquitetural, presença de textura (única do site) */
.colonnade-mark {
  position: absolute; top: 10%; right: 0; height: 80%; width: min(46vw, 620px);
  color: var(--gray-5); z-index: 0; pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
@media (min-width: 1081px) {
  html.js:not(.reduced-motion) .colonnade-mark .cm-flute { stroke-dasharray: 1; stroke-dashoffset: 1; }
}
@media (max-width: 1080px) { .colonnade-mark { display: none; } }

/* balança — marca-d'água do manifesto, mesma família da colonnade, ainda mais leve */
.manifesto { position: relative; overflow: hidden; }
.manifesto > .container-narrow { position: relative; z-index: 1; }
.balance-mark {
  position: absolute; top: 6%; right: 0; height: 88%; width: min(44vw, 560px);
  color: var(--gray-5); z-index: 0; pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
@media (min-width: 1081px) {
  html.js:not(.reduced-motion) .balance-mark .bm-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
}
@media (max-width: 1080px) { .balance-mark { display: none; } }

/* espada da justiça — marca-d'água de Soluções, em repouso (ponta para baixo) */
.solutions { overflow: hidden; }
.solutions > .container { position: relative; z-index: 1; }
.sword-mark {
  position: absolute; top: 44px; right: 0; height: min(86%, 920px); width: min(30vw, 400px);
  color: var(--gray-5); z-index: 0; pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
@media (min-width: 1081px) {
  html.js:not(.reduced-motion) .sword-mark .sw-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
}
@media (max-width: 1080px) { .sword-mark { display: none; } }
.inst-body { margin-top: clamp(36px, 5vh, 56px); display: flex; flex-direction: column; gap: 22px; }
.inst-body p { font-size: 15.5px; line-height: 1.75; color: var(--gray-1); }
.inst-body strong { color: var(--ink); font-weight: 600; }
.inst-quote { margin: clamp(48px, 8vh, 90px) 0; }
.inst-quote p { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink-strong); }
.inst-quote em { font-style: italic; }
.inst-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block: 1px solid var(--gray-4); }
.pillar { padding: 28px 24px 32px; border-right: 1px solid var(--gray-4); }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: 0; }
.pillar .mono { color: var(--gray-3); display: block; margin-bottom: 12px; }
.pillar p { font-size: 13.5px; color: var(--gray-1); line-height: 1.65; }

/* ==========================================================================
   LANÇAMENTO
   ========================================================================== */
.launch { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--dark-bg); color: var(--dark-text); overflow: hidden; padding: clamp(110px, 14vh, 180px) 0; }
.launch .scene { opacity: .9; }
.launch-content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.launch .overline { color: var(--dark-muted); justify-content: center; }
.launch .overline::after { background: var(--dark-line); }
.launch-statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.6vw, 62px); line-height: 1.14; letter-spacing: -.015em; max-width: 22ch; margin-inline: auto; }
.countdown { display: flex; align-items: flex-start; gap: clamp(10px, 2.4vw, 28px); margin: clamp(44px, 7vh, 80px) 0 26px; }
.cd-cell { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 9vw, 128px); line-height: 1; letter-spacing: 0; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.cd-label { color: var(--dark-muted); font-size: 10px; }
.cd-sep { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 5vw, 72px); line-height: 1.35; color: var(--dark-line); }
.launch-date { color: var(--dark-muted); font-size: 10px; max-width: 52ch; line-height: 1.8; }
.launch-form { display: flex; gap: 12px; margin-top: clamp(36px, 5vh, 56px); width: min(560px, 100%); }
.launch-form input {
  flex: 1; height: 52px; background: transparent; border: 1px solid var(--dark-line); border-radius: 999px;
  color: var(--dark-text); padding-inline: 24px; font-family: var(--font-body); font-size: 14px; min-width: 0;
  transition: border-color .3s;
}
.launch-form input::placeholder { color: var(--dark-muted); }
.launch-form input:focus-visible { outline: 2px solid var(--dark-text); outline-offset: 2px; border-color: var(--dark-text); }
.launch-form input.is-invalid { border-style: dashed; border-color: var(--dark-text); }
.launch-error { margin-top: 14px; color: var(--dark-text); font-size: 10.5px; }
.launch-confirm { margin-top: 18px; color: var(--dark-text); font-size: 11px; }
.launch-legal { margin-top: 26px; color: var(--dark-muted); font-size: 9.5px; text-transform: none; letter-spacing: .08em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark-bg); color: var(--dark-text); border-top: 1px solid var(--dark-line); padding: clamp(48px, 7vh, 84px) 0 40px; }

/* entablamento — o site termina na base do edifício (eco das 3 barras da marca) */
.footer-architrave { display: flex; flex-direction: column; gap: 7px; margin-bottom: clamp(44px, 6vh, 72px); }
.footer-architrave i { display: block; height: 1px; background: var(--dark-line); transform-origin: left; }
.footer-architrave i:nth-child(2) { width: 92%; }
.footer-architrave i:nth-child(3) { width: 85%; }
html.js:not(.reduced-motion) .footer-architrave i { transform: scaleX(0); }

/* capitéis tipográficos nas colunas de links */
.footer-col > .mono::before { content: ''; display: block; width: 14px; height: 6px; border-top: 1px solid var(--dark-line); border-left: 1px solid var(--dark-line); margin-bottom: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(44px, 6vh, 72px); border-bottom: 1px solid var(--dark-line); }
.footer-mark { width: 44px; color: var(--dark-text); }
.footer-word { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: .34em; margin-top: 16px; }
.footer-tag { color: var(--dark-muted); font-size: 13px; margin-top: 10px; max-width: 26ch; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col > .mono { color: #5f5f5d; margin-bottom: 8px; }
.footer-col a, .footer-col span { font-size: 13px; color: var(--dark-muted); transition: color .3s; }
.footer-col a:hover { color: var(--dark-text); }
.footer-base { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 28px; flex-wrap: wrap; }
.footer-base p { font-size: 11.5px; color: var(--dark-muted); }
.footer-disclaimer { max-width: 52ch; }
.footer-base .mono { font-size: 9px; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  html:not(.js) .main-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .intelligence-grid, .junta-stage, .sign-stage, .audit-wrap { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr 1fr; }
  .int-item { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--gray-5); }
  .int-item:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .graph-labels span[data-cluster] { right: 6% !important; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand-word { display: none; }
  .hero-title { font-size: clamp(44px, 13vw, 72px); }
  .hero-meta { gap: 18px; }
  .meta-divider { display: none; }
  .meta-source { margin-left: 0; }
  .manifesto-body { grid-template-columns: 1fr; }
  .ui-dash { grid-template-columns: 1fr; }
  .ui-side { display: none; }
  .ui-kpis { grid-template-columns: 1fr 1fr; }
  .ui-tr { grid-template-columns: 1fr auto; font-size: 11.5px; }
  .ui-tr span:nth-child(2), .ui-th span:nth-child(2), .ui-th span:nth-child(3) { display: none; }
  .ui-tr span:nth-child(3) { grid-column: 1 / -1; color: var(--gray-2); }
  .sol-head { grid-template-columns: 44px 1fr 30px; }
  .sol-body-inner { padding-left: 0; }
  .int-grid { grid-template-columns: 1fr; }
  .int-item { border-bottom: 1px solid var(--gray-5) !important; }
  .int-item:last-child { border-bottom: 0 !important; }
  .cn-row { grid-template-columns: 10px 1fr; gap: 8px 12px; }
  .cn-info, .cn-row .mono { grid-column: 2; text-align: left; }
  .sec-grid { grid-template-columns: 1fr; }
  .int-map-wrap { display: none; }
  .jm-bar { grid-template-columns: 1fr 44px; }
  .jm-label { grid-column: 1 / -1; }
  .agent { font-size: 8.5px; padding: 5px 10px; }
  .orbit-wrap { max-width: min(440px, calc(100vw - 96px)); }
  .inst-pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--gray-4); padding-left: 0; }
  .pillar:last-child { border-bottom: 0; }
  .countdown { gap: 8px; }
  .cd-sep { display: none; }
  .launch-form { flex-direction: column; }
  .launch-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .au-line { grid-template-columns: 52px 1fr; }
  .au-line span:last-child { grid-column: 1 / -1; padding-left: 0; }
  .sign-pin { min-height: 0; }
  .graph-stage { min-height: 100svh; }
}

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-title .line span, .statement .st-line > span { transform: none !important; }
  .scroll-hint { display: none; }
}
html.reduced-motion .orbit, html.reduced-motion .orbit::after, html.reduced-motion .im-lines path, html.reduced-motion .scroll-hint i::after { animation: none; }
html.reduced-motion .sign-step { opacity: 1; }
html.reduced-motion .hero-title .line span, html.reduced-motion .statement .st-line > span { transform: none; }

/* ==========================================================================
   AMBIENTE DE TRABALHO — capítulo escuro · produto em operação
   ========================================================================== */
.workspace-section { background: var(--dark-bg); color: var(--dark-text); }
.workspace-section .title-xl { color: var(--dark-text); }
.workspace-section .lead { color: var(--dark-muted); }
.workspace-section .overline { color: var(--dark-muted); }
.workspace-section .overline::after { background: var(--dark-line); }
.workspace-section :focus-visible { outline-color: var(--dark-text); }

.ws-frame {
  border: 1px solid #262626; border-radius: 12px; overflow: hidden;
  background: #101010; box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .85);
}

/* --- barra superior --- */
.ws-chrome { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 62px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: #141414; }
.ws-brand { display: flex; align-items: center; gap: 10px; }
.ws-brand svg { width: 21px; height: 21px; }
.ws-brand span { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .3em; transform: translateY(1px); }
.ws-org { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: #b7b8b5; font-size: 12px; transition: border-color .3s, color .3s; }
.ws-org:hover { border-color: rgba(255,255,255,.3); color: var(--dark-text); }
.ws-org svg { width: 12px; height: 12px; }
.ws-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ws-actions button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: #c9c9c6; transition: border-color .3s; }
.ws-actions button:hover { border-color: rgba(255,255,255,.32); }
.ws-actions button svg { width: 15px; height: 15px; }
.ws-notif i { position: absolute; top: 8px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--dark-text); }
.ws-avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--dark-text); color: #111; font-family: var(--font-mono); font-size: 10px; font-weight: 500; }

/* --- cabeçalho do caso --- */
.ws-case { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ws-case-id h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.ws-case-id .mono { display: block; margin-top: 5px; color: #7f817e; font-size: 8.5px; letter-spacing: .08em; }
.ws-case-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-chip { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 12px; color: #c9c9c6; white-space: nowrap; }
.ws-chip.is-solid { background: var(--dark-text); color: #111; border-color: var(--dark-text); }
.ws-chip.is-dashed { border-style: dashed; color: var(--dark-text); }

/* --- abas --- */
.ws-tabs { display: flex; align-items: center; gap: 4px; min-height: 54px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); overflow-x: auto; scrollbar-width: none; }
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tabs button { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; height: 54px; padding: 0 15px; color: #83858a; font-size: 12.5px; font-weight: 500; transition: color .25s; }
.ws-tabs button svg { width: 15px; height: 15px; }
.ws-tabs button::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 1.5px; background: var(--dark-text); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.ws-tabs button:hover { color: #c9c9c6; }
.ws-tabs button.is-active { color: var(--dark-text); }
.ws-tabs button.is-active::after { transform: scaleX(1); }

/* --- painéis --- */
.ws-panel { min-height: 560px; }
html:not(.js) .ws-panel[hidden] { display: block; }
.ws-view { min-height: 560px; }
.ws-kicker { color: #85878b; font-size: 9px; margin-bottom: 16px; display: block; }
.ws-note { font-size: 12px; color: #86888b; line-height: 1.65; margin: 16px 0 26px; }
.ws-foot { margin-top: 26px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.09); color: #7f817e; font-size: 8.5px; letter-spacing: .08em; }

/* barras de proporção */
.ws-fact { display: grid; grid-template-columns: 128px 1fr 28px; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; color: #c9c9c6; }
.ws-fact i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; position: relative; }
.ws-fact i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: #dcdcd9; border-radius: 3px; }
.ws-fact .mono { color: #85878b; font-size: 9px; text-align: right; }

/* --- visão do caso --- */
.view-case { display: grid; grid-template-columns: 1.05fr 1fr 1fr; }
.ws-col { padding: clamp(24px, 2.6vw, 34px); border-right: 1px solid rgba(255,255,255,.07); }
.ws-col:last-child { border-right: 0; }
.ws-map div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.ws-map div:last-child { border-bottom: 0; }
.ws-map dt { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #7f817e; padding-top: 3px; }
.ws-map dd { font-size: 12.5px; color: #d8d8d5; line-height: 1.55; }
.ws-map dd em { font-style: normal; color: #6d6f73; padding: 0 3px; }
.ws-thesis div { border: 1px solid rgba(255,255,255,.09); border-left: 2px solid #dcdcd9; border-radius: 0 8px 8px 0; padding: 12px 14px; margin-bottom: 10px; }
.ws-thesis p { font-size: 12.5px; color: #d8d8d5; margin-bottom: 6px; line-height: 1.5; }
.ws-thesis .mono { color: #9a9c99; font-size: 8.5px; }
.ws-actions-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.ws-actions-list strong { display: block; font-size: 12.5px; font-weight: 500; color: #e8e8e5; }
.ws-actions-list p { font-size: 11px; color: #7f817e; margin-top: 4px; }
.ws-actions-list .mono { color: #9a9c99; font-size: 9px; white-space: nowrap; padding-top: 3px; }
.ws-deadline { margin-top: 22px; border: 1px dashed rgba(255,255,255,.22); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.ws-deadline strong { font-family: var(--font-display); font-weight: 300; font-size: 21px; }
.ws-deadline .mono { color: #85878b; font-size: 8.5px; }

/* --- pesquisa --- */
.view-research { padding: clamp(24px, 2.6vw, 34px); }
.ws-query { display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; padding: 15px 18px; margin-bottom: 28px; flex-wrap: wrap; }
.ws-query svg { width: 16px; height: 16px; color: #9a9c99; flex: none; }
.ws-query p { flex: 1; min-width: 200px; font-size: 13.5px; color: #e8e8e5; }
.ws-query .mono { color: #7f817e; font-size: 8.5px; border-left: 1px solid rgba(255,255,255,.13); padding-left: 14px; }
.ws-research-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 3vw, 44px); }
.ws-answer-text { font-size: 13.5px; line-height: 1.75; color: #c9c9c6; margin-bottom: 24px; }
.ws-source { border: 1px solid rgba(255,255,255,.09); border-left: 2px solid #dcdcd9; border-radius: 0 8px 8px 0; padding: 13px 15px; margin-bottom: 10px; }
.ws-source.is-case { border-left-style: dashed; }
.ws-source-tag { display: block; color: #b5b6b3; font-size: 8.5px; margin-bottom: 6px; }
.ws-source p { font-size: 12px; color: #a9aaa7; line-height: 1.55; }

/* --- documento --- */
.view-document { display: grid; grid-template-columns: .78fr 1.5fr .82fr; }
.ws-outline { padding: clamp(24px, 2.6vw, 34px); }
.ws-outline ol { list-style: none; }
.ws-outline li { padding: 10px 0 10px 14px; border-left: 2px solid rgba(255,255,255,.12); font-size: 12px; color: #8a8c8f; margin-bottom: 2px; transition: color .3s; }
.ws-outline li.is-done { color: #c9c9c6; border-left-color: #7f817e; }
.ws-outline li.is-current { color: var(--dark-text); border-left-color: var(--dark-text); }
.ws-editor { padding: clamp(26px, 2.8vw, 38px); border-inline: 1px solid rgba(255,255,255,.07); }
.ws-editor-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 20px; }
.ws-editor-lines i { display: block; height: 8px; border-radius: 3px; background: rgba(255,255,255,.08); margin-bottom: 11px; width: 100%; }
.ws-editor-text { font-size: 13px; line-height: 2; color: #d3d3d0; margin: 18px 0; }
.ws-ref { font-size: 9px; letter-spacing: .04em; text-transform: none; background: rgba(255,255,255,.06); border-bottom: 1px solid #9a9c99; padding: 2px 5px; border-radius: 3px 3px 0 0; white-space: nowrap; color: #e8e8e5; }
.ws-editor-caption { margin-top: 20px; color: #7f817e; font-size: 8.5px; letter-spacing: .08em; line-height: 1.8; }
.ws-docmeta { padding: clamp(24px, 2.6vw, 34px); }
.ws-meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 12px; }
.ws-meta-row span { color: #8a8c8f; }
.ws-meta-row strong { font-weight: 500; color: #e8e8e5; text-align: right; }
.ws-approvals { margin-top: 20px; }
.ws-cta { margin-top: 24px; width: 100%; height: 46px; border: 1px solid var(--dark-text); border-radius: 999px; background: var(--dark-text); color: #111; font-size: 12.5px; font-weight: 500; transition: background .3s, border-color .3s; }
.ws-cta:hover { background: #cfcfcd; border-color: #cfcfcd; }

/* --- junta jurídica --- */
.view-agents { display: grid; grid-template-columns: .82fr 1.18fr; }
.ws-agents-intro { padding: clamp(26px, 2.8vw, 38px); border-right: 1px solid rgba(255,255,255,.07); }
.ws-agents-intro h4 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -.015em; margin: 10px 0 14px; }
.ws-agents-lead { font-size: 13px; color: #9a9c99; line-height: 1.65; max-width: 42ch; }
.ws-agents-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.ws-agents-meta span { border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 6px 12px; font-size: 8.5px; color: #9a9c99; }
.ws-conclusion { border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 20px 22px; background: rgba(255,255,255,.03); }
.ws-conclusion > .mono { color: #85878b; font-size: 8.5px; }
.ws-conclusion p { font-family: var(--font-display); font-weight: 400; font-size: 16.5px; line-height: 1.5; color: #e8e8e5; margin: 12px 0; }
.ws-confidence { display: block; color: #9a9c99; font-size: 8.5px; margin-bottom: 16px; }
.ws-conclusion button { border-bottom: 1px solid #8a8c8f; padding-bottom: 4px; color: #d8d8d5; font-size: 12px; transition: border-color .3s, color .3s; }
.ws-conclusion button:hover { border-color: var(--dark-text); color: var(--dark-text); }
.ws-trace { padding: 14px clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 30px); }
.ws-trace article { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; min-height: 74px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ws-agent-idx { color: #6d6f73; font-size: 9px; }
.ws-trace strong { display: block; font-size: 13px; font-weight: 600; color: #e8e8e5; }
.ws-trace article p { font-size: 11.5px; color: #85878b; margin-top: 4px; line-height: 1.5; }
.ws-agent-end { display: flex; align-items: center; gap: 14px; }
.ws-agent-end .mono { color: #6d6f73; font-size: 8.5px; white-space: nowrap; }
.ws-status { font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 5px 11px; color: #c9c9c6; white-space: nowrap; }
.ws-status.is-attention { border-style: dashed; color: var(--dark-text); }
.ws-status.is-ready { background: var(--dark-text); border-color: var(--dark-text); color: #111; }
.ws-supervisor { background: rgba(255,255,255,.035); border-radius: 10px; border-bottom: 0 !important; padding-inline: 14px; margin-top: 8px; }
.ws-divergence { margin-top: 18px; border: 1px dashed rgba(255,255,255,.25); border-radius: 10px; padding: 15px 17px; }
.ws-divergence .mono { color: var(--dark-text); font-size: 8.5px; }
.ws-divergence p { font-size: 12px; color: #a9aaa7; margin-top: 7px; line-height: 1.55; }

/* --- auditoria --- */
.view-audit { padding: clamp(24px, 2.6vw, 34px); }
.ws-audit-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ws-audit-filters span { border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 6px 13px; font-size: 8.5px; color: #85878b; }
.ws-audit-filters .is-on { background: var(--dark-text); border-color: var(--dark-text); color: #111; }
.ws-log-line { display: grid; grid-template-columns: 64px 112px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 10px; text-transform: none; letter-spacing: .04em; }
.ws-log-line span:first-child { color: #6d6f73; }
.ws-log-line span:nth-child(2) { color: #e8e8e5; font-weight: 500; }
.ws-log-line span:last-child { color: #a9aaa7; }
.ws-demo-note { margin-top: 18px; text-align: center; color: #6d6f73; font-size: 8.5px; letter-spacing: .14em; }

/* --- deck móvel do ambiente --- */
.ws-deck { display: contents; }
.ws-deck-ui { display: none; }
.ws-tabs-wrap { display: contents; }
.ws-deck-count, .ws-deck-progress, .ws-more { display: none; }

/* --- responsivo do ambiente --- */
@media (max-width: 1080px) {
  .view-case, .view-agents { grid-template-columns: 1fr; }
  .ws-col, .ws-agents-intro { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .ws-col:last-child { border-bottom: 0; }
  .view-document { grid-template-columns: 1fr; }
  .ws-editor { border-inline: 0; border-block: 1px solid rgba(255,255,255,.07); }
  .ws-research-grid { grid-template-columns: 1fr; }
  .ws-panel, .ws-view { min-height: 0; }

  /* barra de abas fixa durante a exploração do deck */
  .ws-frame { overflow: visible; }
  .ws-chrome { border-radius: 12px 12px 0 0; }
  .ws-tabs-wrap { position: sticky; top: 0; z-index: 6; background: #141414; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ws-tabs { flex: 1; min-width: 0; border-bottom: 0; }
  .ws-deck-count { display: block; color: #85878b; font-size: 9px; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
  .ws-deck-progress { display: block; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1.5px; background: var(--dark-text); transform-origin: left; transform: scaleX(0); z-index: 2; }
  .ws-deck .ws-panel { transition: opacity .4s var(--ease-out); }
  .ws-deck .ws-panel.is-dim { opacity: .55; }

  /* abas com indicação de continuação */
  .ws-tabs {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 44px), transparent);
  }

  /* painéis viram cartões percorríveis lado a lado */
  .ws-deck {
    display: flex; gap: 12px; padding: 14px 14px 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 14px;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .ws-deck::-webkit-scrollbar { display: none; }
  .ws-deck .ws-panel {
    flex: 0 0 min(86%, 540px); scroll-snap-align: start; scroll-snap-stop: always;
    border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #131313;
    overflow: hidden;
  }
  html.js .ws-deck .ws-panel[hidden] { display: block; }

  .ws-deck-ui { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
  .ws-hint { color: #7f817e; font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; transition: opacity .6s; }
  .ws-deck-ui.is-used .ws-hint { opacity: 0; }
  .ws-dots { display: flex; gap: 7px; }
  .ws-dots i { display: block; width: 18px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.16); transition: background .35s, width .35s; }
  .ws-dots i.is-on { width: 30px; background: #e8e8e5; }
}
@media (max-width: 760px) {
  .ws-chrome { grid-template-columns: auto 1fr auto; height: 56px; }
  .ws-org { justify-self: end; }
  .ws-org span { display: none; }
  .ws-org::before { content: 'A&D'; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; }
  .ws-actions button:first-child { display: none; }
  .ws-case { padding: 16px 18px; }
  .ws-case-id h3 { font-size: 16px; }
  .ws-fact { grid-template-columns: 104px 1fr 24px; }
  .ws-query > .mono { display: none; }
  .ws-trace article { grid-template-columns: 26px 1fr auto; }
  .ws-agent-end > .mono { display: none; }
  .ws-log-line { grid-template-columns: 52px 1fr; }
  .ws-log-line span:last-child { grid-column: 1 / -1; }

  /* digest por painel: o cartão resumido mostra o essencial; "Ver painel completo" restaura */
  html.js .ws-panel:not(.is-expanded) .view-case .ws-col:nth-child(2),
  html.js .ws-panel:not(.is-expanded) .view-case .ws-actions-list,
  html.js .ws-panel:not(.is-expanded) .view-case .ws-col:nth-child(3) .ws-kicker { display: none; }
  .view-case .ws-map div { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
  .view-case .ws-deadline { margin-top: 4px; }
  html.js .ws-panel:not(.is-expanded) .view-research .ws-lines,
  html.js .ws-panel:not(.is-expanded) .view-research .ws-source:nth-of-type(2),
  html.js .ws-panel:not(.is-expanded) .view-research .ws-foot { display: none; }
  html.js .ws-panel:not(.is-expanded) .view-document .ws-outline { display: none; }
  .view-document .ws-editor .ws-editor-lines:last-of-type { display: none; }
  html.js .ws-panel:not(.is-expanded) .view-document .ws-docmeta > .ws-meta-row { display: none; }
  html.js .ws-panel:not(.is-expanded) .ws-agents-lead,
  html.js .ws-panel:not(.is-expanded) .ws-agents-meta,
  html.js .ws-panel:not(.is-expanded) .ws-agents-intro h4,
  html.js .ws-panel:not(.is-expanded) .ws-divergence { display: none; }
  .ws-trace article { min-height: 0; padding-block: 12px; }
  html.js .ws-panel:not(.is-expanded) .ws-trace article:nth-of-type(5):not(.ws-supervisor) { display: none; }
  html.js .ws-panel:not(.is-expanded) .ws-trace article p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ws-conclusion { padding: 16px; }
  .ws-conclusion p { font-size: 14.5px; }
  .view-audit .ws-audit-filters { display: none; }
  .ws-col, .ws-agents-intro, .ws-trace, .view-research, .view-document > div, .view-audit { padding: 20px 18px; }

  /* expansor por cartão */
  .ws-more {
    display: block; width: calc(100% - 36px); margin: 0 18px 18px; padding: 12px 0 10px;
    color: #9a9c99; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
    border-top: 1px dashed rgba(255,255,255,.12); text-align: left; transition: color .3s;
  }
  .ws-more::after { content: '+'; float: right; font-size: 11px; line-height: 1; }
  .ws-panel.is-expanded .ws-more::after { content: '−'; }
  .ws-more:active { color: var(--dark-text); }
}

/* ---------- Números tabulares (dados não tremem ao contar) ---------- */
[data-counter] { font-variant-numeric: tabular-nums; }

/* ---------- Costura claro → escuro: régua que se desenha ---------- */
.workspace-section::before, .launch::before {
  content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px;
  background: currentColor; opacity: .22; transform: scaleX(var(--seam, 1)); transform-origin: left;
}
html.js:not(.reduced-motion) .workspace-section, html.js:not(.reduced-motion) .launch { --seam: 0; }

/* ---------- Estados de toque (superfícies sem hover) ---------- */
@media (hover: none) {
  .btn, .sol-head, .ws-tabs button, .menu-nav a, .ws-more { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .btn:active { transform: scale(.985); }
  .btn-ghost:active { color: var(--bg); }
  .btn-ghost:active::before { transform: scaleY(1); }
  .sol-head .sol-name { transition: transform .3s var(--ease-out); }
  .sol-head:active .sol-name { transform: translateX(6px); }
  .sol-head:active .sol-num { color: var(--ink); }
  .ws-tabs button:active { color: var(--dark-text); }
  .menu-nav a:active, .footer-col a:active { opacity: .6; }
  .ws-org:active { border-color: rgba(255,255,255,.4); color: var(--dark-text); }
}

/* auditoria: digest já mostra tudo que interessa — sem expansor */
#ws-panel-audit .ws-more { display: none; }

/* sem JS: cartões completos, expansor não existe, assinatura visível */
html:not(.js) .ws-more { display: none !important; }
html:not(.js) .sd-sign, html:not(.js) .sd-tech span { opacity: 1; transform: none; }
html:not(.js) .sd-seal { opacity: .85; transform: scale(1) rotate(-6deg); }

/* ---------- Impressão: tudo legível, nada preso no estado pré-animação ---------- */
@media print {
  html.js .reveal, html.js .reveal-device { opacity: 1 !important; transform: none !important; }
  html.js .reveal-lines .rl-word, html.js .statement .st-line > span,
  html.js .hero-title .line span { transform: none !important; }
  html.js .overline-glyph { stroke-dashoffset: 0 !important; }
  html.js .footer-architrave i { transform: none !important; }
  .workspace-section, .launch { --seam: 1 !important; }
  .sd-sign, .sd-tech span { opacity: 1 !important; transform: none !important; }
  .sd-seal { opacity: .85 !important; transform: scale(1) rotate(-6deg) !important; }
  .scene, .loader, .cursor-ring, .cursor-dot { display: none !important; }
}

/* Fallback sem WebGL */
html.no-webgl .scene { display: none; }
html.no-webgl .hero { background: radial-gradient(ellipse 70% 55% at 68% 42%, var(--gray-6), transparent 70%); }
html.no-webgl .graph-stage { background: radial-gradient(ellipse 60% 50% at 70% 50%, var(--gray-6), transparent 72%); min-height: 0; padding: clamp(90px, 12vh, 150px) 0; }
html.no-webgl .launch { background: radial-gradient(ellipse 70% 60% at 50% 60%, #191919, var(--dark-bg) 75%); }
