/* ================= tokens ================= */
:root {
  --bg: #0b0d0c;
  --bg-2: #101312;
  --panel: #131716;
  --panel-2: #181d1b;
  --line: #222926;
  --line-2: #2f3834;
  --text: #e8ece9;
  --text-2: #a6afaa;
  --muted: #6e7873;
  --accent: #ff6a2b;
  --accent-dim: rgba(255, 106, 43, .14);
  --ok: #3ddc97;
  --label: #f6f5f0;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 10px;
}

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: 0; }
.accent { color: var(--accent); }
code { font-family: var(--mono); font-size: .85em; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 4px; }
::selection { background: var(--accent); color: #0b0d0c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* grade de fundo */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ================= topbar ================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--gutter);
  background: rgba(11, 13, 12, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  font: 600 .78rem/1 var(--mono);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
}
.brand-name { font-weight: 500; font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 6px 12px; border-radius: 6px;
  font-size: .88rem; color: var(--text-2); text-decoration: none;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line-2); margin-left: 6px; }
.nav .nav-cta:hover { border-color: var(--accent); background: transparent; }
.clock { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 151, .15); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
@media (max-width: 860px) {
  .nav { display: none; }
  .clock { margin-left: auto; }
}

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 8px;
  font: 500 .92rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #0b0d0c; border: 1px solid var(--accent); }
