/* ==========================================================================
   Pontes Dev — tokens e componentes da home
   Direção: terminal editorial. Dark navy, mono como voz secundária,
   ciano como único acento forte, magenta só em detalhe de marca.
   ========================================================================== */

:root {
  --bg: #030b18;
  --bg-elev: #061327;
  --surface: #08182c;
  --surface-2: #0b2038;

  --line: rgb(var(--grid-rgb) / .16);
  --line-strong: rgb(var(--pri-rgb) / .34);

  --text: #eef4ff;
  --text-2: #a9b8cf;
  --text-3: #74869f;

  --cyan: #00dff3;
  --cyan-deep: #00a9e9;
  --pink: #ed20e8;
  --amber: #ffb03a;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;

  --shell: 1240px;
  --gutter: 24px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .22s;

  /* triplas rgb para compor qualquer alpha com a cor do momento */
  --pri-rgb: 0 223 243;
  --sec-rgb: 237 32 232;
  --amber-rgb: 255 176 58;
  --bg-rgb: 3 11 24;
  --grid-rgb: 120 170 210;
  --halo-pri: .10;
  --halo-sec: .05;
  --scan-rgb: 190 240 255;

  /* tons intermediários do gradiente da marca */
  --grad-mid: #5cedff;
  --grad-mid-2: #a45bff;
  --cyan-hover: #6ff0ff;
  --on-accent: #04121f;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 420px at 78% -8%, rgb(var(--pri-rgb) / var(--halo-pri)), transparent 70%),
    radial-gradient(560px 380px at 8% 8%, rgb(var(--sec-rgb) / var(--halo-sec)), transparent 72%);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, ul, ol, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--cyan); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}


.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--cyan-hover); border-color: var(--cyan-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgb(var(--pri-rgb) / .06);
}

.btn-sm { min-height: 38px; padding: 0 16px; font-size: .8125rem; }

.link-underline {
  color: var(--cyan);
  border-bottom: 1px solid rgb(var(--pri-rgb) / .35);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-underline:hover { border-color: var(--cyan); color: var(--cyan-hover); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-stuck {
  background: rgb(var(--bg-rgb) / .86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: rgb(var(--pri-rgb) / .07);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: -.04em;
}
.brand-name { color: var(--text); }
.brand-name span { color: var(--cyan); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 12px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-1);
  transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--text); }

.nav-extra { display: none; }

.header-cta {
  margin-left: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.header-cta svg { width: 15px; height: 15px; fill: currentColor; }

/* preferências do visitante: neon e tema, lado a lado */
.prefs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(var(--grid-rgb) / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--grid-rgb) / .05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(680px 420px at 70% 20%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 26px;
}
.hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgb(var(--pri-rgb) / .12);
}

.hero h1 {
  font-size: clamp(1.9rem, 4.9vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--cyan); }

.hero-lead {
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 30px;
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-sub {
  max-width: 46ch;
  margin-top: -14px;
  margin-bottom: 24px;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-2);
}

.hero-claim {
  max-width: 44ch;
  margin-bottom: 30px;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}
.hero-claim b { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- terminal ---------- */

.terminal {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev) 58%, var(--bg));
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgb(var(--grid-rgb) / .05);
}
.terminal-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--grid-rgb) / .28);
}
.terminal-bar i:first-child { background: rgb(var(--sec-rgb) / .55); }
.terminal-bar i:nth-child(2) { background: rgb(var(--amber-rgb) / .55); }
.terminal-bar i:nth-child(3) { background: rgb(var(--pri-rgb) / .55); }
.terminal-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--text-3);
}
.terminal-body {
  padding: 20px 18px 22px;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.95;
  color: var(--text-2);
  overflow-x: auto;
  white-space: normal;
  overflow-wrap: break-word;
}
.terminal-body .cmd { color: var(--text); }
.terminal-body .cmd::before { content: "$ "; color: var(--cyan); }

