:root {
  color-scheme: dark;
  --ink: #f3f5f2;
  --muted: #a4aaa5;
  --quiet: #717873;
  --black: #080a09;
  --graphite: #0f1311;
  --panel: #141917;
  --line: #2b312d;
  --line-strong: #414942;
  --signal: #73e69a;
  --signal-dark: #1f6f3b;
  --amber: #f6b94a;
  --red: #ed6a5a;
  --blue: #78a9ff;
  --max-width: 1240px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--signal);
  color: var(--black);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--black);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 9, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 720;
}

.brand-mark {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.brand-mark span {
  display: block;
  width: 6px;
  background: var(--signal);
}

.brand-mark span:nth-child(1) {
  height: 9px;
}

.brand-mark span:nth-child(2) {
  height: 21px;
}

.brand-mark span:nth-child(3) {
  height: 14px;
  background: var(--amber);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #ced2ce;
  font-size: 14px;
}

.site-nav a,
.header-action {
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  color: var(--signal);
}

.header-action {
  justify-self: end;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  height: calc(100svh - 42px);
  max-height: 880px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #101311;
  background-image: url("assets/radarwrench-bench-hero.jpg");
  background-position: center center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 4, 0.38);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, calc(100% - 64px));
  margin-left: max(32px, calc((100% - var(--max-width)) / 2));
  padding-top: 46px;
}

.eyebrow,
.kicker {
  margin: 0 0 20px;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(115, 230, 154, 0.12);
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: 76px;
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-line {
  margin: 22px 0 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 560;
  line-height: 1.2;
}

.hero-copy {
  max-width: 570px;
  margin: 20px 0 0;
  color: #c7ccc8;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 680;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.button-primary {
  background: var(--signal);
  color: #061109;
}

.button-primary:hover {
  background: #96f2b4;
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(8, 10, 9, 0.54);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(8, 10, 9, 0.8);
}

.hero-readout {
  position: absolute;
  right: max(32px, calc((100% - var(--max-width)) / 2));
  bottom: 28px;
  z-index: 2;
  width: 338px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 5px;
  background: rgba(8, 10, 9, 0.82);
  backdrop-filter: blur(10px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.readout-head,
.frame-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.readout-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-size: 10px;
}

.readout-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--signal);
}

.readout-state .live-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.frame-row {
  padding-top: 12px;
  font-size: 12px;
}

.frame-bits {
  display: grid;
  grid-template-columns: repeat(8, 16px);
  gap: 3px;
}

.frame-bits i {
  height: 20px;
  border: 1px solid #4a514c;
  background: #202521;
}

.frame-bits i.is-active {
  border-color: var(--amber);
  background: var(--amber);
}

.status-band {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(600px, 1.3fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--graphite);
}

.status-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px max(32px, calc((100vw - var(--max-width)) / 2));
  padding-right: 34px;
  border-right: 1px solid var(--line);
}

.status-intro .kicker {
  margin-bottom: 8px;
}

.status-intro strong {
  font-size: 19px;
}

.status-band dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  margin: 0;
}

.status-band dl div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.status-band dl div:last-child {
  border-right: 0;
}

.status-band dt {
  margin-bottom: 8px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.status-band dd {
  margin: 0;
  color: #dce0dc;
  font-size: 14px;
  line-height: 1.4;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 64px));
  margin-inline: auto;
}

.method {
  padding-block: 122px 132px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 80px;
  align-items: end;
  max-width: 1040px;
}

.section-heading .kicker {
  grid-column: 1 / -1;
}

.section-heading h2,
.signal-copy h2,
.principle-statement h2,
.build-heading h2,
.closing-layout h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.signal-copy > p,
.principle-copy > p,
.build-heading > p,
.closing-layout > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 82px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.method-steps li {
  position: relative;
  min-height: 320px;
  padding: 34px 34px 38px 0;
  border-right: 1px solid var(--line);
}

