:root {
  color-scheme: dark;
  --bg: #0f1411;
  --bg-elevated: #18211c;
  --ink: #f4f1e8;
  --muted: #c4c2b5;
  --quiet: #8f9386;
  --line: rgba(244, 241, 232, 0.18);
  --green: #79c88c;
  --amber: #d5a84f;
  --cyan: #72b6bf;
  --rust: #bf735b;
  --shadow: rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
  background: rgba(15, 20, 17, 0.74);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.repo-link,
.button,
.text-link,
.copy-button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(121, 200, 140, 0.55);
  color: var(--green);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a,
.repo-link,
.text-link {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.repo-link:hover,
.text-link:hover {
  color: var(--ink);
}

.repo-link {
  justify-self: end;
  padding: 9px 13px;
  border: 1px solid rgba(244, 241, 232, 0.2);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: clamp(560px, 76svh, 760px);
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 72px) 68px;
  isolation: isolate;
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 20, 17, 0.93) 0%, rgba(15, 20, 17, 0.72) 42%, rgba(15, 20, 17, 0.22) 100%),
    linear-gradient(0deg, rgba(15, 20, 17, 0.92) 0%, rgba(15, 20, 17, 0.06) 52%);
}

.hero-content {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 12ch;
  font-size: clamp(3.4rem, 8.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  font-weight: 740;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #0c130f;
}

.button.secondary {
  background: rgba(15, 20, 17, 0.42);
  color: var(--ink);
}

.truth-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.truth-band div {
  min-height: 112px;
  padding: 24px clamp(20px, 4vw, 48px);
  background: #121914;
}

.truth-band strong,
.truth-band span {
  display: block;
}

.truth-band strong {
  margin-bottom: 8px;
}

.truth-band span {
  color: var(--quiet);
}

.section,
.split-section,
.gallery,
.boundary {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.section-copy p,
.split-copy p,
.boundary p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
}

.flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: grid;
  place-items: center;
  align-self: stretch;
  color: var(--green);
  border-right: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
}

.flow li {
  padding-right: 18px;
}

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

.lane-grid,
.command-grid,
.image-grid {
  display: grid;
  gap: 14px;
}

.lane-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lane,
.command-card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.lane {
  min-height: 214px;
  padding: 24px;
}

.lane p {
  color: var(--muted);
}

.lane span {
  display: block;
  margin-top: 22px;
  color: var(--cyan);
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #151b17;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-media {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.fact-list {
  display: grid;
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  background: #101611;
}

.fact-list dt {
  color: var(--amber);
  font-weight: 800;
}

.fact-list dd {
  margin: 0;
  color: var(--muted);
}

.command-section {
  background: #0d1310;
}

.command-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-card {
  min-width: 0;
}

.command-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.command-card h3 {
  margin: 0;
}

.copy-button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(121, 200, 140, 0.45);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.copy-button:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.repo-link:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

pre {
  min-height: 124px;
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #dce8dc;
  background: #090d0b;
}

pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.gallery {
  background: #141915;
}

.image-grid {
  grid-template-columns: 1.25fr 1fr 0.75fr;
  align-items: stretch;
}

figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: #080b09;
}

figcaption {
  padding: 13px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.boundary {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #1b1b15;
}

.boundary h2 {
  margin-bottom: 0;
  color: var(--rust);
}

.boundary p {
  margin: 0;
}

.text-link {
  justify-self: end;
  min-width: max-content;
  color: var(--green);
  font-weight: 760;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--quiet);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.not-found .boundary {
  min-height: 100svh;
}

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

  .site-nav {
    display: none;
  }

  .truth-band,
  .lane-grid,
  .command-grid,
  .image-grid,
  .intro,
  .split-section,
  .boundary {
    grid-template-columns: 1fr;
  }

  .boundary .text-link {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding-inline: 14px;
  }

  .repo-link {
    padding-inline: 10px;
  }

  .hero {
    min-height: 76svh;
    padding: 96px 18px 44px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions {
    display: grid;
  }

  .truth-band div,
  .section,
  .split-section,
  .gallery,
  .boundary {
    padding-inline: 18px;
  }

  .section-heading {
    display: block;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  figure img {
    height: 260px;
  }
}