/* terminal interativo */
.terminal-body {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--grid-rgb) / .35) transparent;
}
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgb(var(--grid-rgb) / .3); border-radius: 999px; }
.term-block { margin: 0 0 10px; white-space: normal; }
.term-block:last-of-type { margin-bottom: 0; }
.term-form { margin-bottom: 0; }
.term-input {
  width: calc(100% - 1.6em);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: inherit;
  line-height: inherit;
  caret-color: var(--cyan);
}
.term-input:focus { outline: none; }
.term-input::placeholder { color: var(--text-3); opacity: .7; }
.terminal:focus-within { border-color: rgb(var(--pri-rgb) / .55); }
.terminal-body a { color: var(--cyan); border-bottom: 1px solid rgb(var(--pri-rgb) / .5); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 620px) {
  .terminal-body { max-height: 280px; }
}
.terminal-body .out { color: var(--text-2); }
.terminal-body .key { color: var(--cyan); }
.terminal-body .dim { color: var(--text-3); }
.terminal-body .cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- faixa de frentes (carrossel infinito) ---------- */

.frentes {
  border-bottom: 1px solid var(--line);
  background: rgb(var(--bg-rgb) / .5);
}

/* a máscara apaga as pontas: o trilho entra e sai sem corte seco */
.frentes-viewport {
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* duas cópias do grupo: o trilho anda -50% e o laço fecha sem salto */
.frentes-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: frentes-slide var(--frentes-dur, 51s) linear infinite;
}

.frentes-group {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 24px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-3);
}
.frentes-group li { display: flex; align-items: center; gap: 10px; }
.frentes-group li::before {
  content: "";
  width: 3px;
  height: 3px;
  background: rgb(var(--grid-rgb) / .4);
  border-radius: 50%;
}
.frentes-group .hot { color: var(--text-2); }

/* pausa para leitura: mouse em cima ou foco de teclado dentro da faixa */
.frentes:hover .frentes-track,
.frentes:focus-within .frentes-track { animation-play-state: paused; }

@keyframes frentes-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .frentes-track { animation: none; }
  .frentes-viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .frentes-viewport::-webkit-scrollbar { display: none; }
}

/* ---------- números ---------- */

.stats { border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 34px 26px 34px 0;
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.stat b em { font-style: normal; color: var(--cyan); }
.stat small {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- seções ---------- */

.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section--tight { padding: 76px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
}
.section-head h2 span { color: var(--cyan); }

/* título da seção 01 é o mais longo da home: no mobile, o tamanho cheio
   empurrava "projetos" sozinho para uma linha; a escala por vw fecha em duas */
@media (max-width: 430px) {
  #projetos-title { font-size: clamp(1.5rem, 7.3vw, 1.78rem); }
}
.section-head p {
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.7;
}
.section-head .mono { margin-bottom: 14px; display: block; }

/* ---------- projetos ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.project {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / .9), rgb(var(--bg-rgb) / .9));
  min-height: 232px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.project--full { grid-column: span 6; min-height: 0; }
.project--full h3 { font-size: 1.9rem; }
.project--full p { max-width: 74ch; font-size: .9375rem; }
/* sobrando um card sozinho na última linha, ele centraliza */
.projects-grid .project:nth-last-child(1):nth-child(3n + 1) { grid-column: 3 / span 2; }

.project--third { grid-column: span 2; }
.project--half { grid-column: span 3; min-height: 260px; }
a.project:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / .95), rgb(var(--bg-rgb) / .95));
}
.project-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .6563rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.project-top .idx { color: rgb(var(--grid-rgb) / .5); }
.project-top .kind { color: var(--text-2); }
.project-top .status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.project-top .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.status--desenvolvimento .dot { background: var(--amber); }
.status--prototipo .dot { background: var(--pink); }

.project h3 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
  font-weight: 700;
  line-height: 1.2;
}

