/* ============================================================
   PERFIL ACADÊMICO — PSICOLOGIA
   Papel claro, tipografia serifada e azul-marinho com dourado.
   ============================================================ */
:root {
  --papel: #F7F4EE;
  --papel-2: #EFEBE2;
  --tinta: #1E2320;
  --suave: #5E655F;
  --linha: rgba(30, 35, 32, .14);
  /* cor principal — bordô testado: #6E2639 (claro #F1E3E5) */
  --cor: #1F3A5F;
  --cor-clara: #DFE6F0;
  --ouro: #A9874F;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --margem: clamp(18px, 5vw, 72px);
  --largura: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: var(--cor); color: var(--papel); }
:focus-visible { outline: 2px solid var(--cor); outline-offset: 3px; }

main, .contato-corpo, .creditos { max-width: calc(var(--largura) + 2 * var(--margem)); margin-inline: auto; padding-inline: var(--margem); }

/* rótulos em versalete */
.rotulo, .secao-num, .curso-legenda, .item-data, .interesses h3, .etiqueta-exemplo, .menu a, .assinatura-sub {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--margem);
  background: color-mix(in srgb, var(--papel) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.assinatura { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.assinatura-nome { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.assinatura-sub { color: var(--cor); }
.menu { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.menu a { text-decoration: none; color: var(--suave); transition: color .2s; }
.menu a:hover { color: var(--cor); }
@media (max-width: 860px) { .menu { display: none; } }

/* ---------- Abertura ---------- */
.abertura { padding: clamp(56px, 10vw, 128px) 0 clamp(48px, 7vw, 88px); }
.rotulo { margin: 0 0 18px; color: var(--cor); }
.titulo {
  margin: 0; font-weight: 300; font-size: clamp(56px, 11vw, 148px); line-height: .95; letter-spacing: -0.035em;
}
.titulo em { color: var(--cor); font-weight: 300; }
.linha-fina { max-width: 34ch; margin: 28px 0 0; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.4; color: var(--suave); }
.linha-fina strong { color: var(--tinta); font-weight: 500; }

/* ---------- Barra do curso ---------- */
.curso { margin: clamp(48px, 7vw, 80px) 0 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--linha); border-radius: 14px; background: #fff; }
.curso-cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin-bottom: 22px; }
.curso-legenda { color: var(--suave); }
.curso-agora { font-size: clamp(19px, 2vw, 24px); }
.curso-agora strong { color: var(--cor); font-weight: 600; }

.curso-barra { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; padding: 58px 0 30px; }
.periodo { position: relative; height: 14px; border-radius: 3px; background: var(--papel-2); overflow: hidden; }
.periodo:first-child { border-radius: 7px 3px 3px 7px; }
.periodo:last-child { border-radius: 3px 7px 7px 3px; }
.periodo i { position: absolute; inset: 0; background: var(--cor); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.3,.8,.2,1); transition-delay: calc(var(--k) * 90ms); }
.periodo.atual i { background: linear-gradient(90deg, var(--cor), #3D5F8C); }
.periodo-num {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; text-align: center;
  font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--suave);
}
.periodo-ano { position: absolute; bottom: 100%; left: 0; margin-bottom: 8px; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: var(--suave); opacity: .8; }
.periodo-wrap { position: relative; }
.periodo-wrap.feito .periodo-num { color: var(--cor); }
.periodo-wrap.atual .periodo-num { color: var(--tinta); font-weight: 600; }

/* marcador "você está aqui" */
.marcador {
  position: absolute; top: 6px; bottom: 30px; width: 2px; margin-left: -1px; background: var(--tinta);
  left: 0; transition: left 1.2s cubic-bezier(.3,.8,.2,1) .2s;
}
.marcador::before { content: ""; position: absolute; left: 50%; bottom: -3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--tinta); box-shadow: 0 0 0 4px #fff; }
.marcador span {
  position: absolute; top: -4px; left: 8px; white-space: nowrap;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; background: var(--tinta); color: #fff;
}
.marcador.virar span { left: auto; right: 8px; }

/* acontecimentos (estágio, congressos, trabalhos) marcados na barra */
.evento {
  position: absolute; top: 58px; width: 14px; height: 14px; margin-left: -7px; padding: 0; border: 0; cursor: pointer;
  background: none; z-index: 2;
}
.evento::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; border: 2px solid var(--ouro); transition: transform .2s; }
.evento:hover::after, .evento:focus-visible::after { transform: scale(1.5); }
.evento-dica {
  position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 0; width: max-content; max-width: 240px;
  padding: 8px 12px; border-radius: 8px; background: var(--tinta); color: #fff; text-align: left;
  font-family: var(--sans); font-size: 12px; line-height: 1.35; pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.evento-dica b { display: block; color: #E8D3A9; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.evento:hover .evento-dica, .evento:focus-visible .evento-dica { opacity: 1; transform: none; }

.curso-rodape { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-family: var(--sans); font-size: 13px; color: var(--suave); }
.curso-rodape b { color: var(--tinta); font-weight: 600; }
.curso-legenda-eventos { display: inline-flex; align-items: center; gap: 6px; }
.curso-legenda-eventos::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ouro); background: #fff; }

@media (max-width: 640px) {
  .periodo-num { font-size: 10px; }
  .periodo-ano { display: none; }
  .periodo-wrap:nth-child(odd) .periodo-ano { display: block; }
}

/* ---------- Seções ---------- */
.secao { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--linha); }
.secao-cabeca { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); }
.secao-num { color: var(--ouro); min-width: 2.5em; }
.secao-cabeca h2 { margin: 0; font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }

/* Sobre */
.sobre { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 820px) { .sobre { grid-template-columns: 1fr 2fr; align-items: start; } }
.sobre-foto { margin: 0; }
.sobre-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; filter: grayscale(.25) contrast(1.02); }
.sobre-texto p { margin: 0 0 18px; max-width: 62ch; }
.destaque { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.35; font-weight: 400; }
.destaque em { color: var(--cor); }
.interesses { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--linha); }
.interesses h3 { margin: 0 0 14px; color: var(--suave); }
.interesses ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.interesses li { padding: 6px 14px; border-radius: 99px; background: var(--cor-clara); color: var(--cor); font-family: var(--sans); font-size: 14px; font-weight: 500; }

