:root {
  --bg: #080907;
  --ink: #101410;
  --paper: #ece6d8;
  --panel: rgba(19, 22, 18, 0.86);
  --panel-strong: rgba(23, 26, 21, 0.96);
  --text: #f5f0e6;
  --muted: #b9b2a4;
  --dim: #7c7568;
  --line: rgba(236, 230, 216, 0.15);
  --green: #6fe7a8;
  --cyan: #8acbd1;
  --oxide: #c8875b;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 18% 22%, rgba(200, 135, 91, 0.08), transparent 28%),
    linear-gradient(rgba(236, 230, 216, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 230, 216, 0.018) 1px, transparent 1px),
    #080907;
  background-size: auto, 64px 64px, 64px 64px, auto;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(22px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 7, 0.76);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(236, 230, 216, 0.24);
  border-radius: 8px;
  background: rgba(236, 230, 216, 0.07);
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

nav {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: center;
  padding: 116px max(22px, calc((100vw - var(--max)) / 2)) 72px;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-media {
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.82) contrast(0.92) brightness(0.84);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 9, 7, 0.97), rgba(8, 9, 7, 0.76) 48%, rgba(8, 9, 7, 0.2)),
    linear-gradient(180deg, rgba(8, 9, 7, 0.2), #080907 98%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--oxide);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7.8vw, 104px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  font-size: 19px;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--paper);
  color: var(--ink);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-panel {
  position: absolute;
  z-index: 2;
  right: max(22px, calc((100vw - var(--max)) / 2));
  bottom: 72px;
  width: min(340px, calc(100vw - 44px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 7, 0.72);
  backdrop-filter: blur(16px);
}

.panel-label {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-panel p {
  margin-bottom: 0;
}

.section,
.system-grid,
.lab-section,
.signals,
.contact,
footer {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  padding: 96px 0 58px;
}

.intro p {
  align-self: end;
  font-size: 18px;
}

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

.system-grid article,
.signal-list article {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(236, 230, 216, 0.045), rgba(236, 230, 216, 0.012)),
    rgba(14, 16, 13, 0.86);
}

.system-grid span {
  display: block;
  margin-bottom: 58px;
  color: var(--oxide);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lab-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 118px 0;
}

.lab-copy p:last-child {
  font-size: 18px;
}

.orbital-map {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(111, 231, 168, 0.12), transparent 23%),
    linear-gradient(135deg, rgba(236, 230, 216, 0.06), rgba(200, 135, 91, 0.07)),
    rgba(13, 15, 12, 0.82);
  overflow: hidden;
}

.orbital-map::before,
.orbital-map::after {
  position: absolute;
  inset: 13%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.orbital-map::after {
  inset: 27%;
  border-color: rgba(200, 135, 91, 0.28);
}

.node {
  position: absolute;
  z-index: 2;
  min-width: 118px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 9, 7, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.node.active {
  border-color: rgba(71, 240, 173, 0.75);
  color: var(--green);
}

.node[data-node="software"] {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.node[data-node="intelligence"] {
  top: 45%;
  right: 8%;
}

.node[data-node="biology"] {
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.node[data-node="future"] {
  top: 45%;
  left: 8%;
}

.map-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(250px, 58%);
  min-height: 176px;
  display: grid;
  place-items: center;
  padding: 22px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(236, 230, 216, 0.22);
  border-radius: 8px;
  background: rgba(8, 9, 7, 0.86);
  text-align: center;
}

.map-core span {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.map-core p {
  margin-bottom: 0;
  font-size: 14px;
}

.signals {
  padding: 88px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 34px;
}

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

.signal-list article {
  min-height: 220px;
}

.contact {
  margin-bottom: 84px;
  padding: 68px;
  border: 1px solid rgba(71, 240, 173, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(200, 135, 91, 0.14), transparent 34%),
    var(--panel-strong);
}

.contact p {
  max-width: 620px;
  font-size: 18px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--text);
}

.legal-page {
  width: min(820px, calc(100% - 44px));
  margin: 0 auto;
  padding: 150px 0 96px;
}

.legal-page h1 {
  font-size: clamp(46px, 8vw, 82px);
}

.legal-page p {
  max-width: 690px;
  font-size: 18px;
}

.legal-page .button {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 128px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 9, 7, 0.86), rgba(8, 9, 7, 0.72), #080907 98%),
      linear-gradient(90deg, rgba(8, 9, 7, 0.9), rgba(8, 9, 7, 0.28));
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
  }

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

  .system-grid,
  .signal-list {
    grid-template-columns: 1fr;
  }

  .system-grid article,
  .signal-list article {
    min-height: auto;
  }

  .system-grid span {
    margin-bottom: 34px;
  }

  .orbital-map {
    min-height: 440px;
  }

  .contact {
    padding: 34px 24px;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: 56px;
  }

  .button {
    width: 100%;
  }

  .node {
    min-width: 96px;
    font-size: 12px;
  }

  .node[data-node="intelligence"] {
    right: 4%;
  }

  .node[data-node="future"] {
    left: 4%;
  }
}
