/* ==========================================================================
   Marco Vinicius — Portfólio
   Estilos compartilhados por todas as páginas (home PT/EN e cases).
   Tokens de cor e fontes: assets/js/tailwind.config.js e design.md
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */
html { background-color: #050505; }
html, body {
  background-color: #050505;
  color: #fff;
  max-width: 100%;
}
html { overflow-x: hidden; }
/* `clip` corta os glows laterais sem transformar o body em área rolável:
   com `hidden`, focar um elemento ou um scrollIntoView deslocava a página. */
body {
  overflow-x: clip;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: opacity 0.2s ease-in-out;
}
body.is-leaving { opacity: 0; }

/* Link "pular para o conteúdo": invisível até receber foco pelo teclado */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 9999px;
  background: #B7E500;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; outline: 2px solid #fff; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.text-lime-glow { text-shadow: 0 0 20px rgba(204, 255, 0, 0.3); }

/* Mesmo vidro escuro da logo e do botão de voltar ao topo. */
#mobile-menu-drawer {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Gaveta de menu fica fora do fluxo enquanto fechada */
#mobile-menu-drawer:not(.opacity-100) {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ccff00; }

:focus-visible { outline: 2px solid #CCFF00; outline-offset: 3px; }

/* Âncoras param abaixo do cabeçalho flutuante */
section[id] { scroll-margin-top: 96px; }

/* Ajuste fino das pílulas de skills em telas pequenas */
@media (max-width: 640px) {
  #skills-grid > div { padding: 10px !important; gap: 8px !important; }
  #skills-grid > div span { font-size: 9px !important; letter-spacing: -0.03em !important; }
}

/* --- Transições entre páginas (View Transitions API) ---------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
/* Card da home vira o cabeçalho do case (e volta) */
.vt-case-card { view-transition-name: case-card; }
.vt-case-title { view-transition-name: case-title; }
::view-transition-group(case-card),
::view-transition-group(case-title) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(case-card),
::view-transition-new(case-card) {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}
::view-transition-old(case-title),
::view-transition-new(case-title) {
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

/* --- Reveal no scroll ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * var(--stagger, 90ms));
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
.no-js .reveal { opacity: 1; transform: none; }

/* --- Botão "voltar ao topo" ----------------------------------------------- */
/* A quiet, shared signature with room for the floating back-to-top control. */
.portfolio-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; padding: 28px 88px 28px 0; color: #9da599; font: 400 12px/1.8 'Plus Jakarta Sans',sans-serif; }
.portfolio-credit strong { color: #c6cdbf; font-weight: 500; white-space: nowrap; }
.portfolio-credit-divider { color: #6f795f; }
@media (max-width: 600px) {
  .portfolio-credit { flex-direction: column; align-items: flex-start; gap: 4px; }
  .portfolio-credit-divider { display: none; }
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { border-color: rgba(204, 255, 0, 0.4); color: #ccff00; }

/* --- Hero: fundo reativo e indicador de scroll ---------------------------- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 45%),
    rgba(204, 255, 0, 0.09),
    rgba(204, 255, 0, 0.03) 35%,
    transparent 65%
  );
  transition: opacity 0.6s ease;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.4s ease, color 0.3s ease;
}
.scroll-cue:hover { color: #CCFF00; }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .scroll-cue { display: none; } }
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, #CCFF00, transparent);
  animation: cue-line 1.9s ease-in-out infinite;
}
@keyframes cue-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Frase-chave do título: lima com brilho e sublinhado que se desenha */
.hero-highlight {
  color: #CCFF00;
  text-shadow: 0 0 28px rgba(204, 255, 0, 0.35);
  background-image: linear-gradient(90deg, #B7E500, #CCFF00);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: hl-draw 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}
@keyframes hl-draw { to { background-size: 100% 0.08em; } }

/* --- Projetos: tilt 3D, brilho e preview ---------------------------------- */
.tilt-card { transform-style: preserve-3d; }
.tilt-card.is-tilting {
  transition:
    transform 0.12s ease-out,
    background-color 0.5s,
    border-color 0.5s,
    box-shadow 0.5s !important;
}
.tilt-card.is-resetting {
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.5s,
    border-color 0.5s,
    box-shadow 0.5s !important;
}
.tilt-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.28),
    transparent 60%
  );
  transition: opacity 0.4s ease;
}
.tilt-card:hover .tilt-glow { opacity: 1; }
.card-preview {
  position: absolute;
  top: -32px;
  right: -8%;
  width: 52%;
  aspect-ratio: 16 / 10;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #0a0a0a;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate3d(0, 28px, 0) rotate(8deg) scale(0.94);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}
.tilt-card:hover .card-preview,
.tilt-card:focus-visible .card-preview {
  opacity: 1;
  transform: translate3d(0, 0, 24px) rotate(5deg) scale(1);
}
/* Conteúdo do card fica acima do preview (z-10 só vale com position) */
.tilt-card > .z-10 { position: relative; }
@media (hover: none) {
  .card-preview { opacity: 0.95; transform: rotate(5deg); }
}
@media (max-width: 1023px) {
  .tilt-card { height: auto; min-height: 480px; }
  .card-preview {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 20px;
    margin-bottom: 8px;
    opacity: 1;
    transform: none;
    border-radius: 10px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
  }
}

/* --- Skills: brilho que segue o cursor pelas bordas ------------------- */
#skills-grid > div { position: relative; overflow: hidden; }
.skill-card::before,
.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
/* borda iluminada */
.skill-card::before {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(204, 255, 0, 0.7), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* preenchimento suave */
.skill-card::after {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(204, 255, 0, 0.08), transparent 60%);
}
#skills-grid.is-lit .skill-card::before,
#skills-grid.is-lit .skill-card::after { opacity: 1; }
.skill-card > * { position: relative; z-index: 1; }

/* --- Timeline que se desenha ---------------------------------------------- */
.timeline { position: relative; }
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 1px;
  background: linear-gradient(to bottom, #CCFF00, #B7E500 70%, rgba(183, 229, 0, 0.35));
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.45);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  pointer-events: none;
}
.tl-dot { transition: background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease; }
.tl-dot.is-lit {
  background-color: #B7E500 !important;
  box-shadow: 0 0 14px rgba(204, 255, 0, 0.7);
}

/* --- Descrições expansíveis ------------------------------------------------ */
.exp-body { position: relative; }
.exp-text {
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-body.is-clamped .exp-text {
  max-height: 5.2em;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.exp-toggle {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B7E500;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s;
}
.exp-toggle:hover { color: #CCFF00; }
.exp-toggle svg { transition: transform 0.3s ease; }
.exp-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* --- Contato: status ao vivo, copiar e-mail, espiral reativa -------------- */
.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #CCFF00;
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.8);
  flex-shrink: 0;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(204, 255, 0, 0.7);
  animation: status-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes status-ping {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.1); opacity: 0; }
}
.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 10px 16px 10px 18px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.copy-email:hover { color: #fff; border-color: rgba(204, 255, 0, 0.4); }
.copy-email.is-copied { color: #111; background: #B7E500; border-color: #B7E500; }
.copy-email__icon { color: #B7E500; display: inline-flex; }
.copy-email.is-copied .copy-email__icon { color: #111; }
#contact-orb { perspective: 900px; }
#contact-orb-shape { will-change: transform; }
#contact-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- AI First: terminal, capacidades e artigos --------------------------- */
.ai-term {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(204, 255, 0, 0.05);
}
.ai-term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.ai-term__dot { width: 9px; height: 9px; border-radius: 9999px; background: rgba(255, 255, 255, 0.14); }
.ai-term__dot:first-child { background: rgba(204, 255, 0, 0.55); }
.ai-term__name {
  margin-left: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #8B9099;
  letter-spacing: 0.08em;
}
.ai-term__body {
  padding: 20px 18px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  min-height: 150px;
}
@media (min-width: 768px) { .ai-term__body { min-height: 118px; } }
.ai-term__line { display: flex; gap: 10px; color: #fff; }
.ai-term__sign { color: #CCFF00; flex-shrink: 0; }
.ai-term__caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 2px;
  background: #CCFF00;
  vertical-align: -2px;
  animation: ai-caret 1s steps(1) infinite;
}
@keyframes ai-caret { 50% { opacity: 0; } }
.ai-term__out {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  color: #8B9099;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ai-term__out.is-on { opacity: 1; transform: none; }

.ai-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}
.ai-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #CCFF00, rgba(183, 229, 0, 0));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-card.is-active,
.ai-card:hover { border-color: rgba(183, 229, 0, 0.4); background: rgba(183, 229, 0, 0.04); }
.ai-card.is-active::before,
.ai-card:hover::before { transform: scaleY(1); }
.ai-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ai-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #8B9099;
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.ai-card.is-active .ai-card__icon,
.ai-card:hover .ai-card__icon { color: #CCFF00; border-color: rgba(204, 255, 0, 0.35); background: rgba(204, 255, 0, 0.08); }
.ai-card__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #8B9099;
  letter-spacing: 0.1em;
}
.ai-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}
.ai-card__desc { color: #A0A0A0; font-size: 0.9375rem; line-height: 1.65; font-weight: 300; }
.ai-card__result {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B7E500;
}

.ai-article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.ai-article:hover { border-color: rgba(183, 229, 0, 0.4); background: rgba(183, 229, 0, 0.04); transform: translateY(-3px); }
.ai-article__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #8B9099;
}
.ai-article__title { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; font-size: 1rem; line-height: 1.35; }
.ai-article__sum { color: #A0A0A0; font-size: 0.875rem; line-height: 1.6; font-weight: 300; }
.ai-article__result {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B7E500;
}
.ai-article__cta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B7E500;
}
.ai-article--empty { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
.ai-article--empty .ai-article__cta { margin-top: 0; padding-top: 0; }

/* --- Comparador antes / depois ------------------------------------------ */
.ba-compare { --pos: 50%; }
.ba-compare__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-compare__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
  pointer-events: none;
}
.ba-compare__before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-compare__before-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.18);
  pointer-events: none;
}
.ba-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #CCFF00;
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.7);
  pointer-events: none;
}
.ba-compare__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #050505;
  border: 2px solid #CCFF00;
  color: #CCFF00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(204, 255, 0, 0.35);
  transition: transform 0.2s ease;
}
.ba-compare.is-dragging .ba-compare__grip,
.ba-compare__range:focus-visible ~ .ba-compare__handle .ba-compare__grip { transform: translate(-50%, -50%) scale(1.12); }
.ba-compare__tag {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ba-compare__tag--before { left: 12px; background: rgba(5, 5, 5, 0.7); color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); }
.ba-compare__tag--after { right: 12px; background: #CCFF00; color: #111; }
.ba-compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba-compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba-compare__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: transparent; }
.ba-compare__range:focus-visible ~ .ba-compare__handle { outline: none; }
.ba-compare__hint {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #8B9099;
}
.ba-compare__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ba-compare__thumb {
  width: 72px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0a0a0a;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s, border-color 0.25s;
}
.ba-compare__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-compare__thumb:hover { opacity: 1; }
.ba-compare__thumb.is-active { opacity: 1; border-color: #CCFF00; }

/* --- Movimento reduzido ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card-preview { opacity: 0.95; transform: rotate(5deg); }
  .hero-spot { display: none; }
  .ai-term__caret { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* --- Hero: selo de disponibilidade ----------------------------------------- */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 13px;
  border-radius: 9999px;
  border: 1px solid rgba(204, 255, 0, 0.28);
  background: rgba(204, 255, 0, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.3;
  color: #e5e7eb;
}
.hero-status .status-dot { width: 7px; height: 7px; }
.hero-status__place { margin-left: -2px; color: #8B9099; }
@media (max-width: 479px) { .hero-status__place { display: none; } }

/* --- Já atuei em: faixa com as empresas da trajetória ---------------------- */
.companies__title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #B7E500;
  white-space: nowrap;
}
.companies__title::before,
.companies__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.14));
}
.companies__title::after { background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.14)); }
.companies__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
}
@media (min-width: 768px) { .companies__list { gap: 12px 28px; } }
@media (min-width: 1024px) { .companies__list { gap: 14px 34px; } }
.company {
  position: relative;
  display: inline-block;
  padding: 6px 1px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #8B9099;
  text-decoration: none;
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .company { font-size: 18px; } }
.company::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #CCFF00;
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.company:hover,
.company:focus-visible { color: #fff; }
.company:hover::after,
.company:focus-visible::after { transform: scaleX(1); }

/* Item da timeline aberto a partir da faixa de empresas */
.timeline > [id] { scroll-margin-top: 140px; }
.timeline h4 { transition: color 0.5s ease; }
.timeline > .is-flash h4 { color: #CCFF00; }
.timeline > .is-flash .tl-dot {
  background-color: #CCFF00 !important;
  box-shadow: 0 0 0 6px rgba(204, 255, 0, 0.15), 0 0 18px rgba(204, 255, 0, 0.8);
}

/* --- Resumo em 30 segundos -------------------------------------------------- */
.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 5, 5, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.summary-chip svg { color: #CCFF00; flex-shrink: 0; }
.summary-chip:hover { border-color: rgba(204, 255, 0, 0.5); color: #CCFF00; }
.summary-chip:active { transform: scale(0.96); }
.summary-chip kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #8B9099;
}
@media (hover: none), (max-width: 767px) { .summary-chip kbd { display: none; } }

.summary-lock { overflow: hidden; }
.summary-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.summary-backdrop.is-open { opacity: 1; }
.summary {
  position: fixed;
  z-index: 91;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(204, 255, 0, 0.05);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -46%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.summary.is-open { opacity: 1; transform: translate(-50%, -50%); }
.summary[hidden], .summary-backdrop[hidden] { display: none; }
.summary__grip { display: none; }
.summary__body {
  display: grid;
  gap: 20px;
  padding: 22px 22px 24px;
  grid-template-columns: minmax(0, 1fr);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
@media (max-width: 640px) {
  .summary {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    opacity: 1;
    transform: translateY(104%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .summary.is-open { transform: none; }
  .summary__grip {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    flex: none;
    touch-action: none;
    cursor: grab;
  }
  .summary__grip::after { content: ''; width: 44px; height: 5px; border-radius: 9999px; background: rgba(255, 255, 255, 0.28); }
  .summary__body { padding: 4px 18px 22px; gap: 18px; }
}
.summary__who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.summary__ava {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1c2208, #0b0b0b);
  border: 1px solid rgba(204, 255, 0, 0.35);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #CCFF00;
}
.summary__name { font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 800; line-height: 1.2; outline: none; }
.summary__role { margin-top: 2px; color: #A0A0A0; font-size: 14px; }
.summary__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.summary__close:hover { border-color: rgba(204, 255, 0, 0.45); color: #CCFF00; }
.summary__status { justify-self: start; }
.summary__rows { display: grid; gap: 16px; margin: 0; }
.summary__row { display: grid; gap: 6px; }
.summary__row dt {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B9099;
}
.summary__row dd { margin: 0; color: #eaeaea; font-size: 14.5px; line-height: 1.55; }
.summary__res { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.summary__res a {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  color: #eaeaea;
  text-decoration: none;
  transition: color 0.25s ease;
}
.summary__res a::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 9999px;
  background: #CCFF00;
  box-shadow: 0 0 8px rgba(204, 255, 0, 0.6);
}
.summary__res small { display: block; margin-top: 2px; color: #8B9099; font-size: 12px; transition: color 0.25s ease; }
.summary__res a:hover { color: #fff; }
.summary__res a:hover small { color: #CCFF00; }
.summary__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.summary__act {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 10px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.summary__act:hover { border-color: #B7E500; color: #B7E500; }
.summary__act .copy-email__icon { display: inline-flex; }
.summary__act--lime,
.summary__act.is-copied { background: #B7E500; border-color: #B7E500; color: #111; }
.summary__act--lime:hover { background: #fff; border-color: #fff; color: #111; }
.summary__act.is-copied:hover { color: #111; }
.summary__mail {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #8B9099;
  user-select: all;
}

/* --- Sobre: ficha que escaneia a foto --------------------------------------- */
.about-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.about-hud__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(204, 255, 0, 0.14), transparent 35%);
  transform: translateY(-100%);
}
.about-hud__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #CCFF00;
  box-shadow: 0 0 16px #CCFF00, 0 0 40px rgba(204, 255, 0, 0.5);
  opacity: 0;
}
.about-hud__lab {
  position: absolute;
  top: var(--y);
  display: grid;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.86);
  border: 1px solid rgba(204, 255, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  text-align: left;
}
.about-hud__lab small {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #CCFF00;
}
.about-hud__lab span { font-size: 11.5px; font-weight: 600; line-height: 1.2; color: #fff; }
.about-hud__lab--l { left: 12px; }
.about-hud__lab--r { right: 12px; }
@media (min-width: 768px) {
  .about-hud__lab { padding: 8px 12px; }
  .about-hud__lab small { font-size: 9px; }
  .about-hud__lab span { font-size: 13px; }
  .about-hud__lab--l { left: 20px; }
  .about-hud__lab--r { right: 20px; }
}
/* Antes da primeira varredura as etiquetas ficam escondidas */
.about-hud.is-armed:not(.is-done) .about-hud__lab { opacity: 0; }
.about-hud.is-scanning .about-hud__scan { animation: hud-scan 1.1s linear forwards; }
.about-hud.is-scanning .about-hud__wash { animation: hud-wash 1.1s linear forwards; }
.about-hud.is-scanning .about-hud__lab {
  animation: hud-lab 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--at) * 1.1s);
}
@keyframes hud-scan {
  0% { top: 0; opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes hud-wash { to { transform: translateY(100%); } }
@keyframes hud-lab {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* --- Recomendações: uma por vez, com troca automática ----------------------- */
.recs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.recs__stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rec {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 24px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.rec::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #CCFF00, rgba(183, 229, 0, 0));
}
.rec__mark { width: 34px; height: 34px; margin-bottom: 14px; color: #CCFF00; filter: drop-shadow(0 0 12px rgba(204, 255, 0, 0.35)); }
.rec__text { margin: 0; max-width: 64ch; font-size: 17px; font-weight: 300; line-height: 1.65; color: #d4d4d4; }
.rec__text mark { background: none; color: #CCFF00; font-weight: 500; }
.rec__who { display: flex; align-items: center; gap: 14px; }
.rec__ava {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: #B7E500;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.rec__meta { display: grid; gap: 3px; min-width: 0; }
.rec__meta strong { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 800; color: #fff; }
.rec__meta span { font-size: 13px; color: #A0A0A0; }
.rec__meta .rec__rel {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B9099;
}
@media (min-width: 768px) {
  .rec { padding: 44px 48px 36px; }
  .rec__text { font-size: 21px; line-height: 1.6; }
}
/* Com JS, as recomendações ficam empilhadas na mesma célula: a altura é a da
   mais longa e a troca não mexe no resto da página */
.recs.is-ready .recs__stage { gap: 0; touch-action: pan-y; }
.recs.is-ready .rec {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s;
}
.recs.is-ready .rec.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
.recs:not(.is-ready) .recs__nav { display: none; }
.recs__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; min-width: 0; }
.recs__nav > * { min-width: 0; }
.recs__people {
  display: flex;
  gap: 8px;
  max-width: 100%;
  padding: 5px;
  margin: -5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.recs__people::-webkit-scrollbar { display: none; }
.recs__person {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #8B9099;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.recs__person:hover { color: #fff; border-color: rgba(204, 255, 0, 0.4); }
.recs__person[aria-current="true"] { color: #CCFF00; border-color: rgba(204, 255, 0, 0.5); background: rgba(204, 255, 0, 0.08); }
.recs__ring {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  transform: rotate(-90deg);
  pointer-events: none;
  opacity: 0;
}
.recs__ring circle { fill: none; stroke: #CCFF00; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.recs:not(.is-manual) .recs__person[aria-current="true"] .recs__ring { opacity: 1; }
.recs:not(.is-manual) .recs__person[aria-current="true"] .recs__ring circle { animation: rec-ring var(--dur, 8s) linear forwards; }
.recs.is-paused .recs__ring circle { animation-play-state: paused; }
@keyframes rec-ring { to { stroke-dashoffset: 0; } }
.recs__ctrl { display: flex; align-items: center; gap: 10px; }
.recs__count { margin-right: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #8B9099; }
.recs__count b { color: #fff; font-weight: 700; }
.recs__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.recs__arrow:hover { border-color: #B7E500; color: #B7E500; }
.recs__note { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #8B9099; }
.company img { display: block; height: 26px; width: auto; opacity: 0.6; transition: opacity 0.3s ease; }
.company:hover img,
.company:focus-visible img { opacity: 1; }
