:root {
  color-scheme: dark;
  --bg: #050404;
  --bg-2: #0a0807;
  --ink: #fff7ed;
  --soft: rgb(255 247 237 / 74%);
  --muted: rgb(255 247 237 / 48%);
  --line: rgb(255 247 237 / 15%);
  --line-strong: rgb(255 247 237 / 32%);
  --red: #ff1717;
  --red-dark: #640808;
  --panel: #0d0b0a;
  --radius: 8px;
  --max: 1248px;
  --display: Constantia, "Lucida Bright", "Palatino Linotype", Georgia, serif;
  --sans: Bahnschrift, "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(180deg, #050404 0%, #090706 48%, #030303 100%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.36;
  background:
    linear-gradient(90deg, rgb(255 247 237 / 6%) 0 1px, transparent 1px calc(100% - 1px), rgb(255 247 237 / 6%) calc(100% - 1px)),
    repeating-linear-gradient(0deg, rgb(255 247 237 / 2%) 0 1px, transparent 1px 18px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgb(255 23 23 / 16%), transparent 24rem),
    linear-gradient(90deg, #050404 0%, transparent 14%, transparent 86%, #050404 100%);
}

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

a {
  color: inherit;
}

h1,
h2,
p,
figure,
ol {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 430;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 7rem;
  line-height: 0.9;
}

h2 {
  max-width: 760px;
  font-size: 4rem;
  line-height: 0.96;
}

p,
a,
span,
strong {
  overflow-wrap: break-word;
}

::selection {
  background: rgb(255 23 23 / 42%);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-220%);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(5 4 4 / 82%);
  backdrop-filter: blur(18px);
}

.nav,
.hero,
.thesis,
.lineage,
.flow,
.boundary,
.download,
.site-footer {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.nav {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}

.brand,
.nav-links,
.actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  width: max-content;
  min-height: 44px;
  gap: 0.62rem;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
  filter: saturate(0) contrast(1.12);
}

.nav-links {
  justify-content: center;
  gap: 1.32rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.nav-links a,
.footer-links a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}

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

.nav-cta,
.button {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.08rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 780;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav-cta {
  justify-self: end;
}

.button.primary,
.nav-cta {
  border-color: rgb(255 23 23 / 72%);
  background:
    linear-gradient(180deg, rgb(255 23 23 / 34%), rgb(100 8 8 / 42%)),
    #160707;
  box-shadow:
    inset 0 1px 0 rgb(255 247 237 / 12%),
    0 18px 52px rgb(255 23 23 / 14%);
}

.button.secondary {
  background: rgb(255 247 237 / 4%);
  color: var(--soft);
}

.button:hover,
.nav-cta:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  padding: 2rem 0 7rem;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #030303;
  box-shadow:
    inset 0 0 0 1px rgb(255 247 237 / 3%),
    0 34px 130px rgb(0 0 0 / 64%);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(5 4 4 / 2%) 0%, transparent 36%, rgb(5 4 4 / 14%) 100%),
    linear-gradient(180deg, transparent 0%, rgb(5 4 4 / 10%) 58%, rgb(5 4 4 / 40%) 100%);
}

.hero-art::after {
  z-index: 2;
  border: 1px solid rgb(255 247 237 / 12%);
  border-radius: inherit;
}

.hero-art img {
  width: 100%;
  height: auto;
  filter: contrast(1.04) saturate(0.98);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.48fr);
  gap: 4.5rem;
  align-items: end;
  padding-top: 4.2rem;
}

.kicker {
  margin-bottom: 1rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.hero-secondary {
  max-width: 470px;
  color: var(--soft);
  font-size: 1.08rem;
}

.hero-secondary p {
  margin-bottom: 1.55rem;
}

.actions {
  flex-wrap: wrap;
  gap: 0.85rem;
}

.proof-strip {
  margin-top: 4.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-strip span {
  min-height: 74px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 780;
  text-align: center;
}

.proof-strip span:last-child {
  border-right: 0;
}

.thesis,
.lineage,
.flow,
.boundary,
.download {
  padding: 7rem 0;
}

.thesis,
.lineage,
.boundary {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(320px, 0.36fr);
  gap: 5rem;
  align-items: start;
}

.section-copy {
  color: var(--soft);
  font-size: 1.05rem;
}

.section-copy p + p {
  margin-top: 1.25rem;
  color: var(--muted);
}

.flow {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(420px, 0.52fr);
  gap: 5rem;
  align-items: start;
}

.steps {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 1.2rem;
}

.steps span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 820;
}

.steps strong {
  color: var(--ink);
  font-size: 1.12rem;
}

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

.boundary-list p {
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  padding: 1rem 0;
}

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

.download h2 {
  max-width: 700px;
  margin-bottom: 1.8rem;
}

.site-footer {
  min-height: 146px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
}

.site-footer strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

@media (max-width: 1050px) {
  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.25rem;
  }

  .hero-grid,
  .thesis,
  .lineage,
  .flow,
  .boundary {
    grid-template-columns: 1fr;
  }

  .hero-secondary {
    max-width: 660px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip span:nth-child(2n) {
    border-right: 0;
  }

  .proof-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .nav,
  .hero,
  .thesis,
  .lineage,
  .flow,
  .boundary,
  .download,
  .site-footer {
    width: calc(100% - 32px);
  }

  .nav {
    min-height: auto;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.8rem;
    padding: 0.75rem 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 0 0.9rem;
  }

  .hero {
    padding: 1rem 0 5rem;
  }

  .hero-grid {
    gap: 2rem;
    padding-top: 2.8rem;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-secondary,
  .section-copy {
    font-size: 1rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof-strip {
    margin-top: 3rem;
    grid-template-columns: 1fr;
  }

  .proof-strip span {
    min-height: 58px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .proof-strip span:first-child {
    border-top: 0;
  }

  .thesis,
  .lineage,
  .flow,
  .boundary,
  .download {
    padding: 5rem 0;
    gap: 2.6rem;
  }

  .steps li {
    grid-template-columns: 54px 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem 0;
  }

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

@media (max-width: 420px) {
  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 27px;
    height: 27px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-art {
    border-radius: 0;
  }
}

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

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