.project p {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 46ch;
}
.project-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .04em;
  color: var(--text-3);
}
.chips li {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.project-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  margin: 14px 0 4px;
  background: var(--bg-2, #050b14);
}
.project--full .project-cover { aspect-ratio: 16 / 9; }

.project-go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.project:hover .project-go { border-color: var(--cyan); color: var(--cyan); }
.project-go svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.projects-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.projects-foot::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- skills ---------- */

.skills-wrap {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}
.skills-intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
  margin-bottom: 18px;
}
.skills-intro h2 span { color: var(--cyan); }
.skills-intro p {
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.72;
  max-width: 38ch;
}
.skills-intro p + p { margin-top: 12px; }
.skills-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* com a lista de áreas longa, a coluna de texto acompanha a rolagem no desktop */
@media (min-width: 1024px) {
  .skills-intro { position: sticky; top: 96px; align-self: start; }
}
.skills-meta {
  display: flex;
  gap: 26px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.skills-meta b {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.skills-meta small {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.skills-list { border-top: 1px solid var(--line); }
.skill-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.skill-row:hover { background: rgb(var(--pri-rgb) / .035); padding-left: 8px; }
.skill-cat {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 3px;
}
.skill-name {
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.skill-name::before { content: "./"; color: var(--cyan); }
.skill-desc {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--text-2);
}
.skill-prova {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- lab ---------- */

.lab {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(560px 300px at 82% 12%, rgb(var(--sec-rgb) / .09), transparent 70%),
    linear-gradient(180deg, var(--bg-elev), var(--bg));
}
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: center;
  padding: 84px 0;
}
.lab h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
  margin-bottom: 18px;
}
.lab h2 span { color: var(--cyan); }
.lab p {
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.72;
  max-width: 46ch;
  margin-bottom: 14px;
}
.lab-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}
.lab-facts li {
  font-family: var(--mono);
  font-size: .6563rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.game-card {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 16 / 10;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 46%, rgb(var(--bg-rgb) / .88) 100%),
    repeating-linear-gradient(90deg, rgb(var(--pri-rgb) / .07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgb(var(--pri-rgb) / .07) 0 1px, transparent 1px 44px);
  pointer-events: none;
}
.game-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .4s var(--ease);
}
.game-card:hover .game-shot { transform: scale(1.035); }
.exp-intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
  margin-bottom: 18px;
}
.exp-intro h2 span { color: var(--cyan); }
.exp-intro p {
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.72;
  max-width: 68ch;
}
.talks {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.talks h3 {
  font-family: var(--mono);
  font-size: .6563rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  font-weight: 400;
}
.talks ul { display: flex; flex-wrap: wrap; gap: 8px; }
.talks li {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: rgb(var(--grid-rgb) / .05);
}

/* ---------- produtos ---------- */

.products {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / .55), transparent);
}
.products-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
}
.products-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -.025em;
  font-weight: 700;
}
.products-head p {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 68ch;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1180px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: rgb(var(--bg-rgb) / .6);
  transition: border-color var(--dur) var(--ease);
}
.product:hover { border-color: var(--line-strong); }
.product .kicker {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink);
}
.product h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.product p { font-size: .875rem; color: var(--text-2); line-height: 1.65; }
.product a {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---------- contato ---------- */

.contact { padding: 96px 0 88px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: end;
}
.contact h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  margin-bottom: 18px;
}
.contact h2 span { color: var(--cyan); }
.contact p {
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.7;
  max-width: 42ch;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: clamp(.875rem, 1.6vw, 1.0625rem);
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact-mail:hover { color: var(--cyan); border-color: var(--cyan); }
.contact-mail svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ---------- formulário de contato ---------- */

.contact-form-wrap {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: rgb(var(--bg-rgb) / .6);
}
.contact-form-head { display: flex; flex-direction: column; gap: 4px; }
.contact-form-head h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label > span {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: rgb(var(--bg) / .7);
  color: var(--text);
  font-family: var(--sans);
  font-size: .9375rem;
}
.contact-form textarea { resize: vertical; min-height: 104px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgb(var(--pri-rgb) / .16);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-3); }
.contact-error { font-size: .78rem; color: var(--pink); font-style: normal; }
/* honeypot fora da tela: leitor de tela ignora, bot preenche */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.contact-privacy { font-size: .78rem; color: var(--text-3); }
.contact-ok {
  padding: 11px 14px;
  border: 1px solid rgb(var(--pri-rgb) / .45);
  border-radius: var(--r-1);
  background: rgb(var(--pri-rgb) / .1);
  font-size: .875rem;
}
@media (max-width: 620px) {
  .contact-form { padding: 18px; }
  .contact-form-row { grid-template-columns: 1fr; }
}

.contact-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.contact-links a:hover { color: var(--text); padding-left: 6px; }
.contact-links .label { display: flex; align-items: center; gap: 10px; }
.contact-links .label b { font-weight: 500; color: var(--text); }
.contact-links .handle {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-3);
}
.contact-links svg.arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  opacity: .6;
}

/* coluna de leitura para páginas de texto (sobre, experiência) */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 12px; }

