:root {
  color-scheme: light;
  --paper: #e6e7e2;
  --paper-deep: #d7d8d3;
  --ink: #202020;
  --faint: #777a75;
  --grid: rgba(46, 48, 45, 0.13);
  --grid-soft: rgba(46, 48, 45, 0.06);
  --panel: rgba(235, 236, 231, 0.72);
  --accent: #ef4f2f;
  --accent-soft: rgba(239, 79, 47, 0.18);
  --scan-dark: #242522;
  --scan-grid: rgba(230, 231, 226, 0.08);
  --scan-line: rgba(230, 231, 226, 0.7);
  --scan-face: rgba(230, 231, 226, 0.34);
  --white: rgba(255, 255, 255, 0.72);
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", "Liberation Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 72px 72px, 72px 72px, 18px 18px, 18px 18px, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.45;
}

body::before {
  content: "";
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: fixed;
  z-index: 0;
  background-image:
    repeating-radial-gradient(circle at 18% 28%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

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

.desktop {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.sys-label,
.axis-label,
.mini-spec,
.link-panel,
.module-spec,
.coord-readout,
.download-button,
.module-list {
  font-family: var(--mono);
}

.sys-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.identity-panel {
  left: clamp(20px, 4.5vw, 64px);
  position: absolute;
  top: clamp(24px, 5vw, 72px);
  width: min(360px, calc(100vw - 40px));
  z-index: 4;
}

.panel,
.link-panel ol,
.module-card,
.scan-window {
  background: var(--panel);
  border: 1px solid var(--ink);
}

.panel {
  padding: 12px;
}

h1,
h2,
p,
dl,
ul {
  margin-top: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.05;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.tagline {
  font-size: 16px;
  line-height: 1.32;
  margin-bottom: 12px;
  max-width: none;
}

.mini-spec {
  border-top: 1px dotted var(--ink);
  display: grid;
  gap: 4px 14px;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding-top: 10px;
}

.mini-spec div,
.module-spec div {
  display: contents;
}

dt,
dd {
  margin: 0;
}

dt {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

dd {
  font-size: 11px;
  text-align: right;
  text-transform: uppercase;
}

.link-panel {
  left: clamp(20px, 4.5vw, 64px);
  position: absolute;
  top: clamp(410px, 46vh, 450px);
  width: min(302px, calc(100vw - 40px));
  z-index: 4;
}

.link-panel ol {
  list-style: none;
  margin: 0;
  padding: 8px 8px;
}

.link-panel a {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px 1fr;
  min-height: 28px;
  padding: 0 8px 0 10px;
  width: 100%;
}

.link-panel span {
  color: var(--accent);
  font-size: 12px;
}

.link-panel strong {
  font-size: 16px;
  font-weight: 500;
  justify-self: end;
  line-height: 1;
  text-transform: uppercase;
}

.link-panel a:hover,
.link-panel a:focus-visible {
  background: var(--ink);
  outline: none;
}

.link-panel a:hover span,
.link-panel a:focus-visible span,
.link-panel a:hover strong,
.link-panel a:focus-visible strong {
  color: var(--paper);
}

.object-stage {
  height: 100svh;
  min-height: 760px;
  position: relative;
}

.scan-cluster {
  --parallax-x: 0px;
  --parallax-y: 0px;
  height: clamp(230px, 22vw, 312px);
  left: 49%;
  position: absolute;
  top: 47%;
  transform: translate(calc(-50% + var(--parallax-x)), calc(-50% + var(--parallax-y)));
  width: clamp(230px, 22vw, 312px);
  will-change: transform;
}

.scan-window {
  background:
    linear-gradient(45deg, transparent 49.6%, rgba(239, 79, 47, 0.28) 49.8% 50.2%, transparent 50.4%),
    linear-gradient(-45deg, transparent 49.6%, rgba(239, 79, 47, 0.28) 49.8% 50.2%, transparent 50.4%),
    var(--scan-dark);
  background-size: auto, auto, auto;
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.corner-marker {
  background: transparent;
  border: 1px solid var(--accent);
  height: 18px;
  position: absolute;
  width: 18px;
  z-index: 5;
}

.corner-tl {
  left: -9px;
  top: -9px;
}

.corner-tr {
  right: -9px;
  top: -9px;
}

.corner-bl {
  bottom: -9px;
  left: -9px;
}

.corner-br {
  bottom: -9px;
  right: -9px;
}

.scan-noise {
  height: 100%;
  image-rendering: pixelated;
  inset: 0;
  opacity: 0.48;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.scan-line {
  background: rgba(239, 79, 47, 0.24);
  display: block;
  position: absolute;
  z-index: 1;
}

.scan-line-a {
  height: 1px;
  left: 0;
  top: 50%;
  width: 100%;
}

.scan-line-b {
  height: 100%;
  left: 50%;
  top: 0;
  width: 1px;
}

.wire-object {
  inset: 4%;
  overflow: visible;
  position: absolute;
  z-index: 2;
}

.wire-faces polygon {
  fill: var(--scan-face);
}

.wire-lines line {
  stroke: var(--scan-line);
  stroke-linecap: square;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.wire-points circle {
  fill: #f0f1eb;
}

.axis-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  margin: 0;
  position: absolute;
  text-transform: uppercase;
}

.axis-top {
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.axis-bottom {
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
}

.axis-left {
  left: -30px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.axis-right {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
}

.project-module {
  bottom: clamp(56px, 6vw, 86px);
  position: absolute;
  right: clamp(20px, 4.5vw, 64px);
  width: min(350px, calc(100vw - 40px));
  z-index: 4;
}

.module-card {
  background: rgba(239, 240, 235, 0.84);
}

.module-card header {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 10px;
}

.module-card header span {
  background: var(--accent);
  border-radius: 50%;
  height: 5px;
  opacity: 0.72;
  width: 5px;
}

h2 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.module-body {
  padding: 14px 16px 16px;
}

.module-body > p {
  font-size: 15px;
  line-height: 1.48;
  margin-bottom: 12px;
}

.module-note {
  border-left: 1px solid var(--accent);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px !important;
  line-height: 1.5 !important;
  margin-bottom: 14px !important;
  padding-left: 9px;
  text-transform: uppercase;
}

.module-list {
  border-left: 1px solid var(--ink);
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
  list-style: none;
  margin: 0 0 14px;
  padding: 0 0 0 10px;
  text-transform: uppercase;
}

.module-spec {
  display: grid;
  gap: 2px 18px;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 14px;
}

.module-spec dt,
.module-spec dd {
  color: var(--faint);
  font-size: 10px;
}

.download-button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--ink);
  display: flex;
  font-size: 16px;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.download-button:hover,
.download-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.coord-readout {
  bottom: clamp(22px, 5vw, 64px);
  color: var(--faint);
  display: grid;
  font-size: 12px;
  gap: 2px;
  left: clamp(20px, 4.5vw, 64px);
  position: absolute;
  z-index: 4;
}

@media (max-width: 980px) {
  .desktop {
    display: grid;
    gap: 24px;
    min-height: 100svh;
    overflow: visible;
    padding: 24px 20px 40px;
  }

  .identity-panel,
  .link-panel,
  .project-module,
  .coord-readout {
    inset: auto;
    position: relative;
    width: 100%;
  }

  .link-panel {
    top: auto;
  }

  .object-stage {
    height: 360px;
    min-height: 360px;
    order: 3;
  }

  .project-module {
    order: 4;
  }

  .scan-cluster {
    height: min(72vw, 310px);
    left: 50%;
    top: 50%;
    width: min(72vw, 310px);
  }

  .axis-top {
    top: -16px;
  }

  .axis-bottom {
    bottom: auto;
    top: calc(100% + 6px);
  }

  .axis-left,
  .axis-right {
    display: none;
  }

  .link-panel strong {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .desktop {
    padding: 18px 14px 32px;
  }

  .module-spec {
    grid-template-columns: 1fr;
  }

  .module-spec dd {
    text-align: left;
  }

  .tagline,
  .module-body > p {
    font-size: 15px;
  }
}
