/* Folha de estilo única do site, em seções na ordem em que se sobrepõem (a ordem importa: não reorganize).
 *
 *   Tokens · Base · Botões · Barra do topo .............. todas as páginas
 *   Hero · Home · "ver mais" · KPIs · Seções · Sobre mim .. Início
 *   Escada de funções · Gantt · Painel da empresa ........ Início e Trajetória (templates/profiles/components)
 *   Formação · Stack (resumos) · Rodapé .................. Início e todas as páginas
 *   Página Formação · Mapa de conhecimento ............... Formação
 *   Página Stack ........................................ Stack
 *   Página Projetos ..................................... Projetos (apps/projetos)
 *   Aviso de privacidade · Apresentação guiada ........... todas as páginas
 *   Privacidade · Painel de indicadores · Erros .......... páginas próprias
 *   Em construção · Reveal · Toque · Seletor de idioma ... ajustes finais, valem para todas
 */

/* ═══════════ Tokens ═══════════ */
:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0b0f15;
  --surface: #0f141b;
  --surface-2: #151c26;
  --border: #1c2531;
  --border-strong: #2a3644;
  --text: #e8eef4;
  --text-2: #c3cdd7;
  --muted: #8d9aa8;
  --accent: #22d3ee;
  --accent-strong: #67e8f9;
  --accent-ink: #04141a;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-line: rgba(34, 211, 238, 0.35);
  --live: #34d399;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-gap: clamp(72px, 10vw, 128px);
}

/* ═══════════ Base ═══════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: max(0.85em, 12px); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 600px; }

/* ═══════════ Buttons & small pieces ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }

.link-arrow { font-weight: 600; display: inline-flex; gap: 6px; padding: 10px 0; white-space: nowrap; }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

.tag { white-space: nowrap; flex: none; font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; }
.tag-live { background: rgba(52, 211, 153, 0.12); color: var(--live); }
.tag-approx { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border-strong); }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--border-strong); }

.meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transform-origin: left; animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ═══════════ Topbar ═══════════ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font: 700 17px/1 var(--font-mono); color: var(--text); }
.brand:hover { color: var(--text); }
.brand-cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu a { display: block; white-space: nowrap; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.menu a:hover { color: var(--text); background: var(--surface-2); }
.menu a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.menu .menu-cta { color: var(--accent); border: 1px solid var(--accent-line); margin-left: 8px; }
.menu .menu-cta:hover { background: var(--accent-soft); color: var(--accent-strong); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(7, 9, 13, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 14px; font-size: 16px; }
  .menu .menu-cta { margin: 8px 0 0; text-align: center; }
}

/* ═══════════ Hero ═══════════ */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 72px); isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: 8%; top: -80px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-title { font-size: clamp(44px, 7vw, 84px); font-weight: 700; line-height: 1; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  font: 500 14px/1.2 var(--font-mono); color: var(--accent-strong);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-side { position: relative; display: flex; flex-direction: column; align-items: center; }
.avatar {
  position: relative; width: 220px; height: 220px; border-radius: 50%;
  padding: 4px; background: conic-gradient(from 180deg, var(--accent), transparent 40%, var(--accent) 80%);
  box-shadow: 0 0 80px -20px var(--accent);
  z-index: 1;
}
.avatar img, .avatar-initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 52% 38%; background: var(--surface-2); }
.avatar-initials { display: flex; align-items: center; justify-content: center; font: 700 64px/1 var(--font-display); color: var(--text); }