.btn-primary:hover { background: #ff7d45; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--text-2); background: var(--panel); }

/* ================= hero ================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.eyebrow { color: var(--text-2); display: flex; align-items: center; gap: 2px; }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); margin-left: 6px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.name {
  margin: 20px 0 18px;
  font-size: clamp(2.7rem, 6.6vw, 5.2rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
}
.role {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.015em;
  line-height: 1.3;
}
.role::before { content: "— "; color: var(--accent); }
.lede { margin-top: 22px; max-width: 36em; color: var(--text-2); font-size: 1.02rem; }
.lede strong { color: var(--text); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.stats > div { padding: 16px 16px 0 0; }
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.stats dd { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stats dd::after { content: "+"; color: var(--accent); font-weight: 400; margin-left: 2px; }
.stats > div:last-child dd::after { content: ""; }
@media (max-width: 480px) {
  .stats dd { font-size: 1.6rem; }
  .stats dt { font-size: .64rem; }
  .br-d { display: none; }
}

/* foto */
.hero-visual { position: relative; max-width: 440px; width: 100%; justify-self: end; }
.photo { position: relative; padding: 12px; }
.photo img {
  width: 100%; height: auto; aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(.9) contrast(1.03);
}
.photo figcaption {
  display: flex; justify-content: space-between;
  margin-top: 10px; color: var(--muted); font-size: .7rem; letter-spacing: .04em;
}
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--accent); border-style: solid; border-width: 0; }
.corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 26px; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 26px; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* etiqueta / impressora */
.printer {
  position: relative;
  width: 86%;
  margin: -64px 0 0 auto;
  margin-right: -6%;
  z-index: 2;
}
.slot {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 26px; padding: 0 12px;
  background: #1e2422;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
}
.slot .mono { font-size: .62rem; color: var(--muted); letter-spacing: .08em; }
.slot i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.label {
  position: relative; z-index: 1;
  margin: -6px 12px 0;
  padding: 20px 18px 28px;
  background: var(--label);
  color: #121212;
  box-shadow: 0 24px 40px -16px rgba(0,0,0,.7);
  animation: print 1.8s cubic-bezier(.3,.7,.2,1) .4s both;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
@keyframes print {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-40px); }
  to   { clip-path: inset(0 0 0 0); transform: translateY(0); }
}
.label-head {
  display: flex; justify-content: space-between;
  font: 600 .66rem/1 var(--mono);
  padding-bottom: 9px; margin-bottom: 12px;
  border-bottom: 2px solid #121212;
}
.label-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.label-grid dt { font: 500 .58rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #6b6b6b; margin-bottom: 3px; }
.label-grid dd { font: 600 .85rem/1.2 var(--sans); }
.status { display: flex; align-items: center; gap: 6px; }
.status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #1f8a4c; animation: blink 2.4s infinite; }
.barcode { width: 100%; height: 46px; margin-top: 16px; }
.barcode rect { fill: #121212; }
.barcode-text { text-align: center; margin-top: 5px; font: 500 .62rem/1 var(--mono); letter-spacing: .3em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; max-width: 400px; }
  .printer { margin-right: 0; width: 92%; }
  .photo figcaption { display: none; }
  .corner.bl, .corner.br { bottom: 0; }
}

/* ================= áreas ================= */
.areas {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.area {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.area + .area { border-left: 0; }
.area:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.area:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.area-n { position: absolute; top: 22px; right: 22px; color: var(--muted); }
.area-ic { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.area h3 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 8px; }
.area h3 em { font-style: normal; font-size: .66rem; color: var(--accent); border: 1px solid var(--accent-dim); background: var(--accent-dim); padding: 2px 6px; border-radius: 4px; vertical-align: 3px; margin-left: 6px; white-space: nowrap; }
.area p { color: var(--text-2); font-size: .94rem; }
@media (max-width: 860px) {
  .areas { grid-template-columns: 1fr; }
  .area + .area { border-left: 1px solid var(--line); border-top: 0; }
  .area:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .area:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ================= seções ================= */
.section { padding-top: clamp(80px, 11vw, 140px); }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "tag tag" "title note";
  align-items: end;
  gap: 12px 40px;
  margin-bottom: 40px;
}
.sec-tag { grid-area: tag; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sec-head h2 { grid-area: title; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.sec-note { grid-area: note; color: var(--text-2); max-width: 32em; justify-self: end; font-size: .98rem; }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; grid-template-areas: "tag" "title" "note"; }
  .sec-note { justify-self: start; }
}

/* ================= roadmap ================= */
.pipeline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 22px 24px 28px;
}
.pipe-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.pipe-meta b { color: var(--text); font-weight: 500; }
.pipe-bar { height: 3px; background: var(--line); border-radius: 3px; margin: 14px 0 30px; overflow: hidden; }
.pipe-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.2s ease .3s; }

.stages {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}
/* linha conectando os nós */
.stages::before {
  content: "";
  position: absolute; top: 23px; left: 24px; right: 24px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
  background-size: 24px 1px;
  animation: flow 1.2s linear infinite;
}
@keyframes flow { to { background-position: 24px 0; } }
.stage {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0 4px;
}
.stage-node {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  margin-bottom: 20px;
  transition: border-color .3s, box-shadow .3s;
}
.stage-node svg { width: 22px; height: 22px; fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stage:hover .stage-node { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.stage:hover .stage-node svg { stroke: var(--accent); }
.stage-step { color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.stage h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.stage-kind { color: var(--accent); margin-top: 2px; }
.stage-desc { color: var(--text-2); font-size: .92rem; margin-top: 12px; }
.pill {
  align-self: flex-start;
  margin-top: 16px;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2);
}
.pill::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--muted); }
.stage[data-status="todo"] .pill::after { content: "meta 2026"; }
.stage[data-status="doing"] .pill { border-color: var(--accent); color: var(--accent); }
.stage[data-status="doing"] .pill::before { background: var(--accent); animation: blink 1.6s infinite; }
.stage[data-status="doing"] .pill::after { content: "estudando"; }
.stage[data-status="doing"] .stage-node { border-color: var(--accent); }
.stage[data-status="done"] .pill { border-color: rgba(61,220,151,.4); color: var(--ok); }
.stage[data-status="done"] .pill::before { background: var(--ok); }
.stage[data-status="done"] .pill::after { content: "concluída"; }
.stage[data-status="done"] .stage-node { border-color: var(--ok); }
.stage[data-status="done"] .stage-node svg { stroke: var(--ok); }

@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .stages::before { display: none; }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; row-gap: 0; }
  .stage { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; padding: 0 0 28px; }
  .stage > :not(.stage-node) { grid-column: 2; }
  .pill { justify-self: start; }
  .stage-node { grid-row: 1 / span 6; margin: 0; }
  .stage:not(:last-child)::before {
    content: ""; position: absolute; left: 23px; top: 50px; bottom: 4px; width: 1px;
    background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 12px);
  }
}

