:root {
  color-scheme: dark;
  --ink: #ecffea;
  --green: #00ff66;
  --green-soft: #86ff9c;
  --green-mid: #008f3d;
  --green-dark: #063f1c;
  --black: #020402;
  --black-alt: #061008;
  --paper: #020402;
  --max: 1220px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

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

::selection {
  color: #001b08;
  background: var(--green);
}

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

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: 0.58rem 0.78rem;
  color: var(--green);
  background: var(--black);
  border: 1px solid var(--green);
  border-radius: 0;
  font-family: var(--mono);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-scene {
  position: relative;
  display: grid;
  min-height: 94svh;
  overflow: hidden;
  padding: 1.1rem;
  isolation: isolate;
  background: #020402;
}

.scene-video,
.scene-grade,
.scene-noise,
.scene-vignette,
.tracking-layer,
.connector-map {
  position: absolute;
  inset: 0;
}

.scene-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.56) contrast(1.34) brightness(0.3) hue-rotate(62deg);
  transform: scale(1.02);
}

.scene-grade {
  z-index: 1;
  display: none;
}

.scene-noise {
  z-index: 2;
  display: none;
}

.scene-vignette {
  z-index: 3;
  display: none;
}

.scene-shell {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(20rem, 0.68fr) minmax(37rem, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.6rem);
  width: min(100%, var(--max));
  margin: auto;
  padding: clamp(3.2rem, 5vw, 4.7rem) 0 clamp(3.6rem, 5vw, 4.5rem);
}

.mission-copy {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 0.78rem;
  color: var(--green-soft);
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  color: var(--green);
  background: var(--black);
  border: 1px solid var(--green);
  border-radius: 0;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2 {
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 11.3ch;
  margin-top: clamp(1.75rem, 3.2vw, 2.35rem);
  color: var(--ink);
  font-size: clamp(3.4rem, 6vw, 5.75rem);
  line-height: 0.94;
  text-wrap: balance;
}

.subheadline {
  max-width: 35rem;
  margin-top: 1.1rem;
  color: #d7ffd9;
  font-size: clamp(1rem, 1.65vw, 1.12rem);
  line-height: 1.54;
}

.ops-flow {
  position: relative;
  min-width: 0;
}

.sheet-console {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--green-soft);
  background: var(--black);
  border: 1px solid var(--green-mid);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  width: 100%;
}

.sheet-console::before,
.sheet-console::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.sheet-console::before {
  top: -1px;
  right: -1px;
  width: 1.1rem;
  height: 1.1rem;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
}

.sheet-console::after {
  bottom: -1px;
  left: -1px;
  width: 1.1rem;
  height: 1.1rem;
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
}

.sheet-topbar,
.sheet-grid,
.sheet-cta {
  position: relative;
  z-index: 1;
}

.sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.56rem;
  padding: 0 0.86rem;
  color: var(--green-soft);
  border-bottom: 1px solid var(--green-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sheet-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
}

.sheet-topbar i {
  width: 0.48rem;
  height: 0.48rem;
  background: var(--green);
  border-radius: 0;
  box-shadow: none;
}

.sheet-grid {
  display: grid;
  padding: 0.68rem;
  color: #d7ffd9;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.sheet-row {
  display: grid;
  grid-template-columns: 0.62fr 1.48fr 0.72fr 0.82fr 0.5fr;
  min-height: 2.28rem;
  border-top: 1px solid var(--green-dark);
}

.sheet-row:first-child {
  border-top: 0;
}

.sheet-row span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.46rem 0.54rem;
  border-left: 1px solid var(--green-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-row span:first-child {
  border-left: 0;
}

.sheet-head {
  min-height: 1.95rem;
  color: var(--green);
  text-transform: uppercase;
}

.sheet-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.92fr);
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.82rem;
  border-top: 1px solid var(--green-dark);
}

.sheet-cta span {
  color: #d7ffd9;
  font-size: 0.88rem;
  line-height: 1.38;
}

.extension-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: var(--black-alt);
  border: 1px solid var(--green);
}

.extension-gate input,
.extension-gate button {
  min-width: 0;
  min-height: 2.56rem;
  border: 0;
  border-radius: 0;
  font: inherit;
}

.extension-gate input {
  width: 100%;
  padding: 0 0.78rem;
  color: #d7ffd9;
  background: var(--black-alt);
  font-family: var(--mono);
  font-size: 0.78rem;
  outline: 0;
}

.extension-gate input::placeholder {
  color: #65b56f;
}