/* ---------- case (página de projeto) ---------- */

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 26px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.case-cover {
  width: 100%;
  height: auto;
  max-height: 460px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  margin-bottom: 28px;
}
.case-block { max-width: 68ch; }
.case-block + .case-block { margin-top: 26px; }
.case-block h2 {
  font-size: 1rem;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.case-block p { color: var(--text-2); line-height: 1.7; }

/* artigo: leitura confortável */
.article-body { max-width: 68ch; }
.article-body p { color: var(--text-2); line-height: 1.75; margin-top: 14px; }
.article-body h2 { margin-top: 30px; font-size: 1.05rem; letter-spacing: -.01em; }
.article-body ul { margin: 14px 0 0; padding-left: 20px; list-style: disc; color: var(--text-2); }
.article-body li + li { margin-top: 6px; }

/* vídeo: miniatura na grade e fachada do player */
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.video-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video-play img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .85; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  margin-bottom: 12px;
}
.video-transcript { margin-top: 26px; }
.video-transcript h2 { font-size: 1.05rem; margin-bottom: 8px; }
.video-transcript p { color: var(--text-2); line-height: 1.75; margin-top: 12px; }

/* oferta: botão dentro do card herda a cor certa e lista de escopo sem chips apertados */
.product .btn-primary { color: var(--on-accent); }
.product .btn-ghost { color: var(--text); }
.product h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.oferta-lista {
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: .84rem;
  color: var(--text-2);
}
.oferta-lista li { position: relative; padding-left: 18px; }
.oferta-lista li::before { content: "—"; position: absolute; left: 0; color: var(--cyan); }

/* oferta: detalhe do que não está incluso */
.oferta-nao-inclui {
  margin: 12px 0 4px;
  font-size: .82rem;
  color: var(--text-2);
}
.oferta-nao-inclui summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.oferta-nao-inclui ul { margin: 8px 0 0; padding-left: 18px; list-style: disc; }
.oferta-nao-inclui li + li { margin-top: 4px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 38px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.footer-inner .brand { font-size: .9375rem; }
.footer-tag {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--text-3);
}
.footer-social a {
  color: var(--text-2);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-social a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.footer-inner .copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--text-3);
}

/* ---------- barra mobile ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  height: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgb(var(--bg-rgb) / .96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--mono);
  font-size: .5625rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  min-height: 44px;
}
.mobile-bar a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.mobile-bar a.is-active { color: var(--cyan); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1279px) {
  .header-inner { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .terminal { max-width: 560px; }
  .skills-wrap, .lab-grid, .exp-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .projects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .project { grid-column: span 2; }
    .project--full, .project--half { grid-column: span 2; min-height: 260px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-head p { max-width: 56ch; }
}

@media (max-width: 1279px) {
  .nav, .header-cta { display: none; }
  .prefs { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 12px; }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px var(--gutter) calc(84px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
  }
  .site-header.is-open .nav a {
    padding: 14px 4px;
    font-size: .9375rem;
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav a::after { display: none; }

  .nav-extra {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
    padding: 24px 4px 0;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--text-3);
  }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .projects-grid { grid-template-columns: 1fr; }
  .project, .project--full, .project--third, .project--half { grid-column: auto; min-height: 0; }
  .products-grid { grid-template-columns: 1fr; }

  .mobile-bar { display: block; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 26px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .hero { padding: 44px 0 48px; }
  .hero-lead { font-size: 1rem; margin-bottom: 20px; }
  .hero-sub { margin-top: -6px; margin-bottom: 20px; }
  .hero-claim { margin-bottom: 24px; font-size: .9375rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .terminal-body { font-size: .68rem; line-height: 1.85; padding: 16px 14px 18px; }
  .game-card { aspect-ratio: 4 / 3; }
  .section { padding: 64px 0; }
  .section--tight { padding: 52px 0; }
  .lab-grid { padding: 60px 0; }
  .contact { padding: 64px 0 56px; }
  .skill-row { grid-template-columns: 1fr; gap: 6px; padding: 15px 0; }
  .skill-cat { padding-top: 0; }
  .products-head h2 { font-size: 1.35rem; }
  .footer-inner { gap: 12px; }
  .footer-inner .copy { margin-left: 0; }
  .contact-mail { font-size: .8125rem; word-break: break-all; }
}

/* ==========================================================================
   Camada neon — ciano + magenta
   Tudo que dá o brilho da marca está aqui: para acender ou apagar o efeito,
   mexa só neste bloco.
   ========================================================================== */

