﻿@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #080808;
  --bg-light: #F2F2F2;
  --red: #FF2A2A;
  --red-ink: #B81414;
  --text-dark: #F2F2F2;
  --muted-dark: #A8A8A8;
  --text-light: #080808;
  --muted-light: #4A4A4A;
  --sans: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --hud-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hud-height); }
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img, canvas { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { background: var(--red); color: var(--bg-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.section-light :focus-visible, .process-band :focus-visible { outline-color: var(--red-ink); }

.wrap { width: min(100% - 48px, 1180px); margin-inline: auto; }
.section { position: relative; z-index: 1; }
.section-dark {
  --ink: var(--text-dark);
  --muted: var(--muted-dark);
  --accent: var(--red);
  --line: rgba(242, 242, 242, 0.22);
  color: var(--ink);
  background: transparent;
}
.section-light {
  --ink: var(--text-light);
  --muted: var(--muted-light);
  --accent: var(--red-ink);
  --line: rgba(8, 8, 8, 0.22);
  color: var(--ink);
  background: var(--bg-light);
}
.red-text { color: var(--red); }
.section-light .red-text { color: var(--red-ink); }
.muted { color: var(--muted); }

#dotfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  background: var(--bg-dark);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: var(--red);
  color: var(--bg-dark);
  font: 700 13px/1 var(--mono);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.hud-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--hud-height);
  background: rgba(8, 8, 8, 0.97);
  border-bottom: 1px solid #363636;
}
.hud-inner {
  width: min(100% - 48px, 1180px);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--text-dark);
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.brand-mark { width: 8px; height: 8px; margin-right: 10px; background: var(--red); flex: none; }
.brand .slash { color: var(--red); }
.top-nav { justify-self: center; display: flex; align-items: center; gap: 28px; }
.top-nav a {
  color: var(--muted-dark);
  font: 400 13px/1 var(--mono);
  text-decoration: none;
  white-space: nowrap;
}
.top-nav a .idx { color: var(--red); margin-right: 6px; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--text-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font: 700 13px/1.2 var(--mono);
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--bg-dark); }
.btn-primary:hover { background: #ff4b4b; }
.btn-outline { background: transparent; color: var(--text-dark); border-color: var(--text-dark); }
.btn-outline:hover { background: rgba(242, 242, 242, 0.1); }
.hud-cta { padding-inline: 16px; }

.stage-rail {
  display: none;
  position: fixed;
  z-index: 20;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 13px;
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.04em;
}
.stage-rail a {
  padding-left: 11px;
  border-left: 1px solid #454545;
  color: var(--muted-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms linear, border-color 120ms linear;
}
.stage-rail a span { color: inherit; }
.stage-rail a:hover { color: var(--text-dark); }
.stage-rail a.is-active { color: var(--red); border-left-color: var(--red); }
.rail-title { color: var(--muted-dark); font-weight: 700; }
.rail-line { width: 1px; height: 54px; margin-left: 0; background: #454545; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font: 700 13px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; flex: none; background: currentColor; }

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--hud-height));
  padding: calc(var(--hud-height) + 36px) 0 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  flex: 1;
}
.hero-copy h1 {
  margin-top: 20px;
  font-size: clamp(38px, 4.15vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 15ch;
}
.hero-copy .lede {
  max-width: 50ch;
  margin-top: 22px;
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.6;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #363636;
  color: var(--muted-dark);
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.04em;
  list-style: none;
}
.hero-meta span { color: var(--red); margin-right: 5px; }

.viewport {
  position: relative;
  min-width: 0;
  border: 1px solid var(--red);
  background: var(--bg-dark);
}
.viewport .bracket {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 0 solid var(--red);
  pointer-events: none;
}
.viewport .bracket.tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.viewport .bracket.tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.viewport .bracket.bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.viewport .bracket.br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.viewport-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 10px 16px;
  border-bottom: 1px solid #363636;
  font: 400 13px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}