.extension-gate button {
  padding: 0 0.88rem;
  color: var(--green);
  background: var(--black-alt);
  border-left: 1px solid var(--green);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.extension-gate:focus-within {
  outline: 1px solid var(--green);
  outline-offset: 3px;
}

.extension-gate button:hover,
.extension-gate button:focus-visible,
.extension-gate.is-unlocked button {
  color: #001b08;
  background: var(--green);
  outline: 0;
}

.gate-status {
  grid-column: 2;
  min-height: 0.95rem;
  color: #7be58d;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.gate-status a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4fd176;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-0.1rem);
}

.tracking-layer {
  z-index: 4;
  pointer-events: none;
}

body.is-finder-editing .tracking-layer {
  z-index: 20;
  pointer-events: auto;
}

.signal-target {
  position: absolute;
  width: 4.7rem;
  height: 5.3rem;
  transform: translate(-50%, -50%);
}

body.is-finder-editing .signal-target {
  cursor: move;
  touch-action: none;
}

.target-a {
  top: 42%;
  left: 31%;
}

.target-b {
  top: 27%;
  left: 58%;
}

.target-c {
  top: 27%;
  left: 86%;
}

.source-pill {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.42rem);
  display: grid;
  gap: 0.02rem;
  min-width: 5.2rem;
  padding: 0.36rem 0.48rem;
  color: var(--green-soft);
  background: var(--black);
  border: 1px solid var(--green-mid);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.05;
  text-align: center;
  transform: translateX(-50%);
}

.source-pill span:first-child {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.source-pill span:last-child {
  color: #b8ffc0;
}

.tracking-bracket {
  position: absolute;
  inset: 0;
}

.tracking-bracket i {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-color: var(--green);
  border-style: solid;
}

.tracking-bracket i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.tracking-bracket i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.tracking-bracket i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.tracking-bracket i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.tracking-bracket b {
  position: absolute;
  left: 0.18rem;
  right: 0.18rem;
  top: 50%;
  height: 1px;
  background: var(--green);
}

.connector-map {
  z-index: 5;
  pointer-events: none;
}

.flow {
  fill: none;
  stroke: url("#flow-gradient");
  stroke-width: 1;
  stroke-linecap: square;
  stroke-dasharray: 7 12;
}

.flow-dot {
  display: none;
}

.finder-resize-handle {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  display: none;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--green);
  border: 1px solid var(--black);
  cursor: nwse-resize;
  touch-action: none;
}

body.is-finder-editing .finder-resize-handle {
  display: block;
}

.finder-editor {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: none;
  width: min(30rem, calc(100vw - 2rem));
  color: var(--green-soft);
  background: var(--black);
  border: 1px solid var(--green);
  font-family: var(--mono);
}

body.is-finder-editing .finder-editor {
  display: block;
}

