/* ============================================================
   ADVANCED SCALE — IDENTIDADE ALTERNATIVA
   Preto premium, tipografia editorial e laranja institucional.
   + modo claro (data-theme="light"): preto sobre branco quente.
   Uma folha só para landing e briefing.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root,
html[data-theme="dark"] {
  color-scheme: dark;

  --void: #0d0d0d;
  --panel: #121212;
  --panel-2: #1a1a1a;

  --brand-primary: #f97316;
  --brand-light: #fb8c1a;
  --brand-dark: #d65a00;
  --brand-on-primary: #0d0d0d;

  --light: #f0efec;
  --light-85: rgba(240, 239, 236, 0.85);
  --light-70: rgba(240, 239, 236, 0.7);
  --light-55: rgba(240, 239, 236, 0.55);
  --light-38: rgba(240, 239, 236, 0.38);
  --light-24: rgba(240, 239, 236, 0.24);
  --light-14: rgba(240, 239, 236, 0.14);
  --light-09: rgba(240, 239, 236, 0.09);
  --light-05: rgba(240, 239, 236, 0.05);

  --edge: var(--light-09);
  --edge-strong: rgba(240, 239, 236, 0.2);

  --nav-scrolled: rgba(13, 13, 13, 0.86);
  --eyebrow-bg: rgba(13, 13, 13, 0.6);
  --void-60: rgba(13, 13, 13, 0.6);
  --void-45: rgba(13, 13, 13, 0.45);
  --btn-hover: var(--brand-light);
  --preview-shadow: rgba(0, 0, 0, 0.85);
  --ink-rgb: 240, 239, 236;
  --void-rgb: 13, 13, 13;

  --font-display: "Montserrat", "Inter", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ============ LIGHT THEME ============ */

html[data-theme="light"] {
  color-scheme: light;

  --void: #f0efec;
  --panel: #ffffff;
  --panel-2: #e8e7e3;

  --light: #060607;
  --light-85: rgba(6, 6, 7, 0.85);
  --light-70: rgba(6, 6, 7, 0.7);
  --light-55: rgba(6, 6, 7, 0.55);
  --light-38: rgba(6, 6, 7, 0.38);
  --light-24: rgba(6, 6, 7, 0.24);
  --light-14: rgba(6, 6, 7, 0.14);
  --light-09: rgba(6, 6, 7, 0.09);
  --light-05: rgba(6, 6, 7, 0.05);

  --edge: var(--light-09);
  --edge-strong: rgba(6, 6, 7, 0.16);

  --nav-scrolled: rgba(240, 239, 236, 0.88);
  --eyebrow-bg: rgba(255, 255, 255, 0.72);
  --void-60: rgba(240, 239, 236, 0.72);
  --void-45: rgba(240, 239, 236, 0.55);
  --btn-hover: #000000;
  --preview-shadow: rgba(6, 6, 7, 0.18);
  --ink-rgb: 6, 6, 7;
  --void-rgb: 240, 239, 236;
}

/* grão um pouco mais sutil no fundo claro */
html[data-theme="light"] .noise::after { opacity: 0.03; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--light);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 280ms var(--ease), color 280ms var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 11px 16px;
  border: 1px solid var(--light-38);
  border-radius: 999px;
  background: var(--light);
  color: var(--void);
  font-size: 0.86rem;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img, svg, canvas { display: block; max-width: 100%; }
ul { list-style: none; }
button { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
em { font-style: normal; }

:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.mono { font-family: var(--font-mono); }

::selection { background: var(--brand-primary); color: var(--brand-on-primary); }

/* ============ NOISE (ruído por seção, não global) ============ */

.noise::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ============ PRELOADER ============ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
  color: var(--light);
  transition: opacity 600ms var(--ease), visibility 600ms;
}

.preloader.done { opacity: 0; visibility: hidden; }

.preloader-word {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
}

.preloader-bar {
  position: absolute;
  left: 50%;
  bottom: 34vh;
  transform: translateX(-50%);
  width: min(220px, 50vw);
  height: 1px;
  background: var(--light-14);
}

.preloader-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand-primary);
  transition: width 120ms linear;
}

/* ============ CURSOR ============ */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0;
}

/* o nosso cursor só aparece depois do primeiro movimento (antes ficava parado no meio) */
body.has-cursor.cursor-live .cursor-dot, body.has-cursor.cursor-live .cursor-ring { opacity: 1; }
/* esconde o do sistema em TUDO: antes só em a/button/[data-cursor], e campos de texto,
   FAQ, chips e a faixa tinham cursor próprio — o do sistema aparecia por cima */
body.has-cursor, body.has-cursor * { cursor: none !important; }

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--brand-primary);
}

.cursor-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid var(--light-38);
  transition: width 300ms var(--ease), height 300ms var(--ease), margin 300ms var(--ease),
              background 300ms var(--ease), border-color 300ms var(--ease);
}

.cursor-ring span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--void);
  opacity: 0;
  transition: opacity 200ms ease;
}

.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--light);
}

.cursor-ring.is-label {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: var(--light);
  border-color: var(--light);
}

.cursor-ring.is-label span { opacity: 1; }

body:has(.wwith.done:hover):not(:has(.wwith-btn:hover)) .cursor-dot {
  background: var(--void);
}

body:has(.wwith.done:hover):not(:has(.wwith-btn:hover)) .cursor-ring {
  border-color: var(--void-45);
}

body:has(.wwith.done:hover):not(:has(.wwith-btn:hover)) .cursor-ring.is-hover {
  border-color: var(--void);
}

body:has(.wwith.done:hover):not(:has(.wwith-btn:hover)) .cursor-ring.is-label {
  background: var(--void);
  border-color: var(--void);
}

body:has(.wwith.done:hover):not(:has(.wwith-btn:hover)) .cursor-ring.is-label span {
  color: var(--light);
}

/* ============ NAVBAR ============
   Barra transparente no topo; ao rolar (ou com o menu do celular aberto)
   ganha a superfície de vidro. No celular, preserva o mesmo comportamento:
   tema e menu à direita, três barras que viram X, painel que cresce em
   altura (grid 0fr → 1fr) com os links entrando em cascata. */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 340ms var(--ease), border-color 340ms var(--ease), box-shadow 340ms var(--ease);
}

.navbar.scrolled,
.navbar.menu-open {
  background: var(--nav-scrolled);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom-color: var(--edge);
  box-shadow: 0 10px 34px -18px var(--preview-shadow);
}

/* menu aberto: quase opaco, pra o título do topo não brigar com os links */
.navbar.menu-open { background: rgba(var(--void-rgb), 0.97); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 100%;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
}

/* grade de 3 colunas: as pontas dividem o espaço por igual, então os links do
   meio não andam quando o nome some (com space-between eles andavam) */
.navbar-inner {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  animation: navDrop 680ms var(--ease) both;
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand-icon { width: 28px; height: 28px; object-fit: contain; }

/* logos por tema — sem FOUC (ambas no DOM, CSS escolhe) */
.brand-icon-light { display: none; }
html[data-theme="light"] .brand-icon-dark { display: none; }
html[data-theme="light"] .brand-icon-light { display: block; }
html[data-theme="dark"] .brand-icon-dark { display: block; }
html[data-theme="dark"] .brand-icon-light { display: none; }

/* "ADVANCED SCALE" ao lado do logo: ao rolar, as letras sobem e somem da última
   pra primeira; com a barra rolada, passar o mouse no logo traz de volta. */
.brand-word {
  display: inline-flex;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding-block: 2px;
  max-width: 190px;
  transition: max-width 520ms var(--ease) 120ms;
}

.brand-word i:nth-child(n + 10) { color: var(--brand-primary); }

.brand-word i {
  font-style: normal;
  display: inline-block;
  transition: transform 460ms var(--ease), opacity 360ms var(--ease);
  transition-delay: calc(var(--i, 0) * 28ms);
}

.navbar.scrolled .brand-word { max-width: 0; transition-delay: 160ms; }
.navbar.scrolled .brand-word i {
  transform: translateY(-120%);
  opacity: 0;
  transition-delay: calc((7 - var(--i, 0)) * 26ms);
}

@media (hover: hover) {
  .navbar.scrolled .brand:hover .brand-word { max-width: 190px; transition-delay: 0ms; }
  .navbar.scrolled .brand:hover .brand-word i { transform: none; opacity: 1; transition-delay: calc(var(--i, 0) * 28ms + 60ms); }
}

.navbar-links { display: flex; align-items: center; gap: 4px; }

.navbar-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--light-55);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 150ms ease, background 150ms ease;
}