.method-steps li + li {
  padding-left: 34px;
}

.method-steps li:last-child {
  padding-right: 0;
  border-right: 0;
}

.step-number {
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.method-steps h3 {
  margin: 52px 0 13px;
  font-size: 25px;
}

.method-steps p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.step-signal {
  position: absolute;
  right: 34px;
  bottom: 38px;
  left: 0;
  height: 22px;
  border-bottom: 1px solid #3d4540;
}

.step-signal::before,
.step-signal::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 3px;
  height: 12px;
  background: var(--signal);
}

.step-signal::before {
  left: 24%;
}

.step-signal::after {
  left: 73%;
}

.method-steps li + li .step-signal {
  left: 34px;
}

.step-signal-mark::after {
  left: 52%;
  width: 2px;
  height: 24px;
  background: var(--amber);
}

.step-signal-discover::before,
.step-signal-discover::after {
  width: 16px;
  height: 5px;
  background: var(--signal);
}

.signal-section {
  padding-block: 118px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101512;
}

.signal-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 74px;
  align-items: center;
}

.signal-copy h2 {
  max-width: 470px;
}

.signal-copy > p {
  max-width: 470px;
  margin-top: 26px;
}

.signal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 38px;
  color: #bbc0bc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.signal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.signal-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: var(--quiet);
}

.signal-legend .legend-mark {
  background: var(--amber);
}

.signal-legend .legend-candidate {
  background: var(--signal);
}

.signal-instrument {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #090c0a;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.instrument-toolbar,
.instrument-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  color: var(--quiet);
  font-size: 10px;
}

.instrument-toolbar {
  border-bottom: 1px solid var(--line);
}

.instrument-body {
  position: relative;
  padding: 20px 18px 28px;
}

.instrument-scale {
  display: flex;
  justify-content: space-between;
  margin: 0 50px 18px 62px;
  color: #4e5650;
  font-size: 9px;
}

.signal-track {
  display: grid;
  grid-template-columns: 52px 1fr 34px;
  gap: 10px;
  align-items: center;
  height: 72px;
  border-top: 1px solid #1c211e;
}

.track-label,
.track-rank {
  color: #737b75;
  font-size: 10px;
}

.track-rank {
  text-align: right;
}

.track-line {
  position: relative;
  height: 26px;
  border-bottom: 1px solid #39403b;
}

.track-line i {
  position: absolute;
  left: var(--x);
  bottom: -2px;
  width: 2px;
  height: 14px;
  background: #5d655f;
}

.candidate-track .track-label,
.candidate-track .track-rank {
  color: var(--signal);
}

.candidate-track .track-line {
  border-color: var(--signal-dark);
}

.candidate-track .track-line i {
  height: 25px;
  background: var(--signal);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

.mark-line {
  position: absolute;
  top: 38px;
  bottom: 22px;
  left: 55%;
  width: 1px;
  background: var(--amber);
}

.mark-line span {
  position: absolute;
  top: -4px;
  left: 8px;
  width: max-content;
  color: var(--amber);
  font-size: 9px;
}

.instrument-footer {
  border-top: 1px solid var(--line);
}

.instrument-footer strong {
  color: var(--signal);
  font-weight: 650;
}

.principle-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding-block: 128px;
}

.principle-statement h2 {
  font-size: 70px;
}

.principle-copy {
  padding-top: 37px;
}

.principle-copy ul {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.principle-copy li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #d6dad6;
  font-size: 14px;
}

.principle-copy li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  background: var(--signal);
}

.build-log {
  padding-block: 116px 124px;
  border-top: 1px solid var(--line);
  background: #0d100f;
}

.build-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 64px;
}

.build-heading > p {
  max-width: 340px;
  padding-bottom: 4px;
}

.log-list {
  border-top: 1px solid var(--line-strong);
}