/* ================= repos ================= */
.repos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.repo {
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.repo:hover { border-color: var(--line-2); transform: translateY(-2px); }
.repo-wide { grid-column: span 2; }
.repo-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: .74rem;
}
.repo-head .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-head b { color: var(--text); font-weight: 500; }
.lang { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lang i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.repo-body { padding: 20px 20px 4px; flex: 1; display: flex; flex-direction: column; }
.repo h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.repo-wide h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.repo p { color: var(--text-2); font-size: .93rem; }
.badge-live, .live-inline {
  font-family: var(--mono);
  font-size: .66rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ok);
}
.badge-live { align-self: flex-start; margin-bottom: 10px; }
.badge-live::before, .live-inline::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); margin-right: 6px; vertical-align: 1px;
  box-shadow: 0 0 0 3px rgba(61,220,151,.15);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li {
  font-size: .72rem; padding: 3px 8px;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.repo .tags { margin-top: auto; padding-top: 16px; }
.repo-links { display: flex; gap: 18px; padding: 14px 20px 18px; }
.repo-links a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.repo-links a:hover { color: var(--accent); border-color: var(--accent); }

.sec-layers { margin-top: 16px; display: grid; gap: 6px; }
.sec-layers li {
  display: block;
  font-size: .76rem; color: var(--text-2);
  padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
}
.sec-layers span { color: var(--accent); margin-right: 8px; }

.lineart { margin: 22px 0 6px; padding: 18px 14px 12px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--label); }
.lineart svg { width: 100%; height: auto; }
.lineart path {
  fill: none; stroke: #121212; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.6s ease;
}
.lineart .sole { stroke-width: 3; }
.repo-tall.in .lineart path { stroke-dashoffset: 0; }
.lineart span { display: block; margin-top: 10px; color: #555; font-size: .66rem; text-align: center; }

@media (max-width: 980px) {
  .repos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .repos { grid-template-columns: 1fr; }
  .repo-wide { grid-column: auto; }
}

/* ================= arquivo ================= */
.archive { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.archive summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px;
}
.archive summary::-webkit-details-marker { display: none; }
.archive summary > span:nth-child(2) { color: var(--text-2); }
.plus { margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .25s; }
.archive[open] .plus { transform: rotate(45deg); }
.archive table { width: 100%; border-collapse: collapse; }
.archive td { padding: 11px 22px 11px 0; border-top: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.archive td:first-child { padding-left: 22px; color: var(--muted); width: 70px; }
.archive td:last-child { color: var(--muted); text-align: right; }
.archive td:nth-child(3) { color: var(--text-2); }
.archive td a { text-decoration: none; font-weight: 500; }
.archive td a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .archive tr { display: grid; grid-template-columns: 56px 1fr; border-top: 1px solid var(--line); padding: 10px 16px; }
  .archive td, .archive td:first-child { border: 0; padding: 1px 0; width: auto; }
  .archive td:nth-child(3) { grid-column: 2; }
  .archive td:last-child { display: none; }
  .archive summary { padding: 16px; }
}

/* ================= formação ================= */
.edu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
.degree {
  position: sticky; top: 90px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.degree-tag { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.degree h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 14px 0 12px; }
.degree p.mono:last-child { color: var(--text-2); }
.courses { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.courses li {
  display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px;
  padding: 13px 20px;
  font-size: .95rem;
}
.courses li + li { border-top: 1px solid var(--line); }
.courses li > .mono { color: var(--muted); padding-top: .15em; }
.courses small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
@media (max-width: 860px) {
  .edu-grid { grid-template-columns: 1fr; }
  .degree { position: static; }
}

/* ================= stack ================= */
.stack-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line);
  gap: 1px;
}
.stack-grid > div { background: var(--bg-2); padding: 22px; }
.stack-grid h4 { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 500; }
.stack-grid .tags { margin-top: 12px; }
.foot-note { color: var(--muted); margin-top: 12px; font-size: .72rem; }
@media (max-width: 860px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack-grid { grid-template-columns: 1fr; } }

/* ================= contato ================= */
.contact {
  margin-top: clamp(90px, 12vw, 160px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(255,106,43,.10), transparent 70%),
    var(--bg-2);
}
.contact-inner { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin-top: 16px; }
.contact-sub { color: var(--text-2); margin-top: 16px; max-width: 34em; }
.mail {
  display: inline-block;
  margin-top: 36px;
  font-size: clamp(1.4rem, 4.6vw, 3rem);
  font-weight: 500; letter-spacing: -.03em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
  transition: color .15s;
}
.mail:hover { color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 22px; padding-bottom: 22px;
  color: var(--muted);
}
.foot a { color: inherit; }
.foot a:hover { color: var(--text); }

/* ================= spotlight do hero ================= */
.hero { position: relative; }
.spot {
  position: absolute; inset: 0 calc(-1 * var(--gutter));
  z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,106,43,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,43,.55) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: var(--gx, 0) var(--gy, 0);
  opacity: 0;
  transition: opacity .4s ease;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
          mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
}
.hero:hover .spot { opacity: .35; }
@media (hover: none) { .spot { display: none; } }