.terminal {
  width: 100%; max-width: 440px; margin-top: -36px;
  background: rgba(11, 15, 21, 0.92); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.terminal-bar em { margin-left: auto; font: 400 12px var(--font-mono); color: var(--muted); font-style: normal; }
.terminal-body { margin: 0; padding: 44px 18px 18px; font: 400 14px/1.75 var(--font-mono); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.t-prompt { color: var(--accent); }
.t-out { color: var(--muted); }
.t-cursor { display: inline-block; width: 9px; height: 17px; vertical-align: -3px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { order: -1; align-items: center; }
  .avatar { width: 132px; height: 132px; }
  .avatar-initials { font-size: 42px; }
  .terminal { display: none; }
}

/* ═══════════ Home v2: foco, respiro e hierarquia ═══════════ */
.hero-v2 { padding-bottom: clamp(40px, 6vw, 64px); }
.hero-v2 .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hero-v2 .hero-copy { gap: 20px; }
.hero-lead { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.45; color: var(--text-2); max-width: 620px; }
.hero-v2 .hero-cta { align-items: center; gap: 20px; margin-top: 8px; }
.hero-meta-line { font-size: 14px; color: var(--muted); }
.hero-photo { display: flex; justify-content: center; }
.avatar-lg { width: clamp(220px, 26vw, 320px); height: clamp(220px, 26vw, 320px); }
@media (max-width: 900px) {
  .hero-v2 .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; justify-content: center; }
  .avatar-lg { width: 150px; height: 150px; }
}

.impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 8px; }
.impact-item { padding: 8px 28px; border-left: 1px solid var(--border-strong); }
.impact-item:first-child { padding-left: 0; border-left: 0; }
.impact-value { font: 700 clamp(40px, 5vw, 60px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--text); }
.impact-text { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 260px; }
@media (max-width: 720px) {
  .impact { grid-template-columns: 1fr; gap: 20px; }
  .impact-item { padding: 0 0 0 16px; border-left: 2px solid var(--accent); }
  .impact-item:first-child { padding-left: 16px; border-left: 2px solid var(--accent); }
}

.story-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-copy { display: flex; flex-direction: column; gap: 16px; }
.motto-xl { padding: clamp(28px, 4vw, 44px); }
.motto-xl blockquote { font-size: clamp(22px, 2.6vw, 30px); }
.more summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 8px 0; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ↓"; }
.more[open] summary::after { content: " ↑"; }
.more[open] { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.duo-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.duo-title { font-size: clamp(26px, 3vw, 34px); font-weight: 600; }
.duo-card .link-arrow { margin-top: auto; }
.tag-cloud { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud li { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 14px; color: var(--text-2); }
.tag-cloud li span { font: 500 12px var(--font-mono); color: var(--accent); margin-left: 4px; }
.tag-cloud-strong li { color: var(--text); }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } }

.milestones-wide { max-width: 760px; }

/* Blocos "ver mais": o detalhe existe, mas só aparece para quem pede */
.section.section-tight { padding-top: 16px; }
.more-block { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.more-block > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; cursor: pointer; list-style: none; border-radius: var(--radius);
}
.more-block > summary::-webkit-details-marker { display: none; }
.more-block > summary:hover { background: var(--surface-2); }
.more-block > summary .eyebrow { display: block; margin-bottom: 6px; }
.more-title { font: 600 clamp(20px, 2.4vw, 26px)/1.2 var(--font-display); color: var(--text); }
.more-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); font: 400 22px/1 var(--font-mono); color: var(--accent); transition: transform .25s; }
.more-block[open] .more-icon { transform: rotate(45deg); }
.more-block[open] { padding-bottom: 24px; }
.more-block[open] > :not(summary) { margin-inline: 24px; }
.more-block .section-head { margin-bottom: 16px; }
.more-sub { margin-bottom: 16px; }

/* ═══════════ KPIs ═══════════ */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
}
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .7; }
.kpi-value { font: 700 clamp(40px, 4.5vw, 52px)/1 var(--font-display); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 8px; }
.kpi-value small { font: 500 15px/1 var(--font-mono); color: var(--muted); letter-spacing: 0; }
.kpi-label { color: var(--text-2); font-weight: 500; }
.kpi-note { color: var(--muted); font-size: 14px; }
.kpi .meter { margin: 6px 0 2px; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr; } }