.navbar-links a:hover { color: var(--light); background: var(--light-05); }

.navbar-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }

/* botões redondos da barra (idioma, tema, menu) */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--light-14);
  color: var(--light-70);
  background: transparent;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 250ms var(--ease);
}

.nav-icon-btn:hover { color: var(--light); border-color: var(--light-38); background: var(--light-05); }
.nav-icon-btn:active { transform: scale(0.94); }

/* ============ THEME TOGGLE ============
   O ícone troca com um arco: sai por cima e entra por baixo. */
.theme-icon { position: relative; width: 16px; height: 16px; overflow: hidden; }

.theme-icon svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  transition: transform 420ms var(--ease), opacity 260ms ease;
}

html[data-theme="dark"] .theme-icon .icon-moon,
html[data-theme="light"] .theme-icon .icon-sun { transform: translate(9px, -14px) rotate(35deg); opacity: 0; }
html[data-theme="dark"] .theme-icon .icon-sun,
html[data-theme="light"] .theme-icon .icon-moon { transform: none; opacity: 1; }

/* botão de tema das páginas internas (blog, briefing), marcação antiga */
.theme-toggle:not(.nav-icon-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--light-14);
  color: var(--light-70);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.theme-toggle:not(.nav-icon-btn):hover { color: var(--light); border-color: var(--light-38); background: var(--light-05); }
.theme-toggle:not(.nav-icon-btn) > svg { width: 16px; height: 16px; display: none; }
html[data-theme="dark"] .theme-toggle:not(.nav-icon-btn) > .icon-sun,
html[data-theme="light"] .theme-toggle:not(.nav-icon-btn) > .icon-moon { display: block; }

/* ============ IDIOMA ============ */
.lang { position: relative; }
.lang-current { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 168px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--edge-strong);
  border-radius: 14px;
  box-shadow: 0 24px 50px -20px var(--preview-shadow);
  transform-origin: top right;
  animation: langIn 260ms var(--ease) both;
}

@keyframes langIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--light-70);
  font-size: 0.88rem;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.lang-menu button .mono { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--light-55); width: 20px; }
.lang-menu button:hover { background: var(--light-05); color: var(--light); }
.lang-menu button[aria-checked="true"] { color: var(--light); background: var(--light-09); }

/* ============ MENU (celular) ============ */
.nav-burger { display: none; }

.nav-burger-box { position: relative; display: block; width: 17px; height: 12px; }

.nav-burger-box i {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.6px;
  margin-top: -0.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 320ms var(--ease), opacity 160ms ease;
}

.nav-burger-box i:nth-child(1) { transform: translateY(-5px); }
.nav-burger-box i:nth-child(3) { transform: translateY(5px); }
.nav-burger.is-open i:nth-child(1) { transform: rotate(45deg); }
.nav-burger.is-open i:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-burger.is-open i:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 340ms var(--ease);
}

.mobile-nav-inner { overflow: hidden; min-height: 0; }
.navbar.menu-open .mobile-nav-panel { grid-template-rows: 1fr; }

.mobile-nav-grid { display: flex; flex-direction: column; gap: 6px; padding-block: 6px 20px; }

.mobile-nav-pill {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--light-70);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), background 160ms ease, color 160ms ease;
}

.mobile-nav-pill:hover, .mobile-nav-pill:active { color: var(--light); background: var(--light-05); }

.navbar.menu-open .mobile-nav-pill { opacity: 1; transform: none; }
.navbar.menu-open .mobile-nav-pill:nth-child(2) { transition-delay: 35ms; }
.navbar.menu-open .mobile-nav-pill:nth-child(3) { transition-delay: 70ms; }
.navbar.menu-open .mobile-nav-pill:nth-child(4) { transition-delay: 105ms; }
.navbar.menu-open .mobile-nav-pill:nth-child(5) { transition-delay: 140ms; }
.navbar.menu-open .mobile-nav-pill:nth-child(6) { transition-delay: 175ms; }

.mobile-nav-cta {
  margin-top: 10px;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms var(--ease) 120ms, transform 300ms var(--ease) 120ms;
}

.navbar.menu-open .mobile-nav-cta { opacity: 1; transform: none; }

@media (min-width: 901px) { .mobile-nav-panel { display: none; } }

@media (max-width: 900px) {
  .navbar > .container .navbar-links { display: none; }
  .navbar .nav-cta { display: none; }
  .navbar .nav-burger { display: inline-flex; }
  .navbar-actions { gap: 6px; }
  .navbar-inner { height: 60px; }
  .brand { gap: 7px; }
  .brand-icon { width: 24px; height: 24px; }
  .brand-word { max-width: 150px; font-size: 0.6rem; letter-spacing: 0.09em; }
}

@media (max-width: 420px) {
  .brand-word { max-width: 118px; font-size: 0.52rem; letter-spacing: 0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-word, .brand-word i, .nav-burger-box i, .mobile-nav-panel, .mobile-nav-pill, .mobile-nav-cta, .theme-toggle svg { transition: none !important; }
  .navbar-inner, .lang-menu { animation: none; }
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  border: 1px solid var(--brand-primary);
}

.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); box-shadow: 0 0 28px -8px rgba(249, 115, 22, 0.75); }

.btn-secondary {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--light-24);
}

.btn-secondary:hover { border-color: var(--light-55); background: var(--light-05); }

.btn-lg { height: 48px; padding: 0 26px; font-size: 0.95rem; }

.btn[disabled], .btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 90px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.shape-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-content a, .hero-content button { pointer-events: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  margin-bottom: 30px;
  border: 1px solid var(--light-14);
  border-radius: 999px;
  background: var(--eyebrow-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--light-70);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-primary);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.2rem);
  /* limita a largura para a frase nunca invadir a figura de partículas */
  max-width: 12em;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--light);
  /* Máscara com o dobro da altura do título:
       0–38%   opaco (letras inteiras, estado inicial)
       38–50%  borda macia do fade que sobe
       50–100% degradê final: topo apagado → base inteira
     Começa mostrando a metade de cima (tudo branco) e desliza até a de
     baixo: a frente do fade nasce embaixo e sobe pelas letras. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.34) 50%, #000 94%, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.34) 50%, #000 94%, #000 100%);
  -webkit-mask-size: 100% 200%;
  mask-size: 100% 200%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

body.ready .hero-title {
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transition: -webkit-mask-position 1.9s var(--ease) 1.05s, mask-position 1.9s var(--ease) 1.05s;
}

.hero-title em { font-style: normal; color: var(--brand-primary); }

.line-mask { display: block; overflow: hidden; padding-block: 0.06em; }

.line-mask .line {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-expo);
}

body.ready .line-mask .line { transform: translateY(0); }
body.ready .line-mask:nth-child(2) .line { transition-delay: 90ms; }
body.ready .line-mask:nth-child(3) .line { transition-delay: 180ms; }

.reveal-line {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: 420ms;
}

body.ready .reveal-line { opacity: 1; transform: translateY(0); }

.hero-sub {
  max-width: 560px;
  margin-top: 30px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--light-55);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.hero-footer {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--light-38);
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.hero-scroll-cue i {
  display: block;
  width: 1px;
  height: 34px;
  background: var(--light-14);
  position: relative;
  overflow: hidden;
}

.hero-scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light);
  animation: scroll-cue 1.8s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============ MARQUEE ============ */

