/* ==========================================================================
   Mikael Vorpagel · landing page
   Cores: fundo #0A0C1B · texto #F2F1EC · limão #DFFF4F · índigo #8C95FF
   Tipos: Fraunces (títulos) · Inter (texto)
   ========================================================================== */

:root {
  --bg: #0A0C1B;
  --ink: #F2F1EC;
  --ink-2: #C9CADB;
  --ink-3: #A7AAC2;
  --ink-4: #8F92B0;
  --ink-5: #8A8DA8;
  --lime: #DFFF4F;
  --lime-hover: #F0FF9E;
  --indigo: #8C95FF;
  --line: rgba(199, 204, 255, 0.12);
  --line-2: rgba(199, 204, 255, 0.14);
  --glass: rgba(16, 19, 40, 0.6);
  --field: #2E3358;
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--lime); }
a:hover { color: var(--lime-hover); }
h1, h2, h3, p, ol, ul { margin: 0; }
/* nada de uma ou duas palavras sozinhas no fim do bloco */
h1, h2, h3, .big { text-wrap: balance; }
p, li, small { text-wrap: pretty; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Fundo v2: uma luz índigo leve, fixa na tela, igual em todas as seções.
   Só gradientes que terminam em transparente: não há borda nem corte em nenhuma largura. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url(../assets/grain.svg),
    radial-gradient(55% 45% at 12% 8%, rgba(140, 149, 255, 0.10), rgba(140, 149, 255, 0) 100%),
    radial-gradient(50% 55% at 92% 55%, rgba(140, 149, 255, 0.07), rgba(140, 149, 255, 0) 100%),
    radial-gradient(60% 40% at 40% 105%, rgba(140, 149, 255, 0.06), rgba(140, 149, 255, 0) 100%);
  background-size: 220px 220px, 100% 100%, 100% 100%, 100% 100%;
}
.page { overflow: hidden; }

/* Grade leve de fundo, com alguns traços finos descendo devagar pelas linhas da grade.
   Some nas bordas (máscara) e fica embaixo de tudo; a seção clara do Processo a cobre. */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background-image:
    linear-gradient(rgba(199, 204, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 204, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 25%, transparent 80%);
}
.bg-fx i {
  position: absolute; top: -180px; left: calc(72px * var(--c)); width: 1px; height: 160px;
  background: linear-gradient(180deg, rgba(199, 204, 255, 0), rgba(199, 204, 255, 0.28));
  animation: fall var(--t) linear var(--dl) infinite;
}
@keyframes fall { to { transform: translateY(calc(100vh + 360px)); } }

.section { position: relative; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px; }
/* seções escuras seguidas dividem o mesmo fundo: espaço menor. A seção clara (Processo) mantém o respiro maior */
.process > .wrap { padding-top: 128px; padding-bottom: 128px; }
.stack { display: flex; flex-direction: column; gap: 64px; }

