:root {
  --bg: #0a0b0a;
  --bg-2: #0c0d0c;
  --panel: #111311;
  --line: #1c201b;
  --line-2: #262b24;
  --line-3: #2e342b;
  --text: #e8ede4;
  --text-2: #c9d0c4;
  --muted: #a3ac9f;
  --dim: #8d958a;
  --accent: #c6f432;
  --accent-glow: rgba(198, 244, 50, 0.25);
  --on-accent: #0a0b0a;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(#141614 1px, transparent 1px),
    linear-gradient(90deg, #141614 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: 72px; }
.eyebrow {
  margin: 0; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.h2 {
  margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 800;
  font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.01em;
}
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 6px; font-family: var(--mono); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--line-3);
  background: transparent; color: var(--text); cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 0 32px var(--accent-glow); }
.btn--primary:hover { color: var(--on-accent); box-shadow: 0 0 44px var(--accent-glow); }
.btn--ghost-accent { border-color: var(--accent); color: var(--accent); }
.btn--ghost-accent:hover { color: var(--on-accent); background: var(--accent); }

.tag {
  padding: 5px 10px; border: 1px solid var(--line-3); border-radius: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
}
.icon-btn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-3); border-radius: 6px; color: var(--accent); font-family: var(--mono);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.card {
  background: var(--panel); border: 1px solid #1f231e; border-radius: 12px;
  transition: border-color .2s, transform .2s;
}
.card:hover { transform: translateY(-3px); border-color: #3a4236; }

.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

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

/* Layout */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 10, 0.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.nav__logo { font-weight: 700; font-size: 22px; color: var(--accent); }
.nav__logo:hover { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav__links > a:not(.btn):hover { color: var(--accent); }
.nav__cta { min-height: 44px; padding: 0 18px; font-size: 13px; margin-left: 8px; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid var(--line-3); border-radius: 6px; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--accent); transition: transform .2s; }
  .nav__toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 16px 0 0; justify-content: center; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 88px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__hello { margin: 0; font-size: 16px; }
.hero__name {
  margin: 0; font-size: clamp(56px, 8vw, 104px); line-height: 0.92; font-weight: 900;
  font-stretch: 112%; letter-spacing: -0.02em; text-transform: uppercase;
}
.hero__role { margin: 0; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.hero__lead { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero__avail { margin: 0; font-size: 13px; color: var(--dim); }

.hero__visual { flex: 1 1 520px; min-width: 0; position: relative; min-height: 440px; display: flex; align-items: center; }
.term {
  position: relative; width: 100%; max-width: 560px; background: rgba(17, 19, 17, 0.92);
  border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.term__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #1f231e; font-size: 12px; color: var(--dim); }
.term__dots { display: flex; gap: 8px; }
.term__dots span { width: 11px; height: 11px; border-radius: 50%; background: #3a4236; }
.term__led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.term__body { padding: 22px 22px 26px; font-size: 14px; line-height: 1.75; color: var(--text-2); overflow-x: auto; }
.term__body .l { display: block; white-space: pre-wrap; }
.term__body .term__ls { display: flex; flex-wrap: wrap; gap: 0 20px; color: var(--text); }
.dim { color: var(--dim); }
.term__caret { display: inline-block; width: 9px; height: 17px; background: var(--accent); vertical-align: -3px; }

/* As linhas do terminal aparecem uma a uma */
.l { opacity: 0; animation: line-in .01s forwards; }
.l:nth-child(1) { animation-delay: .2s; }
.l:nth-child(2) { animation-delay: .5s; }
.l:nth-child(3) { animation-delay: .7s; }
.l:nth-child(4) { animation-delay: 1.1s; }
.l:nth-child(5) { animation-delay: 1.35s; }
.l:nth-child(6) { animation-delay: 1.5s; }
.l:nth-child(7) { animation-delay: 1.65s; }
.l:nth-child(8) { animation-delay: 1.8s; }
.l:nth-child(9) { animation-delay: 1.9s; }
.l:nth-child(10) { animation-delay: 2.1s; }
@keyframes line-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .l { opacity: 1; } }

@media (max-width: 700px) {
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero__visual { min-height: 0; }
  .term__body { font-size: 12.5px; padding: 18px; }
}

/* Globe */
.globe { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; pointer-events: none; }
.globe__spin { transform-origin: 200px 200px; animation: globe-spin 40s linear infinite; }
.globe__ping { transform-origin: 232px 262px; animation: globe-ping 2s ease-out infinite; }
@keyframes globe-spin { to { transform: rotateY(360deg); } }
@keyframes globe-ping { from { transform: scale(1); opacity: 1; } to { transform: scale(4.5); opacity: 0; } }
@media (max-width: 700px) { .globe { right: -140px; opacity: 0.5; } }

/* Sobre */
.sobre { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.sobre__foto { flex: 0 1 340px; min-width: 260px; position: relative; }
.sobre__foto img, .sobre__placeholder { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); filter: grayscale(0.4); }
.sobre__placeholder { background: #131512; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--dim); }
@media (max-width: 700px) { .sobre__foto { flex-basis: 220px; min-width: 0; max-width: 240px; } }
.sobre__barra { position: absolute; left: -10px; top: 24px; bottom: 24px; width: 3px; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.sobre__carimbo {
  position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border: 1px solid var(--accent); color: var(--accent);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; transform: rotate(-4deg); background: rgba(10, 11, 10, 0.8);
}
.sobre__texto { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sobre__texto--solo { max-width: 920px; }
.sobre__titulo { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; }
.sobre__p { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.sobre__fatos { list-style: none; margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid #1f231e; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.sobre__fatos li { display: flex; gap: 14px; align-items: center; }
.sobre__icone { width: 44px; height: 44px; flex: none; border: 1px solid var(--line-3); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 14px; }
.sobre__valor { font-size: 18px; font-weight: 600; }
.sobre__rotulo { font-size: 11px; text-transform: uppercase; color: var(--dim); }

/* Habilidades */
.skills { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.skill { border-radius: 10px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.skill__icon { font-size: 20px; color: var(--accent); }
.skill h3 { margin: 0; font-size: 17px; font-weight: 600; }
.skill p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Projetos */
.proj__top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.proj__top .eyebrow { margin-bottom: 10px; }
.proj__all { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.proj__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.proj__slot { border: 1px dashed #3a4236; border-radius: 12px; display: flex; flex-direction: column; min-height: 260px; }
.proj__slot-head { padding: 12px 16px; border-bottom: 1px dashed #2a2f27; font-size: 12px; color: var(--dim); }
.proj__slot-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; }
.proj__slot-body > span { font-size: 40px; color: #3a4236; }
.proj__slot-body h3 { margin: 0; font-size: 20px; color: var(--text-2); }
.proj__slot-body p { margin: 0; max-width: 240px; font-size: 14px; line-height: 1.6; color: var(--dim); }

.outros { margin-top: 36px; border: 1px solid #1f231e; border-radius: 10px; overflow: hidden; }
.outros__head { padding: 14px 20px; background: var(--panel); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.outros ul { list-style: none; margin: 0; padding: 0; }
.outros a { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 16px 20px; border-top: 1px solid #1a1d19; font-size: 14px; transition: background .15s; }
.outros a:hover { background: var(--panel); }
.outros__cod { width: 80px; color: var(--dim); }
.outros__nome { flex: 1 1 200px; }
.outros__desc { flex: 1 1 280px; color: var(--muted); }
.outros__ano { width: 48px; color: var(--dim); }

/* ProjetoCard */
.pcard { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pcard__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px dashed #2a2f27; font-size: 12px; color: var(--dim); }
.pcard__selo { padding: 3px 8px; background: var(--accent); color: var(--on-accent); border-radius: 3px; font-weight: 700; font-size: 11px; }
.pcard__media { display: block; height: 210px; background: var(--bg-2); border-bottom: 1px solid #1f231e; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard__media pre { margin: 0; padding: 18px; font-size: 12px; line-height: 1.6; color: var(--muted); white-space: pre; overflow: hidden; }
.pcard__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__body h3 { margin: 0; font-size: 22px; font-weight: 700; }
/* O link do título cobre o card inteiro */
.pcard__link::after { content: ''; position: absolute; inset: 0; }
.pcard__body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid #1f231e; }
.pcard__foot .mono { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard:hover .icon-btn { border-color: var(--accent); }

/* Trajetoria */
.traj__cmd { margin: 10px 0 24px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; }
.traj { list-style: none; margin: 0; padding: 0; position: relative; }
.traj li { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid #1a1d19; }
.traj__meta { display: flex; align-items: center; gap: 16px; width: 170px; flex: none; font-size: 13px; }
.traj__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); flex: none; }
.traj__dot.is-head { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.traj__msg { flex: 1 1 260px; min-width: 0; font-size: 15px; }
.traj__head { color: var(--accent); }
.traj__desc { flex: 1 1 320px; min-width: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.traj__cmd--sub { margin-top: 56px; font-size: clamp(18px, 2vw, 22px); }
.form { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.form__item { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.form__item:hover { transform: none; }
.form__item h4 { margin: 0; font-size: 19px; font-weight: 600; }
.form__item p { margin: 0; font-size: 13px; color: var(--dim); }
.form__status { align-self: flex-start; padding: 3px 8px; border: 1px solid var(--line-3); border-radius: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.form__status.is-on { border-color: var(--accent); color: var(--accent); }

/* Contato */
.contato { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 96px; }
.contato__texto { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contato__titulo { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.contato__p { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.contato__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.contato__lista a { display: inline-flex; gap: 14px; align-items: center; }
.contato__lista a:hover { color: var(--accent); }
.contato__form, .contato__cta { flex: 1 1 460px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.contato__form:hover, .contato__cta:hover { transform: none; }
.contato__cta { justify-content: center; align-items: flex-start; gap: 18px; padding: 40px; }
.contato__cta p { margin: 0; font-size: 18px; line-height: 1.5; }
.contato__cta .dim { font-size: 13px; color: var(--dim); }
.contato__linha { display: flex; flex-wrap: wrap; gap: 14px; }
.contato__linha label { flex: 1 1 180px; }
label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
input, select, textarea {
  min-height: 44px; padding: 10px 12px; background: var(--bg); border: 1px solid #2a2f27; border-radius: 6px;
  color: var(--text); font: 15px var(--sans); text-transform: none; letter-spacing: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
.contato__form .btn { justify-content: center; min-height: 50px; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; font-size: 12px; color: var(--dim); }
.foot__logo { font-weight: 700; margin-right: 8px; }
.foot__links { display: flex; gap: 8px; }

/* Página de projeto */
.prj { padding-top: 48px; padding-bottom: 96px; }
.prj__voltar { font-size: 13px; color: var(--dim); }
.prj__voltar:hover { color: var(--accent); }
.prj__head { display: flex; flex-direction: column; gap: 18px; margin: 40px 0 32px; max-width: 820px; }
.prj__titulo { margin: 0; font-size: clamp(44px, 7vw, 88px); line-height: 0.95; font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; }
.prj__resumo { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); }
.prj__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

.ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 0 40px; border: 1px solid #1f231e; border-radius: 10px; overflow: hidden; }
.ficha > div { padding: 16px 18px; border-right: 1px dashed #2a2f27; border-bottom: 1px dashed #2a2f27; }
.ficha__stack { grid-column: 1 / -1; }
.ficha__papel { grid-column: span 2; }
@media (max-width: 520px) { .ficha__papel { grid-column: 1 / -1; } }
.ficha dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 6px; }
.ficha dd { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.prj__capa { margin: 0 0 48px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.prj__previa { margin: 0 0 48px; padding: 28px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; line-height: 1.7; color: var(--text-2); overflow-x: auto; }

.prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--text-2); }
.prose h2 { margin: 48px 0 16px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.prose h2::before { content: '## '; color: var(--dim); }
.prose ul { padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 4px; }
.prose blockquote { margin: 32px 0; padding: 12px 18px; border: 1px dashed var(--line-3); border-radius: 8px; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.prose blockquote p { margin: 0; }

.prj__galeria { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.prj__galeria figure { margin: 0; flex: 0 1 320px; }
.prj__galeria img { border: 1px solid var(--line-2); border-radius: 12px; }
.prj__galeria figcaption { margin-top: 10px; font-size: 12px; color: var(--dim); }

.prj__nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.prj__nav a:hover { color: var(--accent); }

/* 404 */
.nf { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-top: 96px; padding-bottom: 96px; }
.nf p { margin: 0; }
.nf__err { color: var(--dim); }
