:root {
  color-scheme: dark;
  --ink: #f2eadf;
  --muted: #aba79f;
  --surface: #0b1014;
  --panel: #11191e;
  --line: #364149;
  --orange: #ff5a36;
  --orange-dark: #c7351b;
  --cyan: #59d8e6;
  --measure: 74rem;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--surface);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.55;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 48%;
  left: 50%;
  width: clamp(58rem, 112vw, 104rem);
  aspect-ratio: 1;
  background: url("/assets/detcordon-watermark.svg") center / contain no-repeat;
  filter: saturate(0.48) brightness(0.68) contrast(1.08);
  opacity: 0.115;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg);
}

body > main,
body > .site-footer {
  position: relative;
  z-index: 1;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 0.8rem;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 max(1rem, calc((100vw - var(--measure)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgb(11 16 20 / 94%);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font:
    700 0.82rem/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.site-header nav a {
  color: var(--muted);
  font:
    600 0.72rem/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header nav a:hover {
  color: var(--cyan);
}
.section-shell {
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
}
.ruled {
  border-top: 1px solid var(--line);
}
.eyebrow,
.trust-note,
.node-index,
.process-grid > li > span,
.site-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
}
h1,
h2,
h3,
p {
  max-width: 65ch;
}
h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.035em;
}
h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.9rem, 8vw, 7rem);
  line-height: 0.95;
  max-width: 12ch;
}
h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  max-width: 15ch;
}
h3 {
  font-size: 1.25rem;
}
p {
  color: var(--muted);
}
.lede {
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}
.hero {
  min-height: calc(100svh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font:
    700 0.75rem/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.button-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #090b0c;
}
.button-primary:hover {
  border-color: #ff866c;
  background: #ff866c;
  color: #090b0c;
}
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.trust-note {
  margin-top: 1.5rem;
  font-size: 0.68rem;
}
.system-card {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.node {
  padding: 2rem;
  display: grid;
  gap: 0.5rem;
}
.node-index {
  color: var(--orange);
  font-size: 0.7rem;
}
.node strong {
  font-size: 1.25rem;
}
.node small {
  color: var(--muted);
}
.flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
  color: var(--cyan);
}
.flow span {
  padding: 0.75rem 1rem;
  font:
    0.68rem/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.flow span + span {
  border-left: 1px solid var(--line);
}
.system-card figcaption {
  padding: 1rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font:
    0.68rem/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  text-transform: uppercase;
}
.process-grid {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.process-grid li {
  padding: 1.5rem;
}
.process-grid li + li {
  border-left: 1px solid var(--line);
}
.process-grid > li > span {
  color: var(--cyan);
  font-size: 0.7rem;
}
.process-grid h3 {
  margin: 2rem 0 0.5rem;
}
.process-grid p {
  margin: 0;
  font-size: 0.92rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
}
.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.boundary-grid article {
  padding: 1.5rem;
}
.boundary-grid article + article {
  border-left: 1px solid var(--line);
}
.boundary-grid h3 {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}
.boundary-grid ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.boundary-grid li + li {
  margin-top: 0.55rem;
}
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.link-list li {
  border-bottom: 1px solid var(--line);
}
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--ink);
  text-decoration: none;
}
.link-list a:hover {
  color: var(--cyan);
}
.pilot-form {
  display: grid;
  gap: 0.65rem;
}
.pilot-form > label:not(.consent) {
  margin-top: 0.65rem;
  font:
    0.72rem/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pilot-form input,
.pilot-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
}
.pilot-form textarea {
  resize: vertical;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.privacy-note,
.form-fallback,
.form-status {
  font-size: 0.82rem;
}
.form-status {
  min-height: 1.3em;
  color: var(--cyan);
}
.form-status[data-error="true"] {
  color: #ff866c;
}
.site-footer {
  min-height: 6rem;
  width: min(calc(100% - 2rem), var(--measure));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
}

@media (max-width: 820px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid li:nth-child(3) {
    border-left: 0;
  }
  .process-grid li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body::before {
    top: 42%;
    width: 178vw;
    opacity: 0.1;
  }

  .site-header nav {
    display: none;
  }
  .section-shell {
    width: min(calc(100% - 1.5rem), var(--measure));
  }
  .process-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }
  .process-grid li + li,
  .boundary-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active), print {
  body::before {
    display: none;
  }
}
