:root {
  --ivory: #f4f2ec;
  --paper: #fbfaf6;
  --paper-quiet: #f8f6ef;
  --black: #111214;
  --black-soft: #1a1b1d;
  --mineral: #8c8f94;
  --mineral-dark: #6f7378;
  --mineral-light: #a0a3a8;
  --steel: #5f6871;
  --steel-dark: #3f474f;
  --line: rgba(17, 18, 20, 0.16);
  --line-strong: rgba(17, 18, 20, 0.34);
  --line-dark: rgba(244, 242, 236, 0.22);
  --shadow-subtle: 0 1px 2px rgba(17, 18, 20, 0.05);
  --font-title: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 18, 20, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 18, 20, 0.028) 1px, transparent 1px),
    var(--ivory);
  background-size: 80px 80px, 80px 80px, auto;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mineral);
  outline-offset: 4px;
}

strong {
  font-weight: 700;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-160%);
  border: 1px solid var(--black);
  background: var(--paper);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner,
.page-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-title);
  line-height: 1.05;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text span {
  color: var(--steel-dark);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--steel-dark);
  font-size: 14px;
  font-weight: 600;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: flex;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(251, 250, 246, 0.74);
  cursor: pointer;
  list-style: none;
  appearance: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::marker {
  content: "";
  font-size: 0;
}

.mobile-menu summary span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--black);
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 12;
  display: grid;
  min-width: 190px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-subtle);
}

.mobile-menu nav a {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
}

.mobile-menu nav a:last-child {
  border-bottom: 0;
}

.site-nav a,
.site-footer a {
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  border-color: currentColor;
  color: var(--black);
}

.hero {
  padding: 44px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 30px;
  align-items: center;
}

.data-label,
.module-number {
  margin: 0;
  color: var(--steel-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-title);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-top: 8px;
  max-width: 760px;
  font-size: 72px;
  font-weight: 700;
}

h2 {
  font-size: 42px;
  font-weight: 650;
}

h3 {
  font-size: 21px;
  font-weight: 650;
}

p {
  margin: 0;
}

.hero-lede {
  margin-top: 18px;
  max-width: 720px;
  color: var(--black-soft);
  font-size: 22px;
  line-height: 1.45;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-points span {
  border-right: 1px solid var(--line);
  color: var(--steel-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px 10px 0;
}

.hero-points span:not(:first-child) {
  padding-left: 12px;
}

.hero-points span:last-child {
  border-right: 0;
}

.hero-note {
  max-width: 620px;
  margin-top: 14px;
  color: var(--steel-dark);
  font-size: 15px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  border-color: var(--mineral-dark);
  background: var(--mineral);
  color: var(--black);
}

.button-primary:hover {
  background: var(--mineral-light);
  border-color: var(--mineral-dark);
}

.signal-board,
.statement-panel,
.module-card,
.system-panel,
.contact-panel,
.dark-instrument {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: var(--shadow-subtle);
}

.signal-board {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 18, 20, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 18, 20, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px, 32px 32px, auto;
  padding: 18px;
}

.signal-board::before {
  content: "";
  position: absolute;
  inset: 24px;
  pointer-events: none;
  border: 1px solid rgba(17, 18, 20, 0.08);
}

.board-header,
.board-footer,
.instrument-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--steel-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.board-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.board-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: 16px 0;
}

.octagon-system {
  position: relative;
  width: 206px;
  height: 206px;
}

.octagon-svg {
  position: relative;
  z-index: 1;
  width: 206px;
  height: 206px;
  fill: none;
  stroke: var(--black);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.octagon-svg path:nth-child(2),
.octagon-axis {
  stroke: var(--line-strong);
}

.octagon-fill {
  fill: var(--black);
  stroke: none;
}

.octagon-system::before,
.octagon-system::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 260px;
  height: 1px;
  background: var(--line);
  transform: translate(-50%, -50%);
}

.octagon-system::after {
  width: 1px;
  height: 260px;
}

.board-readout {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 132px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  color: var(--steel-dark);
  font-family: var(--font-mono);
  font-size: 11px;
}

.board-readout strong {
  display: block;
  color: var(--black);
  font-size: 44px;
  line-height: 1.1;
}

.module-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.module-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.7);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.module-list span {
  color: var(--steel-dark);
  font-weight: 600;
}