/* Listas (formação, congressos) */
.lista { list-style: none; margin: 0; padding: 0; }
.item { display: grid; gap: 4px 32px; padding: 22px 0; border-top: 1px solid var(--linha); }
.item:last-child { border-bottom: 1px solid var(--linha); }
@media (min-width: 720px) { .item { grid-template-columns: 180px 1fr; } }
.item-data { color: var(--suave); padding-top: 6px; }
.item h3 { margin: 0; font-weight: 500; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.25; }
.item-meta { margin: 4px 0 0; font-family: var(--sans); font-size: 14px; color: var(--suave); }
.item-nota { margin: 10px 0 0; font-style: italic; color: var(--suave); max-width: 60ch; }
.em-curso { color: var(--cor); font-weight: 600; }
.selo-tipo { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 99px; border: 1px solid var(--linha); font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--tinta); }

/* Estágio */
.estagio {
  display: grid; gap: 24px; padding: clamp(24px, 3vw, 40px); border-radius: 14px; background: #fff; border: 1px solid var(--linha);
}
@media (min-width: 820px) { .estagio { grid-template-columns: 2fr 1fr; } }
.estagio + .estagio { margin-top: 16px; }
.estagio h3 { margin: 0; font-weight: 500; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.estagio-local { margin: 6px 0 16px; color: var(--cor); font-size: 20px; }
.estagio p { margin: 0; max-width: 60ch; }
.estagio dl { margin: 0; display: grid; gap: 14px; align-content: start; padding-left: 0; }
@media (min-width: 820px) { .estagio dl { padding-left: 24px; border-left: 1px solid var(--linha); } }
.estagio dt { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.estagio dd { margin: 2px 0 0; font-family: var(--sans); font-size: 15px; }

/* Trabalhos */
.trabalhos { display: grid; gap: 16px; }
@media (min-width: 820px) { .trabalhos { grid-template-columns: 1fr 1fr; } }
.trabalho { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px); border-radius: 14px; background: #fff; border: 1px solid var(--linha); }
.trabalho-tipo { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cor); }
.trabalho h3 { margin: 0; font-weight: 500; font-size: clamp(22px, 2.1vw, 26px); line-height: 1.25; }
.trabalho-autores { margin: 0; font-family: var(--sans); font-size: 14px; color: var(--suave); }
.trabalho-resumo { margin: 0; font-size: 17px; color: var(--suave); }
.trabalho-destaques { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.trabalho-destaques li { padding: 3px 10px; border-radius: 99px; background: var(--cor-clara); color: var(--cor); font-family: var(--sans); font-size: 12px; font-weight: 500; }
.trabalho-rodape { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--linha); font-family: var(--sans); font-size: 13px; color: var(--suave); }
.trabalho-rodape a { color: var(--cor); font-weight: 600; text-decoration: none; }
.trabalho-rodape a:hover { text-decoration: underline; }

/* etiqueta "EXEMPLO" nos itens ainda não preenchidos */
.exemplo { position: relative; outline: 1px dashed var(--ouro); outline-offset: 4px; }
.etiqueta-exemplo { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 4px; background: #F3E6C9; color: #7A5A22; font-size: 10px; }
.item.exemplo { outline-offset: -1px; padding-inline: 12px; }

/* ---------- Contato ---------- */
.contato { margin-top: clamp(40px, 6vw, 80px); padding: clamp(64px, 9vw, 112px) 0 28px; background: var(--cor); color: var(--papel); }
.contato .rotulo { color: #C9D5E6; }
.contato-frase { max-width: 22ch; margin: 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.1; font-weight: 300; letter-spacing: -0.02em; }
.contato-frase em { color: #E8D3A9; }
.contato-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.contato-links a {
  display: inline-block; padding: 10px 20px; border-radius: 99px; border: 1px solid rgba(247,244,238,.4);
  font-family: var(--sans); font-size: 15px; text-decoration: none; transition: background .2s, color .2s;
}
.contato-links a:hover { background: var(--papel); color: var(--cor); }
.contato-links .pendente { opacity: .55; border-style: dashed; }
.creditos { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: clamp(48px, 7vw, 88px); padding-top: 18px; border-top: 1px solid rgba(247,244,238,.2); font-family: var(--sans); font-size: 13px; opacity: .75; }

/* ---------- Aparecer ao rolar ---------- */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}
