/* =========================================================
   fabiodascola.com.br · Currículo web
   Tema escuro (padrão) e claro · Layout executivo
   ========================================================= */

/* ---------- Tokens · ESCURO ---------- */
:root, [data-theme="dark"] {
  --bg: #050607;
  --surface: rgba(16, 18, 22, 0.92);
  --surface-2: rgba(23, 26, 31, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f4f6f9;
  --muted: #a4abb6;
  --dim: #6d7580;
  --accent: #3d7bff;
  --accent-2: #a9c8ff;
  --accent-3: #2a5cf0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(61, 123, 255, .10);
  --accent-line: rgba(61, 123, 255, .28);
  --tag-text: #c6dafe;
  --glow: rgba(61, 123, 255, .40);
  --shadow: 0 30px 70px -32px rgba(0, 0, 0, .9);
  --shadow-sm: 0 10px 28px -16px rgba(0, 0, 0, .8);
  --nav-bg: rgba(5, 6, 7, 0.78);
  --aurora-a: rgba(61, 123, 255, 0.16);
  --aurora-b: rgba(30, 64, 175, 0.12);
  --footer-bg: linear-gradient(180deg, #0b0e13 0%, #07090c 100%);
  --circuit: rgba(120, 160, 255, .26);
  --circuit-pulse: #7fb0ff;
  color-scheme: dark;
}

/* ---------- Tokens · CLARO ---------- */
[data-theme="light"] {
  --bg: #f6f7f9;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-2: #ffffff;
  --line: rgba(10, 15, 25, 0.08);
  --line-2: rgba(10, 15, 25, 0.15);
  --text: #0b0d10;
  --muted: #4a5260;
  --dim: #8a919c;
  --accent: #1d4ed8;
  --accent-2: #3b82f6;
  --accent-3: #0b1f5c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(29, 78, 216, .07);
  --accent-line: rgba(29, 78, 216, .2);
  --tag-text: #1e40af;
  --glow: rgba(29, 78, 216, .24);
  --shadow: 0 30px 70px -34px rgba(10, 20, 45, .28);
  --shadow-sm: 0 10px 26px -16px rgba(10, 20, 45, .22);
  --nav-bg: rgba(246, 247, 249, 0.82);
  --aurora-a: rgba(59, 130, 246, 0.09);
  --aurora-b: rgba(29, 78, 216, 0.06);
  --footer-bg: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
  --circuit: rgba(29, 78, 216, .2);
  --circuit-pulse: #2563eb;
  color-scheme: light;
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --gutter: clamp(18px, 4.5vw, 40px);
  --label-w: 240px;
  --col-gap: clamp(32px, 5vw, 64px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-width: 300px; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; color: var(--text); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.bi { fill: currentColor; stroke: none; }

.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.skip-link:focus { position: fixed; left: 10px; }

/* ---------- Fundo: trilhas de circuito nas laterais (nunca atrás do texto) ---------- */
.tech-bg { --px: 0px; --py: 0px; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.circuit {
  position: absolute; top: 0; bottom: 0; width: max(0px, calc((100vw - var(--max)) / 2 + 6px));
  overflow: hidden; color: var(--circuit);
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.circuit-l { left: 0; }
.circuit-r { right: 0; transform: scaleX(-1); }
.circuit-svg { display: block; width: 420px; height: 100%; transform: translate3d(var(--px), var(--py), 0); transition: transform .6s var(--ease); }
.circuit-r .circuit-svg { transform: translate3d(calc(var(--px) * -1), var(--py), 0); }
.c-lines path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.c-pads rect { fill: currentColor; }
.c-nodes circle { fill: var(--bg); stroke: currentColor; stroke-width: 1.4; }
.c-pulses path {
  fill: none; stroke: var(--circuit-pulse); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 18 900; stroke-dashoffset: 918; filter: drop-shadow(0 0 3px var(--circuit-pulse));
  animation: pulse-run var(--d, 6s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes pulse-run { to { stroke-dashoffset: 0; } }
@media (max-width: 1299px) { .circuit { display: none; } }

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; top: 38%; left: 38%; background: var(--aurora-a); opacity: .55; animation-duration: 34s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-5vw, 4vh, 0) scale(1.08); } 100% { transform: translate3d(4vw, -3vh, 0) scale(.96); } }
.aurora i:nth-child(1) { width: 55vw; height: 55vw; top: -25vw; right: -12vw; background: var(--aurora-a); }
.aurora i:nth-child(2) { width: 45vw; height: 45vw; bottom: -25vw; left: -15vw; background: var(--aurora-b); animation-duration: 30s; animation-delay: -8s; }
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* ---------- Cursor personalizado (somente mouse) ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor :is(p, li, h1, h2, h3, small, time, .kpi-label, .lang-row, .lvl, .eyebrow) { cursor: text !important; }
.cursor.text .cursor-dot, .cursor.text .cursor-ring { opacity: 0 !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.cursor.on .cursor-dot, .cursor.on .cursor-ring { opacity: 1; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--accent);
  background: transparent; transition: opacity .25s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s;
}
[data-theme="dark"] .cursor-ring { border-color: var(--accent-2); }
.cursor.hover .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--accent-soft); border-color: var(--accent-line); }
.cursor.hover .cursor-dot { transform: scale(.6); }
.cursor.down .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-ripple { position: fixed; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid var(--accent); pointer-events: none; z-index: 9998; animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(7); opacity: 0; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -12px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost svg { transition: transform .25s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .25s, color .25s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg { position: absolute; transition: transform .45s var(--ease), opacity .35s; }
[data-theme="dark"] .theme-toggle .sun { transform: translateY(24px) rotate(90deg); opacity: 0; }
[data-theme="light"] .theme-toggle .moon { transform: translateY(-24px) rotate(-90deg); opacity: 0; }

/* ---------- Seletor de idioma ---------- */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); }
.lang-switch button {
  min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; cursor: pointer; background: transparent;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lang-switch-menu { align-self: flex-start; }
.lang-switch-menu button { min-width: 52px; height: 38px; font-size: 14px; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.scrolled { background: var(--nav-bg); border-bottom-color: var(--line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px;
  font-weight: 800; font-size: 14px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #3d7bff, #0b1f5c);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 15px; white-space: nowrap; }
.brand-text small { font-size: 11.5px; color: var(--dim); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { position: relative; padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.active { color: var(--accent-2); }
.nav-links .nav-ext {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; margin-left: 8px;
  font-weight: 700; color: var(--accent); border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft), rgba(61, 123, 255, .16));
  box-shadow: 0 6px 18px -12px var(--glow);
  transition: color .25s, background .3s, border-color .25s, box-shadow .3s, transform .25s var(--ease);
}
[data-theme="dark"] .nav-links .nav-ext { color: var(--accent-2); border-color: rgba(110, 160, 255, .45); background: linear-gradient(135deg, rgba(61, 123, 255, .16), rgba(61, 123, 255, .28)); }
.nav-links .nav-ext::after { /* brilho que atravessa o botão */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; height: auto; border-radius: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
  animation: proj-shine 5s ease-in-out infinite;
}
@keyframes proj-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.nav-links .nav-ext .ext { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.nav-links .nav-ext:hover, [data-theme="dark"] .nav-links .nav-ext:hover {
  color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 24px -10px var(--glow); transform: translateY(-1px);
}
.nav-links .nav-ext:hover .ext { transform: translate(2px, -2px); }
.mobile-menu nav .menu-ext { align-items: center; color: var(--accent); }
[data-theme="dark"] .mobile-menu nav .menu-ext { color: var(--accent-2); }
.mobile-menu nav .menu-ext .ext { width: 22px; height: 22px; margin-left: auto; color: var(--accent); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--accent); background: var(--accent-soft); }
.brand:hover .brand-mark { box-shadow: 0 6px 18px -6px var(--glow); }
.brand-mark { transition: box-shadow .3s; }
.mobile-menu nav a { transition: color .2s, padding-left .3s var(--ease); }
.mobile-menu nav a:hover { color: var(--accent); padding-left: 6px; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto;
  padding: calc(92px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--nav-bg); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: clamp(24px, 7vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.mobile-menu nav a span { flex: none; min-width: 28px; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
body.menu-open { overflow: hidden; }
.mobile-menu { background: color-mix(in srgb, var(--bg) 96%, transparent); }

/* ---------- Estrutura ---------- */
main { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Identificação ---------- */
.profile {
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); gap: var(--col-gap); align-items: center;
  padding-top: clamp(120px, 15vw, 160px); padding-bottom: 48px;
}
.profile-photo {
  position: relative; width: 100%; max-width: var(--label-w); aspect-ratio: 344 / 413;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--surface-2);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.status { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h1 { font-size: clamp(42px, 6.6vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.title { margin-top: 12px; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--accent); }
.title .sep { color: var(--dim); font-weight: 400; margin: 0 4px; }
.pitch { margin-top: 18px; max-width: 62ch; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.facts svg { width: 17px; height: 17px; color: var(--accent); }
.profile-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Indicadores ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden;
}
.kpi {
  position: relative; min-width: 0; padding: clamp(22px, 2.6vw, 30px) clamp(14px, 2vw, 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; text-align: center;
}
.kpi + .kpi::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line-2); }
.kpi strong {
  display: inline-flex; align-items: flex-start; font-size: clamp(32px, 3.4vw, 42px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text);
}
.kpi .plus { font-style: normal; font-weight: 700; font-size: .62em; margin: .06em 0 0 .06em; color: var(--accent); }
.kpi strong + .kpi-label::before { content: ""; display: block; width: 22px; height: 2px; margin: 0 auto 10px; border-radius: 2px; background: var(--accent); }
.kpi-label { max-width: 24ch; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--muted); text-wrap: balance; }

/* ---------- Seções do currículo ---------- */
.cv-section {
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); gap: var(--col-gap);
  padding-block: clamp(56px, 8vw, 88px); border-bottom: 1px solid var(--line);
}
.cv-section:last-child { border-bottom: 0; }
.cv-label { align-self: start; position: sticky; top: 100px; }
.cv-label .num { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.cv-label h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; }
.cv-label h2::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 16px; border-radius: 3px; background: var(--accent); }
.cv-content { min-width: 0; }
.cv-content > p + p { margin-top: 16px; }
.cv-content > p { color: var(--muted); }
.lead-text { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; font-weight: 600; letter-spacing: -0.015em; color: var(--text) !important; margin-bottom: 22px; text-wrap: pretty; }

/* Texto corrido: justificado onde a linha é longa; à esquerda no celular */
.cv-content > p:not(.lead-text), .role > p, .bullets li, .edu-card p:not(.edu-meta) {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
  hyphenate-limit-chars: 9 4 4; text-wrap: pretty;
}

/* ---------- Experiência ---------- */
.timeline { display: grid; gap: 22px; }
.role {
  position: relative; padding: 28px 30px 28px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.role::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.role-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; margin-bottom: 16px; }
.role h3 { font-size: 20px; font-weight: 700; }
.company { margin-top: 4px; font-size: 15.5px; font-weight: 600; color: var(--accent); }
.company-meta { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--dim); }
.role-period { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.role-period small { font-size: 13px; font-weight: 500; color: var(--dim); }
.badge-current { margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #16a34a; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); }
[data-theme="dark"] .badge-current { color: #4ade80; }
.role > p { color: var(--muted); }
.bullets { display: grid; gap: 8px; margin: 18px 0 20px; }
.bullets li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.role-id { min-width: 0; }
.role-logo {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; margin-bottom: 16px;
  padding: 5px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 14px -10px rgba(10, 20, 45, .35);
}
.role-logo img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.role-logo[data-brand="outlier"] { padding: 0; overflow: hidden; background: #0c0cb4; border-color: transparent; }
[data-theme="dark"] .role-logo { border-color: transparent; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .8); }
.tags li { padding: 4px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--tag-text); background: var(--accent-soft); border: 1px solid var(--accent-line); }

/* ---------- Competências ---------- */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.skill { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.skill-focus { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface); }
.skill-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 11px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.skill-icon svg { width: 21px; height: 21px; }
.skill h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.skill h3 em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; color: var(--accent-ink); background: var(--accent); }
.skill ul { display: grid; gap: 7px; }
.skill li { position: relative; padding-left: 18px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.skill li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--accent); }

/* ---------- Formação ---------- */
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.edu-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.eyebrow { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.edu-card h3 { font-size: 20px; font-weight: 700; }
.edu-meta { margin: 6px 0 14px; font-size: 14px; font-weight: 600; color: var(--dim); }
.edu-card p:not(.edu-meta) { color: var(--muted); font-size: 15.5px; }
.langs { display: grid; gap: 18px; }
.lang-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.lvl { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 1.3s var(--ease) .2s; }
.in-view .bar i, .no-js .bar i { width: calc(var(--lvl) / 6 * 100%); }

/* ---------- Contato ---------- */
.contact-intro { color: var(--muted); margin-bottom: 20px; max-width: 60ch; text-wrap: pretty; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; min-width: 0;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.contact-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3d7bff, #0b1f5c); }
.contact-ico.wa { background: linear-gradient(145deg, #2fe06f, #1ebe5a); }
.contact-ico svg { width: 22px; height: 22px; }
.contact-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.contact-txt small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.contact-txt strong { font-size: clamp(14.5px, 4.1vw, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-card .arrow { margin-left: auto; width: 18px; height: 18px; color: var(--dim); transition: transform .25s var(--ease), color .25s; }
.contact-card:hover .arrow { transform: translate(2px, -2px); color: var(--accent); }

/* ---------- Rodapé ---------- */
.footer {
  position: relative; overflow-x: clip; width: 100%; margin-top: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: clamp(40px, 6vw, 64px) var(--gutter) calc(clamp(40px, 6vw, 60px) + env(safe-area-inset-bottom));
  background: var(--footer-bg); border-top: 1px solid var(--line);
}
.footer > * { max-width: var(--max); }
.footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent-2) 50%, var(--accent) 70%, transparent 100%); opacity: .9; }
.footer-copy { margin-top: 26px; font-size: 14px; font-weight: 700; }
.footer-quote { max-width: 34ch; font-size: clamp(16px, 2vw, 19px); font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; text-wrap: balance; background: linear-gradient(100deg, var(--accent-2), var(--accent) 60%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-loc { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* Redes sociais: sempre em uma única linha; os ícones se ajustam à largura */
.socials { --ico: 44px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, var(--ico)); justify-content: center; gap: clamp(5px, 1.8vw, 12px); width: 100%; max-width: 100%; }
.socials li { min-width: 0; }
.socials a {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: transform .25s var(--ease), color .2s, background .2s, border-color .2s, box-shadow .25s;
}
.socials a svg { width: 42%; height: 42%; min-width: 13px; min-height: 13px; max-width: 19px; max-height: 19px; }
.socials a:hover { transform: translateY(-3px); color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 10px 22px -10px var(--brand); }
.socials a[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 9px; border-radius: 7px; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--bg); background: var(--text);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.socials a:hover::after { opacity: 1; transform: translate(-50%, 0); }
.socials li:first-child a[data-tip]::after { left: 0; transform: translate(0, 4px); }
.socials li:last-child a[data-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
.socials li:first-child a:hover::after, .socials li:last-child a:hover::after { transform: none; }

/* ---------- WhatsApp flutuante ---------- */
.wa-fab {
  position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 42;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff;
  background: linear-gradient(145deg, #2fe06f, #1ebe5a); box-shadow: 0 14px 32px -10px rgba(37, 211, 102, .6), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .3s var(--ease), box-shadow .3s; animation: waIn .6s var(--ease) 1s both;
}
.wa-fab svg { width: 29px; height: 29px; position: relative; z-index: 1; }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); }
.wa-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.6s ease-out infinite; }
.wa-label { position: absolute; right: calc(100% + 12px); top: 50%; white-space: nowrap; padding: 8px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); opacity: 0; transform: translate(8px, -50%); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.wa-fab:hover .wa-label, .wa-fab.hint .wa-label { opacity: 1; transform: translate(0, -50%); }
@keyframes waRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes waIn { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.menu-open .wa-fab { opacity: 0; pointer-events: none; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view, .no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (min-width: 1041px) and (max-width: 1399px) {
  .nav .brand-text { display: none; }
}
@media (min-width: 1041px) and (max-width: 1219px) {
  .nav-links a { padding-inline: 10px; }
  .nav-links a::after { left: 10px; right: 10px; }
  .nav-cv span { display: none; }
  .nav-cv { padding: 0; width: 40px; height: 40px; }
}
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 900px) {
  :root { --label-w: 200px; }
  .cv-section { grid-template-columns: 1fr; gap: 26px; }
  .cv-label { position: static; display: flex; align-items: baseline; gap: 14px; }
  .cv-label .num { margin: 0; }
  .cv-label h2::after { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3)::before { display: none; }
  .kpi:nth-child(n+3)::after { content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; background: var(--line-2); }
}
@media (max-width: 720px) {
  .profile { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 26px; padding-top: 108px; padding-bottom: 36px; }
  .profile-photo { max-width: 190px; border-radius: 20px; }
  .pitch { margin-inline: auto; }
  .facts, .profile-cta { justify-content: center; }
  .skills, .edu, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .nav-cv span { display: none; }
  .nav .lang-switch { display: none; }
  .contact-card { gap: 14px; }
  .contact-card .arrow { display: none; }
  .nav-cv { padding: 0; width: 40px; height: 40px; }
  .brand-text small { display: none; }
  .cv-content > p:not(.lead-text), .role > p, .bullets li, .edu-card p:not(.edu-meta) { text-align: left; }
  .role { padding: 22px 20px 22px 22px; }
  .role::before { top: 22px; bottom: 22px; }
  .role-head { flex-direction: column; }
  .role-period { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; text-align: left; white-space: normal; }
  .role-period small::before { content: "· "; }
  .role-logo { height: 36px; margin-bottom: 12px; }
  .badge-current { margin: 0; }
  .profile-cta { flex-direction: column; width: 100%; }
  .profile-cta .btn { width: 100%; }
  .kpi { padding: 20px 12px; gap: 8px; }
  .kpi-label { font-size: 12.5px; }
  .skill, .edu-card { padding: 22px 20px; }
  .contact-card { padding: 18px; }
  .socials { --ico: 44px; grid-auto-columns: minmax(0, 1fr); max-width: 420px; }
  .socials a { border-radius: 10px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .wa-fab { width: 54px; height: 54px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .wa-fab svg { width: 27px; height: 27px; }
}
@media (max-width: 380px) {
  .facts { flex-direction: column; align-items: center; gap: 8px; }
  .brand-text strong { font-size: 14px; }
}
/* Rodapé em linha reta no computador */
@media (min-width: 1041px) {
  .footer {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px;
    text-align: left; padding-block: 34px;
    padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    padding-right: max(96px, calc((100% - var(--max)) / 2 + var(--gutter)));
  }
  .footer > * { max-width: none; }
  .footer { grid-template-rows: auto auto; row-gap: 4px; }
  .footer-copy { grid-column: 1; grid-row: 1; margin: 0; align-self: end; }
  .footer-loc { grid-column: 1; grid-row: 2; align-self: start; }
  .footer-quote { grid-column: 2; grid-row: 1 / span 2; max-width: none; text-align: center; font-size: 16px; text-wrap: balance; }
  .footer .socials { grid-column: 3; grid-row: 1 / span 2; --ico: 38px; grid-auto-columns: var(--ico); gap: 8px; justify-content: end; width: auto; }
}

@media (hover: none) {
  .socials a[data-tip]::after { display: none; }
  .wa-fab:hover .wa-label { opacity: 0; }
  .wa-fab.hint .wa-label { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .c-pulses { display: none; }
  .nav-links .nav-ext::after { display: none; }
  .cursor { display: none !important; }
}

/* =========================================================
   Impressão: o currículo sai limpo em papel (Ctrl+P)
   ========================================================= */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  :root, [data-theme] { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #0b0d10; --muted: #333a45; --dim: #6b7280; --line: #e3e6ea; --line-2: #d4d8de; --accent: #1d4ed8; --accent-soft: #eef3ff; --accent-line: #c9d7fb; --tag-text: #1e3a8a; color-scheme: light; }
  body { font-size: 10.5pt; line-height: 1.5; background: #fff; }
  .tech-bg, .aurora, .cursor, .progress, .nav, .mobile-menu, .wa-fab, .profile-cta, .status, .socials, .skip-link, .kpis { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  main, .footer { max-width: none; padding: 0; }
  .profile { padding: 0 0 6mm; grid-template-columns: 34mm 1fr; gap: 8mm; }
  .profile-photo { max-width: 34mm; box-shadow: none; }
  h1 { font-size: 26pt; }
  .cv-section { grid-template-columns: 1fr; gap: 3mm; padding-block: 5mm; break-inside: auto; }
  .cv-label { position: static; display: flex; gap: 3mm; }
  .cv-label h2 { font-size: 13pt; }
  .cv-label h2::after { display: none; }
  .role, .skill, .edu-card, .contact-card { box-shadow: none; break-inside: avoid; backdrop-filter: none; }
  .bar i { width: calc(var(--lvl) / 6 * 100%) !important; }
  .contact-card .arrow { display: none; }
  .footer { padding: 4mm 0 0; background: none; border: 0; margin: 0; }
  .footer::before { display: none; }
  a[href^="mailto"] strong::after, a[href^="https://wa.me"] strong::after { content: ""; }
}