.marquee-section {
  padding: 30px 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  overflow: hidden;
}

.marquee { overflow: hidden; white-space: nowrap; }

.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  will-change: transform;
}

.marquee-inner span {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--light-38);
  cursor: default;
  transition: color 300ms ease, text-shadow 400ms ease, transform 400ms var(--ease);
}

/* passar o mouse: a palavra acende, as outras recuam um pouco */
.marquee:hover .marquee-inner span { color: var(--light-24); }
.marquee .marquee-inner span:hover {
  color: var(--light);
  text-shadow: 0 0 28px var(--light-38);
  transform: translateY(-2px);
}

.marquee-inner i {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--light-24);
}

/* ============ SECTIONS shared ============ */

.section { padding: 130px 0; }
.section-line { border-block: 1px solid var(--edge); }

.section-heading { max-width: 680px; margin-bottom: 64px; }
.section-heading-wide { max-width: 900px; }

.section-index {
  display: block;
  margin-bottom: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brand-primary);
}

.section-heading h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.section-heading p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--light-55);
}

/* split reveal (títulos sobem por palavra) */
.split-reveal .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.split-reveal .w > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform 900ms var(--ease-expo);
}

.split-reveal.in .w > i { transform: translateY(0); }

/* ============ STATUS CHIPS ============ */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--light-14);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--light-55);
  white-space: nowrap;
}

.status-chip i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--light-38);
}

.status-live { border-color: var(--light-38); color: var(--light-85); }
.status-live i { background: var(--brand-primary); animation: pulse 2s ease infinite; }

/* ============ PRODUTO — ADVANCED MESSAGE ============ */

.product-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  padding: 52px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color 300ms ease;
}

.product-panel:hover { border-color: var(--edge-strong); }

.product-copy { display: flex; flex-direction: column; align-items: flex-start; }

.product-copy h3 {
  margin-top: 26px;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.product-copy > p {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--light-55);
}

.product-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--light-55);
}

.product-flow b { color: var(--light-24); font-weight: 400; }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
}

.product-link svg {
  width: 18px;
  height: 18px;
  transition: transform 300ms var(--ease);
}

.product-panel:hover .product-link svg { transform: translateX(6px); }

.product-visual {
  display: grid;
  place-items: center;
  min-height: 280px;
}

/* lista curta do que o produto faz */
.product-points {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.product-points li {
  font-size: 1rem;
  color: var(--light-70);
}

/* ============ SIMULAÇÃO DE WHATSAPP (Advanced Message) ============
   Cores do próprio WhatsApp de propósito: a pessoa reconhece o app
   na hora. Segue o tema do site (claro/escuro). */

.wa {
  --wa-bg: #0b141a;
  --wa-head: #202c33;
  --wa-in: #202c33;
  --wa-out: #005c4b;
  --wa-text: #e9edef;
  --wa-meta: #8696a0;
  --wa-accent: #00a884;
  --wa-sys: #182229;
  --wa-dots: rgba(233, 237, 239, 0.035);

  width: min(360px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: var(--wa-bg);
  border: 1px solid var(--edge-strong);
  box-shadow: 0 30px 80px -30px var(--preview-shadow);
  color: var(--wa-text);
  font-size: 0.86rem;
  line-height: 1.38;
}

html[data-theme="light"] .wa {
  --wa-bg: #efeae2;
  --wa-head: #f0f2f5;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-text: #111b21;
  --wa-meta: #667781;
  --wa-accent: #008069;
  --wa-sys: #ffffff;
  --wa-dots: rgba(17, 27, 33, 0.04);
}

.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--wa-head);
}

.wa-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wa-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.wa-id { display: flex; flex-direction: column; }
.wa-id b { font-weight: 600; font-size: 0.92rem; }
.wa-id small { color: var(--wa-meta); font-size: 0.74rem; }

.wa-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 440px;
  padding: 14px 12px 16px;
  overflow: hidden;
  background-color: var(--wa-bg);
  background-image: radial-gradient(var(--wa-dots) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
}

.wa-msg {
  position: relative;
  max-width: 82%;
  padding: 7px 10px 6px;
  border-radius: 10px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  flex-shrink: 0;
}

.wa-msg time {
  float: right;
  margin: 6px 0 -3px 10px;
  font-size: 0.66rem;
  color: var(--wa-meta);
}

.wa-in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 3px; }
.wa-out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 3px; }

.wa-slots { display: flex; gap: 6px; margin-top: 8px; }
.wa-slots i {
  font-style: normal;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--wa-accent);
  color: var(--wa-accent);
  font-size: 0.76rem;
  font-weight: 600;
}
.wa-slots i.on { background: var(--wa-accent); color: #fff; }

.wa-card { display: flex; flex-direction: column; gap: 2px; min-width: 62%; }
.wa-card time { align-self: flex-end; float: none; margin: 4px 0 -3px; }
.wa-card-tag { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--wa-accent); font-weight: 600; }
.wa-card b { font-size: 0.95rem; font-weight: 600; }
.wa-card span:not(.wa-card-tag) { color: var(--wa-meta); font-size: 0.78rem; }

.wa-sys {
  align-self: center;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--wa-sys);
  color: var(--wa-meta);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}

.wa-typing {
  display: none;
  align-self: flex-start;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 10px;
  border-top-left-radius: 3px;
  background: var(--wa-in);
  flex-shrink: 0;
}
.wa-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-meta);
  animation: waDot 1.1s infinite ease-in-out;
}
.wa-typing i:nth-child(2) { animation-delay: 0.15s; }
.wa-typing i:nth-child(3) { animation-delay: 0.3s; }
.wa-typing.wa-typing-out { align-self: flex-end; background: var(--wa-out); border-radius: 10px; border-top-right-radius: 3px; }

@keyframes waDot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* animação só liga via JS (sem JS: conversa inteira visível) */
.wa-anim .wa-msg,
.wa-anim .wa-sys { display: none; }
.wa-anim .wa-msg.show,
.wa-anim .wa-sys.show { display: block; animation: waIn 320ms var(--ease) both; }
.wa-anim .wa-card.show { display: flex; }
.wa-anim .wa-typing.show { display: flex; }

@keyframes waIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ============ PORTFÓLIO — destaque ============ */

.work-feature {
  display: block;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 300ms ease;
}

.work-feature:hover { border-color: var(--edge-strong); }

.work-feature-media {
  aspect-ratio: 1600 / 775;
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
  background: var(--panel-2);
}

.work-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.2s var(--ease);
}

.work-feature:hover .work-feature-media img { transform: scale(1.025); }

/* um print por tema */
.theme-img-light { display: none; }
html[data-theme="light"] .theme-img-dark { display: none; }
html[data-theme="light"] .theme-img-light { display: block; }

.work-feature-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 30px;
}

.work-feature-tag {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--light-38);
}

.work-feature-info h3 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.work-feature-info p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--light-55);
}

.work-feature .product-link { margin-top: 0; white-space: nowrap; }
.work-feature:hover .product-link svg { transform: translateX(6px); }

/* entregas assinadas */
.works { margin-top: 64px; }

.works-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--light-38);
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 70px;
  align-items: center;
  gap: 24px;
  padding: 26px 20px;
  margin: 0 -20px;
  border-bottom: 1px solid var(--edge);
  overflow: hidden;
}

.work-row:first-of-type { border-top: 1px solid var(--edge); }

.work-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 450ms var(--ease-expo);
  z-index: 0;
}

.work-row:hover::after { transform: scaleY(1); transform-origin: top; }

.work-row > * { position: relative; z-index: 1; }