.log-entry {
  display: grid;
  grid-template-columns: 140px 1fr 110px;
  gap: 30px;
  align-items: start;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.log-entry time,
.log-type,
.log-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.log-entry time {
  padding-top: 5px;
  color: var(--quiet);
}

.log-type {
  color: var(--blue);
}

.log-entry h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.log-entry p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.log-status {
  justify-self: end;
  padding: 5px 8px;
  border: 1px solid var(--signal-dark);
  border-radius: 3px;
  color: var(--signal);
}

.log-status-next {
  border-color: #8f6826;
  color: var(--amber);
}

.closing-section {
  padding-block: 105px;
  background: var(--signal);
  color: #061009;
}

.closing-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 64px;
  align-items: end;
}

.closing-layout .kicker {
  color: #285d38;
}

.closing-layout > p {
  color: #21472d;
}

.closing-layout .button-primary {
  border-color: #07150b;
  background: #07150b;
  color: var(--ink);
}

.closing-layout .button-primary:hover {
  background: #173921;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px;
  background: #050706;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.site-footer a {
  color: #c5cac6;
  transition: color 150ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--signal);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-content {
    width: min(590px, calc(100% - 64px));
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-readout {
    display: none;
  }

  .status-band {
    grid-template-columns: 1fr;
  }

  .status-intro {
    padding: 24px 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-layout {
    grid-template-columns: 1fr;
  }

  .signal-copy h2,
  .signal-copy > p {
    max-width: 700px;
  }

  .closing-layout {
    grid-template-columns: 1fr 1fr;
  }

  .closing-layout .button {
    width: fit-content;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    transform: scale(0.86);
    transform-origin: left center;
  }

  .header-action {
    font-size: 10px;
  }

  .hero {
    min-height: 610px;
    height: calc(100svh - 34px);
    max-height: 760px;
    align-items: flex-end;
    background-position: 66% center;
  }

  .hero-shade {
    background: rgba(3, 5, 4, 0.54);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 18px;
    padding: 0 0 52px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1;
  }

  .hero-line {
    margin-top: 16px;
    font-size: 21px;
  }

  .hero-copy {
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .status-band dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-band dl div {
    min-height: 110px;
    padding: 20px 18px;
    border-bottom: 1px solid var(--line);
  }

  .status-band dl div:nth-child(2) {
    border-right: 0;
  }

  .status-band dl div:nth-child(3),
  .status-band dl div:nth-child(4) {
    border-bottom: 0;
  }

  .section-shell {
    width: calc(100% - 36px);
  }

  .method,
  .principle-section {
    padding-block: 84px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading h2,
  .signal-copy h2,
  .principle-statement h2,
  .build-heading h2,
  .closing-layout h2 {
    font-size: 36px;
  }

  .method-steps {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .method-steps li,
  .method-steps li + li {
    min-height: 260px;
    padding: 28px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-steps li:last-child {
    border-bottom: 0;
  }

  .method-steps h3 {
    margin-top: 35px;
  }

  .method-steps li + li .step-signal,
  .step-signal {
    right: 0;
    bottom: 28px;
    left: 0;
  }

  .signal-section {
    padding-block: 84px;
  }

  .signal-layout {
    gap: 52px;
  }

  .instrument-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .instrument-scale {
    margin-left: 54px;
  }

  .signal-track {
    grid-template-columns: 44px 1fr 26px;
    gap: 6px;
  }

  .mark-line {
    left: 58%;
  }

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

  .principle-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .principle-statement h2 {
    font-size: 58px;
  }

  .principle-copy {
    padding-top: 22px;
  }

  .build-log {
    padding-block: 82px 88px;
  }

  .build-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 48px;
  }

  .log-entry {
    grid-template-columns: 1fr auto;
    gap: 14px 20px;
  }

  .log-entry time {
    grid-column: 1;
  }

  .log-entry > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .log-status {
    grid-column: 2;
    grid-row: 1;
  }

  .closing-section {
    padding-block: 76px;
  }

  .closing-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