.board-footer {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-compact {
  padding-top: 40px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 30px;
}

.section-heading {
  display: grid;
  align-content: start;
  gap: 12px;
}

.section-heading p:not(.data-label),
.section-topline p {
  color: var(--steel-dark);
}

.statement-panel {
  background: rgba(251, 250, 246, 0.78);
  padding: 22px;
}

.statement-panel > p {
  max-width: 820px;
  color: var(--black-soft);
  font-size: 19px;
  line-height: 1.55;
}

.statement-panel > .statement-note {
  max-width: 780px;
  margin-top: 12px;
  color: var(--steel-dark);
  font-size: 16px;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.statement-grid div {
  min-height: 104px;
  border-right: 1px solid var(--line);
  padding: 16px 18px 16px 0;
}

.statement-grid div:last-child {
  border-right: 0;
  padding-right: 0;
}

.statement-grid strong {
  display: block;
  margin-top: 0;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.1;
}

.statement-grid span {
  display: block;
  margin-top: 9px;
  color: var(--steel-dark);
  font-size: 14px;
  line-height: 1.45;
}

.section-topline {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 18px;
}

.section-topline h2 {
  margin-top: 12px;
  max-width: 740px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.module-card {
  position: relative;
  min-height: 188px;
  background: rgba(251, 250, 246, 0.82);
  padding: 18px;
}

.module-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(45deg, transparent 48%, var(--line) 50%, transparent 52%);
}

.module-card-accent {
  border-color: rgba(140, 143, 148, 0.72);
}

.module-icon {
  width: 48px;
  height: 48px;
  color: var(--black);
}

.module-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.module-number {
  display: block;
  margin-top: 14px;
}

.module-card h3 {
  margin-top: 10px;
}

.module-card p {
  margin-top: 10px;
  color: var(--steel-dark);
  font-size: 14px;
  line-height: 1.45;
}

.system-section {
  background:
    linear-gradient(90deg, rgba(17, 18, 20, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 18, 20, 0.04) 1px, transparent 1px),
    rgba(251, 250, 246, 0.58);
  background-size: 40px 40px, 40px 40px, auto;
}

.system-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 0.78fr) minmax(280px, 0.62fr);
  gap: 12px;
  align-items: stretch;
}

.system-panel {
  background: var(--paper);
}

.system-row {
  display: grid;
  grid-template-columns: 44px 118px 1fr;
  gap: 12px;
  min-height: 80px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 15px;
}

.system-row:last-child {
  border-bottom: 0;
}

.system-row span {
  color: var(--steel-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.system-row strong {
  font-family: var(--font-title);
  line-height: 1.15;
}

.system-row p {
  color: var(--steel-dark);
  font-size: 14px;
}

.dark-instrument {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 360px;
  background:
    linear-gradient(90deg, rgba(244, 242, 236, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 242, 236, 0.06) 1px, transparent 1px),
    var(--black);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--ivory);
  padding: 18px;
}

.instrument-top {
  color: rgba(244, 242, 236, 0.74);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 12px;
}

.radar {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 178px;
  height: 178px;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-dark);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.radar-ring,
.axis,
.radar-dot {
  position: absolute;
  inset: 0;
  margin: auto;
}

.radar-ring {
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.r1 {
  width: 150px;
  height: 150px;
}

.r2 {
  width: 100px;
  height: 100px;
}

.r3 {
  width: 50px;
  height: 50px;
}

.axis-x {
  width: 178px;
  height: 1px;
  background: var(--line-dark);
}

.axis-y {
  width: 1px;
  height: 178px;
  background: var(--line-dark);
}

.radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ivory);
}

.d1 {
  transform: translate(52px, -34px);
}

.d2 {
  transform: translate(-46px, 42px);
}

.d3 {
  transform: translate(18px, 66px);
}

.instrument-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.instrument-metrics div {
  border-right: 1px solid var(--line-dark);
  padding: 12px 10px 0 0;
  font-family: var(--font-mono);
}

.instrument-metrics div:last-child {
  border-right: 0;
}

.instrument-metrics span {
  display: block;
  color: rgba(244, 242, 236, 0.62);
  font-size: 11px;
}

.instrument-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--ivory);
  font-size: 17px;
}

.contact-section {
  padding: 44px 0 34px;
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--ivory);
}

.contact-section .data-label {
  color: rgba(244, 242, 236, 0.68);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: start;
}

.contact-panel {
  border-color: var(--line-dark);
  background: rgba(244, 242, 236, 0.04);
  padding: 20px;
}

.contact-panel p {
  max-width: 680px;
  color: rgba(244, 242, 236, 0.76);
  font-size: 18px;
}