.work-name {
  font-size: clamp(1.2rem, 0.9rem + 1.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color 250ms ease, transform 450ms var(--ease);
}

.work-kind { font-size: 0.88rem; color: var(--light-38); transition: color 250ms ease; }
.work-year { font-size: 0.75rem; color: var(--light-24); text-align: right; transition: color 250ms ease; }

.work-row:hover .work-name { color: var(--void); transform: translateX(14px); }
.work-row:hover .work-kind { color: var(--void-60); }
.work-row:hover .work-year { color: var(--void-45); }

/* preview flutuante das entregas */
.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 340px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  will-change: transform;
}

.work-preview.on { opacity: 1; }

.preview-window {
  background: var(--panel);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -24px var(--preview-shadow);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--edge);
}

.preview-bar i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--light-14);
}

.preview-url {
  margin-left: 8px;
  font-size: 0.64rem;
  color: var(--light-38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-body {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, var(--light-05) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, var(--light-05) 23px 24px),
    var(--panel-2);
}

.preview-letter {
  font-size: 6.4rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--light-24);
}

.preview-image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.work-preview.has-image .preview-image { display: block; }
.work-preview.has-image .preview-letter { display: none; }

.preview-kind {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--light-38);
}

/* ============ SERVIÇOS — grade de linhas ============
   Interação de atendimento adaptada aos tokens da Advanced Scale,
   preservando tempos e curvas do sistema visual.

   As linhas não existem até a grade entrar na viewport. Quando entra, elas
   nascem nos dois vãos centrais (as interseções) e se desenham devagar até
   as bordas. Depois de prontas, de tempos em tempos um reflexo prata bem
   suave percorre a linha.
     elemento  → a linha definitiva (hairline), desenha com scale e FICA
     ::after   → o reflexo periódico que desliza pela linha depois de pronta */

:root,
html[data-theme="dark"],
html[data-theme="light"] { --svc-glint: var(--brand-primary); }

.services-grid-lines {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* linhas iguais: a divisória horizontal do overlay fica exatamente em 50% */
  grid-auto-rows: 1fr;
}

.service-grid-cell {
  position: relative;
  min-height: 210px;
  padding: 2.6rem 2.5rem;
}

.service-grid-cell > a {
  display: block;
  height: 100%;
  color: inherit;
}

.svc-line {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: var(--light-09);
  overflow: hidden;
}

.svc-line::after {
  content: "";
  position: absolute;
  opacity: 0;
}

/* escondidas até o scroll chegar (só com JS ativo; sem JS ficam estáticas) */
body.js-reveal-ready .services-grid-lines:not(.visible) .svc-line { opacity: 0; }

/* verticais: nascem no meio (onde cruzam a horizontal) e crescem até topo/base */
.svc-line-v {
  top: 0;
  bottom: 0;
  width: 1px;
  transform-origin: 50% 50%;
}
.svc-line-v1 { left: calc(100% / 3 - 0.5px); }
.svc-line-v2 { left: calc(200% / 3 - 0.5px); }

/* horizontal em duas metades: cada uma nasce na interseção com a vertical */
.svc-line-h {
  top: calc(50% - 0.5px);
  height: 1px;
  width: 50%;
}
.svc-line-h-left { left: 0; transform-origin: calc(200% / 3) 50%; }
.svc-line-h-right { left: 50%; transform-origin: calc(100% / 3) 50%; }

.services-grid-lines.visible .svc-line-v { animation: svcLineDrawY 2.2s cubic-bezier(0.65, 0, 0.35, 1) both; }
.services-grid-lines.visible .svc-line-h { animation: svcLineDrawX 2.2s cubic-bezier(0.65, 0, 0.35, 1) both; }

@keyframes svcLineDrawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes svcLineDrawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* reflexo periódico: gradiente longo de bordas esfumadas */
.svc-line-v::after {
  left: 0;
  right: 0;
  top: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--svc-glint) 50%, transparent);
}
.svc-line-h::after {
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(to right, transparent, var(--svc-glint) 50%, transparent);
}
.services-grid-lines.visible .svc-line-v::after {
  animation: svcGlintY var(--svc-glint-period, 11s) linear var(--svc-glint-delay, 5s) infinite;
}
/* as metades só desenham a linha; quem brilha é .svc-line-h-glint.
   Períodos e atrasos dessincronizados: os reflexos nunca acontecem em coro */
.svc-line-v1 { --svc-glint-period: 9.5s; --svc-glint-delay: 4.2s; }
.svc-line-v2 { --svc-glint-period: 12.5s; --svc-glint-delay: 7.8s; }

@keyframes svcGlintY {
  0% { transform: translateY(-100%); opacity: 0; }
  8% { opacity: 0.5; }
  22% { opacity: 0.5; }
  30% { transform: translateY(225%); opacity: 0; }
  100% { transform: translateY(225%); opacity: 0; }
}

/* reflexo da horizontal, largura cheia: o elemento tem 22% da linha, então
   percorrer tudo exige transladar 100/0,22 ≈ 455% da própria largura */
@keyframes svcGlintXFull {
  0% { transform: translateX(-100%); opacity: 0; }
  6% { opacity: 0.5; }
  36% { opacity: 0.5; }
  42% { transform: translateX(455%); opacity: 0; }
  100% { transform: translateX(455%); opacity: 0; }
}

.svc-line-h-glint {
  top: calc(50% - 0.5px);
  left: 0;
  width: 100%;
  height: 1px;
  background: transparent;
  --svc-glint-period: 11s;
  --svc-glint-delay: 6.1s;
}

.svc-line-h-glint::after {
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  background: linear-gradient(to right, transparent, var(--svc-glint) 50%, transparent);
}

.services-grid-lines.visible .svc-line-h-glint::after {
  animation: svcGlintXFull var(--svc-glint-period) linear var(--svc-glint-delay) infinite;
}

.service-grid-cell svg {
  width: 20px;
  height: 20px;
  color: var(--brand-primary);
  margin-bottom: 1.6rem;
}

.service-grid-cell h3 {
  color: var(--light);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

.service-grid-cell p {
  max-width: 290px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--light-55);
  transition: color 250ms ease;
}

.service-grid-cell a:hover p { color: var(--light-85); }

/* botão de briefing logo abaixo da grade, centralizado */
.section-cta.services-cta {
  margin-top: 48px;
  padding-top: 0;
  border-top: 0;
  justify-content: center;
}

/* tablet (2 col): bordas estáticas, sem overlay (a geometria de 3 colunas não casa) */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .service-grid-cell { border-bottom: 1px solid var(--light-09); }
  .service-grid-cell:nth-of-type(odd) { border-right: 1px solid var(--light-09); }
  .service-grid-cell:nth-last-of-type(-n+2) { border-bottom: 0; }
  .svc-line { display: none; }
}

/* celular (1 col): cada card desenha a própria linha quando entra na tela */
@media (max-width: 767px) {
  .services-grid-lines { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .svc-line { display: none; }
  .service-grid-cell { min-height: auto; padding: 2rem 0; }
  .service-grid-cell:not(:last-of-type)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    transform-origin: 50% 50%;
    background: var(--light-09);
  }
  body.js-reveal-ready .service-grid-cell:not(.visible)::after { opacity: 0; }
  .service-grid-cell.visible:not(:last-of-type)::after { animation: svcLineDrawX 1.8s cubic-bezier(0.65, 0, 0.35, 1) both; }
  /* nth-of-type: os spans .svc-line também são filhos da grade */
  .service-grid-cell:nth-of-type(2).visible::after { animation-delay: 120ms; }
  .service-grid-cell:nth-of-type(3).visible::after { animation-delay: 240ms; }
  .service-grid-cell:nth-of-type(4).visible::after { animation-delay: 360ms; }
  .service-grid-cell:nth-of-type(5).visible::after { animation-delay: 480ms; }
  .work-feature-info { flex-direction: column; align-items: flex-start; padding: 22px 20px 24px; }
}

/* ============ NÓS TRABALHAMOS COM… ============
   Presa na rolagem (sticky dentro de uma seção alta). O JS escreve a
   posição do giro (--ww) e o progresso da virada final (--wf, 0→1). */

