/* ==========================================================================
   fx-bold.css · camada "ousada": retrato ASCII, terminal interativo,
   faixa tipográfica e manifesto guiado pela rolagem.
   ========================================================================== */

/* A · Retrato: máquina por fora, pessoa por dentro (ASCII Text + Halftone Reveal) */
.fx-ascii { position: absolute; z-index: 1; pointer-events: none; }
.fx-has-ascii img.portrait { opacity: 0; }
.fx-has-ascii { cursor: crosshair; touch-action: pan-y; }
.fx-ascii__hint {
  position: absolute; z-index: 3; left: 50%; bottom: 6%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill); font: 500 12px/1 var(--font-mono); color: var(--ink);
  white-space: nowrap; transition: opacity .6s ease;
}
.fx-ascii__hint .term-prompt { color: var(--accent); }
.fx-ascii__hint.is-gone { opacity: 0; }
:root.fx-off-bold .fx-ascii, :root.fx-off-bold .fx-ascii__hint { display: none; }
:root.fx-off-bold .fx-has-ascii img.portrait { opacity: 1; }
:root.fx-off-bold .fx-has-ascii { cursor: auto; }

/* C · Faixa tipográfica que acelera com a rolagem (Scroll Velocity) */
.fx-marquee { position: relative; z-index: 1; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 0; user-select: none; }
.fx-marquee__row { display: flex; white-space: nowrap; }
.fx-marquee__track { display: flex; flex: none; will-change: transform; }
.fx-marquee__item {
  display: inline-flex; align-items: center; gap: .32em; padding-right: .32em;
  font-size: clamp(56px, 10.5vw, 156px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em;
}
.fx-marquee__row--solid .fx-marquee__item { color: var(--ink); }
.fx-marquee__row--outline .fx-marquee__item { color: transparent; -webkit-text-stroke: 1.5px var(--ink-secondary); }
.fx-marquee__sep { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--brand-gold); -webkit-text-stroke: 0; }
.fx-marquee__item em { font-style: italic; color: var(--accent); -webkit-text-stroke: 0; }
:root.fx-off-bold .fx-marquee { display: none; }
.fx-marquee + .section { padding-top: clamp(56px, 8vw, 96px); }

/* D · O que me diferencia: máquinas (bastidor) + pessoas (palco) */
.fx-about { position: relative; z-index: 1; }
.fx-about__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.fx-about__title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; max-width: 18ch; }
.fx-about__title em { font-style: italic; color: var(--accent); }
.fx-about .pillar span { font-size: 13px; color: var(--accent); }
.fx-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fx-split__card { display: flex; flex-direction: column; }
.fx-split__body { padding: 12px 28px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.fx-split__people .fx-split__body { padding-top: 28px; }
.fx-split__k { font: 500 13px/1.3 var(--font-mono); color: var(--accent); }
.fx-split__machine .fx-split__k { color: var(--brand-gold); }
.fx-split__h { font-size: clamp(42px, 5.2vw, 68px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.fx-split__machine .fx-split__h { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.05em; color: var(--terminal-ink); }
.fx-split__people .fx-split__h { font-style: italic; color: var(--accent); }
.fx-split__d { font-size: 19px; line-height: 1.45; }
.fx-split__machine .fx-split__d { color: #c7c7cc; }
.fx-split__people .fx-split__d { color: var(--ink); }
.fx-split__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-split__q { margin: 4px 0 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--brand-gold); font-size: 19px; line-height: 1.45; font-style: italic; color: var(--ink-secondary); }
.fx-split__stat { margin-top: auto; display: flex; align-items: baseline; gap: 10px; font: 500 13px/1.4 var(--font-mono); }
.fx-split__stat .lead-dots { flex: 1; border-bottom: 1px dotted currentColor; opacity: .35; transform: translateY(-4px); }
.fx-split__machine .fx-split__stat { color: var(--terminal-dim); }
.fx-split__machine .fx-split__stat span:last-child { color: var(--brand-gold); }
.fx-split__people .fx-split__stat { color: var(--ink-secondary); }
.fx-split__people .fx-split__stat span:last-child { color: var(--accent); }
.fx-split__plus {
  display: none; position: absolute; z-index: 2; left: 50%; top: 0; width: 52px; height: 52px; margin-left: -26px;
  border-radius: 50%; background: var(--brand-gold); color: var(--brand-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .2), 0 0 0 6px var(--canvas);
  align-items: center; justify-content: center; font: 600 28px/1 var(--font-sans);
}
.fx-split__join { padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.fx-split__join p { flex: 1 1 420px; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.fx-split__join .actions { align-items: center; }
@media (min-width: 821px) {
  .fx-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-split__join { grid-column: 1 / -1; }
  .fx-split__plus { display: flex; top: calc(var(--fx-split-mid, 260px) - 26px); }
}
.fx-js .fx-split > * { transition: opacity .8s ease, transform .8s var(--ease); }
.fx-js .fx-split:not(.is-in) .fx-split__machine { opacity: 0; transform: translateX(-28px); }
.fx-js .fx-split:not(.is-in) .fx-split__people { opacity: 0; transform: translateX(28px); }
.fx-js .fx-split:not(.is-in) .fx-split__plus { opacity: 0; transform: scale(.3) rotate(-90deg); }
.fx-js .fx-split:not(.is-in) .fx-split__join { opacity: 0; transform: translateY(18px); }
.fx-split__people { transition-delay: .08s !important; }
.fx-split__plus { transition-delay: .5s !important; }
.fx-split__join { transition-delay: .65s !important; }

/* Escopo digitado (comando digitado, depois as linhas aparecem) */
[data-fx-after] { transition: opacity .45s ease, transform .45s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.fx-js [data-fx-typed-scope]:not(.is-typed) [data-fx-after] { opacity: 0; transform: translateY(6px); }
.fx-js [data-fx-typed-scope]:not(.is-typing):not(.is-typed) [data-fx-type] { opacity: 0; }

/* Contato: conversa do WhatsApp no lugar do formulário */
.chat { flex: 1 1 440px; min-width: 0; padding: 0; display: flex; flex-direction: column; background: var(--form-bg); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.chat__avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-ink); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 20px/1 var(--font-sans); }
.chat__avatar::after { content: ""; position: absolute; right: 9px; bottom: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-gold); }
.chat__name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.chat__sub { font: 500 12px/1.3 var(--font-mono); color: var(--ink-secondary); }
.chat__thread { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 28px; min-height: 196px;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 22px 22px; }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 16px; line-height: 1.4; transition: opacity .45s ease, transform .45s var(--ease); }
.bubble--in { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--canvas-raised); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.bubble--out { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--brand-gold); color: var(--brand-ink); font-weight: 500; }
.bubble--typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-ink); opacity: .45; animation: typing 1s ease-in-out infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; }
.bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .9; } }
.fx-js .chat:not(.is-s1) .bubble--in, .fx-js .chat:not(.is-s3) .bubble--msg { opacity: 0; transform: translateY(10px); }
.fx-js .chat:not(.is-s2) .bubble--typing { display: none; }
.fx-js .chat.is-s3 .bubble--typing { display: none; }
.chat__foot { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; }
.chat__foot .btn { width: 100%; min-height: 52px; font-size: 16px; }
.chat__note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font: 500 12px/1.4 var(--font-mono); color: var(--ink-secondary); }

