/* Currículo de Aricelio Moura. CSS escrito à mão, sem framework e sem estilos inline (compatível com CSP restrita). */

:root {
  --papel: #f5f1e8;
  --papel-2: #ece6d8;
  --tinta: #17171a;
  --suave: #5c5a55;
  --linha: #d9d2c3;
  --acento: #b83a1b;
  --acento-sobre: #ffffff;
  --verde: #1f8f4e;
  --serifa: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --corpo: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --largura: 1160px;
  --suave-ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --papel: #101012; --papel-2: #17171b; --tinta: #edeae3; --suave: #a3a099; --linha: #2b2b31;
    --acento: #ff7a59; --acento-sobre: #1a0b06; --verde: #3ecf7a; color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --papel: #101012; --papel-2: #17171b; --tinta: #edeae3; --suave: #a3a099; --linha: #2b2b31;
  --acento: #ff7a59; --acento-sobre: #1a0b06; --verde: #3ecf7a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--acento) var(--papel-2); }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.7 var(--corpo); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.largura { width: min(100% - 40px, var(--largura)); margin-inline: auto; }
::selection { background: var(--acento); color: var(--acento-sobre); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--papel-2); }
::-webkit-scrollbar-thumb { background: var(--acento); border-radius: 99px; border: 3px solid var(--papel-2); }

.pular { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--acento); color: var(--acento-sobre); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.pular:focus { left: 12px; }
.progresso { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--acento); z-index: 150; }
.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.so-js { display: none; }
.js .so-js { display: inline-grid; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.topo.rolou { background: color-mix(in srgb, var(--papel) 90%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--linha); }
.topo-faixa { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.logo-svg { width: 44px; height: 30px; color: var(--acento); fill: none; }
.pagina-erro { min-height: 100vh; display: grid; place-items: center; }
.menu { display: none; gap: 26px; font-size: .95rem; }
.menu a { text-decoration: none; color: var(--suave); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover, .menu a.ativo { color: var(--tinta); border-color: var(--acento); }
.topo-acoes { display: flex; gap: 6px; }
.icone-botao { width: 42px; height: 42px; place-items: center; display: inline-grid; border-radius: 50%; border: 1px solid var(--linha); transition: background .2s, transform .2s; }
.icone-botao:hover { background: var(--papel-2); transform: translateY(-2px); }
@media (min-width: 960px) { .menu { display: flex; } }

/* ---------- abertura ---------- */
.abertura { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.abertura-grade { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1000px) { .abertura-grade { grid-template-columns: 1.35fr 1fr; gap: 64px; } }
.situacao { display: inline-flex; align-items: center; gap: 10px; font: 500 .85rem var(--mono); color: var(--suave); border: 1px solid var(--linha); padding: 6px 14px; border-radius: 99px; }
.ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); position: relative; }
.ponto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--verde); animation: pulso 2.2s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
h1 { margin: 28px 0 28px; font-family: var(--serifa); font-weight: 400; line-height: .92; letter-spacing: -.02em; }
h1 .nome { display: block; font-size: clamp(3.4rem, 11vw, 8.2rem); animation: entra .9s var(--suave-ease) both; }
h1 .cargo { display: block; margin-top: .12em; font-size: clamp(1.8rem, 5.4vw, 3.9rem); font-style: italic; color: var(--acento); animation: entra .9s var(--suave-ease) .12s both; }
@keyframes entra { from { transform: translateY(.35em); } to { transform: none; } }
.resumo { max-width: 52ch; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; color: var(--suave); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1.5px solid var(--tinta); text-decoration: none; font-weight: 700; font-size: .98rem; transition: transform .25s var(--suave-ease), background .25s, color .25s, border-color .25s; }
.botao:hover { transform: translateY(-3px); background: var(--tinta); color: var(--papel); }
.botao-principal { background: var(--acento); border-color: var(--acento); color: var(--acento-sobre); }
.botao-principal:hover { background: var(--acento); border-color: var(--acento); color: var(--acento-sobre); filter: brightness(1.08); }
.botao-grande { min-height: 62px; padding-inline: 28px; font-size: 1.05rem; }

/* ficha técnica */
.ficha { border: 1.5px solid var(--tinta); border-radius: 6px; padding: 22px 24px 8px; background: var(--papel-2); position: relative; animation: entra 1s var(--suave-ease) .25s both; }
.ficha::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--linha); border-radius: 3px; pointer-events: none; }
.ficha-titulo { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--acento); margin-bottom: 8px; }
.ficha dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--linha); font-size: .95rem; }
.ficha dt { font: 500 .78rem var(--mono); color: var(--suave); padding-top: 2px; }
.ficha dd { font-weight: 500; }

/* ---------- seções ---------- */
.secao { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--linha); }
.bloco { display: grid; gap: 28px; }
@media (min-width: 900px) { .bloco { grid-template-columns: 220px 1fr; gap: 56px; } .rotulo { position: sticky; top: 96px; align-self: start; } }
.rotulo { font: 500 .85rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--suave); }
.rotulo .num { color: var(--acento); margin-right: 8px; }
.conteudo { max-width: 760px; display: grid; gap: 20px; }
.conteudo p { color: var(--suave); }
.destaque { font-family: var(--serifa); font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; color: var(--tinta) !important; letter-spacing: -.01em; }