:root {
  --grad-neon: linear-gradient(100deg, var(--cyan) 0%, var(--grad-mid) 34%, var(--grad-mid-2) 68%, var(--pink) 100%);
  --grad-hair: linear-gradient(90deg, transparent, rgb(var(--pri-rgb) / .55), rgb(var(--sec-rgb) / .55), transparent);
  --glow-cyan: 0 0 28px rgb(var(--pri-rgb) / .30);
  --glow-magenta: 0 0 32px rgb(var(--sec-rgb) / .24);
}

/* bloom de fundo: ciano em cima à direita, magenta embaixo à esquerda */
body::before {
  background:
    radial-gradient(760px 460px at 80% -6%, rgb(var(--pri-rgb) / var(--halo-pri)), transparent 68%),
    radial-gradient(620px 420px at 4% 12%, rgb(var(--sec-rgb) / .10), transparent 70%),
    radial-gradient(700px 460px at 88% 96%, rgb(var(--sec-rgb) / var(--halo-sec)), transparent 72%);
}

/* scanlines discretas: textura de tela, quase invisível */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(var(--scan-rgb) / .035) 0 1px, transparent 1px 3px);
  opacity: .5;
}

/* marca com borda em gradiente e halo */
.brand-mark {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--grad-neon) border-box;
  color: var(--cyan);
  box-shadow: 0 0 16px rgb(var(--pri-rgb) / .28), inset 0 0 14px rgb(var(--sec-rgb) / .10);
}
.brand-name span {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgb(var(--pri-rgb) / .30));
}

/* navegação: sublinhado em gradiente com brilho */
.nav a::after {
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgb(var(--pri-rgb) / .55);
}
.nav a.is-active { color: var(--cyan); }
.nav a:hover { color: var(--text); }

/* título: segunda linha em gradiente */
.hero h1 .accent {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgb(var(--pri-rgb) / .28));
}

/* kicker ganha traço magenta */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--sec-rgb) / .8), transparent);
}

/* terminal: halo e prompt magenta */
.terminal {
  border-color: rgb(var(--pri-rgb) / .22);
  box-shadow:
    0 0 70px -28px rgb(var(--pri-rgb) / .55),
    0 30px 70px -40px rgba(0, 0, 0, .95);
}
.terminal-bar {
  background: linear-gradient(90deg, rgb(var(--pri-rgb) / .06), rgb(var(--sec-rgb) / .06));
}
.terminal-body .cmd::before { color: var(--pink); text-shadow: 0 0 10px rgb(var(--sec-rgb) / .6); }
.terminal-body .cursor { box-shadow: 0 0 12px rgb(var(--pri-rgb) / .9); }

/* botões com brilho; variante com borda em gradiente */
.btn-primary {
  box-shadow: 0 8px 26px -16px rgb(var(--pri-rgb) / .9), 0 0 0 1px rgb(var(--pri-rgb) / .22);
}
.btn-primary:hover {
  box-shadow: 0 10px 30px -14px rgb(var(--pri-rgb) / .95), 0 0 20px -4px rgb(var(--pri-rgb) / .35);
}
.btn-ghost:hover {
  border-color: rgb(var(--sec-rgb) / .65);
  color: var(--text);
  background: rgb(var(--sec-rgb) / .07);
  box-shadow: 0 0 24px -8px rgb(var(--sec-rgb) / .7);
}
.btn-neon {
  border: 1px solid transparent;
  color: var(--text);
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--grad-neon) border-box;
  box-shadow: 0 0 30px -12px rgb(var(--pri-rgb) / .7);
}
.btn-neon:hover {
  background:
    linear-gradient(rgb(var(--pri-rgb) / .12), rgb(var(--sec-rgb) / .12)) padding-box,
    var(--grad-neon) border-box;
  color: var(--text);
}

/* faixa de frentes: filete em gradiente e palavras-chave acesas */
.frentes { box-shadow: inset 0 1px 0 rgb(var(--pri-rgb) / .10); }
.frentes-group .hot {
  color: var(--cyan);
  text-shadow: 0 0 14px rgb(var(--pri-rgb) / .55);
}