/* Quem sou · hero com "whoami --long" */
.qs-hero { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.qs-hero__text { display: flex; flex-direction: column; gap: 22px; }
.qs-hero .display { font-size: clamp(34px, 4.3vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; max-width: 16ch; }
.qs-hero__text .body-2 { max-width: 54ch; }
/* Terminal (veio da home): digita os comandos em sequência, como um prompt */
.qs-term { position: relative; }
.qs-term__body { position: relative; overflow: hidden; padding: 22px 26px 26px; font: 400 clamp(13px, 1.12vw, 15px)/1.85 var(--font-mono); color: var(--terminal-ink); }
.qs-term__body > :not(canvas):not(.tech-grid) { position: relative; z-index: 1; }
.qs-term__screen { min-height: calc(11 * 1.85em); }
@media (max-width: 480px) { .qs-term__body { padding: 16px 16px 20px; } }
@media (min-width: 961px) { .qs-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding-top: clamp(48px, 7vw, 88px); } }

/* Quem sou · o que me move como arquivo aberto */
.move2 { position: relative; }
.move2__body { position: relative; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.move2__body > :not(canvas):not(.tech-grid) { position: relative; z-index: 1; }
.move2__body .term-line { font: 400 14px/1.6 var(--font-mono); color: var(--terminal-dim); }
.move2__md { font: 500 14px/1 var(--font-mono); color: var(--brand-gold); }
.move2__title { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; color: var(--terminal-ink); max-width: 20ch; }
.move2__title em { font-style: italic; color: var(--brand-gold); }
.move2__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 40px; font-size: 18px; line-height: 1.6; color: #d1d1d6; max-width: 980px; }
@media (min-width: 821px) { .move2__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.move2__purpose { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: 400 15px/1.4 var(--font-mono); color: var(--terminal-dim); }
.move2__purpose b { font: 600 clamp(28px, 3.4vw, 44px)/1 var(--font-mono); color: var(--brand-gold); letter-spacing: -0.03em; }

/* Quem sou · linha do tempo */
.tl { padding: clamp(24px, 4vw, 44px); }
.tl__axis { display: flex; justify-content: space-between; font: 500 12px/1 var(--font-mono); color: var(--ink-secondary); margin-bottom: 18px; }
.tl__axis .now { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.tl__rows { position: relative; display: flex; flex-direction: column; gap: 30px; }
.tl__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tl__info { display: flex; flex-direction: column; gap: 6px; }
.tl__num { display: flex; align-items: baseline; gap: 8px; }
.tl__num strong { font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; min-width: 1.3ch; }
.tl__num span { font-size: 17px; font-weight: 500; color: var(--ink-secondary); }
.tl__info h3 { font-size: 21px; line-height: 1.24; font-weight: 600; }
.tl__info p { font-size: 15px; line-height: 1.5; color: var(--ink-secondary); }
.tl__track { position: relative; height: 40px; align-self: center; }
.tl__track::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 8px; border-radius: var(--radius-pill); background: var(--hairline); }
.tl__bar { position: absolute; top: 28px; height: 8px; width: 0; border-radius: var(--radius-pill); background: linear-gradient(90deg, rgba(244, 179, 12, .35), var(--brand-gold)); }
.tl__bar::after { content: ""; position: absolute; right: -2px; top: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--traffic-zoom); box-shadow: 0 0 0 4px rgba(40, 200, 64, .2); opacity: 0; transition: opacity .3s ease; }
.tl.is-now .tl__bar::after { opacity: 1; animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); } }
.tl__from { position: absolute; top: 0; transform: translateX(-2px); font: 500 12px/1 var(--font-mono); color: var(--ink-secondary); white-space: nowrap; opacity: .35; transition: opacity .3s ease, color .3s ease; }
.tl__row.is-on .tl__from { opacity: 1; color: var(--accent); }
.tl__head { display: none; }
@media (min-width: 821px) {
  .tl__row { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; }
  .tl__axis { margin-left: 336px; }
  .tl__playhead { position: absolute; left: 336px; right: 0; top: -8px; bottom: -8px; pointer-events: none; }
  .tl__head { display: block; position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--accent); }
  .tl__head span { position: absolute; top: -26px; left: 0; transform: translateX(-50%); padding: 4px 8px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font: 600 11px/1 var(--font-mono); white-space: nowrap; }
  .tl.is-now .tl__head { opacity: 0; transition: opacity .6s ease .4s; }
}