/* ---------- Tipografia ---------- */
.h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.12; letter-spacing: -0.02em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
.h2--lg { font-size: 52px; line-height: 1.08; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.hl { color: var(--lime); }
.mark {
  color: inherit;
  background: linear-gradient(180deg, transparent 56%, rgba(223, 255, 79, 0.32) 56%, #DFFF4FB8 90%, transparent 90%);
  padding: 0 6px; margin: 0 -2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.head { display: flex; flex-direction: column; gap: 24px; }
.head-row { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-end; }
.head-row > .head { flex: 999 1 560px; min-width: 0; }
.head-row > .lead { flex: 1 1 360px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 32px; border-radius: 8px; border: 0;
  background: var(--lime); color: var(--bg);
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; text-wrap: balance; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background-color .25s, color .25s;
}
/* hover: a cor NÃO clareia (perdia contraste). O botão sobe, ganha um brilho da própria cor
   embaixo, um reflexo passa uma vez por cima e a seta anda. */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn:hover { background: var(--lime); color: var(--bg); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(223, 255, 79, 0.6); }
.btn:hover::after { transform: translateX(120%); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: .1s; }
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn .arr { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .arr { transform: translateX(4px); }
/* fantasma: no hover ele preenche (fica com MAIS contraste, não menos) */
.btn--ghost { background: transparent; border: 1px solid var(--lime); color: var(--lime); }
.btn--ghost:hover { background: var(--lime); color: var(--bg); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: none; align-self: flex-start; }

.glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; }
.cta-bar { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 32px; }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero__inner {
  position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 128px 24px 192px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__sub { margin-top: 24px; max-width: 900px; display: flex; flex-direction: column; gap: 4px; }
.hero__sub p { text-wrap: balance; }
.hero__cta { margin-top: 48px; }

.ticker {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 64px;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid rgba(199, 204, 255, 0.08);
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.ticker__track { display: flex; flex: none; animation: ticker 40s linear infinite; }
.ticker__group { display: flex; flex: none; gap: 28px; padding-right: 28px; }
.ticker .dot { color: var(--lime); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Player do VSL (formato comum) ---------- */
.vsl {
  position: relative; margin-top: 48px; width: 100%; max-width: 880px; aspect-ratio: 16 / 9;
  background: #000414; border: 1px solid #2A2F55; border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(5, 6, 20, 0.6); text-align: left;
}
.vsl__video { width: 100%; height: 100%; object-fit: cover; background: #000414; cursor: pointer; }

/* botão central: discreto, só aparece com o vídeo parado */
.vsl__big {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(10, 12, 27, 0.55); color: var(--ink); border: 1px solid rgba(242, 241, 236, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity .25s, transform .25s, background-color .25s;
}
.vsl__big:hover { background: rgba(10, 12, 27, 0.75); transform: scale(1.06); }
.vsl__big .i-play { margin-left: 3px; }
.vsl__big .i-replay, .vsl.is-ended .vsl__big .i-play { display: none; }
.vsl.is-ended .vsl__big .i-replay { display: block; }
.vsl:not(.is-paused) .vsl__big { opacity: 0; transform: scale(.9); pointer-events: none; }

/* barra de controles: aparece parada ou ao passar o mouse, some sozinha tocando */
.vsl__controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 32px 14px 8px;
  background: linear-gradient(180deg, rgba(0, 4, 20, 0), rgba(0, 4, 20, 0.8));
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.vsl.is-paused .vsl__controls, .vsl.is-active .vsl__controls, .vsl:focus-within .vsl__controls { opacity: 1; pointer-events: auto; }
.vsl:not(.is-started) .vsl__controls { opacity: 0; pointer-events: none; }
.vsl__bar { position: relative; height: 16px; cursor: pointer; display: flex; align-items: center; }
.vsl__bar::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(242, 241, 236, 0.22); transition: height .15s; }
.vsl__buf, .vsl__fill { position: absolute; left: 0; height: 3px; width: 0; border-radius: 3px; transition: height .15s; }
.vsl__buf { background: rgba(242, 241, 236, 0.35); }
.vsl__fill { background: var(--lime); }
.vsl__bar:hover::before, .vsl__bar:hover .vsl__buf, .vsl__bar:hover .vsl__fill { height: 5px; }
.vsl__fill::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--lime); transform: scale(0); transition: transform .15s;
}
.vsl__bar:hover .vsl__fill::after { transform: scale(1); }
.vsl__row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.vsl__btn {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer;
}
.vsl__btn:hover { background: rgba(242, 241, 236, 0.1); }
.vsl__btn .i-pause, .vsl.is-paused .vsl__btn .i-play, .vsl.is-muted .i-mute { display: block; }
.vsl__btn .i-play, .vsl.is-paused .vsl__btn .i-pause, .vsl__btn .i-mute, .vsl.is-muted .i-vol { display: none; }
.vsl__time { margin-left: 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vsl__full { margin-left: auto; }

/* ==========================================================================
   2. Problema
   ========================================================================== */
.problem { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.problem > .head { flex: 1 1 440px; min-width: 0; }
.problem .lead { max-width: 440px; }
.pains { flex: 1 1 520px; min-width: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-2); }
.pains li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 32px 0; border-top: 1px solid var(--line-2); }
.pains .n { font-family: var(--serif); font-size: 22px; color: var(--lime); }
.pains h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.pains p { font-size: 16px; line-height: 1.55; color: var(--ink-3); }

/* ==========================================================================
   3. Serviços
   ========================================================================== */
.services .head { max-width: 760px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(199, 204, 255, 0.16); }
.col { display: flex; flex-direction: column; gap: 16px; padding: 32px 32px 0; }
.col:first-child { padding-left: 0; }
.col:last-child { padding-right: 0; }
.col + .col { border-left: 1px solid var(--line); }
.col__n { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-3); }
.col__n i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--lime)); }
.col h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.col p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.col .tags { font-size: 14px; line-height: 1.6; color: var(--ink-4); }
.services .cta-bar p { flex: 1 1 520px; font-family: var(--serif); font-size: 26px; line-height: 1.3; }

/* ==========================================================================
   4. Projetos
   ========================================================================== */
.cases { display: flex; flex-wrap: wrap; gap: 24px; }
.case { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.case--main { flex: 999 1 640px; min-width: 0; }
.case-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.case-side .case { flex: 1; }
.case__img {
  height: 200px; display: grid; place-items: center; background: #171B36; border-bottom: 1px solid #23274A;
  color: var(--ink-5); font-size: 15px; font-weight: 600;
}
.case--main .case__img { height: auto; flex: 1; min-height: 440px; }
.case__img { position: relative; overflow: hidden; height: auto; aspect-ratio: 1274 / 568; } /* proporção dos prints: não corta */
.case__img picture, .case__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.case__img img { object-fit: cover; object-position: center; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.case:hover .case__img img { transform: scale(1.03); }
.case__body { display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.case--main .case__body { gap: 16px; }
.case h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.case--main h3 { font-size: 30px; }
.case p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.case--main p { font-size: 16px; line-height: 1.6; }
.case p strong { color: var(--ink); }
.case .kind { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border: 1px solid var(--field); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ==========================================================================
   5. Processo
   ========================================================================== */
.steps { margin-top: 64px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.step.is-first { border-color: var(--lime); }
.step .n { font-family: var(--serif); font-size: 30px; color: #6E7194; }
.step.is-first .n { color: var(--lime); }
.step h3 { font-size: 20px; font-weight: 700; }
.step .what { font-size: 15px; font-weight: 600; line-height: 1.45; color: #E4E4EE; }
.step .how { font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.process .cta-bar > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 8px; }
.process .cta-bar .big { font-family: var(--serif); font-size: 28px; }
.process .cta-bar .small { font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* ==========================================================================
   6. Sobre
   ========================================================================== */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.duo {
  flex: 1 1 420px; min-width: 0; height: 576px; position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(5, 6, 20, 0.6);
  background-image: url(../assets/grain.svg),
    radial-gradient(120% 80% at 30% 15%, rgba(140, 149, 255, 0.55), rgba(140, 149, 255, 0) 60%),
    radial-gradient(70% 50% at 85% 95%, rgba(223, 255, 79, 0.22), rgba(223, 255, 79, 0) 70%),
    linear-gradient(180deg, #1B2052, #0C0E22);
  background-size: 220px 220px, 100% 100%, 100% 100%, 100% 100%;
}
.duo picture, .duo__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.duo__img { object-fit: cover; object-position: center 30%; }
.duo__name { position: absolute; z-index: 1; left: 24px; bottom: 22px; font-family: var(--serif); font-size: 22px; }
.about > .head { flex: 999 1 560px; min-width: 0; }
.about__text { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.about .lead { line-height: 1.65; }
.perks {
  padding: 24px 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 600;
}
.perks li { display: flex; align-items: center; gap: 12px; }
.perks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.about .btn { align-self: flex-start; }

/* ==========================================================================
   7. Contato
   ========================================================================== */
.contact { display: flex; flex-wrap: wrap; gap: 64px; }
.contact > .head { flex: 1 1 420px; min-width: 0; }
.wa {
  display: flex; align-items: center; gap: 24px; margin-top: 8px; padding: 32px;
  border-radius: 16px; text-decoration: none; color: var(--ink);
  background: rgba(10, 12, 27, 0.55); border: 1px solid rgba(199, 204, 255, 0.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .3s, background-color .3s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.wa:hover { color: var(--ink); border-color: rgba(223, 255, 79, 0.55); background: rgba(16, 19, 40, 0.75); transform: translateY(-2px); }
.wa__icon { flex: none; color: var(--lime); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.wa:hover .wa__icon { transform: scale(1.08) rotate(-6deg); }
.wa__text { display: flex; flex-direction: column; gap: 10px; }
.wa__text strong { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em; text-transform: uppercase; }
.wa__text em { font-style: normal; color: var(--lime); }
.wa__text small { font-size: 15px; color: var(--ink-2); }

.form { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 32px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  height: 48px; padding: 0 16px; background: var(--bg); border: 1px solid var(--field); border-radius: 8px;
  color: var(--ink); font-size: 15px; font-family: inherit; transition: border-color .2s;
}
.field textarea { height: auto; padding: 12px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-5); }
.field.is-invalid input { border-color: #FF7A7A; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 1px solid var(--field); border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.opt input { margin: 0; accent-color: var(--bg); }
.opt:has(input:checked) { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.form .btn { width: 100%; }
.form__note { text-align: center; font-size: 13px; color: var(--ink-3); }
.form__ok { display: none; padding: 16px; border-radius: 8px; background: rgba(223, 255, 79, 0.1); border: 1px solid rgba(223, 255, 79, 0.35); color: var(--lime); font-size: 15px; font-weight: 600; text-align: center; }
.form.is-sent .form__ok { display: block; }

.footer { position: relative; border-top: 1px solid var(--line); padding: 48px 24px; background: rgba(10, 12, 27, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer__in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer__brand { font-family: var(--serif); font-size: 20px; }
.social { display: flex; gap: 12px; }
.social__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(242, 241, 236, 0.04); color: var(--ink-2);
  transition: color .25s, border-color .25s, background-color .25s, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.social__btn:hover { color: var(--lime); border-color: rgba(223, 255, 79, 0.55); background: rgba(223, 255, 79, 0.06); transform: translateY(-2px); }
.social__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (max-width: 600px) {
  .footer__in { flex-direction: column; text-align: center; gap: 20px; }
}
.footer small { font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   Entrada ao rolar (o JS liga a classe .js no <html>)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transform: none; }
  .btn::after { display: none; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .bg-fx i { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
}
@media (max-width: 900px) {
  .wrap { padding: 72px 20px; }
  .process > .wrap { padding-top: 96px; padding-bottom: 96px; }
  .h1 { font-size: 42px; }
  .h2, .h2--lg { font-size: 36px; }
  .lead { font-size: 17px; }
  .hero__inner { padding: 96px 20px 160px; }
  .col h3 { font-size: 30px; }
  .pains h3 { font-size: 24px; }
  .head-row { gap: 24px; }
  .cols { grid-template-columns: 1fr; }
  .col, .col:first-child, .col:last-child { padding: 32px 0 0; }
  .col + .col { border-left: 0; border-top: 1px solid var(--line); margin-top: 32px; }
  /* Projetos: os 3 cards empilhados e com o mesmo tamanho */
  .case--main, .case-side { flex-basis: 100%; }
  .case__img, .case--main .case__img { height: auto; aspect-ratio: 1274 / 568; min-height: 0; flex: none; }
  .case--main .case__body { gap: 12px; }
  .case--main h3 { font-size: 24px; }
  .case--main p { font-size: 15px; line-height: 1.55; }
  .duo { height: 440px; }
}
@media (max-width: 600px) {
  .wrap { padding: 56px 20px; }
  .process > .wrap { padding-top: 72px; padding-bottom: 72px; }
  .head-row { gap: 24px; }
  .problem, .about, .contact, .stack { gap: 48px; }
  .hero__inner { padding: 48px 20px 120px; }
  .hero__sub { margin-top: 16px; gap: 8px; }
  /* escala mobile: corpo 16 px (piso de leitura), títulos de seção ≈ 1,9× o corpo.
     Título de item (h3) sempre bem menor que o título da seção (≤ 0,7×). */
  .h1 { font-size: 30px; line-height: 1.15; }
  .h2, .h2--lg { font-size: 30px; line-height: 1.15; }
  .lead { font-size: 16px; line-height: 1.55; }
  .vsl { margin-top: 28px; border-radius: 12px; }
  .vsl__big { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .vsl__time { font-size: 12px; }
  .hero__cta { margin-top: 24px; }
  .btn { white-space: normal; text-align: center; height: auto; min-height: 56px; padding: 12px 24px; }
  .cta-bar { padding: 24px; }
  .services .cta-bar p, .process .cta-bar .big { font-size: 19px; }
  .col h3 { font-size: 24px; line-height: 1.1; }
  .col p { font-size: 16px; }
  .case h3, .case--main h3 { font-size: 18px; line-height: 1.3; }
  .case .chips, .case .kind { display: none; }
  .pains li { grid-template-columns: 44px 1fr; }
  .pains h3 { font-size: 19px; }
  .form { padding: 24px; }
  .wa { padding: 24px 20px; gap: 16px; }
  .wa__icon { width: 38px; height: 38px; }
  .wa__text strong { font-size: 17px; }
  .form__row { grid-template-columns: 1fr; }
  .duo { height: 360px; flex-basis: 100%; }
  .about .btn { align-self: stretch; }
}

@media (max-width: 380px) {
  .h1 { font-size: 27px; }
  .h2, .h2--lg { font-size: 27px; }
}

/* ==========================================================================
   v2 · Variação A: Processo como seção de contraste (papel claro)
   ========================================================================== */
.process { background: #F2F1EC; color: var(--bg); }
.process .lead { color: #3D4058; }
.process .glass { background: #FFFFFF; border-color: rgba(10, 12, 27, 0.08); backdrop-filter: none; -webkit-backdrop-filter: none; }
.process .step { box-shadow: 0 1px 2px rgba(10, 12, 27, 0.04); }
.process .step .n { color: #A3A5B8; }
.process .step .what { color: var(--bg); }
.process .step .how { color: #5B5E78; }
/* a barra de CTA vira um bloco escuro dentro da seção clara */
.process .cta-bar { background: var(--bg); border: 0; color: var(--ink); }
.process .cta-bar .small { color: var(--ink-2); }

/* ==========================================================================
   v2 · Variação B: barra de CTA de Serviços em verde-limão
   ========================================================================== */
.services .cta-bar { background: var(--lime); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--bg); }
.services .cta-bar .hl { color: var(--bg); font-style: italic; }
.services .cta-bar .btn { background: var(--bg); color: var(--lime); }
.services .cta-bar .btn:hover { background: var(--bg); color: var(--lime); box-shadow: 0 12px 24px -12px rgba(10, 12, 27, 0.7); }
.services .cta-bar .btn::after { background: linear-gradient(105deg, transparent 35%, rgba(223, 255, 79, 0.18) 50%, transparent 65%); }

/* ==========================================================================
   Processo em grid (bento): Diagnóstico grande à esquerda, as outras 4 em 2×2.
   Cada etapa tem uma ilustração com um motion leve, que só roda quando a etapa está na tela.
   ========================================================================== */
.steps { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.step--main { grid-row: span 2; }
.process .step { gap: 10px; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.process .step:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(10, 12, 27, 0.25); }
.process .step .n { font-size: 26px; margin-top: 8px; }
.step--main .n { font-size: 30px; }
.step--main h3 { font-size: 24px; }
.step--main .what { font-size: 17px; }
.step--main .how { font-size: 15px; }
.step__art { height: 132px; margin: -8px -8px 4px; border-radius: 10px; background: #E4E4EF; box-shadow: inset 0 0 0 1px rgba(10, 12, 27, 0.05); display: grid; place-items: center; overflow: hidden; }
.step--main .step__art { height: auto; flex: 1; min-height: 240px; }
.art { width: 100%; height: 100%; max-height: 120px; overflow: visible; }
.step--main .art { max-height: 340px; width: 92%; }

/* traço e cores comuns */
.art * { vector-effect: non-scaling-stroke; }
.art .route, .art .trend { vector-effect: none; } /* o tracejado do desenho conta no tamanho do SVG */
.art .base { stroke: #A9A8BF; stroke-width: 1.5; }
.art text { font-family: var(--sans); }

/* todas as animações ficam paradas até a etapa entrar na tela */
.art * { animation-play-state: paused !important; }
.step.is-in .art * { animation-play-state: running !important; }
html:not(.js) .art * { animation-play-state: running !important; }

/* 01 · Diagnóstico: a varredura passa pelas barras e acende o gargalo */
.art-diag .bar { fill: #C3C2D6; }
.art-diag .bar--hit { stroke: var(--bg); stroke-width: 1.2; animation: hit 6s ease-in-out infinite; }
.art-diag .scan { stroke: var(--bg); stroke-width: 2; stroke-dasharray: 4 4; animation: scan 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.art-diag .tag rect { fill: var(--bg); }
.art-diag .tag text { fill: var(--lime); font-size: 11px; font-weight: 600; text-anchor: middle; letter-spacing: .04em; }
.art-diag .tag { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: tag 6s ease-out infinite; }
@keyframes scan { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 46% { transform: translateX(164px); } 80% { transform: translateX(164px); opacity: 1; } 92%, 100% { transform: translateX(272px); opacity: 0; } }
@keyframes hit { 0%, 42% { fill: #C3C2D6; } 50%, 86% { fill: var(--lime); } 96%, 100% { fill: #C3C2D6; } }
@keyframes tag { 0%, 46% { opacity: 0; transform: translateY(6px); } 54%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }

/* 02 · Estratégia: a rota se desenha ligando os três pontos, na ordem */
.art-plan .route-bg { fill: none; stroke: #A9A8BF; stroke-width: 2; stroke-dasharray: 3 5; }
.art-plan .route { fill: none; stroke: var(--bg); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: route 6s cubic-bezier(.5, 0, .3, 1) infinite; }
.art-plan .node { fill: #FFFFFF; stroke: var(--bg); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.art-plan .node1 { animation: node1 6s ease-out infinite; }
.art-plan .node2 { animation: node2 6s ease-out infinite; }
.art-plan .node3 { animation: node3 6s ease-out infinite; }
@keyframes route { 0%, 6% { stroke-dashoffset: 100; opacity: 1; } 62%, 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes node1 { 0%, 4% { fill: #fff; transform: scale(1); } 9% { fill: var(--lime); transform: scale(1.35); } 14%, 88% { fill: var(--lime); transform: scale(1); } 96%, 100% { fill: #fff; } }
@keyframes node2 { 0%, 30% { fill: #fff; transform: scale(1); } 35% { fill: var(--lime); transform: scale(1.35); } 40%, 88% { fill: var(--lime); transform: scale(1); } 96%, 100% { fill: #fff; } }
@keyframes node3 { 0%, 58% { fill: #fff; transform: scale(1); } 63% { fill: var(--lime); transform: scale(1.35); } 68%, 88% { fill: var(--lime); transform: scale(1); } 96%, 100% { fill: #fff; } }

/* 03 · Design: as peças se encaixam no layout, uma por vez */
.art-design .frame { fill: #FFFFFF; stroke: #A9A8BF; stroke-width: 1.5; }
.art-design .blk { fill: #BDBCD1; transform-box: fill-box; transform-origin: center; }
.art-design .blk2 { fill: #D3D2E2; }
.art-design .blk5 { fill: var(--lime); stroke: var(--bg); stroke-width: 1.2; }
.art-design .blk1 { --x: -26px; --y: -8px; --r: -6deg; animation: snap 6s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.art-design .blk2 { --x: -30px; --y: 14px; --r: 5deg; animation: snap 6s cubic-bezier(.3, 1.4, .5, 1) .25s infinite; }
.art-design .blk3 { --x: 34px; --y: -10px; --r: 8deg; animation: snap 6s cubic-bezier(.3, 1.4, .5, 1) .5s infinite; }
.art-design .blk4 { --x: 30px; --y: 12px; --r: -7deg; animation: snap 6s cubic-bezier(.3, 1.4, .5, 1) .65s infinite; }
.art-design .blk5 { --x: -20px; --y: 18px; --r: 6deg; animation: snap 6s cubic-bezier(.3, 1.4, .5, 1) .9s infinite; }
@keyframes snap { 0%, 4% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } 18%, 84% { transform: none; opacity: 1; } 94%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* 04 · Implementação: as linhas de código se escrevem e o check confirma */
.art-build .brk { fill: var(--bg); font-size: 22px; font-weight: 700; }
.art-build .ln { fill: #A9A8BF; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.art-build .ln1 { animation: type 6s ease-out infinite; }
.art-build .ln2 { animation: type 6s ease-out .35s infinite; }
.art-build .ln3 { animation: type 6s ease-out .7s infinite; }
.art-build .ln4 { animation: type 6s ease-out 1.05s infinite; }
.art-build .ok circle { fill: var(--lime); stroke: var(--bg); stroke-width: 1.5; }
.art-build .ok path { fill: none; stroke: var(--bg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art-build .ok { transform-box: fill-box; transform-origin: center; animation: ok 6s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes type { 0% { transform: scaleX(0); } 12%, 84% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
@keyframes ok { 0%, 34% { transform: scale(0); } 42%, 84% { transform: scale(1); } 94%, 100% { transform: scale(0); } }

/* 05 · Acompanhamento: a curva sobe e o ponto final pulsa */
.art-grow .area { fill: rgba(223, 255, 79, 0.75); opacity: 0; animation: area 6s ease-out infinite; }
.art-grow .trend { fill: none; stroke: var(--bg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: route 6s cubic-bezier(.5, 0, .3, 1) infinite; }
.art-grow .tip { fill: var(--lime); stroke: var(--bg); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: tip 6s ease-out infinite; }
@keyframes area { 0%, 40% { opacity: 0; } 62%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes tip { 0%, 58% { transform: scale(0); } 64% { transform: scale(1.4); } 70%, 86% { transform: scale(1); } 96%, 100% { transform: scale(0); } }

@media (prefers-reduced-motion: reduce) {
  .art * { animation: none !important; }
  .art-plan .route, .art-grow .trend { stroke-dashoffset: 0; }
  .art-build .ln { transform: none; }
  .art-diag .tag, .art-grow .area { opacity: 1; }
  .art-diag .bar--hit, .art-plan .node { fill: var(--lime); }
}
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step--main { grid-row: auto; grid-column: 1 / -1; }
  .step--main .step__art { min-height: 0; height: 200px; flex: none; }
  .step--main .art { max-height: 180px; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  /* artes menores: ilustram a etapa sem roubar a tela nem competir com o título */
  .step__art { height: 104px; }
  .art { max-height: 88px; }
  .step--main .step__art { height: 150px; }
  .step--main .art { max-height: 130px; }
  .step h3, .step--main h3 { font-size: 18px; }
  .step--main .what { font-size: 16px; }
  .process .step .n, .step--main .n { font-size: 22px; margin-top: 4px; }
}

/* Mobile: CTAs dentro de card ficam centralizadas e o botão cabe em 1 linha */
@media (max-width: 600px) {
  .cta-bar { flex-direction: column; align-items: stretch; text-align: center; gap: 20px; }
  .services .cta-bar p, .process .cta-bar > div { flex: none; }
  .process .cta-bar > div { align-items: center; }
  .cta-bar .btn, .form .btn {
    width: 100%; white-space: nowrap; gap: 8px; padding: 0 16px; height: 52px; min-height: 0;
    font-size: 13px; letter-spacing: 0.02em;
  }
}

/* Telas empilhadas (tablet e mobile): título e subtítulo de cada seção centralizados.
   O conteúdo (listas, colunas, cards, textos do Sobre) continua alinhado à esquerda. */
@media (max-width: 900px) {
  .head > .h2, .head > .lead, .head-row > .lead { text-align: center; margin-left: auto; margin-right: auto; }
  .head-row { justify-content: center; }
}

/* Projetos, desktop: o card grande é mais alto que o print. Em vez de cortar o print, ele aparece
   inteiro, centralizado sobre a cor de fundo do próprio site (assim parece a página continuando). */
@media (min-width: 901px) {
  .case--main .case__img { background: #F3F0EB; }
  .case--main .case__img img { object-fit: contain; }
}