/* números: halo nos dígitos e destaque em gradiente */
.stat b { text-shadow: 0 0 34px rgb(var(--pri-rgb) / .22); }
.stat b em {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat { border-left-color: rgb(var(--pri-rgb) / .14); }

/* rótulos de seção com traço neon */
.section-head .mono::before,
.skills-intro .mono::before,
.exp-intro .mono::before,
.lab .mono::before,
.contact .mono::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  margin-right: 10px;
  vertical-align: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 10px rgb(var(--sec-rgb) / .6);
}

/* cards de projeto: filete no topo, borda viva e halo no hover */
.project {
  position: relative;
  overflow: hidden;
}
.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--pri-rgb) / .75), rgb(var(--sec-rgb) / .35) 55%, transparent);
  opacity: .45;
  transition: opacity var(--dur) var(--ease);
}
a.project:hover::before { opacity: 1; }
a.project:hover {
  border-color: rgb(var(--pri-rgb) / .55);
  box-shadow: 0 0 0 1px rgb(var(--sec-rgb) / .22), 0 18px 48px -30px rgb(var(--pri-rgb) / .9);
}
.project-top .dot { box-shadow: 0 0 8px currentColor; }
.project-top .status--producao .dot { background: var(--cyan); color: var(--cyan); }
.status--desenvolvimento .dot { box-shadow: 0 0 8px rgb(var(--amber-rgb) / .8); color: var(--amber); }
.status--prototipo .dot { box-shadow: 0 0 8px rgb(var(--sec-rgb) / .9); color: var(--pink); }
.project--full h3 {
  background: linear-gradient(94deg, var(--text) 30%, var(--grad-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* skills: barra magenta no hover */
.skill-row { position: relative; }
.skill-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  border-radius: 2px;
  background: var(--grad-neon);
  opacity: 0;
  transform: scaleY(.4);
  transform-origin: center;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: 0 0 12px rgb(var(--sec-rgb) / .8);
}
.skill-row:hover::before { opacity: 1; transform: scaleY(1); }
.skill-name::before { text-shadow: 0 0 10px rgb(var(--pri-rgb) / .7); }

/* laboratório: moldura em gradiente e varredura no hover */
.game-card {
  border-color: transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad-neon) border-box;
  box-shadow: 0 0 60px -30px rgb(var(--sec-rgb) / .7);
}
.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 34%;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgb(var(--pri-rgb) / .16), transparent);
  transform: skewX(-12deg);
  transition: left .7s var(--ease);
  pointer-events: none;
}
.game-card:hover::before { left: 112%; }
.game-card:hover { box-shadow: 0 0 80px -26px rgb(var(--pri-rgb) / .6); }

/* palestras: chip vivo no hover */
.talks li:hover {
  border-color: rgb(var(--sec-rgb) / .5);
  box-shadow: 0 0 20px -8px rgb(var(--sec-rgb) / .8);
}

/* produtos: kicker magenta com brilho */
.product .kicker { text-shadow: 0 0 16px rgb(var(--sec-rgb) / .55); }
.product:hover { box-shadow: 0 0 40px -26px rgb(var(--sec-rgb) / .9); }

/* contato: sublinhado em gradiente */
.contact-mail {
  border-bottom-color: transparent;
  background-image: linear-gradient(90deg, var(--cyan), var(--pink));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
}
.contact-mail:hover {
  color: var(--text);
  filter: drop-shadow(0 0 14px rgb(var(--pri-rgb) / .55));
}

/* barra mobile: filete neon no topo e atalho ativo brilhando */
.mobile-bar {
  border-top-color: transparent;
  background-image: var(--grad-hair);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-color: rgb(var(--bg-rgb) / .96);
}
.mobile-bar a.is-active {
  color: var(--cyan);
  text-shadow: 0 0 12px rgb(var(--pri-rgb) / .7);
}
.mobile-bar a.is-active svg { filter: drop-shadow(0 0 6px rgb(var(--pri-rgb) / .8)); }

/* rodapé com filete em gradiente */
.site-footer {
  border-top-color: transparent;
  background-image: var(--grad-hair);
  background-size: 100% 1px;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .game-card::before { display: none; }
}

@media (max-width: 620px) {
  .hero-kicker::after { display: none; }
}
