:root {
  --ink: #111513;
  --deep: #0b0f0d;
  --forest: #18382c;
  --green: #2f7a59;
  --mint: #98d9b5;
  --copper: #c5793c;
  --amber: #f1bd70;
  --paper: #f3eee4;
  --panel: #fffaf0;
  --line: #d8ccbb;
  --muted: #59625c;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(17, 21, 19, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

main,
section,
article,
div {
  min-width: 0;
}

a {
  color: inherit;
}

code {
  padding: 0.08rem 0.28rem;
  border: 1px solid rgba(47, 122, 89, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  color: #244d3d;
  font-size: 0.92em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(197, 121, 60, 0.78);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(11, 15, 13, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 244px;
  text-decoration: none;
}

.brand img {
  filter: drop-shadow(0 8px 18px rgba(152, 217, 181, 0.22));
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand-extra {
  display: inline;
}

.brand small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--mint);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.header-action,
.button.primary {
  color: #08100c;
  background: var(--mint);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

.button.full {
  width: 100%;
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 10, 8, 0.97) 0%, rgba(6, 10, 8, 0.89) 35%, rgba(6, 10, 8, 0.34) 72%, rgba(6, 10, 8, 0.62) 100%),
    linear-gradient(180deg, rgba(6, 10, 8, 0.16), rgba(6, 10, 8, 0.74));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  width: min(1280px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(64px, 7vw, 104px) 0 clamp(40px, 6vw, 76px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
strong {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(4.5rem, 9vw, 9.8rem);
  line-height: 0.83;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.7rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 770px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

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

.truth-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 870px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
}

.truth-strip span {
  min-height: 70px;
  padding: 15px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(8, 14, 11, 0.62);
  font-size: 0.9rem;
  font-weight: 820;
}

.hero-console {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 28, 22, 0.76), rgba(9, 14, 12, 0.84)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 36px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.status-light {
  width: 9px;
  height: 9px;
  background: var(--mint);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(152, 217, 181, 0.85);
}

.console-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console-list li:last-child {
  border-bottom: 0;
}

.console-list span {
  grid-row: span 2;
  color: var(--amber);
  font-weight: 950;
}

.console-list strong {
  color: #fff;
}

.console-list em {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
  font-size: 0.88rem;
}

.signal-band {
  padding: 28px clamp(18px, 4vw, 54px);
  color: #f5eee2;
  background: var(--forest);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.signal-band p {
  width: min(1120px, 100%);
  margin: 0 auto;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 850;
}

.control-room,
.manifesto,
.method,
.artifacts,
.sprint,
.brief {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 124px) 0;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 36px;
}

.section-heading.wide {
  max-width: 1040px;
}

.section-heading p:not(.eyebrow),
.map-intro p,
.manifesto-copy p,
.sprint-copy p,
.brief p {
  color: var(--muted);
  font-size: 1.06rem;
}

.map-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.map-intro,
.command-map,
.manifesto-grid div,
.method-grid article,
.artifact-wall article,
.sprint-panel,
.brief-tool {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.map-intro {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.map-intro h3 {
  margin-bottom: 12px;
}

.map-controls {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 28px;
}

.map-controls button,
.segmented button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #25302b;
  background: #f8f2e8;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.map-controls button.is-active,
.segmented button.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.command-map {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #101713, #0c120f),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 54px);
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.path {
  fill: none;
  stroke: rgba(152, 217, 181, 0.34);
  stroke-linecap: round;
  stroke-width: 2.8;
  stroke-dasharray: 8 13;
  animation: dash 12s linear infinite;
}

.p2 {
  stroke: rgba(241, 189, 112, 0.42);
  animation-duration: 15s;
}

.p3,
.p5 {
  stroke: rgba(197, 121, 60, 0.38);
  animation-duration: 18s;
}

.map-node {
  position: absolute;
  width: clamp(150px, 18vw, 205px);
  padding: 15px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.map-node span {
  display: block;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.map-node strong,
.map-node em {
  display: block;
}

.map-node strong {
  margin-top: 5px;
  color: #fff;
  font-size: 1.02rem;
}

.map-node em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
  font-size: 0.83rem;
}

.node-intake {
  top: 56px;
  left: 42px;
}

.node-agent {
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
}

.node-human {
  top: 66px;
  right: 48px;
}

.node-tools {
  right: 54px;
  bottom: 78px;
}

.node-proof {
  left: 72px;
  bottom: 52px;
}

.command-map[data-active-mode="inspect"] [data-node="intake"],
.command-map[data-active-mode="inspect"] [data-node="agent"],
.command-map[data-active-mode="gate"] [data-node="agent"],
.command-map[data-active-mode="gate"] [data-node="human"],
.command-map[data-active-mode="command"] [data-node="human"],
.command-map[data-active-mode="command"] [data-node="tools"],
.command-map[data-active-mode="recover"] [data-node="tools"],
.command-map[data-active-mode="recover"] [data-node="proof"] {
  border-color: rgba(152, 217, 181, 0.62);
  background: rgba(47, 122, 89, 0.24);
}

.map-output {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 11, 9, 0.82);
  backdrop-filter: blur(12px);
}

.map-output span {
  display: block;
  margin-bottom: 8px;
  color: var(--mint);
  font-weight: 950;
}

.map-output ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.manifesto-copy h2 {
  margin-bottom: 22px;
}

.manifesto-grid {
  display: grid;
  gap: 12px;
}

.manifesto-grid div {
  padding: 22px;
}

.manifesto-grid span,
.method-grid span,
.phase span {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.manifesto-grid strong,
.artifact-wall strong,
.phase strong {
  display: block;
  font-size: 1.08rem;
}

.manifesto-grid p,
.method-grid p,
.artifact-wall p,
.phase p {
  color: var(--muted);
}

.method,
.artifacts,
.sprint,
.brief {
  border-top: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.method-grid article {
  min-height: 315px;
  padding: 24px;
}

.method-grid article:nth-child(2),
.method-grid article:nth-child(4) {
  margin-top: 42px;
}

.method-grid h3 {
  margin-bottom: 14px;
  font-size: 1.42rem;
}

.artifact-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.artifact-wall article {
  min-height: 210px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(47, 122, 89, 0.07), transparent 52%),
    var(--panel);
}

.sprint {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.sprint-copy h2 {
  margin-bottom: 22px;
}

.sprint-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  padding: 0;
  background: var(--line);
}

.phase {
  padding: 24px;
  background: var(--panel);
}

.brief {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 0.92fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.brief h2 {
  margin-bottom: 22px;
}

.brief-tool {
  padding: 22px;
  box-shadow: var(--shadow);
}

fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: #303835;
  font-weight: 850;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segmented button {
  text-align: center;
  font-size: 0.92rem;
}

.brief-output {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(47, 122, 89, 0.32);
  border-radius: 8px;
  background: #eaf4ed;
}

.brief-output span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.brief-output p {
  margin: 0;
  color: #27342d;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.75);
  background: var(--deep);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer strong {
  color: #fff;
}

.footer-links {
  justify-content: flex-end;
}

@keyframes dash {
  to {
    stroke-dashoffset: -180;
  }
}

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

  .brand {
    min-width: 0;
  }

  .hero-grid,
  .map-shell,
  .manifesto,
  .sprint,
  .brief {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
    min-height: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-console {
    max-width: 620px;
  }

  .truth-strip,
  .method-grid,
  .artifact-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid article:nth-child(2),
  .method-grid article:nth-child(4) {
    margin-top: 0;
  }

  .brief {
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .brand {
    flex: 0 1 auto;
    max-width: 184px;
  }

  .brand strong {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .brand-extra {
    display: none;
  }

  .brand small {
    display: none;
  }

  .header-action {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    margin-left: auto;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .hero-grid {
    width: calc(100% - 28px);
    padding-top: 44px;
    padding-bottom: 32px;
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 10, 8, 0.98), rgba(6, 10, 8, 0.78)),
      linear-gradient(180deg, rgba(6, 10, 8, 0.22), rgba(6, 10, 8, 0.88));
  }

  h1 {
    font-size: clamp(3.3rem, 16vw, 4.75rem);
    line-height: 0.86;
  }

  h2 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
    line-height: 0.96;
  }

  h3 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1.02rem;
  }

  .hero-actions,
  .truth-strip,
  .method-grid,
  .artifact-wall,
  .segmented {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    white-space: normal;
  }

  .truth-strip span {
    min-height: auto;
  }

  .hero-console {
    display: none;
  }

  .control-room,
  .manifesto,
  .method,
  .artifacts,
  .sprint,
  .brief {
    width: calc(100% - 28px);
    padding: 58px 0;
  }

  .command-map {
    min-height: 680px;
    overflow: visible;
  }

  .map-lines {
    display: none;
  }

  .map-node {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 14px;
    transform: none;
  }

  .map-output {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 14px;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .header-action {
    max-width: 138px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: 3rem;
  }
}

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