.finder-editor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.72rem;
  border-bottom: 1px solid var(--green-dark);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finder-editor button {
  appearance: none;
  min-height: 1.75rem;
  padding: 0 0.55rem;
  color: var(--green);
  background: var(--black-alt);
  border: 1px solid var(--green-mid);
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finder-editor button:hover,
.finder-editor button:focus-visible {
  color: #001b08;
  background: var(--green);
  outline: 0;
}

.finder-editor pre {
  margin: 0;
  max-height: 15rem;
  overflow: auto;
  padding: 0.72rem;
  color: #d7ffd9;
  font-size: 0.68rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.question-section {
  position: relative;
  padding: 4.4rem 1.2rem 5.2rem;
  color: var(--green-soft);
  background: #020402;
  border-top: 1px solid var(--green-dark);
}

.question-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.accordion-stack {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.accordion-item {
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--green-dark);
  border-radius: 0;
}

.accordion-item[open],
.accordion-item.is-open {
  border-color: var(--green-mid);
  box-shadow: none;
}

.accordion-trigger {
  appearance: none;
  list-style: none;
  width: 100%;
  border: 0;
  background: var(--black);
  font-family: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.15rem;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.16rem;
  padding: 0.76rem 0.9rem;
  cursor: pointer;
  color: var(--green-soft);
  font-size: 0.98rem;
  font-weight: 740;
}

.accordion-trigger::-webkit-details-marker {
  display: none;
}

.accordion-trigger:hover {
  color: var(--green);
  background: var(--black-alt);
}

.accordion-trigger:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: -3px;
}

.accordion-icon {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--green);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.78rem;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item[open] .accordion-icon::after,
.accordion-item.is-open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-item p {
  margin: 0;
  padding: 0 0.9rem 0.9rem;
  color: #b8ffc0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.site-footer {
  padding: 1rem 1.2rem 1.1rem;
  color: #7be58d;
  background: var(--black);
  border-top: 1px solid var(--green-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-shell p {
  margin: 0;
}

.footer-shell nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #001b08;
  background: var(--green);
  outline: 1px solid var(--green);
  outline-offset: 2px;
}

.legal-page {
  min-height: 100svh;
  background: var(--paper);
}

.legal-main {
  padding: 1.1rem 1.1rem 4rem;
}

.legal-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.legal-shell .brand {
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.legal-kicker,
.legal-updated {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-shell h1 {
  max-width: 13ch;
  margin-top: 0.7rem;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.legal-updated {
  margin-top: 1rem;
  color: #7be58d;
}

.legal-content {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.8rem;
  color: #d7ffd9;
}

.legal-content section {
  padding-top: 1.2rem;
  border-top: 1px solid var(--green-dark);
}

.legal-content h2 {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.legal-content p,
.legal-content li {
  margin-top: 0.72rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-content ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18rem;
}

@media (min-width: 1280px) {
  .scene-shell {
    --max: 1240px;
  }
}

@media (max-width: 1040px) {
  .scene-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 4.3rem;
  }

  .mission-copy {
    max-width: 45rem;
  }

  h1 {
    max-width: 12ch;
  }

  .ops-flow {
    width: 100%;
  }

  .target-a {
    top: 28%;
    left: 60%;
  }

  .target-b {
    top: 38%;
    left: 31%;
  }

  .target-c {
    top: 27%;
    left: 86%;
  }

}

@media (max-width: 720px) {
  .hero-scene {
    min-height: 94svh;
    padding: 0.78rem;
  }

  .scene-grade {
    display: none;
  }

  .scene-shell {
    gap: 1rem;
    padding: 3.45rem 0 3.25rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.72rem;
  }

  h1 {
    max-width: 12.5ch;
    margin-top: 1.25rem;
    font-size: clamp(2.72rem, 12vw, 3.35rem);
  }

  .subheadline {
    margin-top: 0.78rem;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .ops-flow {
    width: 100%;
  }

  .sheet-topbar {
    min-height: 2.44rem;
    padding: 0 0.72rem;
    font-size: 0.65rem;
  }

  .sheet-grid {
    padding: 0.42rem;
    font-size: 0.65rem;
  }

  .sheet-row {
    grid-template-columns: 0.66fr 1.32fr 0.9fr;
    min-height: 1.9rem;
  }

  .sheet-row span {
    padding: 0.4rem 0.42rem;
  }

  .sheet-row span:nth-child(3),
  .sheet-row span:nth-child(5) {
    display: none;
  }

  .sheet-cta {
    grid-template-columns: 1fr;
    gap: 0.58rem;
    padding: 0.66rem;
  }

  .sheet-cta span {
    font-size: 0.82rem;
  }

  .extension-gate {
    width: 100%;
  }

  .extension-gate input,
  .extension-gate button {
    min-height: 2.36rem;
  }

  .extension-gate input {
    font-size: 0.72rem;
  }

  .extension-gate button {
    padding: 0 0.66rem;
    font-size: 0.66rem;
  }

  .gate-status {
    grid-column: 1;
    font-size: 0.56rem;
  }

  .source-pill {
    display: none;
  }

  .tracking-bracket i {
    width: 0.86rem;
    height: 0.86rem;
  }

  .tracking-bracket b {
    display: none;
  }

  .finder-editor {
    right: 0.7rem;
    bottom: 0.7rem;
    left: 0.7rem;
    width: auto;
  }

  .finder-editor pre {
    max-height: 10rem;
  }

  .finder-resize-handle {
    right: -0.45rem;
    bottom: -0.45rem;
    width: 0.9rem;
    height: 0.9rem;
  }

  .signal-target {
    width: 3.9rem;
    height: 4.5rem;
  }

  .target-a {
    top: 20%;
    left: 80%;
  }

  .target-b {
    top: 20%;
    left: 29%;
  }

  .target-c {
    display: none;
  }

  .scroll-cue {
    bottom: 0.82rem;
    font-size: 0.58rem;
  }

  .question-section {
    padding: 3.2rem 0.8rem 4rem;
  }

  .accordion-trigger {
    min-height: 2.84rem;
    padding: 0.64rem 0.72rem;
    font-size: 0.92rem;
  }

  .accordion-item p {
    padding: 0 0.72rem 0.76rem;
    font-size: 0.86rem;
    line-height: 1.44;
  }

  .site-footer {
    padding: 0.82rem 0.8rem 0.9rem;
    font-size: 0.6rem;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .footer-shell nav {
    gap: 0.8rem;
  }

  .legal-main {
    padding: 0.8rem 0.8rem 3rem;
  }

  .legal-content p,
  .legal-content li {
    font-size: 0.9rem;
  }
}

@media (max-width: 430px) {
  .hero-scene {
    padding: 0.7rem;
  }

  .scene-shell,
  .ops-flow,
  .sheet-console {
    max-width: 100%;
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(2.3rem, 10.8vw, 2.78rem);
  }

  .sheet-grid {
    overflow: hidden;
    font-size: 0.6rem;
  }

  .sheet-row {
    grid-template-columns: 0.64fr 1.3fr 0.76fr;
  }

  .sheet-row span {
    padding-right: 0.36rem;
    padding-left: 0.36rem;
  }

  .extension-gate {
    grid-template-columns: 1fr;
  }

  .extension-gate button {
    border-top: 1px solid var(--green);
    border-left: 0;
  }
}

@media (max-height: 760px) and (min-width: 1041px) {
  .scene-shell {
    padding-top: 3rem;
    padding-bottom: 3.35rem;
  }

  h1 {
    font-size: 4.55rem;
  }

  .subheadline {
    font-size: 1rem;
  }

  .sheet-row {
    min-height: 2.04rem;
  }

  .sheet-cta {
    padding: 0.68rem;
  }
}

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