@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1a1714;
  --bg-2: #242119;
  --bg-3: #131210;
  --portal: #0f0e0c;
  --ink: #f5f3f0;
  --muted: #a39c95;
  --faint: #6f6a64;
  --line: rgba(245, 243, 240, 0.08);
  --line-2: rgba(245, 243, 240, 0.16);
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.10);
  --accent-line: rgba(34, 197, 94, 0.35);
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --pad: 48px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.label {
  display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-top: 18px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 640px; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 20px; border-radius: 8px; font: 500 14px/1 var(--mono); text-decoration: none; cursor: pointer;
  transition: background 150ms, border-color 150ms, transform 100ms;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #0f0e0c; border: 0; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: rgba(245,243,240,.32); background: rgba(245,243,240,.04); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(26,23,20,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font: 500 16px/1 var(--mono); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 150ms; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-icons { display: flex; gap: 14px; padding-left: 20px; border-left: 1px solid var(--line); }
.nav-icons a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.sheet { display: none; }

/* ── hero ── */
.hero { padding: 96px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.12; font-weight: 450; margin: 22px 0 22px; }
.cursor { color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { margin-bottom: 34px; }
/* busto 3D: poster parado por baixo; o canvas aparece quando o WebGL fica pronto */
.avatar { position: relative; margin: 0; aspect-ratio: 1 / 1.02; max-height: 620px; }
.avatar::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34,197,94,.08), rgba(34,197,94,0) 70%); pointer-events: none; }
.avatar::after { content: ""; position: absolute; inset: 0; background: url(assets/avatar/poster.jpg) center / contain no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 96%); mask-image: linear-gradient(to bottom, #000 72%, transparent 96%);
  transition: opacity .6s; pointer-events: none; }