/* ═══════════ Sections ═══════════ */
.section { padding-top: var(--section-gap); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 600; }
.section-sub { margin-top: 10px; max-width: 560px; }
.note { margin-top: 20px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.note svg { flex: none; color: var(--accent); }

/* ═══════════ Sobre mim ═══════════ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy .section-title { margin-bottom: 8px; }
.about-text { font-size: 17px; color: var(--text-2); max-width: 640px; }
.about-side { display: flex; flex-direction: column; gap: 16px; }
.motto {
  margin: 0; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: radial-gradient(130% 120% at 100% 0%, rgba(34, 211, 238, 0.16), transparent 60%), var(--surface);
}
.motto svg { color: var(--accent); margin-bottom: 10px; }
.motto blockquote { margin: 0; font: 600 clamp(20px, 2.2vw, 24px)/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.milestones {
  list-style: none; margin: 0; padding: 24px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.milestone { display: grid; grid-template-columns: 64px 14px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 22px; }
.milestone.is-last { padding-bottom: 0; }
.milestone::before { content: ""; position: absolute; left: 84px; top: 14px; bottom: -2px; width: 2px; background: var(--border-strong); }
.milestone.is-last::before { display: none; }
.milestone-when { color: var(--accent); font-size: 13px; padding-top: 1px; text-align: right; }
.milestone-dot { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg-2); position: relative; z-index: 1; }
.milestone.is-last .milestone-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.milestone-text { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ═══════════ Escada de funções ═══════════ */
.kpi-hl { color: var(--accent); font-weight: 600; }
.ladder {
  margin-bottom: 16px; padding: 24px 24px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.ladder-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 64px; }
.ladder-claim { font-size: 18px; color: var(--text-2); max-width: 640px; }
.ladder-claim strong { color: var(--text); font-family: var(--font-display); font-size: 22px; }
.ladder-kicker { display: block; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.ladder-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.ladder-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg-thread { width: 22px; height: 3px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.lg-box { width: 22px; height: 12px; border-radius: 3px; border: 1px solid var(--border-strong); background: var(--surface-2); }

.ladder-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 6px; }
.step { position: relative; flex: var(--grow) 1 0; min-width: 150px; }
.step-box {
  position: relative; height: calc(212px + var(--level) * 36px);
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong);
  transition: transform .25s ease, border-color .25s ease;
}
.step:hover .step-box { transform: translateY(-4px); }
.step.is-data .step-box { border-top: 3px solid var(--accent); box-shadow: 0 -10px 30px -18px var(--accent); }
.step.is-data:not(.is-thread-start) .step-box::before {
  content: ""; position: absolute; left: -7.5px; top: -3px; width: 3px; height: 39px;
  background: var(--accent); border-radius: 2px; box-shadow: 0 0 8px var(--accent);
}
.step.is-current .step-box { background: linear-gradient(180deg, rgba(34, 211, 238, 0.14), var(--bg-2)); }
.thread-label {
  position: absolute; left: 0; bottom: calc(212px + var(--level) * 36px + 12px);
  font-size: 12px; color: var(--accent); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft);
}
.step-time { color: var(--accent); font-size: 13px; }
.step-name { font-size: 18px; font-weight: 600; }
.step-note { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.step-bar { display: none; }
.step-logos { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.step-logo { width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--border-strong); background: #fff; cursor: pointer; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.step-logo:hover { transform: scale(1.1); }
.step-logo img { width: 100%; height: 100%; object-fit: contain; }
.step-logo span { font: 700 11px var(--font-display); color: #000; }

@media (max-width: 880px) {
  .ladder-head { margin-bottom: 20px; }
  .ladder-steps { flex-direction: column; align-items: stretch; gap: 10px; }
  .step { min-width: 0; }
  .step-box { height: auto; border-radius: 12px; }
  .step.is-data:not(.is-thread-start) .step-box::before { display: none; }
  .step.is-data .step-box { border-top: 1px solid var(--border-strong); border-left: 3px solid var(--accent); }
  .thread-label { position: static; display: inline-block; margin-bottom: 8px; }
  .step-bar { display: block; height: 6px; border-radius: 999px; background: var(--bg); margin: 4px 0; }
  .step-bar span { display: block; height: 100%; width: var(--pct); border-radius: 999px; background: var(--accent); opacity: .7; }
}

/* ═══════════ Gantt ═══════════ */
.gantt {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px 12px;
  --label-w: 200px;
}
.gantt-axis { position: relative; height: 24px; margin-left: var(--label-w); font: 500 12px/1 var(--font-mono); color: var(--muted); }
.gantt-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.gantt-row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); align-items: center; min-height: 56px; border-top: 1px solid var(--border); }
.gantt-label {
  display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: 12px; padding: 6px 8px 6px 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px;
}
.gantt-label:hover .gantt-name { color: var(--accent-strong); }
.gantt-row { transition: background .2s ease; }
.gantt-row.is-linked { background: linear-gradient(90deg, var(--accent-soft), transparent 80%); }
.gantt-row.is-linked .gantt-bar { background: var(--accent); }
.gantt-name { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 36px; height: 36px; border-radius: 9px; flex: none; object-fit: contain; background: #fff; }
.logo-mono { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border-strong); font: 700 12px/1 var(--font-display); color: var(--text); }
.gantt-track { position: relative; height: 56px; }
.gantt-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); opacity: .6; }
.gantt-bar {
  position: absolute; top: 50%; height: 18px; margin-top: -9px;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(34, 211, 238, 0.45);
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--surface);
  transform-origin: left;
  animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both;
  transition: background .2s, height .2s, margin .2s;
}
.gantt-bar:hover, .gantt-bar:focus-visible { background: var(--accent); height: 24px; margin-top: -12px; }
.gantt-bar.is-current { background: var(--accent); }
.gantt-bar.is-approx {
  background: repeating-linear-gradient(135deg, rgba(34, 211, 238, 0.42) 0 6px, rgba(34, 211, 238, 0.14) 6px 12px);
  outline: 1px dashed var(--accent-line); outline-offset: -1px;
}
.gantt-bar.is-current::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--surface); }
.gantt-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; box-shadow: 0 12px 30px -10px #000; white-space: nowrap;
}
.gantt-tip strong { display: block; color: var(--text); }
.gantt-tip span { color: var(--muted); font: 400 12px var(--font-mono); }
@media (max-width: 720px) {
  .gantt-axis span:nth-child(even) { display: none; }
  .gantt { --label-w: 0px; padding: 16px; }
  .gantt-row { grid-template-columns: 1fr; padding-top: 12px; }
  .gantt-track { height: 40px; }
}

