:root { --ink: #141414; --paper: #efe8d8; --lime: #d6ff3f; --orange: #ff4d00; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif; line-height: 1.45;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Archivo Black", Impact, sans-serif; letter-spacing: -0.04em; line-height: 0.92; margin: 0; font-weight: 400; }
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; margin-bottom: 0.8rem; }
p { margin: 0.4rem 0; }
.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--ink); color: var(--lime); padding: 0.45rem 0.7rem; z-index: 6; }
.skip:focus { top: 0.5rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.marquee { border-bottom: 3px solid #111; overflow: hidden; background: var(--ink); color: var(--lime); }
.marquee div { display: flex; gap: 2rem; width: max-content; padding: 0.45rem 0; animation: tick 18s linear infinite; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.marquee span { padding-right: 2rem; }
.bar, main, footer { width: min(1100px, calc(100% - 1.25rem)); margin-inline: auto; }
.bar { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; padding: 0.9rem 0; }
.logo { font-family: "Archivo Black", Impact, sans-serif; text-decoration: none; line-height: 0.85; font-size: 1.3rem; text-transform: uppercase; }
.bar nav { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.bar nav a, .stamp {
  text-decoration: none; border: 3px solid #111; padding: 0.35rem 0.55rem; min-height: 44px;
  display: inline-flex; align-items: center; background: white; box-shadow: 4px 4px 0 #111;
}
.stamp { margin-left: auto; background: var(--lime); font-weight: 700; }
.bar nav a:hover, .stamp:hover, .btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }

.hero, #especialidades, #projetos { display: grid; gap: 1rem; }
.hero { padding-bottom: 1rem; }
.pill { display: inline-block; background: var(--orange); color: white; font-weight: 700; padding: 0.25rem 0.5rem; border: 3px solid #111; }
.lead { font-size: 1.15rem; max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }
.btn {
  background: #111; color: var(--lime); text-decoration: none; border: 3px solid #111;
  min-height: 48px; padding: 0.7rem 0.9rem; display: inline-flex; align-items: center;
  box-shadow: 6px 6px 0 var(--orange); font: inherit; font-weight: 700; cursor: pointer;
}
.btn.alt { background: white; color: #111; box-shadow: 6px 6px 0 #111; }
.certs { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.certs li { background: white; border: 3px solid #111; padding: 0.35rem 0.5rem; font-weight: 700; transform: rotate(-2deg); }
.certs li:nth-child(2) { transform: rotate(2deg); background: var(--lime); }
.card {
  background: white; border: 3px solid #111; box-shadow: 8px 8px 0 #111; padding: 0.8rem;
}
.tilt { transform: rotate(-1.2deg); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center 24%; border: 3px solid #111; }
.tech { display: flex; gap: 0.4rem; list-style: none; padding: 0; }
.tech img { width: 40px; height: 40px; border: 3px solid #111; background: white; padding: 4px; }
.lime { background: var(--lime); }
.ink { background: #141414; color: #f6f3ea; box-shadow: 8px 8px 0 var(--orange); }
.ink img { filter: contrast(1.05); }
#especialidades, #projetos, #simulador, .contact { margin: 1rem auto; }
.flag { display: inline-block; background: #111; color: var(--lime); padding: 0.15rem 0.4rem; font-weight: 700; }
.orange { background: #ffe1d4; }
.sim-label, .stats { display: flex; justify-content: space-between; gap: 0.6rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stats p { border: 3px solid #111; padding: 0.45rem; margin: 0; display: grid; }
.stats span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
output, [data-cost] { font-family: "Archivo Black", Impact, sans-serif; font-size: 1.4rem; }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--orange); }
[data-status][data-level="warn"] { color: #8a5a00; }
[data-status][data-level="hot"] { color: var(--orange); }
.sim-nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.6rem; }
.sim-node { border: 3px solid #111; padding: 0.4rem; background: var(--paper); }
.sim-node.is-dim { opacity: 0.35; }
.sim-node-title { font-size: 0.72rem; font-weight: 700; }
.sim-pods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; margin-top: 0.3rem; }
.sim-pod { aspect-ratio: 1; background: #ddd4c2; border: 2px solid #111; }
.sim-pod.is-on { background: var(--orange); }
.fine { font-size: 0.85rem; }
.field { display: grid; gap: 0.25rem; margin-bottom: 0.7rem; }
label { font-weight: 700; }
input, select {
  font: inherit; min-height: 48px; border: 3px solid #111; background: white; padding: 0.45rem 0.55rem; width: 100%;
}
.split { display: grid; gap: 0.6rem; }
.form-note { font-weight: 700; min-height: 1.3em; }
footer { padding: 0.5rem 0 2rem; }
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pager a { text-decoration: none; font-weight: 700; }
.pager ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.pager ol a { border: 3px solid #111; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: white; }
.pager [aria-current="page"] { background: var(--lime); }

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .tilt.is-in { transform: rotate(-1.2deg); }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  #especialidades, #projetos { grid-template-columns: 1fr 1fr; }
  #especialidades h2, #projetos h2 { grid-column: 1 / -1; }
  #especialidades article:first-of-type { grid-column: 1 / -1; }
  .sim-nodes, .split { grid-template-columns: 1fr 1fr; }
  .sim-nodes { grid-template-columns: repeat(4, 1fr); }
  .contact { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 1rem; align-items: start; }
}
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