.wwith { position: relative; height: 380vh; }

.wwith-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* fundo invertido que cresce do centro na virada final */
.wwith-fill {
  position: absolute;
  inset: 0;
  background: var(--light);
  clip-path: inset(calc(50% - 50% * var(--wf, 0)) calc(50% - 50% * var(--wf, 0)) round calc(40px * (1 - var(--wf, 0))));
  opacity: min(1, calc(var(--wf, 0) * 6));
}

.wwith-stage { position: relative; display: grid; place-items: center; }
.wwith-stage > * { grid-area: 1 / 1; }

.wwith-line {
  display: flex;
  align-items: center;
  gap: 0.28em;
  font-size: clamp(2rem, 1rem + 4.4vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  opacity: calc(1 - var(--wf, 0) * 2.2);
  transform: translateY(calc(var(--wf, 0) * -40px));
}

.wwith-wheel {
  position: relative;
  display: block;
  height: 3.3em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
}

.wwith-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.wwith-track span {
  display: block;
  height: 1.1em;
  line-height: 1.1em;
  white-space: nowrap;
  color: var(--brand-primary);
  will-change: opacity;
}

.wwith-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  text-align: center;
  color: var(--void);
  opacity: clamp(0, calc((var(--wf, 0) - 0.55) * 3), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--wf, 0) - 0.55) * 3), 1)) * 30px));
  pointer-events: none;
}

.wwith.done .wwith-final { pointer-events: auto; }

.wwith-you {
  font-size: clamp(2rem, 1rem + 4.4vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.wwith-you u {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / calc(var(--wu, 0) * 100%) 0.07em;
  padding-bottom: 0.06em;
}

.wwith-btn {
  height: 54px;
  padding: 0 30px;
  gap: 10px;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  border: 1px solid var(--brand-primary);
  font-size: 1rem;
}

.wwith-btn svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.wwith-btn:hover { background: var(--brand-light); border-color: var(--brand-light); box-shadow: 0 16px 40px -14px rgba(249, 115, 22, 0.5); }
.wwith-btn:hover svg { transform: translateX(3px); }

@media (max-width: 760px) {
  .wwith-line { flex-direction: column; gap: 0.3em; text-align: center; }
  .wwith-track span { text-align: center; }
}

/* sem animação: só a frase final, sem prender a rolagem */
.wwith.static { height: auto; }
.wwith.static .wwith-sticky { position: relative; height: auto; padding-block: 120px; }
.wwith.static .wwith-line { display: none; }

/* ============ AVISO DE COOKIES ============
   Janela pequena, centralizada, sem cobrir a página com fundo escuro. */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  width: min(560px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--edge-strong);
  box-shadow: 0 24px 60px -24px var(--preview-shadow);
  transform: translateX(-50%);
  animation: cookieIn 520ms var(--ease) both;
}

.cookie-notice.out { animation: cookieOut 300ms var(--ease) both; }

@keyframes cookieIn { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes cookieOut { to { opacity: 0; transform: translate(-50%, 14px); } }

.cookie-text { flex: 1; font-size: 0.84rem; line-height: 1.5; color: var(--light-70); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 44px; padding: 0 16px; justify-content: center; font-size: 0.82rem; }

@media (max-width: 600px) {
  /* no celular sobe acima do botão do Kairo */
  .cookie-notice { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .cookie-actions .btn { flex: 1 1 calc(33.333% - 6px); }
}

@media (prefers-reduced-motion: reduce) { .cookie-notice, .cookie-notice.out { animation: none; } }

/* ============ TEXTO QUE ACENDE NA ROLAGEM ============
   Palavra a palavra, com um leve subir. A parte comum termina meio apagada;
   a parte em destaque (<em>) termina inteira. Usado na virada do diagnóstico. */
[data-scroll-lit] .lw {
  display: inline-block;
  color: var(--light-14);
  transform: translateY(0.18em);
  transition: color 500ms ease, transform 700ms var(--ease);
}
[data-scroll-lit] .lw.on { color: var(--light-38); transform: none; }
[data-scroll-lit] em .lw.on { color: var(--light); }

/* ============ KAIRO — chat ============ */
.kairo { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 110; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }

.kairo-launch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: var(--light);
  color: var(--void);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 18px 40px -14px var(--preview-shadow);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), padding 300ms var(--ease);
  animation: kairoPop 600ms var(--ease) 1.4s both;
}
.kairo-launch:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px var(--preview-shadow); }
.kairo-launch svg { width: 22px; height: 22px; }
.kairo-ic-close { display: none; }
.kairo.open .kairo-ic-chat { display: none; }
.kairo.open .kairo-ic-close { display: block; }

@keyframes kairoPop { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }

.kairo-panel {
  width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100svh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--edge-strong);
  border-radius: 26px;
  box-shadow: 0 40px 90px -30px var(--preview-shadow), 0 0 0 1px var(--light-05);
  overflow: hidden;
  transform-origin: bottom right;
  animation: kairoIn 380ms var(--ease) both;
}
@keyframes kairoIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }

/* sem cabeçalho: só o X discreto no canto, por cima da conversa */
.kairo-panel { position: relative; }
.kairo-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--light-55);
  background: var(--panel);
  transition: background 160ms ease, color 160ms ease;
}
.kairo-x:hover { background: var(--light-05); color: var(--light); }
.kairo-x svg { width: 15px; height: 15px; }
/* no computador o botão redondo de baixo já fecha: painel 100% conversa, sem X.
   No celular o chat ocupa a tela toda e esconde o botão, então o X fica. */
@media (min-width: 521px) { .kairo-x { display: none; } }
@media (max-width: 520px) { .kairo-log > .kairo-msg:first-child { margin-right: 34px; } }

.kairo-log { flex: 1; overflow-y: auto; padding: 22px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }

.kairo-msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: kairoMsg 320ms var(--ease) both; }
.kairo-msg.bot { align-self: flex-start; background: var(--light-05); border: 0; border-bottom-left-radius: 6px; }
.kairo-msg.me { align-self: flex-end; background: var(--light); color: var(--void); border-bottom-right-radius: 5px; }
@keyframes kairoMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.kairo-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; margin-top: -2px; animation: kairoMsg 360ms var(--ease) 120ms both; }
.kairo-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--light-24);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 200ms var(--ease);
}
.kairo-act:hover { background: var(--light-05); border-color: var(--light-55); transform: translateY(-1px); }
.kairo-act.primary { background: var(--light); color: var(--void); border-color: var(--light); }
.kairo-act.primary:hover { background: var(--btn-hover); }
.kairo-act svg { width: 14px; height: 14px; }

.kairo-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 15px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--light-05); }
.kairo-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--light-55); animation: waDot 1.1s infinite ease-in-out; }
.kairo-typing i:nth-child(2) { animation-delay: 0.15s; }
.kairo-typing i:nth-child(3) { animation-delay: 0.3s; }

.kairo-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.kairo-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--edge-strong); font-size: 0.78rem; color: var(--light-70); transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.kairo-chip:hover { background: var(--light-05); color: var(--light); border-color: var(--light-38); }

.kairo-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 16px; border: 1px solid var(--edge-strong); border-radius: 22px; background: var(--void); transition: border-color 160ms ease; }
.kairo-form:focus-within { border-color: var(--light-38); }
.kairo-form textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--light); font: inherit; font-size: 0.9rem; line-height: 1.45; padding: 7px 0; max-height: 120px; }
.kairo-form textarea::placeholder { color: var(--light-38); }
.kairo-send { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--light); color: var(--void); transition: opacity 160ms ease, transform 200ms var(--ease); }
.kairo-send:disabled { opacity: 0.3; cursor: default; }
.kairo-send:not(:disabled):hover { transform: translateX(2px); }
.kairo-send svg { width: 16px; height: 16px; }

