:root {
  color-scheme: only light;
  --stone: #e8ecf0;
  --concrete: #d3dae2;
  --granite: #1e2b3b;
  --granite-2: #273749;
  --slate: #556679;
  --signal: #14abe6;
  --signal-ink: #0a6f9a;
  --white: #fbfcfd;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --display: "Archivo", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--granite);
  font: 400 17px/1.6 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: var(--display); font-stretch: 125%; letter-spacing: -0.015em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--granite); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: rgba(232, 236, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--concrete); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a:not(.btn) { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav nav a:not(.btn):hover, .nav nav a[aria-current] { color: var(--granite); }

/* Buttons: a chiselled corner */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  background: var(--granite);
  color: #fff;
  font: 600 1rem/1.2 "IBM Plex Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background-color 0.15s;
}
.btn:hover { background: var(--signal-ink); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }
.nav .btn { color: #fff; }
.nav .short { display: none; }
.btn-line { background: transparent; color: var(--granite); box-shadow: inset 0 0 0 2px var(--granite); clip-path: none; }
.btn-line:hover { background: var(--granite); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--concrete); }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--pad) clamp(56px, 8vw, 112px);
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  margin: 0 0 28px;
  max-width: 12ch;
}
.lead { color: var(--slate); font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 50ch; margin: 0; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.where { margin: 28px 0 0; color: var(--slate); font-size: 0.95rem; padding-left: 22px; position: relative; }
.where::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; background: var(--signal); }
.hero-art { justify-self: center; width: 100%; max-width: 500px; }
.hero-art img { display: block; width: 100%; height: auto; }

/* The one orchestrated moment: circuit traces draw out of the golem on load */
.traces { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.trace-lines path { fill: none; stroke: var(--concrete); stroke-width: 2; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s cubic-bezier(.6,0,.2,1) forwards; }
.trace-lines path:nth-child(2) { animation-delay: 0.15s; }
.trace-lines path:nth-child(3) { animation-delay: 0.3s; }
.trace-lines path:nth-child(4) { animation-delay: 0.45s; }
.trace-nodes rect { fill: var(--signal); opacity: 0; animation: node 0.3s ease-out forwards; }
.trace-nodes rect:nth-child(1) { animation-delay: 1.5s; }
.trace-nodes rect:nth-child(2) { animation-delay: 1.65s; }
.trace-nodes rect:nth-child(3) { animation-delay: 1.8s; }
.hero-art img { animation: settle 1.2s ease-out both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes node { to { opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: translateX(24px); } }

/* Sections */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pad); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; margin: 0; line-height: 1.02; }
.intro { color: var(--slate); max-width: 56ch; margin: 0; font-size: 1.08rem; }

/* Services: every area visible, heading pinned while its list scrolls past */
.svc-panel { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px 56px; padding: 40px 0; border-top: 2px solid var(--granite); }
.svc-panel:last-child { padding-bottom: 0; }
.svc-panel h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 800; line-height: 1.1; margin: 0; align-self: start; position: sticky; top: 96px; }
.svc-panel h3::before { content: ""; display: block; width: 12px; height: 12px; background: var(--signal); margin-bottom: 14px; }
.svc-panel dl > div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.svc-panel dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.svc-panel dl > div { padding: 20px 0; border-top: 1px solid var(--concrete); }
.svc-panel dt { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.svc-panel dd { margin: 0; color: var(--slate); font-size: 0.97rem; line-height: 1.55; }

/* Process */
.process { border-top: 1px solid var(--concrete); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--concrete); }
.steps li { counter-increment: s; position: relative; }
.steps li::before {
  content: counter(s); position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 24px;
  background: var(--granite); color: #fff;
  font: 800 1.2rem/1 var(--display); font-stretch: 125%;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.steps h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--slate); }

/* Contact */
.contact-wrap { background: var(--granite); color: #dfe6ee; }
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; }
.contact h2 { color: #fff; }
.contact .intro { color: #a7b5c4; margin-top: 18px; }
form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.opt { color: #8a9bb0; font-weight: 400; }
input, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #3b4f66; border-radius: 0;
  background: var(--granite-2); color: #fff; font: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact .btn { justify-self: start; background: var(--signal); color: var(--granite); }
.contact .btn:hover { background: #fff; }
#form-status { margin: 0; min-height: 1.6em; color: #a7b5c4; }
#form-status.ok { color: #7ee2b0; }
#form-status.err { color: #ffa8a8; }

/* Footer */
.footer { background: var(--granite); color: #8a9bb0; font-size: 0.9rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 36px; border-top: 1px solid #34475d; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-reg { flex-basis: 100%; margin: 0; font-size: 0.82rem; color: #6f8399; }

/* About page */
.page-head { border-bottom: 1px solid var(--concrete); }
.page-head .block { padding-bottom: clamp(48px, 6vw, 80px); }
.page-head h1 { max-width: 16ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 0 0 12px; }
.prose section + section { margin-top: 48px; }
.prose p { margin: 0 0 14px; color: var(--slate); }
.about-body .cta { margin-top: 56px; }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero-inner, .contact, .svc-panel { grid-template-columns: 1fr; }
  .svc-panel h3 { position: static; }
  .svc-panel dl > div:nth-child(2) { border-top: 1px solid var(--concrete); padding-top: 20px; }
  .hero-art { max-width: 300px; order: -1; justify-self: start; }
  .svc-panel dl { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps li { padding-left: 76px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav a:not(.btn):not(.keep) { display: none; }
  .nav nav { gap: 14px; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .nav .btn-small { padding: 8px 14px; white-space: nowrap; font-size: 0.88rem; }
  .brand { font-size: 0.95rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .row { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; }
  .traces { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .trace-lines path { stroke-dashoffset: 0; }
  .trace-nodes rect { opacity: 1; }
}