.career-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 16px; }
.career-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.career-card:hover, .career-card.is-linked { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(34, 211, 238, 0.45); }
.career-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.career-card .logo { width: 40px; height: 40px; }
.career-name { font: 600 19px/1.2 var(--font-display); letter-spacing: -0.01em; }
.career-role { color: var(--text-2); font-size: 15px; }
.career-summary { color: var(--muted); font-size: 14px; }
.career-more { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; }
.career-more span { transition: transform .2s ease; }
.career-card:hover .career-more span { transform: translateX(4px); }
.career-card.is-current { border-color: var(--accent-line); box-shadow: inset 0 1px 0 var(--accent-line); }
.career-card .mono { font-size: 13px; }

.recognition {
  margin-top: 16px; display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(34, 211, 238, 0.12), transparent 60%), var(--surface);
}
.recognition-icon { flex: none; color: var(--accent); margin-top: 2px; }
.recognition-text { font-size: 17px; color: var(--text-2); max-width: 820px; }

.hint { display: inline-flex; align-items: center; gap: 8px; }
.hint svg { color: var(--accent); flex: none; }

/* ═══════════ Painel da empresa ═══════════ */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(560px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw;
  padding: 0; border: 0; border-left: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.7);
}
.drawer[open] { animation: drawer-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer::backdrop { background: rgba(3, 5, 8, 0.6); backdrop-filter: blur(4px); }
.drawer-inner { height: 100%; display: flex; flex-direction: column; }
.drawer-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  border-bottom: 1px solid var(--border); background: var(--bg-2); position: sticky; top: 0; z-index: 1;
}
.drawer-count { margin-left: 4px; }
.drawer-close { margin-left: auto; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.drawer-body { overflow-y: auto; padding: 28px 28px 40px; display: flex; flex-direction: column; gap: 28px; }
.drawer-body.is-swapping { animation: swap .3s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.drawer-head { display: flex; gap: 16px; align-items: center; }
.drawer-head h2 { font-size: 28px; font-weight: 600; margin-bottom: 4px; }
.drawer-head .eyebrow { margin-bottom: 6px; }
.logo-lg { width: 56px; height: 56px; border-radius: 12px; font-size: 16px; }
.drawer-summary { font-size: 18px; color: var(--text-2); padding-left: 16px; border-left: 2px solid var(--accent); }
.drawer-section h3 { font: 600 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.roles { list-style: none; margin: 0; padding: 0; position: relative; }
.roles::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.role { position: relative; display: flex; gap: 16px; padding-bottom: 16px; }
.role:last-child { padding-bottom: 0; }
.role-dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--accent); position: relative; z-index: 1; }
.role.is-current .role-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.role-title { font-weight: 600; font-size: 16px; }
.role .mono { font-size: 12.5px; margin-top: 2px; }
.bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.bullets li::marker { color: var(--accent); }
.wins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wins li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
}
.wins svg { flex: none; color: var(--live); margin-top: 2px; }
.drawer-recognition {
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--accent-line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(34, 211, 238, 0.14), transparent 60%), var(--surface);
  color: var(--text-2);
}
.drawer-empty { padding: 16px; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--muted); }
@media (max-width: 600px) {
  .drawer { inset: auto 0 0 0; width: 100vw; height: 88dvh; border-left: 0; border-top: 1px solid var(--border-strong); border-radius: 20px 20px 0 0; }
  .drawer[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .drawer-body { padding: 22px 18px 32px; }
}
body.has-drawer { overflow: hidden; }

/* ═══════════ Formação ═══════════ */
.edu-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr) minmax(0, 1.05fr); gap: 16px; align-items: stretch; }
.edu-list { display: flex; flex-direction: column; gap: 16px; }
.edu-card { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.edu-card h3 { font-size: 20px; font-weight: 600; }
.edu-progress { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.chart-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.chart-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.chart-card .muted { font-size: 14px; }
.chart { width: 100%; height: 320px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
.chart-table summary:hover { color: var(--text); }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--border); }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1040px) { .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .edu-list { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .edu-card { flex: 1 1 260px; } }
@media (max-width: 680px) { .edu-grid { grid-template-columns: 1fr; } }

/* ═══════════ Stack ═══════════ */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stack-card h3 { margin-bottom: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-size: 14px; font-weight: 500; cursor: default;
  transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.chip-count { min-width: 22px; padding: 2px 6px; border-radius: 6px; background: var(--bg); font: 600 12px/1.3 var(--font-mono); color: var(--accent); text-align: center; }

/* ═══════════ Footer ═══════════ */
.footer { margin-top: var(--section-gap); border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 56px 32px; }
.footer-title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 600; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ═══════════ Página Formação ═══════════ */
.page-head { padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.page-head + .kpis { margin-bottom: 0; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

.academic { display: flex; flex-direction: column; gap: 16px; }
.academic-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.academic-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.ring {
  --size: 96px; flex: none; width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0);
  display: grid; place-items: center; position: relative;
}
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font: 700 24px/1 var(--font-display); }
.ring small { font: 500 12px var(--font-mono); color: var(--muted); margin-left: 2px; }
.subjects { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.subjects-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 13px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-done { background: var(--accent); }
.dot-open { border: 2px solid var(--accent); }
.subject-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.subjects > div:last-child .subject-list { grid-template-columns: 1fr; }
.subject {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-2);
  font: 500 14px/1.35 var(--font-body); color: var(--text-2); text-align: left;
}
.subject.is-link { cursor: pointer; transition: border-color .2s, background .2s; }
.subject.is-link:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.subject.is-open { border-style: dashed; color: var(--muted); }
.subject-h { flex: none; color: var(--accent); font-size: 12px; }

.chart-note { margin-top: 8px; font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--border-strong); }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.cert-filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font: 500 14px var(--font-body); display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.filter-chip span { font: 600 12px var(--font-mono); color: var(--muted); }
.filter-chip:hover { border-color: var(--accent-line); color: var(--text); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter-chip[aria-pressed="true"] span { color: var(--accent-ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); }
.field:focus-within { border-color: var(--accent); }
.field-search { flex: 1 1 280px; }
.field input, .field select { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 15px var(--font-body); min-height: 42px; }
.field select option { background: var(--bg-2); }

.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cert-card {
  width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer;
  padding: 18px; border-radius: 14px; border: 1px solid var(--border); color: inherit; font: inherit;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  transition: border-color .2s, transform .2s;
}
.cert-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.cert-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cert-inst { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.cert-h { font-size: 12px; color: var(--text); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); }
.cert-title { font: 600 16px/1.35 var(--font-display); color: var(--text); }
.cert-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.cert-cat { color: var(--muted); }
.cert-head h2 { font-size: 26px; line-height: 1.2; }
.cert-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.cert-facts div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.cert-facts dt { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.cert-facts dd { margin: 0; font: 600 20px var(--font-display); }
.verify-btn { align-self: flex-start; }
.cert-code { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border-strong); overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .subjects, .chart-grid { grid-template-columns: 1fr; }
  .academic-head { align-items: flex-start; }
  .ring { --size: 76px; }
}

/* ═══════════ Mapa de conhecimento ═══════════ */
.kgroup { margin-bottom: 28px; }
.kgroup-title { font: 600 13px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.arch { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.arch-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.arch-step { position: relative; counter-increment: step; }
.arch-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font: 700 18px var(--font-mono);
}
.arch-step .ktile::before { content: counter(step, decimal-leading-zero); font: 600 11px var(--font-mono); color: var(--accent); }
.arch-cross { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.arch-cross-item { position: relative; }
.arch-cross-label { position: absolute; right: 14px; top: 14px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; z-index: 1; pointer-events: none; }
.arch-cross .ktile { border-style: dashed; }
.ktiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ktile {
  width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer;
  padding: 16px; border-radius: 12px; border: 1px solid var(--border-strong); color: inherit; font: inherit;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); transition: border-color .2s, transform .2s;
}
.ktile:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.ktile-name { font: 600 16px/1.25 var(--font-display); color: var(--text); }
.ktile-meta { font-size: 12px; color: var(--accent); }
.ktile-bar { height: 5px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-top: auto; }
.ktile-bar span { display: block; height: 100%; background: var(--live); border-radius: 999px; }
.ktile-applied { font-size: 12.5px; color: var(--muted); }
.sankey-card { margin-top: 8px; }
.sankey-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.sankey-legend li { display: inline-flex; align-items: center; gap: 8px; }
.sankey-legend span { width: 12px; height: 12px; border-radius: 3px; }
.sankey-scroll { overflow-x: auto; }
.chart-sankey { height: 720px; min-width: 760px; }
.cert-facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apply-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.apply-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 56px; align-items: center; gap: 12px; }
.apply-name { font-weight: 500; }
.apply-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.apply-bar span { display: block; height: 100%; background: var(--live); border-radius: 999px; }
.apply-h { text-align: right; font-size: 12px; color: var(--muted); }
.subject-list-1 { grid-template-columns: 1fr; }
@media (max-width: 960px) {
  .arch-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-step:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .arch-flow, .arch-cross { grid-template-columns: 1fr; }
  .arch-step::after { display: none; }
}

/* ═══════════ Página Stack ═══════════ */
.lg-bar { width: 22px; height: 6px; border-radius: 999px; }
.lg-practice { background: var(--live); }
.lg-study { background: var(--accent); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.skill-card {
  width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer;
  padding: 16px; border-radius: 12px; border: 1px solid var(--border-strong); color: inherit; font: inherit;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); transition: border-color .2s, transform .2s;
}
.skill-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.skill-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.skill-name { font: 600 16px/1.25 var(--font-display); color: var(--text); }
.skill-metric { display: grid; grid-template-columns: 52px minmax(0, 1fr) 58px; align-items: center; gap: 8px; }
.skill-metric-label { font-size: 12px; color: var(--muted); }
.skill-metric-value { font-size: 12px; color: var(--text-2); text-align: right; white-space: nowrap; }
.skill-bar { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.skill-bar span { display: block; height: 100%; border-radius: 999px; }
.skill-bar-practice span { background: var(--live); }
.skill-bar-study span { background: var(--accent); }
.skill-where { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.skill-where img { width: 22px; height: 22px; border-radius: 5px; background: #fff; object-fit: contain; }
.skill-mono { width: 22px; height: 22px; border-radius: 5px; display: inline-grid; place-items: center; font: 700 9px var(--font-display); background: var(--surface-2); border: 1px solid var(--border-strong); }
.skill-proj { font-size: 12px; color: var(--muted); margin-left: 4px; }

.matrix-scroll { overflow-x: auto; }
.matrix { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; }
.matrix th, .matrix td { padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--border); }
.matrix thead th { position: sticky; top: 0; background: var(--surface); padding-bottom: 12px; }
.matrix thead img { width: 28px; height: 28px; border-radius: 7px; background: #fff; object-fit: contain; display: inline-block; }
.matrix-colname { font: 600 12px var(--font-mono); color: var(--muted); }
.matrix-corner { text-align: left !important; font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.matrix tbody th { text-align: left; white-space: nowrap; }
.matrix tbody tr:hover { background: var(--accent-soft); }
.matrix-skill { background: none; border: 0; padding: 4px 0; color: var(--text-2); font: 500 14px var(--font-body); cursor: pointer; text-align: left; }
.matrix-skill:hover { color: var(--accent-strong); }
.matrix-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(34, 211, 238, .5); }

/* ═══════════ Página Projetos ═══════════ */
.projects { display: grid; gap: 24px; }
.project-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); transition: border-color .25s ease; }
.project-card:hover { border-color: var(--accent-line); }
.project-cover { position: relative; display: block; min-height: 300px; background: var(--surface-2); }
.project-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.project-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(11, 15, 21, .85) 100%); }
.project-cover small { position: absolute; left: 12px; bottom: 12px; z-index: 1; font: 500 11px var(--font-mono); color: #fff; background: rgba(7, 9, 13, .7); padding: 4px 8px; border-radius: 6px; }
.project-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.05; }
.project-title a { color: var(--text); }
.project-title a:hover { color: var(--accent-strong); }
.project-summary { color: var(--text-2); max-width: 52ch; }
.project-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.project-numbers div { background: var(--bg-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.project-numbers b { font: 700 clamp(20px, 2.3vw, 26px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.project-numbers span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.project-sources { font: 500 12px/1.6 var(--font-mono); color: var(--muted); }
.project-sources b { color: var(--text-2); font-weight: 600; }
.projects-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.projects-ghosts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.project-ghost { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 190px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .012) 14px 28px); }
.project-ghost .tag { align-self: flex-start; }
.project-ghost h3 { font-size: 18px; color: var(--text-2); }
.project-ghost p { color: var(--muted); font-size: 14.5px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.how-grid > div { padding: 22px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--border); background: var(--bg-2); }
.how-grid > div:last-child { border-right: 0; }
.how-n { font: 700 12px var(--font-mono); color: var(--accent); letter-spacing: .1em; }
.how-grid h3 { font-size: 17px; }
.how-grid p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 860px) {
  .project-card { grid-template-columns: 1fr; }
  .project-cover { min-height: 220px; }
  .project-cover::after { background: linear-gradient(180deg, transparent 60%, rgba(11, 15, 21, .85) 100%); }
  .how-grid > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .how-grid > div:last-child { border-bottom: 0; }
}
@media (max-width: 460px) { .project-numbers { grid-template-columns: 1fr; } }

/* ═══════════ Aviso de privacidade ═══════════ */
.privacy-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin-inline: auto; max-width: 760px;
  display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px;
  border-radius: 14px; border: 1px solid var(--border-strong);
  background: rgba(15, 20, 27, 0.96); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -20px #000;
  font-size: 14px; color: var(--text-2);
}
.privacy-bar p { flex: 1; }
.privacy-bar .btn { flex: none; }
@media (max-width: 560px) { .privacy-bar { flex-direction: column; align-items: stretch; } }

/* ═══════════ Apresentação guiada ═══════════ */
.menu .menu-tour { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 0; background: var(--accent-soft); color: var(--accent-strong); font: 600 15px var(--font-body);
}
.menu .menu-tour:hover { background: rgba(34, 211, 238, 0.2); }
@media (max-width: 1000px) { .menu .menu-tour { width: 100%; justify-content: center; padding: 14px; font-size: 16px; } }

.tour-invite {
  position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(380px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  border-radius: 16px; border: 1px solid var(--accent-line);
  background: radial-gradient(120% 120% at 100% 0%, rgba(34, 211, 238, 0.14), transparent 60%), rgba(15, 20, 27, 0.97);
  box-shadow: 0 24px 60px -24px #000; animation: drawer-in .35s cubic-bezier(.2,.8,.2,1);
}
.tour-invite .eyebrow { margin: 0; }
.tour-invite-title { font: 600 19px/1.3 var(--font-display); color: var(--text); }
.tour-invite .muted { font-size: 14px; }
.tour-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 560px) { .tour-invite { right: 16px; left: 16px; width: auto; bottom: 16px; } }

.tour-spotlight {
  position: fixed; z-index: 70; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(3, 5, 8, 0.72);
  transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease;
}
.tour-card {
  position: fixed; z-index: 71; width: min(400px, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  border-radius: 16px; border: 1px solid var(--accent-line); background: var(--bg-2);
  box-shadow: 0 30px 70px -20px #000;
  transition: top .35s ease, left .35s ease;
}
.tour-card.is-sheet { left: 12px; right: 12px; bottom: 12px; top: auto !important; width: auto; }
.tour-counter { margin: 0; }
.tour-title { font: 600 21px/1.25 var(--font-display); outline: none; }
.tour-text { color: var(--text-2); font-size: 15px; }
.tour-progress { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.tour-progress span { display: block; height: 100%; background: var(--accent); transition: width .35s ease; }
.tour-actions { display: flex; gap: 8px; margin-top: 4px; }
.tour-actions .tour-exit { margin-right: auto; }
body.is-touring .privacy-bar, body.is-touring .tour-invite { display: none; }

/* ═══════════ Privacidade ═══════════ */
.legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.legal-body h2 { font-size: 22px; font-weight: 600; margin-top: 18px; }
.legal-body p, .legal-body li { color: var(--text-2); }

/* ═══════════ Painel de indicadores ═══════════ */
.dash { padding-block: 48px 64px; display: flex; flex-direction: column; gap: 28px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dash-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-tip { display: flex; flex-direction: column; gap: 8px; }
.dash-tip .mono { overflow-wrap: anywhere; color: var(--accent); }
@media (max-width: 860px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ═══════════ Páginas de erro ═══════════ */
.error-page { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }

/* ═══════════ Em construção ═══════════ */
.soon { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* ═══════════ Reveal ═══════════ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Toque (celular/tablet): áreas de clique de pelo menos ~36px sem mudar o visual. */
@media (pointer: coarse) {
  .brand, .footer-base a { display: inline-block; padding-block: 10px; }
  .chip, .matrix-skill { min-height: 36px; }
}

/* Seletor de idioma: bandeira do Brasil para o português; os demais só com a sigla (sem bandeiras de outros países). */
.menu-lang { margin-left: 6px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 999px; }
.menu .lang-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 30px; padding: 0 10px; border-radius: 999px; font: 600 12.5px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); opacity: .7; }
.menu .lang-opt:hover { color: var(--text); background: var(--surface-2); opacity: 1; }
.menu .lang-opt.is-active { color: var(--text); background: var(--surface-2); opacity: 1; box-shadow: inset 0 0 0 1px var(--accent-line); }
.lang-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.flag-br { display: block; border-radius: 3px; }
@media (max-width: 1000px) {
  .menu-lang { margin: 10px 0 0; display: flex; justify-content: center; }
  .menu .lang-opt { min-width: 64px; height: 40px; padding: 0 14px; }
}