.avatar.ready::after { opacity: 0; }
.avatar canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 96%); mask-image: linear-gradient(to bottom, #000 72%, transparent 96%); }
.avatar figcaption { position: absolute; z-index: 2; left: 50%; bottom: 2px; transform: translateX(-50%);
  font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; white-space: nowrap; opacity: 0; transition: opacity .8s .6s; }
.avatar.ready figcaption { opacity: 1; }
.avatar figcaption::before { content: "● "; color: var(--accent); }
.hint-m { display: none; }
@media (hover: none) and (pointer: coarse) { .hint-d { display: none; } .hint-m { display: inline; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.dot { width: 10px; height: 10px; border-radius: 50%; background: #3a352f; }

/* ── sections ── */
section { position: relative; }
.sec { padding: 104px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.sec-head .lead { justify-self: end; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#projetos { padding-top: 24px; }
#codigo-aberto { padding-top: 0; }

/* ── portals ── */
.portal { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color 200ms, transform 200ms; }
.portal:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.chrome { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.chrome .url { flex: 1; text-align: center; font: 400 11.5px/1 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 36px; }
.shot { position: relative; display: block; overflow: hidden; background: var(--portal); aspect-ratio: 16 / 10; }
.shot picture { display: block; width: 100%; height: 100%; }
.shot img, .shot video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 400ms ease; }
.portal:hover .shot img { transform: scale(1.015); }
button.shot { width: 100%; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.shot-video { aspect-ratio: 16 / 9; }
.shot .go {
  position: absolute; right: 14px; bottom: 14px; font: 500 12px/1 var(--mono); color: var(--accent);
  background: rgba(15,14,12,.88); border: 1px solid var(--accent-line); padding: 8px 12px; border-radius: 6px;
  opacity: 0; transition: opacity 200ms, background 200ms;
}
.portal:hover .shot .go, .shot-video .go { opacity: 1; }
.shot-video .go { top: 12px; right: 12px; bottom: auto; }
.shot-video:hover .go, .shot-video:focus-visible .go { background: var(--accent); color: #0f0e0c; }
.p-body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.p-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.p-title h3 { font-size: 18px; }
.p-one { color: var(--ink); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }
.p-detail { color: var(--muted); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 400 11.5px/1 var(--mono); color: var(--muted); background: var(--bg-3); border: 1px solid var(--line); padding: 6px 8px; border-radius: 4px; }
.links { display: flex; gap: 6px; }
.links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 6px; font: 500 13px/1 var(--mono); color: var(--accent); text-decoration: none; border: 1px solid transparent; }
.links a:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.links a.sec-link { color: var(--muted); }
.links a.sec-link:hover { color: var(--ink); border-color: var(--line-2); background: transparent; }

.featured { display: grid; grid-template-columns: 1.45fr 1fr; }
.featured .win { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--bg-3); }
.win-note { padding: 14px 16px; border-top: 1px solid var(--line); font: 400 12.5px/1.55 var(--mono); color: var(--muted); text-wrap: pretty; }
.win-note b { color: var(--accent); font-weight: 500; }
.featured .win-note { flex: 1; display: flex; align-items: center; padding: 18px 20px; font-size: 13px; }
.featured .win-note span { display: block; }
.featured .p-body { padding: 32px 32px 30px; align-content: start; gap: 14px; }
.featured .p-title h3 { font-size: 26px; }
.featured .p-one { font-size: 17px; }
.kicker { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.facts { list-style: none; display: grid; gap: 10px; margin: 4px 0 6px; }
.facts li { position: relative; padding-left: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--accent); }
.facts b { color: var(--ink); font-weight: 500; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

.contrib { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; line-height: 1.7; text-wrap: pretty; }
.contrib-k { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
.contrib a { display: inline-block; font: 500 13px/1.7 var(--mono); color: var(--accent); text-decoration: none; margin-left: 10px; }
.contrib a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cta-strip { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 24px 28px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; }
.cta-strip p { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 640px; text-wrap: pretty; }
.cta-strip p b { display: block; color: var(--ink); font: 500 17px/1.4 var(--mono); letter-spacing: -0.01em; margin-bottom: 4px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ── builder mode: arquitetura em camadas ── */
.arch { margin: 8px 0 96px; padding: 44px 40px 40px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; }
.layers { list-style: none; }
.layer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 88px; align-items: center; }
.core { grid-area: 1 / 2; display: grid; gap: 10px; align-content: start; padding: 20px 22px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; }
.core.wide { grid-column: 1 / -1; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; column-gap: 32px; padding: 20px 24px; }
.core-head { display: grid; gap: 8px; }
.core.wide .chain { grid-column: 2 / -1; justify-content: flex-end; }
.core.hub { border-color: rgba(34, 197, 94, .55); }
.core.prod { background: var(--accent-soft); border-color: var(--accent); }
.core h3 { font-size: 17px; line-height: 1.3; }
.core p:not(.kicker), .sat p:not(.kicker) { color: var(--muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.seq { list-style: none; counter-reset: seq; display: grid; gap: 6px; }
.seq li { counter-increment: seq; display: grid; grid-template-columns: 24px 1fr; color: var(--ink); font-size: 14px; line-height: 1.5; }
.seq li::before { content: counter(seq, decimal-leading-zero); font: 500 11px/21px var(--mono); color: var(--faint); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { font: 400 12px/1 var(--mono); color: var(--ink); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.sub { display: grid; gap: 6px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.sat { grid-row: 1; position: relative; display: grid; gap: 8px; align-content: start; padding: 16px 18px; border: 1px dashed rgba(245, 243, 240, .24); border-radius: 10px; }
.sat.l { grid-column: 1; }
.sat.r { grid-column: 3; }
.tie { position: absolute; top: 50%; width: 88px; padding: 0 6px 6px; transform: translateY(-100%); border-bottom: 1px dashed rgba(245, 243, 240, .35); text-align: center; font: 400 11px/1.3 var(--mono); color: var(--muted); }
.sat .kicker { color: var(--ink); }
.sat.l .tie { left: calc(100% + 1px); }
.sat.r .tie { right: calc(100% + 1px); }

.hop { position: relative; height: 60px; }
.hop::before, .hop.loop span::before { content: ""; position: absolute; border-left: 1px solid rgba(245, 243, 240, .4); }
.hop::after, .hop.loop span::after, .sk-tie::after { content: ""; position: absolute; width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 7px solid rgba(245, 243, 240, .6); }
.hop::before { left: 50%; top: 0; bottom: 6px; }
.hop::after { left: calc(50% - 4px); bottom: 0; }
.flow { position: absolute; left: calc(50% + 14px); top: 50%; transform: translateY(-50%); font: 400 11.5px/1 var(--mono); color: var(--muted); }
.hop.gated { height: 124px; }
.hop.gated .flow { top: 24px; }
.hop .gate { position: absolute; left: 50%; top: 72px; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 24px); padding: 9px 14px; background: var(--bg-3); border: 1px dashed var(--accent-line); border-radius: 999px; }
.gate { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.35 var(--mono); color: var(--ink); }
.gate::before { content: ""; flex: none; width: 7px; height: 7px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.hop.loop::before, .hop.loop::after { content: none; }
.hop.loop span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font: 400 11.5px/1.3 var(--mono); color: var(--muted); }
.hop.loop .dn { right: calc(50% + 36px); padding-right: 14px; text-align: right; }
.hop.loop .dn::before { right: 0; top: 0; bottom: 6px; }
.hop.loop .dn::after { right: -4px; bottom: 0; }
.hop.loop .up { left: calc(50% + 36px); padding-left: 14px; color: var(--ink); }
.hop.loop .up::before { left: 0; top: 6px; bottom: 0; border-left-style: dashed; }
.hop.loop .up::after { left: -4px; top: 0; border-top: 0; border-bottom: 7px solid rgba(245, 243, 240, .6); }

.chain { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.chain li { font: 500 12.5px/1 var(--mono); color: var(--ink); padding: 9px 12px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; }
.chain .ar { padding: 0; background: none; border: 0; color: var(--muted); }
.chain .gate { border-style: dashed; border-color: var(--accent-line); }
.chain .live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); border-color: var(--accent); }
.chain .live::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }

/* ── builder mode: segundo cérebro e skills ── */
.deep { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin-bottom: 96px; }
.deep-text { display: grid; gap: 14px; align-content: start; }
.deep-text h3 { font-size: 24px; line-height: 1.25; }
.deep-text p:not(.kicker) { max-width: 460px; color: var(--muted); font-size: 15.5px; line-height: 1.7; text-wrap: pretty; }
.memgraph { padding: 16px 16px 14px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; }
.memgraph svg { display: block; width: 100%; height: auto; }
.memgraph:not(.on) * { animation-play-state: paused; }
.mg-e { fill: none; stroke: rgba(245, 243, 240, .14); stroke-width: 1; }
.mg-e.sem { stroke-dasharray: 2 4; }
.mg-e.lit { animation: mg-lit 6s ease-in-out var(--d, 0s) infinite; }
.mg-x { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .8; animation: mg-flow 1.4s linear infinite; }
.mg-n { fill: rgba(245, 243, 240, .55); }
.mg-n.obs { fill: var(--bg-3); stroke: rgba(245, 243, 240, .5); stroke-width: 1.3; }
.mg-n.hi { fill: var(--accent); }
.mg-n.new { fill: var(--bg-3); stroke: var(--accent); stroke-width: 1.6; animation: mg-new 2.4s ease-in-out var(--d, 0s) infinite; }
.mg-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; animation: mg-ring 3.6s ease-out var(--d, 0s) infinite; }
.mg-l { font: 400 12.5px var(--mono); fill: var(--ink); paint-order: stroke; stroke: var(--bg-3); stroke-width: 4px; stroke-linejoin: round; }
.mg-t { font: 500 11px var(--mono); letter-spacing: .12em; fill: var(--faint); }
.mg-src rect { fill: var(--bg-2); stroke: var(--accent-line); stroke-dasharray: 3 4; }
.mg-src text { font: 500 12.5px var(--mono); fill: var(--ink); }
@keyframes mg-lit { 0%, 22%, 100% { stroke: rgba(245, 243, 240, .14); } 8% { stroke: rgba(34, 197, 94, .9); } }
@keyframes mg-flow { to { stroke-dashoffset: -16; } }
@keyframes mg-new { 50% { fill: rgba(34, 197, 94, .45); } }
@keyframes mg-ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.mg-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); font: 400 11.5px/1 var(--mono); color: var(--muted); }
.mg-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mg-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.lg-fact::before { background: rgba(245, 243, 240, .6); }
.lg-obs::before { border: 1.5px solid rgba(245, 243, 240, .55); }
.lg-hi::before { background: var(--accent); }
.lg-new::before { border: 1.5px solid var(--accent); }

.skillmap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.sk { display: grid; gap: 8px; align-content: start; padding: 18px 20px 10px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; }
.sk.shared { grid-column: 1 / -1; border-style: dashed; border-color: var(--accent-line); }
.sk.shared ul { columns: 2; column-gap: 28px; }
.owner { font: 400 11.5px/1 var(--mono); color: var(--muted); }
.sk ul { list-style: none; margin-top: 6px; }
.sk li { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); break-inside: avoid; font: 400 13px/1.4 var(--mono); color: var(--ink); }
.sk li::before { content: "§"; color: var(--faint); }
.sk-tie { position: relative; height: 48px; display: flex; align-items: center; padding-left: calc(50% + 12px); font: 400 11.5px/1 var(--mono); color: var(--muted); }
.sk-tie::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 6px; border-left: 1px dashed rgba(245, 243, 240, .4); }
.sk-tie::after { left: calc(50% - 4px); bottom: 0; }
.after { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.quote { font: 450 clamp(22px, 2.4vw, 28px)/1.35 var(--mono); letter-spacing: -0.02em; text-wrap: balance; }
.quote em { font-style: normal; color: var(--accent); }
.quote-by { margin-top: 14px; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.notes { display: grid; gap: 18px; }
.notes p { color: var(--muted); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.notes p b { color: var(--ink); font-weight: 500; }
.notes a { color: var(--accent); text-underline-offset: 3px; }

/* ── hire ── */
.hire { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.hire h2 { margin-bottom: 16px; }
.offers { display: grid; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.offers div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.offers dt { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--mono); color: var(--ink); }
.offers dt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.offers dd { margin-top: 6px; padding-left: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.motto { border-left: 2px solid var(--accent-line); padding-left: 16px; font: 400 14px/1.6 var(--mono); color: var(--muted); }
.form { display: grid; gap: 18px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.form label { display: block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 13px 16px; font: 400 16px/1.4 var(--sans); color: var(--ink); outline: none; transition: border-color 150ms; }
.field::placeholder { color: var(--faint); }
.field:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
textarea.field { min-height: 132px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row > div { min-width: 0; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form .btn { justify-self: start; min-height: 48px; padding: 0 24px; }
.status { font: 400 13px/1.4 var(--mono); color: var(--muted); min-height: 18px; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.form .chips label { position: relative; display: inline-flex; margin: 0; font: inherit; letter-spacing: 0; text-transform: none; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 13.5px/1 var(--mono); color: var(--ink); transition: border-color 150ms, background 150ms, color 150ms; }
.chips label:hover span { border-color: rgba(245,243,240,.32); }
.chips input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── lightbox ── */
.lightbox { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-3); color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 9, 8, .84); backdrop-filter: blur(4px); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
.lb-title { font: 500 13px/1.3 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.lb-close { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink); font: 500 13px/1 var(--mono); cursor: pointer; }
.lb-close:hover { border-color: rgba(245,243,240,.32); background: rgba(245,243,240,.04); }
.lb-video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 90px); background: #000; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 36px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a, footer p { font: 400 12.5px/1 var(--mono); color: var(--muted); text-decoration: none; }
footer nav a { display: inline-flex; align-items: center; min-height: 32px; }
footer nav a:hover { color: var(--ink); }

/* ── tablet ── */
@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .avatar { max-width: 460px; width: 100%; margin: 0 auto; }
  .featured { grid-template-columns: 1fr; }
  .featured .win { border-right: 0; border-bottom: 1px solid var(--line); }
  .featured .shot { aspect-ratio: 16 / 9; min-height: 0; }
  .hire { gap: 48px; }
}

/* ── arquitetura empilhada ── */
@media (max-width: 900px) {
  .arch { padding: 28px 22px 26px; }
  .layer { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .core.wide { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .core.wide .chain { grid-column: 1; justify-content: flex-start; }
  .core, .sat.l, .sat.r { grid-column: 1; grid-row: auto; }
  .sat { margin-left: 26px; }
  .sat::before { content: ""; position: absolute; left: -20px; top: -13px; width: 19px; height: calc(50% + 13px); border-left: 1px dashed rgba(245, 243, 240, .35); border-bottom: 1px dashed rgba(245, 243, 240, .35); border-bottom-left-radius: 8px; }
  .sat.l::after { content: ""; position: absolute; left: -20px; top: 50%; bottom: 0; border-left: 1px dashed rgba(245, 243, 240, .35); }
  .tie { position: static; width: auto; padding: 0; transform: none; border: 0; text-align: left; color: var(--faint); }
  .hop.gated { height: 136px; }
  .hop.gated .flow { top: 22px; }
  .hop .gate { top: 82px; border-radius: 12px; }
  .hop.loop .dn { right: calc(50% + 20px); }
  .hop.loop .up { left: calc(50% + 20px); right: 0; }
  .deep { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 72px; }
}

/* ── mobile ── */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 15.5px; }
  .nav .wrap { height: 60px; }
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .sheet {
    position: fixed; inset: 60px 0 0 0; z-index: 49; background: var(--bg-3); padding: 8px 20px 32px;
    display: flex; flex-direction: column; transform: translateX(100%); transition: transform 280ms cubic-bezier(.4,0,.2,1); visibility: hidden;
  }
  body.menu-open .sheet { transform: none; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .sheet a:not(.btn) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 500 17px/1 var(--mono); }
  .sheet .btn { margin-top: 24px; min-height: 52px; }

  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 33px; line-height: 1.16; margin: 18px 0; }
  .hero .lead { font-size: 16.5px; margin-bottom: 28px; }
  .ctas .btn { flex: 1 1 100%; min-height: 50px; }

  .sec { padding: 72px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .sec-head .lead { justify-self: start; font-size: 16px; }
  h2 { font-size: 26px; }

  .grid2 { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .featured .p-body, .p-body { padding: 18px 18px 20px; }
  .featured .p-title h3 { font-size: 22px; }
  .shot, .featured .shot { aspect-ratio: 1 / 1; }
  .shot-video, .featured .shot-video { aspect-ratio: 16 / 9; }
  .chrome .url { text-align: left; padding: 0 0 0 8px; }
  .shot .go { opacity: 1; }
  .shot-video .go { top: 8px; right: 8px; font-size: 11px; padding: 6px 9px; }
  .links a { min-height: 44px; }
  .win-note { padding: 12px 14px; font-size: 12px; }

  .contrib a { margin: 4px 14px 0 0; }
  .cta-strip { flex-direction: column; align-items: stretch; padding: 20px; margin-top: 40px; }
  .cta-actions .btn { flex: 1 1 100%; min-height: 50px; }

  .arch { padding: 22px 14px 20px; margin-bottom: 72px; }
  .core, .core.wide { padding: 18px 16px; }
  .deep-text h3 { font-size: 21px; }
  .memgraph { padding: 10px 10px 12px; }
  .mg-l { font-size: 17px; }
  .mg-t { font-size: 14px; }
  .mg-src text { font-size: 16px; }
  .skillmap { grid-template-columns: minmax(0, 1fr); }
  .sk-c { order: 1; }
  .sk-tie.a { order: 2; }
  .sk.shared { order: 3; }
  .sk-tie.b { order: 4; }
  .sk-d { order: 5; }
  .sk-tie.b::before { top: 6px; bottom: 0; }
  .sk-tie.b::after { top: 0; bottom: auto; border-top: 0; border-bottom: 7px solid rgba(245, 243, 240, .6); }
  .sk.shared ul { columns: 1; }
  .after { grid-template-columns: 1fr; gap: 32px; }

  .hire { grid-template-columns: 1fr; gap: 40px; }
  .form { padding: 20px; }
  .form .btn { justify-self: stretch; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* atalhos diretos no contato */
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 24px 0 28px; font: 500 13px/1.4 var(--mono); }
.direct-k { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.direct a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); padding-bottom: 2px; }
.direct a:hover { border-color: var(--accent); }