.kairo-note { padding: 10px 18px 14px; font-size: 0.66rem; line-height: 1.45; color: var(--light-55); text-align: center; }
.kairo-note a { color: var(--light-70); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  .kairo { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .kairo.open { inset: 0; right: 0; bottom: 0; align-items: stretch; gap: 0; }
  .kairo.open .kairo-launch { display: none; }
  .kairo-panel { width: 100%; height: 100%; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .kairo-launch, .kairo-panel, .kairo-msg, .kairo-actions { animation: none; }
}

/* ============ BLOG (páginas servidas pelo Advanced Scale OS) ============ */

.blog-body { padding-top: 0; }
.navbar-solid { background: var(--nav-scrolled); backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge); }
.blog-main { padding-top: 92px; }

.blog-index .section-heading h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

/* lista simples de artigos: data · título e resumo · seta */
.post-list { border-top: 1px solid var(--edge); }

.post-row {
  display: grid;
  grid-template-columns: 180px 1fr 24px;
  align-items: baseline;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--edge);
}

.post-meta { font-size: 0.64rem; letter-spacing: 0.14em; color: var(--light-38); text-transform: uppercase; }

.post-row-text h2 {
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  transition: transform 350ms var(--ease);
}

.post-row-text p {
  margin-top: 8px;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--light-55);
}

.post-row-arrow {
  width: 20px;
  height: 20px;
  align-self: center;
  color: var(--light-38);
  transition: transform 350ms var(--ease), color 250ms ease;
}

.post-row:hover .post-row-text h2 { transform: translateX(6px); }
.post-row:hover .post-row-arrow { color: var(--light); transform: translateX(6px); }

/* ---- compatibilidade: blog antigo em cache ----
   O blog de antes (filtros + cartões) ficou em cache no navegador de quem já
   visitou, sem Cache-Control, e carrega /styles.css sem versão. Sem estas
   regras ele aparece quebrado com o CSS novo. Pode sair lá por nov/2026. */
.blog-tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-55);
  border: 1px solid var(--edge);
  border-radius: 999px;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}

.post-tag:hover { color: var(--light); border-color: var(--edge-strong); }
.post-tag b { font-weight: 400; color: var(--light-24); }
.post-tag-on { color: var(--light); border-color: var(--edge-strong); background: var(--light-05); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 250ms ease, transform 300ms var(--ease);
}

.post-card:hover { border-color: var(--edge-strong); transform: translateY(-3px); }

.post-card-link { display: flex; flex-direction: column; flex: 1; }

.post-card-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-card-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.post-card-body h2,
.post-card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-card-body p { font-size: 0.9rem; line-height: 1.6; color: var(--light-55); }

.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 22px; }

@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
/* ---- fim da compatibilidade ---- */

.blog-pagination {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--light-38);
  font-size: 0.75rem;
}

.blog-empty {
  padding: 72px 32px;
  text-align: center;
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.blog-empty strong { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.blog-empty p { margin: 12px auto 24px; max-width: 44ch; color: var(--light-55); line-height: 1.6; }

.blog-cta {
  margin-top: 72px;
  padding: 44px 40px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  background: var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-cta p {
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 30ch;
}

.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- post ---- */

.post-head { padding: 64px 0 40px; }
.post-head-inner { max-width: 760px; }
.post-back { display: table; margin-bottom: 28px; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--light-38); }
.post-back:hover { color: var(--light); }

.post-head h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.post-lede { margin-top: 20px; font-size: 1.12rem; line-height: 1.6; color: var(--light-70); }
.post-author { display: block; margin-top: 26px; font-size: 0.66rem; letter-spacing: 0.16em; color: var(--light-38); }

.post-cover { margin-bottom: 52px; }
.post-cover img { width: 100%; max-width: 980px; border-radius: var(--radius-lg); border: 1px solid var(--edge); }

.post-body { max-width: 760px; padding-bottom: 40px; }

/* ---- prosa do artigo ---- */

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--light-85); }
.prose > * + * { margin-top: 26px; }

.prose h2 {
  margin-top: 52px;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--light);
}

.prose h3 {
  margin-top: 40px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--light);
}

.prose h4 { margin-top: 32px; font-size: 1.02rem; font-weight: 600; color: var(--light); }

.prose a { color: var(--light); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--light-38); }
.prose a:hover { text-decoration-color: var(--light); }

.prose strong { font-weight: 650; color: var(--light); }

/* o reset global zera list-style; no corpo do artigo os marcadores importam */
.prose ul { padding-left: 22px; list-style: disc; }
.prose ol { padding-left: 22px; list-style: decimal; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--light-38); }

.prose blockquote {
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--edge-strong);
  color: var(--light-70);
  font-size: 1.1rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  background: var(--light-05);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
}

.prose pre {
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow-x: auto;
}

.prose pre code { padding: 0; background: none; border: 0; font-size: 0.84rem; line-height: 1.6; }

.post-related { padding: 64px 0 100px; border-top: 1px solid var(--edge); }
.post-related .section-index { margin-bottom: 28px; }

/* ============ CTA DE FIM DE SEÇÃO ============ */

.section-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section-cta p {
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--light-70);
  max-width: 52ch;
}

/* ============ FAQ ============ */

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.faq-intro { position: sticky; top: 120px; }

.faq-intro h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.faq-intro > p {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--light-55);
  max-width: 38ch;
}

.faq-intro-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-list { border-top: 1px solid var(--edge); }

.faq-item { border-bottom: 1px solid var(--edge); }

.faq-q {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: baseline;
  gap: 16px;
  padding: 26px 14px;
  margin: 0 -14px;
  cursor: pointer;
  list-style: none;
  transition: background 260ms var(--ease);
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--light-05); }

.faq-q:focus-visible {
  outline: 1px solid var(--light);
  outline-offset: -1px;
}

.faq-num {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  opacity: 0.58;
  transition: opacity 260ms var(--ease);
}

.faq-q:hover .faq-num,
.faq-q:focus-visible .faq-num,
.faq-item[open] .faq-num { opacity: 1; }

.faq-q-text {
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--light-85);
}

.faq-item[open] .faq-q-text { color: var(--light); }

/* sinal + que vira × ao abrir */
.faq-sign {
  position: relative;
  width: 14px;
  height: 14px;
  align-self: center;
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--light-55);
  transition: transform 320ms var(--ease), background 260ms var(--ease);
}

.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::before { transform: rotate(45deg); background: var(--light); }
.faq-item[open] .faq-sign::after { transform: rotate(-45deg); background: var(--light); }

.faq-a {
  padding: 0 14px 28px 70px;
  margin: 0 -14px;
}

/* resposta entra deslizando (funciona em todos os navegadores) */
.faq-item[open] .faq-a { animation: faqIn 460ms var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* onde o navegador deixa animar a altura (Chrome/Edge recentes), abre e fecha suave */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 460ms var(--ease), content-visibility 460ms allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a { animation: none; }
  .faq-item::details-content { transition: none; }
}

.faq-a p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--light-55);
  max-width: 62ch;
}

/* ============ DIAGNÓSTICO — DORES ============
   Lista no desenho do "What we build" do Pixelverse: ícone redondo, frase
   grande, a solução em uma linha à direita e a seta. No hover o círculo
   enche, o ícone faz um gesto próprio (globo gira, balão "digita", relógio
   anda, célula da planilha acende) e a linha inteira se aproxima. */

.pain-list { list-style: none; border-top: 1px solid var(--edge); }
.pain-list li { border-bottom: 1px solid var(--edge); }

.pain-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 1fr) 24px;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  background-image: linear-gradient(90deg, rgba(249, 115, 22, 0.06), rgba(249, 115, 22, 0) 58%);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size 500ms var(--ease);
}

.pain-row:hover,
.pain-row:focus-visible { background-size: 100% 100%; }

.pain-row.io-reveal {
  opacity: 0;
  transform: translateX(-64px);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease);
}
.pain-row.io-reveal.in { opacity: 1; transform: none; }
.pain-list li:nth-child(2) .pain-row { transition-delay: 110ms; }
.pain-list li:nth-child(3) .pain-row { transition-delay: 220ms; }
.pain-list li:nth-child(4) .pain-row { transition-delay: 330ms; }