.viewport-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #363636;
  font: 400 13px/1.3 var(--mono);
  letter-spacing: 0.02em;
  color: var(--muted-dark);
}
.viewport-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dark); }
.live-dot { width: 7px; height: 7px; background: var(--red); animation: live-pulse 1.8s steps(2, end) infinite; }
@keyframes live-pulse { 50% { opacity: 0.25; } }
.canvas-well { position: relative; height: clamp(280px, 31vw, 400px); overflow: hidden; }
#dither3d { display: block; width: 100%; height: 100%; background: var(--bg-dark); image-rendering: pixelated; }
.sys-label { color: var(--red); font-weight: 700; white-space: nowrap; }
.lock { color: var(--text-dark); white-space: nowrap; }
.polarity {
  padding: 7px 9px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: transparent;
  color: var(--text-dark);
  font: 700 13px/1 var(--mono);
  white-space: nowrap;
  cursor: pointer;
}
.polarity:hover { background: rgba(255, 42, 42, 0.14); }
.viewport.polarity-inverted { border-color: var(--red-ink); background: var(--bg-light); }
.viewport.polarity-inverted #dither3d { background: var(--bg-light); }
.viewport.polarity-inverted .viewport-head, .viewport.polarity-inverted .viewport-status { color: var(--muted-light); border-color: rgba(8, 8, 8, 0.25); }
.viewport.polarity-inverted .viewport-head .live, .viewport.polarity-inverted .lock { color: var(--text-light); }
.viewport.polarity-inverted .sys-label { color: var(--red-ink); }
.viewport.polarity-inverted .polarity { color: var(--text-light); border-color: var(--red-ink); }
.viewport.polarity-inverted .polarity:hover { background: rgba(184, 20, 20, 0.1); }
.render-card, .render-strip {
  min-width: 0;
  margin-bottom: 18px;
  border: 1px solid #A8A8A8;
  background: var(--bg-light);
}
.render-card-dark, .render-strip { border-color: #363636; background: var(--bg-dark); }
.render-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(8, 8, 8, 0.20);
  color: var(--muted-light);
  font: 400 13px/1.2 var(--mono);
  letter-spacing: 0.03em;
}
.render-head span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.render-head-dark { border-color: #363636; color: var(--muted-dark); }
.render-well { position: relative; height: 150px; overflow: hidden; background: var(--bg-light); }
.render-well canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.render-card-dark .render-well, .render-well-wide { background: var(--bg-dark); }
.render-well-wide { height: 120px; }
.flow-arrow { color: var(--red); font-weight: 700; }

.hero-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  color: var(--muted-dark);
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.06em;
}
.hero-foot .foot-line { height: 1px; flex: 1; background: #363636; }

.services {
  padding: 100px 0 108px;
  background-color: var(--bg-light);
  background-image:
    linear-gradient(to right, rgba(8, 8, 8, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.055) 1px, transparent 1px);
  background-size: 60px 60px;
}
.section-head { max-width: 820px; }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(34px, 3.65vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.section-intro { max-width: 64ch; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid rgba(8, 8, 8, 0.3);
  border-bottom: 1px solid rgba(8, 8, 8, 0.3);
}
.service-cell { min-width: 0; padding: 28px 26px 26px; border-right: 1px solid rgba(8, 8, 8, 0.22); }
.service-cell:first-child { border-left: 1px solid rgba(8, 8, 8, 0.22); }
.cell-index { color: var(--red-ink); font: 700 13px/1.4 var(--mono); letter-spacing: 0.07em; }
.service-cell h3 { margin-top: 44px; font-size: 23px; font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
.service-cell > p:not(.cell-index):not(.cell-note) { margin-top: 16px; color: var(--muted-light); font-size: 16px; line-height: 1.6; }
.cell-note {
  display: flex;
  gap: 9px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(8, 8, 8, 0.22);
  color: var(--text-light);
  font: 400 13px/1.5 var(--mono);
  letter-spacing: 0.02em;
}
.cell-note span { width: 8px; height: 8px; flex: none; margin-top: 5px; background: var(--red); }
.cell-link { margin-top: 14px; font: 700 13px/1.5 var(--mono); letter-spacing: 0.03em; }
.cell-link a { color: var(--red-ink); text-decoration: none; border-bottom: 1px solid rgba(184, 20, 20, 0.45); padding-bottom: 2px; }
.cell-link a:hover { border-bottom-color: var(--red-ink); }

.proof { padding: 100px 0 108px; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; border: 1px solid #4A4A4A; }
.compare-cell { min-width: 0; padding: 26px; background: rgba(8, 8, 8, 0.82); }
.compare-cell.before { border-right: 1px solid #4A4A4A; }
.compare-cell.after { background: rgba(255, 42, 42, 0.06); }
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 13px/1 var(--mono); letter-spacing: 0.09em; }
.tag { display: inline-block; padding: 7px 10px; border: 1px solid #6A6A6A; color: var(--text-dark); }
.after .tag { background: var(--red); border-color: var(--red); color: var(--bg-dark); }
.compare-id { color: var(--muted-dark); font-weight: 400; }
.compare-cell h3 { margin-top: 30px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
.compare-cell p { margin-top: 14px; color: var(--muted-dark); font-size: 16px; line-height: 1.6; }
.compare-cell .compare-cost { margin-top: 26px; padding-top: 14px; border-top: 1px solid #363636; color: var(--text-dark); font: 400 13px/1.5 var(--mono); letter-spacing: 0.03em; }
.after .compare-cost { color: var(--red); font-weight: 700; }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid #4A4A4A;
  border-bottom: 1px solid #4A4A4A;
}
.cred-cell { min-width: 0; padding: 26px; border-right: 1px solid #4A4A4A; background: rgba(8, 8, 8, 0.82); }
.cred-cell:first-child { border-left: 1px solid #4A4A4A; }
.cred-num { color: var(--red); font: 700 13px/1 var(--mono); letter-spacing: 0.09em; }
.cred-cell h3 { margin-top: 22px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.cred-cell p:not(.cred-num) { margin-top: 12px; color: var(--muted-dark); font-size: 15px; line-height: 1.6; }

.contact { position: relative; z-index: 1; }
.process-band {
  --muted: var(--muted-light);
  --accent: var(--red-ink);
  padding: 88px 0 76px;
  color: var(--text-light);
  background-color: var(--bg-light);
  background-image:
    linear-gradient(to right, rgba(8, 8, 8, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 1px solid rgba(8, 8, 8, 0.3);
  border-bottom: 1px solid rgba(8, 8, 8, 0.3);
  list-style: none;
  padding: 0;
}
.step { min-width: 0; padding: 26px; border-right: 1px solid rgba(8, 8, 8, 0.22); }
.step:first-child { border-left: 1px solid rgba(8, 8, 8, 0.22); }
.step-title { display: flex; gap: 12px; color: var(--text-light); font: 700 15px/1.35 var(--mono); letter-spacing: 0.01em; }
.step-title span { color: var(--red-ink); }
.step p:not(.step-title) { margin-top: 14px; color: var(--muted-light); font-size: 16px; line-height: 1.6; }
.contact-band { padding: 90px 0 96px; background: transparent; color: var(--text-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: start; gap: 64px; }
.contact-copy h2 { margin-top: 18px; font-size: clamp(34px, 3.65vw, 50px); font-weight: 700; line-height: 1.08; letter-spacing: -0.04em; }
.contact-facts { margin-top: 38px; padding-top: 18px; border-top: 1px solid #363636; }
.contact-facts p { color: var(--text-dark); font: 400 13px/2 var(--mono); }
.contact-facts span { display: inline-block; width: 66px; color: var(--red); font-weight: 700; }
.contact-form { min-width: 0; padding: 24px; border: 1px solid #6A6A6A; background: rgba(8, 8, 8, 0.86); }
.form-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid #363636; font: 700 13px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--red); }
.form-head span:last-child { color: var(--muted-dark); font-weight: 400; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; color: var(--text-dark); font: 700 13px/1.4 var(--mono); letter-spacing: 0.03em; }
.field label span { color: var(--red); }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #A8A8A8;
  border-radius: 0;
  background: var(--bg-dark);
  color: var(--text-dark);
  font: 400 15px/1.4 var(--sans);
  outline: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.form-submit { width: 100%; margin-top: 4px; }
.form-submit[disabled] { opacity: 0.65; cursor: wait; }
.form-status { min-height: 22px; margin-top: 14px; color: var(--text-dark); font: 400 13px/1.5 var(--mono); }
.form-status.is-error { color: var(--red); }
.form-note { margin-top: 8px; color: var(--muted-dark); font: 400 13px/1.5 var(--mono); }
.form-note a { color: var(--text-dark); text-underline-offset: 3px; }

.site-footer { position: relative; z-index: 1; padding: 24px 0; border-top: 1px solid #363636; color: var(--muted-dark); font: 400 13px/1.5 var(--mono); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--text-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-end { color: var(--red); font-weight: 700; }

@media (min-width: 1180px) {
  .stage-rail { display: flex; }
  .wrap, .hud-inner { width: min(100% - 240px, 1080px); }
}
@media (max-width: 1179px) {
  .wrap, .hud-inner { width: min(100% - 40px, 1100px); }
  .hero-grid { gap: 32px; }
}
@media (max-width: 820px) {
  .top-nav { display: none; }
  .hud-inner { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy h1 { max-width: 22ch; }
  .canvas-well { height: clamp(260px, 55vw, 360px); }
  .service-grid, .cred-grid, .process-grid, .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .service-cell, .cred-cell, .step { border-right: 0; border-bottom: 1px solid rgba(8, 8, 8, 0.22); }
  .section-dark .cred-cell { border-color: #4A4A4A; }
  .service-cell:first-child, .cred-cell:first-child, .step:first-child { border-left: 0; }
  .compare-cell.before { border-right: 0; border-bottom: 1px solid #4A4A4A; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .services, .proof { padding: 80px 0; }
  .process-band { padding: 72px 0 64px; }
  .contact-band { padding: 72px 0; }
}
@media (max-width: 480px) {
  .wrap, .hud-inner { width: calc(100% - 28px); gap: 8px; }
  .brand { letter-spacing: 0; }
  .hud-cta { padding: 10px 12px; }
  .hero { padding-top: calc(var(--hud-height) + 24px); }
  .hero-copy h1 { max-width: none; font-size: 36px; }
  .hero-copy .lede { font-size: 16px; }
  .button-row .btn { width: 100%; }
  .hero-meta { gap: 8px 16px; }
  .viewport-head, .viewport-status { padding-inline: 12px; }
  .viewport-status { display: flex; flex-wrap: wrap; gap: 8px; }
  .polarity { padding: 7px 9px; }
  .canvas-well { height: 260px; }
  .hero-foot { display: none; }
  .section-head h2 { font-size: 34px; }
  .service-cell, .compare-cell, .cred-cell, .step { padding: 22px 18px; }
  .contact-form { padding: 18px; }
  .form-head { flex-direction: column; gap: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