/* Quem sou · cases em pilha */
.cs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.cs__text { display: flex; flex-direction: column; gap: 14px; }
.cs__big { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cs__big strong { font-size: clamp(64px, 9vw, 128px); line-height: .95; font-weight: 700; letter-spacing: -0.045em; white-space: nowrap; }
.cs__big span { font-size: 17px; line-height: 1.5; color: var(--ink-secondary); max-width: 34ch; }
.cs__note { font: 500 12px/1.4 var(--font-mono); color: var(--ink-secondary); }
.cs__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cs__deck { position: relative; width: min(300px, 64vw); aspect-ratio: 850 / 1300; margin: 40px 56px 0 0; }
.cs__card {
  position: absolute; inset: 0; margin: 0; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  transform: translate(calc(var(--pos, 0) * 28px), calc(var(--pos, 0) * -20px)) rotate(calc(var(--pos, 0) * 5deg)) scale(calc(1 - var(--pos, 0) * .06));
  transition: transform .6s var(--ease), opacity .45s ease;
}
.cs__card img { width: 100%; height: 100%; object-fit: cover; }
.cs__card.is-leaving { transform: translate(-60px, 40px) rotate(-12deg) scale(.92); opacity: 0; }
.fx-js .cs:not(.is-in) .cs__card { transform: none; opacity: 0; }
.cs__controls .btn { white-space: nowrap; }
.cs__controls { display: flex; align-items: center; gap: 12px; font: 500 13px/1.4 var(--font-mono); color: var(--ink-secondary); }
@media (min-width: 821px) { .cs { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }

/* Quem sou · valores em linhas grandes */
.vrows { display: flex; flex-direction: column; }
.vrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 40px; padding: 28px 0; align-items: baseline; transition: opacity .7s ease, transform .7s var(--ease); }
.vrow::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hairline); }
.vrow::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--brand-gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease); }
.vrow h3 { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.vrow p { font-size: 18px; line-height: 1.5; color: var(--ink-secondary); max-width: 36ch; }
@media (min-width: 821px) { .vrow { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.vrows.is-in .vrow::after { transform: scaleX(1); }
.fx-js .vrows:not(.is-in) .vrow { opacity: 0; transform: translateY(24px); }
.vrow:nth-child(2), .vrow:nth-child(2)::after { transition-delay: .12s; }
.vrow:nth-child(3), .vrow:nth-child(3)::after { transition-delay: .24s; }
.vrow:nth-child(4), .vrow:nth-child(4)::after { transition-delay: .36s; }

/* Quem sou · fechamento */
.qs-cta { display: flex; flex-direction: column; gap: 28px; }
.qs-cta h2 { font-size: clamp(36px, 5.2vw, 70px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; max-width: 16ch; }


@media (prefers-reduced-motion: reduce) {
  .fx-ascii__hint, .fx-split > *, [data-fx-after], .bubble, .vrow, .cs__card { transition: none !important; }
  .fx-split > *, [data-fx-after], .vrow { opacity: 1 !important; transform: none !important; }
  .bubble--typing i, .tl.is-now .tl__bar::after { animation: none; }
}