.pain-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light-05);
  color: var(--light-70);
  transition: background 380ms var(--ease), color 380ms var(--ease), transform 500ms var(--ease);
}

.pain-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--light-24);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 380ms var(--ease), transform 500ms var(--ease);
}

.pain-icon svg { width: 22px; height: 22px; overflow: visible; }

.pain-symptom {
  font-size: clamp(1.25rem, 0.9rem + 1.3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--light-85);
  transition: color 320ms var(--ease), transform 500ms var(--ease);
}

.pain-fix {
  max-width: 40ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--light-55);
  transition: color 320ms var(--ease);
}

.pain-chev {
  width: 22px;
  height: 22px;
  color: var(--light-24);
  transition: color 320ms var(--ease), transform 450ms var(--ease);
}

.pain-row:hover .pain-icon, .pain-row:focus-visible .pain-icon { background: var(--brand-primary); color: var(--brand-on-primary); transform: scale(1.04); }
.pain-row:hover .pain-icon::after, .pain-row:focus-visible .pain-icon::after { border-color: var(--brand-primary); opacity: 1; transform: none; }
.pain-row:hover .pain-symptom, .pain-row:focus-visible .pain-symptom { color: var(--light); transform: translateX(6px); }
.pain-row:hover .pain-fix { color: var(--light-85); }
.pain-row:hover .pain-chev, .pain-row:focus-visible .pain-chev { color: var(--brand-primary); transform: translateX(6px); }

/* gesto de cada ícone */
.pain-icon-globe .ic-meridian { transform-origin: 12px 12px; }
.pain-row:hover .pain-icon-globe .ic-meridian { animation: icSpin 1.6s var(--ease) infinite; }
@keyframes icSpin { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.15); } 100% { transform: scaleX(1); } }

.pain-row:hover .pain-icon-chat .ic-dot { animation: icType 900ms ease-in-out infinite; }
.pain-row:hover .pain-icon-chat .ic-dot:nth-of-type(2) { animation-delay: 120ms; }
.pain-row:hover .pain-icon-chat .ic-dot:nth-of-type(3) { animation-delay: 240ms; }
@keyframes icType { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-2.5px); } }

.pain-icon-clock .ic-hand, .pain-icon-clock .ic-hand2 { transform-origin: 12px 12px; transition: transform 700ms var(--ease); }
.pain-row:hover .pain-icon-clock .ic-hand { transform: rotate(360deg); transition-duration: 1.2s; }
.pain-row:hover .pain-icon-clock .ic-hand2 { transform: rotate(90deg); }

.pain-icon-grid .ic-cell { opacity: 0; transform-origin: 12px 12px; transform: scale(0.4); transition: opacity 300ms ease, transform 400ms var(--ease); }
.pain-row:hover .pain-icon-grid .ic-cell { opacity: 1; transform: none; }

.pain-pivot {
  margin-top: 84px;
  text-align: center;
}

.pain-pivot-text {
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--light-38);
}

.pain-pivot-text em {
  font-style: normal;
  color: var(--light);
}

.pain-pivot-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============ MANIFESTO + NÚMEROS ============
   Faixa no desenho do "about" do Pixelverse: frase forte + continuação
   apagada, palavra a palavra conforme rola; embaixo uma hairline, os
   números à esquerda e o botão à direita. */

.manifesto { padding: 150px 0; background: var(--panel); border-block: 1px solid var(--edge); }

.manifesto-text {
  max-width: 980px;
  font-size: clamp(1.6rem, 1rem + 2.7vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: balance;
}

.manifesto-text .mw { color: var(--light-14); transition: color 420ms ease; }
.manifesto-text .mw.on { color: var(--light); }
.manifesto-text .mf-muted .mw.on { color: var(--light-55); }

.manifesto-foot {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.metrics { display: flex; flex-wrap: wrap; gap: 28px 56px; margin: 0; }
.metric { display: flex; flex-direction: column; gap: 8px; }

.metric-value {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.process-principles { align-items: flex-start; }
.process-principles .metric { max-width: 230px; }
.process-value {
  max-width: 12ch;
  font-size: clamp(1.08rem, 0.96rem + 0.55vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.metric dd { margin: 0; font-size: 0.88rem; color: var(--light-55); }

.manifesto-cta svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.manifesto-cta:hover svg { transform: translateX(3px); }

/* ============ CTA — BURACO NEGRO ============ */

.cta-void {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 1px solid var(--edge);
  background: #000;
  /* buraco negro fica sempre escuro, independente do tema */
  color: #f0efec;
  --light: #f0efec;
  --light-85: rgba(240, 239, 236, 0.85);
  --light-70: rgba(240, 239, 236, 0.7);
  --light-55: rgba(240, 239, 236, 0.55);
  --light-38: rgba(240, 239, 236, 0.38);
  --light-24: rgba(240, 239, 236, 0.24);
  --light-14: rgba(240, 239, 236, 0.14);
  --light-09: rgba(240, 239, 236, 0.09);
  --light-05: rgba(240, 239, 236, 0.05);
  --void: #060607;
  --btn-hover: #ffffff;
  --edge: rgba(240, 239, 236, 0.09);
}

.void-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.cta-void-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  /* faixa do disco ASCII (1.2 x raio, raio máx. 480px) antes do texto */
  padding: calc(min(48vw, 576px) + 80px) 0 175px;
  pointer-events: none;
}

.cta-void-inner a { pointer-events: auto; }

.cta-void .section-index { color: var(--light-38); }

.cta-title {
  font-size: clamp(2.6rem, 1.6rem + 5.4vw, 5.8rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--light-70);
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

.cta-title em {
  font-style: normal;
  color: var(--brand-primary);
}

/* The word reveal still clips the entrance animation, but leaves enough ink
   space for accents, rounded terminals and descenders such as the "g". */
.cta-title.split-reveal .w {
  overflow: clip;
  overflow-clip-margin: 0.18em;
}

.cta-actions { margin-top: 52px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }

.btn-giant {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 24px 44px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: box-shadow 300ms ease, background 300ms ease;
  will-change: transform;
}

.btn-giant svg {
  width: 24px;
  height: 24px;
  transition: transform 300ms var(--ease);
}

.btn-giant:hover { background: var(--btn-hover); box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.1), 0 0 80px -12px rgba(249, 115, 22, 0.55); }
.btn-giant:hover svg { transform: translateX(6px); }

.cta-actions .btn-giant {
  height: 72px;
  min-height: 72px;
  padding-block: 0;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--edge);
  overflow: hidden;
  background: var(--void);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 72px 0 40px;
}

.footer-label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--light-38);
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--light-55);
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--light-55);
  transition: color 200ms ease, transform 250ms var(--ease);
  width: fit-content;
}

.footer-col a:hover { color: var(--light); transform: translateX(4px); }

.footer-link-btn {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--light-55);
  font: inherit;
  font-size: 0.88rem;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease, transform 250ms var(--ease);
}

.footer-link-btn:hover { color: var(--light); transform: translateX(4px); }

.back-top {
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--light-38);
  transition: color 200ms ease;
}

.back-top:hover { color: var(--light); }

.footer-giant {
  display: flex;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  line-height: 0.78;
  margin-top: 30px;
}

.footer-giant span {
  font-size: clamp(1.6rem, 7.5vw, 8rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  color: var(--light-09);
  transition: color 350ms var(--ease), transform 350ms var(--ease);
}

.footer-giant span:hover {
  color: var(--brand-primary);
  transform: translateY(-8px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--edge);
  font-size: 0.78rem;
  color: var(--light-38);
}

.footer-bottom .mono { font-size: 0.66rem; letter-spacing: 0.14em; }

/* ============ REVEAL genérico ============ */

.io-reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 800ms var(--ease), transform 900ms var(--ease), filter 800ms var(--ease);
}