.contact-panel .button {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: rgba(244, 242, 236, 0.74);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: rgba(244, 242, 236, 0.08);
  color: var(--ivory);
  font: inherit;
  line-height: 1.45;
  padding: 11px 12px;
}

.contact-form textarea {
  min-height: 156px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(244, 242, 236, 0.58);
  outline: 2px solid rgba(244, 242, 236, 0.2);
  outline-offset: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.contact-actions .button {
  margin-top: 0;
  cursor: pointer;
}

.contact-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.form-status {
  min-height: 20px;
  color: rgba(244, 242, 236, 0.7);
  font-size: 14px;
}

.form-status[data-state="success"] {
  color: #d7e8d2;
}

.form-status[data-state="error"] {
  color: #f0b8ae;
}

.form-honeypot {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--black);
  color: rgba(244, 242, 236, 0.78);
  padding: 14px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-brand {
  color: var(--ivory);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 650;
}

.footer-brand img {
  filter: invert(1);
}

.legal-page {
  min-height: 100vh;
}

.legal-main {
  padding: 84px 0 92px;
}

.legal-hero {
  display: grid;
  gap: 18px;
  padding-bottom: 42px;
}

.legal-hero h1 {
  margin-top: 0;
  font-size: 58px;
}

.legal-hero p:not(.data-label) {
  max-width: 720px;
  color: var(--steel-dark);
  font-size: 19px;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.legal-content article {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(251, 250, 246, 0.82);
  padding: 28px;
}

.legal-content h2 {
  font-size: 28px;
}

.legal-content p,
.legal-content dd {
  color: var(--steel-dark);
}

.legal-content p {
  max-width: 860px;
  margin-top: 14px;
}

.legal-content a {
  border-bottom: 1px solid currentColor;
}

.legal-content dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.legal-content dl div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.legal-content dt {
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.legal-content dd {
  margin: 0;
}

@media (max-width: 1040px) {
  .site-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid,
  .section-grid,
  .section-topline,
  .system-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 36px;
  }

  .signal-board {
    min-height: 390px;
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-topline {
    gap: 20px;
  }

  .dark-instrument {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 56px 56px, 56px 56px, auto;
  }

  .header-inner,
  .page-grid {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .hero {
    padding: 34px 0 28px;
  }

  h1 {
    font-size: 41px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 19px;
  }

  .hero-lede {
    max-width: 100%;
    font-size: 19px;
    overflow-wrap: break-word;
  }

  .hero-points {
    grid-template-columns: 1fr;
    max-width: none;
    margin-top: 20px;
  }

  .hero-points span,
  .hero-points span:not(:first-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
  }

  .hero-points span:last-child {
    border-bottom: 0;
  }

  .hero-note {
    max-width: 100%;
    font-size: 14px;
    overflow-wrap: break-word;
  }

  .signal-board {
    min-height: 360px;
    padding: 14px;
  }

  .board-header,
  .board-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .board-core {
    min-height: auto;
    gap: 12px;
    padding: 12px 0;
  }

  .octagon-system {
    width: 148px;
    height: 148px;
  }

  .octagon-svg {
    width: 148px;
    height: 148px;
  }

  .octagon-system::before {
    width: 198px;
  }

  .octagon-system::after {
    height: 198px;
  }

  .board-readout {
    position: static;
    width: 100%;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 10px 0 0;
  }

  .board-readout strong {
    font-size: 36px;
  }

  .section {
    padding: 38px 0;
  }

  .statement-panel,
  .contact-panel {
    padding: 18px;
  }

  .statement-panel > p,
  .contact-panel p {
    font-size: 17px;
  }

  .statement-grid,
  .module-grid,
  .instrument-metrics {
    grid-template-columns: 1fr;
  }

  .statement-grid div,
  .instrument-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 20px;
  }

  .statement-grid div:last-child,
  .instrument-metrics div:last-child {
    border-bottom: 0;
  }

  .module-card {
    min-height: 150px;
  }

  .system-row {
    grid-template-columns: 42px 1fr;
    min-height: 68px;
    padding: 14px;
  }

  .system-row p {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-section {
    padding: 34px 0 26px;
  }

  .footer-links {
    gap: 12px;
  }

  .legal-main {
    padding: 56px 0 64px;
  }

  .legal-hero h1 {
    font-size: 40px;
  }

  .legal-content article {
    padding: 22px;
  }

  .legal-content dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