/* ================= cases (clientes) ================= */
.cases { display: grid; gap: 28px; }
.case {
  position: sticky;
  top: calc(80px + var(--i) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: min(620px, calc(100vh - 140px));
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.8);
}
.case-shot {
  position: relative;
  display: flex; align-items: center;
  padding: clamp(18px, 3vw, 36px);
  background:
    radial-gradient(ellipse 80% 70% at 30% 20%, rgba(255,106,43,.14), transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.018) 14px 15px),
    var(--panel);
  border-right: 1px solid var(--line);
}
.browser {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.75);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.case:hover .browser { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-4px); }
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  background: #1b201e; color: var(--text-2);
  font-size: .72rem;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap; overflow: hidden;
}
.browser-bar::before {
  content: ""; flex: none; width: 34px; height: 8px; margin-right: 8px;
  background:
    radial-gradient(circle at 4px 4px, #3a4440 3.5px, transparent 4px),
    radial-gradient(circle at 17px 4px, #3a4440 3.5px, transparent 4px),
    radial-gradient(circle at 30px 4px, #3a4440 3.5px, transparent 4px);
}
.lock {
  flex: none; width: 9px; height: 7px; border-radius: 1.5px; background: var(--muted);
  position: relative; margin-top: 4px;
}
.lock::before {
  content: ""; position: absolute; left: 1.5px; bottom: 5px; width: 6px; height: 5px;
  border: 1.5px solid var(--muted); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box;
}
.browser img { width: 100%; height: auto; display: block; }

.case-info { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 36px); }
.case-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.case-status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 7px; vertical-align: 0;
}
.case[data-status="online"] .case-status { color: var(--ok); }
.case[data-status="online"] .case-status::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(61,220,151,.15); animation: blink 2.4s infinite; }
.case[data-status="online"] .case-status::after { content: "no ar"; }
.case[data-status="ready"] .case-status { color: #f2b544; }
.case[data-status="ready"] .case-status::before { background: #f2b544; }
.case[data-status="ready"] .case-status::after { content: "pronto · em publicação"; }
.case h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 600; letter-spacing: -.04em; line-height: 1;
  margin-top: 22px;
}
.case-kind { color: var(--accent); margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stamp {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 3px;
  padding: 3px 7px 2px;
  transform: rotate(-3deg);
}
.case-desc { color: var(--text-2); margin-top: 16px; font-size: .97rem; }
.case-list { margin-top: 16px; display: grid; gap: 7px; }
.case-list li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--text-2); }
.case-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 1px; background: var(--accent); }
.case .tags { margin-top: 18px; }
.case-cta { margin-top: auto; padding-top: 22px; }

@media (max-width: 980px) {
  .case { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; }
  .case-shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .browser { transform: none; }
}

/* ================= experiência (com logos) ================= */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .2s;
}
.job:hover { border-color: var(--line-2); }
.plate {
  position: relative;
  display: grid; place-items: center;
  height: 130px;
  background: var(--label);
  border-bottom: 1px solid var(--line);
}
/* furo de etiqueta */
.plate::after {
  content: ""; position: absolute; top: 12px; right: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.plate img { max-height: 56px; width: auto; max-width: 62%; object-fit: contain; }
.plate-text { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #1b1b1b; text-align: center; line-height: 1; }
.plate-dark { background: #121413; }
.plate-dark::after { background: var(--bg); }
.plate-text span { display: block; font: 600 2rem/1 var(--sans); letter-spacing: -.04em; }
.plate-text small { display: block; margin-top: 6px; font: 500 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .35em; color: #666; }
.job-body { padding: 22px 24px 26px; }
.job-when { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.current .job-when { color: var(--ok); }
.current .job-when::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; animation: blink 2.4s infinite; }
.job h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin-top: 8px; }
.job-org { color: var(--accent); margin: 4px 0 14px; }
.job-body ul { display: grid; gap: 4px; }
.job-body li { position: relative; padding-left: 18px; color: var(--text-2); font-size: .93rem; }
.job-body li::before { content: "›"; position: absolute; left: 2px; color: var(--muted); }
.job.current { grid-column: 1 / -1; flex-direction: row; }
.job.current .plate img { max-height: 120px; max-width: 80%; }
.job.current .plate { width: 300px; height: auto; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
.job.current .job-body { padding: 28px 30px; }
.job.current h3 { font-size: 1.6rem; }
@media (max-width: 980px) { .jobs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .jobs { grid-template-columns: 1fr; }
  .job.current { grid-column: auto; flex-direction: column; }
  .job.current .plate { width: auto; height: 130px; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ================= reveal ================= */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

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