.io-reveal.in { opacity: 1; transform: translateY(0); filter: none; }

/* ============================================================
   BRIEFING — fluxo em etapas
   ============================================================ */

body[data-page="briefing"] { min-height: 100svh; display: flex; flex-direction: column; }

.brief-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--edge);
  background: var(--nav-scrolled);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brief-header .brief-lang { margin-left: auto; }
.brief-header .theme-toggle { margin-left: 0; }

.brief-progress {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--light-38);
  font-variant-numeric: tabular-nums;
}

.brief-progress b { color: var(--light); font-weight: 500; }

.brief-track {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 20%;
  height: 1.5px;
  background: var(--brand-primary);
  transition: width 500ms var(--ease);
}

.brief-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
}

.brief-shell form { width: min(680px, 100%); }

.brief-step {
  display: none;
  width: 100%;
}

.brief-step.active { display: block; animation: step-in 500ms var(--ease) both; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.brief-step-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--brand-primary);
  margin-bottom: 18px;
}

.brief-step h2 {
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.brief-step h2[tabindex="-1"]:focus { outline: none; }

.brief-step .hint {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--light-55);
  line-height: 1.6;
}

.brief-fields { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }

.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--light-55);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.field label .opt,
.field legend .opt { color: var(--light-38); letter-spacing: 0.1em; }

.required { color: var(--light-55); letter-spacing: 0.08em; }

.field-error {
  margin-top: 8px;
  color: #ef9a9a;
  font-size: 0.82rem;
  line-height: 1.45;
}

html[data-theme="light"] .field-error { color: #9f2929; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--panel);
  border: 1px solid var(--light-14);
  border-radius: var(--radius);
  color: var(--light);
  font: inherit;
  font-size: 1rem;
  transition: border-color 200ms ease, background 200ms ease;
}

.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.field input::placeholder, .field textarea::placeholder { color: var(--light-24); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--panel-2);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.choice-group[aria-invalid="true"] .chip,
.choice-group[aria-invalid="true"] .goal-card {
  border-color: #ef9a9a;
}

html[data-theme="light"] .field input[aria-invalid="true"],
html[data-theme="light"] .field textarea[aria-invalid="true"],
html[data-theme="light"] .choice-group[aria-invalid="true"] .chip,
html[data-theme="light"] .choice-group[aria-invalid="true"] .goal-card {
  border-color: #9f2929;
}

/* chips de escolha (contato, orçamento, prazo, sim/não) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--light-14);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--light-55);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.chip:hover { border-color: var(--light-38); color: var(--light); }

.chip:focus-visible,
.goal-card:focus-visible,
.brief-back:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.chip.selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}

/* cards de objetivo (etapa 2) */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.goal-card {
  position: relative;
  padding: 22px 20px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--light-14);
  border-radius: var(--radius);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms var(--ease);
}

.goal-card .mono {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--light-24);
}

.goal-card b { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }

.goal-card:hover { border-color: var(--light-38); transform: translateY(-2px); }

.goal-card.selected {
  border-color: var(--brand-primary);
  background: var(--panel-2);
}

.goal-card.selected::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* navegação entre etapas */
.brief-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
}

.brief-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--light-38);
  transition: color 200ms ease;
}

.brief-back:hover { color: var(--light); }
.brief-back[hidden] { visibility: hidden; display: inline; }

/* confirmação */
.brief-summary {
  margin-top: 32px;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  color: var(--light-55);
}

.brief-summary div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  padding-block: 8px;
  border-bottom: 1px solid var(--edge);
}

.brief-summary div:last-child { border-bottom: 0; }
.brief-summary span { color: var(--light-55); }
.brief-summary b { color: var(--light); font-weight: 500; }

.brief-send { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.brief-send-center { justify-content: center; }

.brief-handoff-status {
  margin-top: 14px;
  color: var(--light-70);
  font-size: 0.82rem;
  line-height: 1.5;
}

.brief-note {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--light-38);
  line-height: 1.6;
}

.brief-done { text-align: center; }

.brief-done-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  font-size: 1.6rem;
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .noise::after, .eyebrow-dot, .hero-scroll-cue i::after, .status-live i, .caret { animation: none; }
  .preloader { display: none; }
  .line-mask .line, .split-reveal .w > i { transform: none; transition: none; }
  .reveal-line, .io-reveal { opacity: 1; transform: none; transition: none; }
  .manifesto-text .mw { color: var(--light); }
  .marquee-inner { transform: none !important; }
  .io-reveal { filter: none; }
  .pain-icon svg * { animation: none !important; }
  .hero-title { -webkit-mask-position: 0 100%; mask-position: 0 100%; transition: none !important; }
  .pain-row.io-reveal, .pain-mark { transform: none; transition: none; }
  .svc-line, .service-grid-cell::after { transform: none !important; opacity: 1 !important; animation: none !important; }
  .svc-line::after { animation: none !important; opacity: 0 !important; }
  .work-row::after, .work-row:hover .work-name { transition: none; }
  .brief-step.active { animation: none; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px) {
  .product-panel { grid-template-columns: 1fr; padding: 36px; }
  .product-visual { min-height: 0; margin-top: 10px; }
  .deploy-grid { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .shape-canvas { display: none; }
}

@media (max-width: 900px) {
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .faq-intro { position: static; }
}

@media (max-width: 760px) {
  .blog-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .post-row { grid-template-columns: 1fr 20px; gap: 10px 16px; padding: 24px 0; }
  .post-row .post-meta { grid-column: 1 / -1; }
  .blog-cta-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .post-head { padding: 44px 0 28px; }
  .prose { font-size: 1rem; }

  .section-cta { flex-direction: column; align-items: flex-start; margin-top: 44px; }
  .section-cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  .faq-q { grid-template-columns: 32px 1fr 16px; gap: 12px; padding: 22px 14px; }
  .faq-a { padding-left: 58px; }
  .faq-intro-actions { flex-direction: column; align-items: stretch; max-width: 320px; }


  .pain-row { grid-template-columns: 44px 1fr 20px; gap: 6px 16px; padding: 22px 0; }
  .pain-icon { width: 44px; height: 44px; grid-row: 1 / span 2; }
  .pain-icon svg { width: 19px; height: 19px; }
  .pain-fix { grid-column: 2; grid-row: 2; }
  .pain-chev { grid-column: 3; grid-row: 1 / span 2; }
  .pain-pivot { margin-top: 60px; }
  .pain-pivot-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }


  .hero { padding: 110px 0 80px; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; }

  .section { padding: 90px 0; }

  .product-panel { padding: 28px 22px; }
  .wa-body { height: 400px; }

  .work-row { grid-template-columns: 1fr auto; padding: 22px 14px; margin: 0 -14px; }
  .work-kind { display: none; }
  .work-preview { display: none; }



  .stats-grid { gap: 40px 12px; }

  .manifesto { padding: 110px 0; }

  .cta-void-inner { padding: calc(48vw + 64px) 0 80px; }
  .btn-giant { padding: 20px 34px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions > a { width: 100%; max-width: 320px; margin-inline: auto; justify-content: center; }


  .goal-grid { grid-template-columns: 1fr; }
  .brief-header { padding: 14px 20px; }
  .brief-shell { padding: 40px 20px 60px; }
  .chip { padding: 11px 16px; font-size: 0.88rem; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .goal-card { min-height: 96px; padding: 18px 14px; }
  .goal-card:last-child { grid-column: 1 / -1; }
  .brief-summary { padding: 20px; }
  .brief-summary div { grid-template-columns: 1fr; gap: 2px; }
  .brief-nav { align-items: stretch; }
}

@media (max-width: 359px) {
  .goal-grid { grid-template-columns: 1fr; }
  .goal-card:last-child { grid-column: auto; }
  .brief-header { gap: 12px; padding-inline: 14px; }
  .brief-shell { padding-inline: 14px; }
}
