:root {
  --paper: #f5f7f0;
  --ink: #11130f;
  --muted: #62685d;
  --line: #cbd0c5;
  --lime: #7adf4b;
  --lime-dark: #2f7b1c;
  --white: #fff;
  --black: #0a0b09;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

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

button,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3vw;
  background: rgba(245, 247, 240, 0.94);
  border-bottom: 1px solid rgba(17, 19, 15, 0.18);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--lime);
  border-radius: 2px;
  font-size: 16px;
}

nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
}

nav a {
  border-bottom: 1px solid transparent;
}

nav a:hover {
  border-color: var(--ink);
}

.header-signal {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(122, 223, 75, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(122, 223, 75, 0);
  }
}

.hero {
  position: relative;
  min-height: 78vh;
  max-height: 920px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 130px 5vw 130px;
  background: #bde5f3;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 38%;
}

.hero-shade {
  background: rgba(5, 10, 7, 0.42);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 92vw);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 18px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--lime-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 128px);
  line-height: 0.88;
  font-weight: 700;
}

.hero-copy {
  max-width: 590px;
  margin: 28px 0 0;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.primary-action {
  padding: 15px 18px;
  background: var(--lime);
  color: var(--black);
  border-radius: 2px;
  font: 600 11px var(--mono);
}

.primary-action:hover {
  background: var(--white);
}

.text-action {
  font: 600 11px var(--mono);
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  padding-bottom: 5px;
}

.hero-rail {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 11, 9, 0.82);
  color: var(--white);
}

.hero-rail > div {
  min-height: 88px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 3vw;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.rail-value {
  font-size: 28px;
  font-weight: 700;
}

.rail-label {
  font: 500 10px var(--mono);
  color: rgba(255, 255, 255, 0.72);
}

.signal-strip {
  min-height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 4vw;
  border-bottom: 1px solid var(--line);
  font: 500 11px var(--mono);
}

.signal-strip i {
  color: var(--muted);
  font-style: normal;
}

.signal-strip strong {
  padding: 7px 9px;
  background: var(--lime);
}

.board-section,
.mission-section {
  padding: 90px 5vw;
}

.board-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.section-heading h2,
.agents-intro h2,
.loop-copy h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.96;
}

.section-note,
.agents-intro > p:last-child,
.loop-copy > p:last-child {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.7;
}

.board-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font: 500 10px var(--mono);
}

.board-meta button {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  background: transparent;
  cursor: pointer;
  font: 500 10px var(--mono);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-button {
  min-width: 80px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 10px 13px;
  background: var(--paper);
  cursor: pointer;
  font: 500 10px var(--mono);
}

.filter-button.is-active,
.filter-button:hover {
  background: var(--ink);
  color: var(--white);
}

.board-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  background: rgba(245, 247, 240, 0.94);
}

.hunted-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.hunted-table th {
  padding: 15px 12px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  font: 600 9px var(--mono);
}

.hunted-table td {
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 12px;
  line-height: 1.5;
}

.hunted-table th:nth-child(1) { width: 9%; }
.hunted-table th:nth-child(2) { width: 24%; }
.hunted-table th:nth-child(3) { width: 19%; }
.hunted-table th:nth-child(4) { width: 17%; }
.hunted-table th:nth-child(5) { width: 19%; }
.hunted-table th:nth-child(6) { width: 12%; }

.hunted-table td strong,
.hunted-table td span,
.hunted-table td small {
  display: block;
}

.hunted-table td strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.hunted-table td small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.priority {
  width: max-content;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  font: 600 9px var(--mono);
}

.state-control {
  display: block;
  position: relative;
}

.state-control::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--lime);
  pointer-events: none;
}

.state-control select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px 6px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: 500 9px var(--mono);
}

.progress-row {
  font: 500 10px var(--mono);
}

.progress-track {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  background: #dfe3d9;
}

.progress-track i {
  display: block;
  height: 100%;
}

.mission-section {
  background: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.mission {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.mission-topline {
  display: flex;
  justify-content: space-between;
  font: 500 10px var(--mono);
}

.mission-topline strong {
  font-size: 20px;
}

.mission h3 {
  margin: 70px 0 15px;
  font-size: 25px;
  line-height: 1.15;
}

.mission p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.mission-status {
  width: max-content;
  margin-top: auto;
  padding-top: 25px;
  border-bottom: 3px solid var(--lime);
  font: 600 10px var(--mono);
}

.agents-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 2.2fr);
  gap: 70px;
  padding: 100px 5vw;
  background: var(--black);
  color: var(--white);
}

.agents-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.agents-intro > p:last-child {
  color: rgba(255, 255, 255, 0.62);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.agent {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.agent-image-wrap {
  position: relative;
  aspect-ratio: 1.15;
  overflow: hidden;
  background: #20231e;
}

.agent-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 4px solid var(--agent-color);
  pointer-events: none;
}

.agent-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.agent:hover img {
  transform: scale(1.025);
}

.agent-image-wrap > span {
  position: absolute;
  top: 15px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  background: var(--black);
  color: var(--agent-color);
  font: 600 10px var(--mono);
}

.agent-copy {
  min-height: 190px;
  padding: 24px;
}

.agent-copy p {
  margin: 0 0 9px;
  color: var(--agent-color);
  font: 600 10px var(--mono);
  text-transform: uppercase;
}

.agent-copy h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.agent-copy span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.65;
}

.loop-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  padding: 110px 5vw;
}

.loop-track ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.loop-track li {
  min-height: 66px;
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.loop-track li span {
  font: 500 10px var(--mono);
  color: var(--lime-dark);
}

.loop-track li strong {
  font-size: 16px;
}

.loop-signal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 20px;
  background: var(--lime);
  font: 600 11px var(--mono);
}

footer {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 20px 5vw;
  background: var(--black);
  color: rgba(255, 255, 255, 0.68);
  font: 500 9px var(--mono);
}

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

  nav {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-bottom: 160px;
  }

  .hero h1 {
    font-size: clamp(58px, 16vw, 96px);
  }

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

  .hero-rail > div {
    min-height: 64px;
    padding: 12px 4vw;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .agents-section,
  .loop-section {
    grid-template-columns: 1fr;
  }

  .agents-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 60px;
    padding: 0 18px;
  }

  .wordmark span:last-child {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding: 110px 20px 165px;
  }

  .hero-image {
    object-position: 54% center;
  }

  .hero-content {
    align-self: flex-end;
  }

  .hero-copy {
    max-width: 92%;
    overflow-wrap: anywhere;
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .rail-value {
    font-size: 21px;
  }

  .rail-label {
    font-size: 8px;
  }

  .board-section,
  .mission-section,
  .agents-section,
  .loop-section {
    padding: 72px 20px;
  }

  .section-heading h2,
  .agents-intro h2,
  .loop-copy h2 {
    font-size: 44px;
  }

  .board-meta {
    width: 100%;
    justify-content: space-between;
  }

  .filter-button {
    min-width: 68px;
    flex: 1;
  }

  .signal-strip {
    gap: 11px;
    padding-inline: 16px;
  }

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .loop-signal {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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