.grupos { display: grid; gap: 14px; }
@media (min-width: 640px) { .grupos { grid-template-columns: 1fr 1fr; } }
.grupo { border: 1px solid var(--linha); border-radius: 12px; padding: 20px; transition: border-color .25s, transform .25s var(--suave-ease); }
.grupo:hover { border-color: var(--acento); transform: translateY(-3px); }
.grupo h3 { font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--suave); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 .85rem var(--mono); padding: 5px 11px; border-radius: 6px; background: var(--papel-2); border: 1px solid var(--linha); }

/* IA e fluxo */
.secao-ia { background: var(--papel-2); }
.fluxo { display: grid; gap: 0; margin-top: 18px; counter-reset: p; position: relative; }
.fluxo li { position: relative; padding: 0 0 26px 58px; }
.fluxo li:last-child { padding-bottom: 0; }
.fluxo li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--linha); }
.fluxo li:last-child::before { display: none; }
.passo { position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--papel); border: 2px solid var(--acento); font: 500 .95rem var(--mono); color: var(--acento); }
.fluxo h3 { font-family: var(--serifa); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.fluxo p { font-size: .96rem; }
@media (min-width: 900px) {
  .fluxo { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .fluxo li { padding: 56px 0 0; }
  .fluxo li::before { left: 40px; right: -14px; top: 19px; bottom: auto; width: auto; height: 2px; transform-origin: left; transform: scaleX(0); transition: transform .8s var(--suave-ease) .3s; }
  .fluxo li.vis::before { transform: scaleX(1); }
  .fluxo h3 { font-size: 1.35rem; }
}

/* trajetória */
.linha-tempo { display: grid; gap: 0; }
.linha-tempo li { position: relative; padding: 0 0 36px 30px; border-left: 2px solid var(--linha); }
.linha-tempo li:last-child { padding-bottom: 6px; border-color: transparent; }
.linha-tempo li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--papel); border: 2px solid var(--acento); }
.linha-tempo li:last-child::before { background: var(--acento); }
.etapa { font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--acento) !important; }
.linha-tempo h3 { font-family: var(--serifa); font-weight: 400; font-size: 1.9rem; line-height: 1.15; margin: 4px 0 8px; }
.subtitulo { font-family: var(--serifa); font-weight: 400; font-size: 1.9rem; margin-top: 18px; }
.lista-simples { display: grid; gap: 12px; color: var(--suave); }
.lista-simples li { padding-left: 22px; position: relative; }
.lista-simples li::before { content: "—"; position: absolute; left: 0; color: var(--acento); }
.lista-simples strong { color: var(--tinta); }

/* formação */
.item { padding: 20px 0; border-top: 1px solid var(--linha); }
.item:first-child { border-top: 0; padding-top: 0; }
.item h3 { font-family: var(--serifa); font-weight: 400; font-size: 1.9rem; line-height: 1.15; }
.meta { font: .92rem var(--mono); color: var(--suave) !important; margin-top: 6px; }

/* links */
.links-grandes { display: grid; gap: 12px; }
@media (min-width: 640px) { .links-grandes { grid-template-columns: 1fr 1fr; } }
.links-grandes a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--linha); border-radius: 12px; text-decoration: none; height: 100%; transition: border-color .25s, transform .25s var(--suave-ease), background .25s; }
.links-grandes a:hover { border-color: var(--acento); background: var(--papel-2); transform: translateY(-3px); }
.links-grandes .ico { width: 28px; height: 28px; color: var(--acento); }
.links-grandes strong { display: block; line-height: 1.3; }
.links-grandes small { display: block; color: var(--suave); font-size: .86rem; line-height: 1.4; }

/* contato */
.contato { text-align: center; background: var(--papel-2); }
.titulo-contato { font-family: var(--serifa); font-weight: 400; font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.02em; max-width: 16ch; margin-inline: auto; }
.contato-texto { margin: 22px auto 0; color: var(--suave); max-width: 46ch; font-size: 1.12rem; }
.contato .acoes { justify-content: center; margin-top: 34px; }

.rodape { border-top: 1px solid var(--linha); padding: 26px 0; font-size: .88rem; color: var(--suave); }
.rodape-faixa { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* entrada ao rolar: o conteúdo nunca depende disso para existir */
.js .rev { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--suave-ease), transform .8s var(--suave-ease); transition-delay: var(--atraso, 0s); }
.js .rev.vis { opacity: 1; transform: none; }

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

/* ---------- impressão / PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  :root, :root[data-tema="escuro"] { --papel: #fff; --papel-2: #fff; --tinta: #111; --suave: #333; --linha: #bbb; --acento: #a8330f; color-scheme: light; }
  body { font-size: 10.5pt; line-height: 1.45; background: #fff; }
  .topo, .progresso, .pular, .acoes, .contato .acoes, .rodape, .icone-botao, .situacao { display: none !important; }
  .js .rev { opacity: 1 !important; transform: none !important; }
  .largura { width: 100%; }
  .abertura { padding: 0 0 10pt; }
  .abertura-grade, .bloco { display: block; }
  h1 .nome { font-size: 30pt; animation: none; } h1 .cargo { font-size: 15pt; animation: none; }
  .ficha { animation: none; margin-top: 10pt; break-inside: avoid; }
  .secao { padding-block: 10pt; break-inside: avoid-page; }
  .rotulo { position: static; margin-bottom: 4pt; }
  .destaque, .linha-tempo h3, .subtitulo, .item h3 { font-size: 14pt; }
  .fluxo { display: grid; grid-template-columns: repeat(5, 1fr); }
  .fluxo li { padding: 30pt 4pt 0 0; } .fluxo li::before { display: none; }
  .contato { text-align: left; } .titulo-contato { font-size: 18pt; max-width: none; margin: 0; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: none; }
}
