@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --panel-2: #121212;
  --text: #f2f2ed;
  --muted: #969690;
  --line: rgba(255,255,255,.13);
  --accent: #e8ff45;
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #070707; font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 66px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(5,5,5,.88);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 4px var(--bg);
  background: var(--accent);
}
.site-nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}
.menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: var(--text);
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  gap: 5vw;
  padding: 130px clamp(22px, 5vw, 86px) 90px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 45%, black, transparent 66%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(54px, 6.2vw, 108px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 500;
}
.hero-intro {
  max-width: 650px;
  color: #b7b7b0;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 38px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #070707; border-color: var(--accent); }
.button-ghost { background: rgba(255,255,255,.02); }

.machine-visual { position: relative; z-index: 2; min-height: 550px; }
.machine-visual svg { width: 100%; height: 100%; overflow: visible; }
.machine-lines {
  fill: none;
  stroke: rgba(232,255,69,.62);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(232,255,69,.16));
}
.machine-points { fill: var(--accent); }
.scan-line {
  position: absolute;
  left: 7%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent);
  animation: scan 5s linear infinite;
}
@keyframes scan {
  0% { top: 15%; opacity: 0; }
  10%, 90% { opacity: .8; }
  100% { top: 82%; opacity: 0; }
}
.machine-label {
  position: absolute;
  right: 5%;
  bottom: 8%;
  padding-left: 16px;
  border-left: 1px solid var(--accent);
}
.machine-label span {
  display: block;
  color: var(--accent);
  font: 11px "Space Mono", monospace;
  text-transform: uppercase;
}
.machine-label strong { display: block; margin-top: 5px; font-size: 13px; }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: clamp(22px, 5vw, 86px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 11px "Space Mono", monospace;
  text-transform: uppercase;
}
.scroll-hint i { width: 55px; height: 1px; background: var(--line); position: relative; }
.scroll-hint i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  background: var(--accent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translateX(37px); } }

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 140px 0;
  border-top: 1px solid var(--line);
}
.section-heading { max-width: 950px; margin-bottom: 70px; }
h2 {
  margin-bottom: 22px;
  font-size: clamp(40px, 5vw, 78px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 500;
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.mission-card {
  min-height: 410px;
  padding: 28px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.mission-card:hover { background: var(--panel-2); }
.mission-card.active { background: linear-gradient(180deg, rgba(232,255,69,.09), var(--panel) 45%); }
.mission-number {
  color: #565650;
  font: 56px "Space Mono", monospace;
  letter-spacing: -.08em;
}
.status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 70px 0 20px;
  color: var(--accent);
  font: 11px "Space Mono", monospace;
  text-transform: uppercase;
}
.status span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.muted { color: #6c6c66; }
.mission-card h3 { font-size: 23px; letter-spacing: -.03em; }
.mission-card > p:not(.status) { color: var(--muted); min-height: 76px; }
.progress { height: 2px; background: #2a2a27; margin: 34px 0 13px; }
.progress i { display: block; height: 100%; background: var(--accent); }
.mission-card small { color: #74746e; font: 10px "Space Mono", monospace; text-transform: uppercase; }

.split-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10vw;
}
.sticky-copy { align-self: start; position: sticky; top: 130px; }
.sticky-copy > p:last-child {
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.systems-list { border-top: 1px solid var(--line); }
.systems-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.systems-list article > span {
  color: var(--accent);
  font: 12px "Space Mono", monospace;
}
.systems-list h3 { font-size: 27px; letter-spacing: -.035em; }
.systems-list p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.manifesto {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vw max(22px, calc((100vw - var(--max)) / 2));
  background: var(--accent);
  color: #070707;
}
.manifesto p {
  max-width: 1200px;
  margin-bottom: 45px;
  font-size: clamp(42px, 6.5vw, 110px);
  line-height: .97;
  letter-spacing: -.065em;
}
.manifesto strong {
  font: 14px "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.timeline article {
  min-height: 270px;
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}
.timeline article:first-child { border-left: 1px solid var(--line); }
.timeline p { color: var(--accent); font: 11px "Space Mono", monospace; text-transform: uppercase; }
.timeline h3 { margin: 70px 0 12px; font-size: 36px; letter-spacing: -.05em; }
.timeline span { color: var(--muted); font-size: 13px; line-height: 1.7; }

.join-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 9vw;
  align-items: end;
}
.join-copy { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.join-panel {
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.join-panel p { font-size: 22px; line-height: 1.5; }
.join-panel .button { width: 100%; margin: 20px 0; }
.join-panel small { color: var(--muted); font: 10px "Space Mono", monospace; text-transform: uppercase; }

footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 30px 0 45px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer div { display: flex; align-items: center; gap: 12px; color: var(--text); }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .machine-visual { min-height: 420px; margin-top: -40px; }
  .mission-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .split-section, .join-section { grid-template-columns: 1fr; gap: 70px; }
  .sticky-copy { position: static; }
}
@media (max-width: 720px) {
  .site-header { height: 64px; }
  .menu-button { display: block; }
  .js .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(5,5,5,.98);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.open { display: flex; }
  .site-nav { flex-direction: column; gap: 0; }
  .site-nav a { padding: 18px 22px; border-top: 1px solid var(--line); }
  .hero { padding: 110px 22px 90px; }
  .hero-copy { padding-top: 20px; }
  h1 { font-size: clamp(48px, 14vw, 72px); }
  .machine-visual { min-height: 300px; margin-top: 0; }
  .machine-label { bottom: 0; }
  .scroll-hint { left: 22px; }
  .section { padding: 90px 0; }
  .mission-grid, .timeline { grid-template-columns: 1fr; }
  .mission-card { min-height: 350px; }
  .timeline article { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .manifesto { min-height: 70vh; padding-top: 110px; padding-bottom: 110px; }
  footer { grid-template-columns: 1fr; gap: 14px; }
  footer p:nth-child(2), footer p:last-child { text-align: left; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Origin — intentionally placed as the final page of the story */
.origin-section { padding-bottom: 70px; }
.origin-heading { max-width: 1020px; }
.origin-intro { max-width: 780px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.origin-gallery {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  grid-template-rows: repeat(2, minmax(250px, 34vw));
  gap: 14px;
}
.origin-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.origin-photo-main { grid-row: 1 / 3; }
.origin-photo picture { display: block; width: 100%; height: 100%; }
.origin-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s ease; }
.origin-photo:hover img, .origin-photo:focus-within img { transform: scale(1.018); }
.origin-photo figcaption {
  position: absolute; inset: auto 0 0 0; display: flex; gap: 14px; align-items: center;
  padding: 18px 20px; background: linear-gradient(transparent, rgba(0,0,0,.86));
  font: 11px "Space Mono", monospace; text-transform: uppercase; letter-spacing: .08em;
}
.origin-photo figcaption span { color: var(--accent); }
.future-vision {
  margin-top: 120px; padding-top: 70px; border-top: 1px solid var(--line);
}
.future-copy { max-width: 820px; margin-bottom: 44px; }
.future-copy h3 { font-size: clamp(42px, 5vw, 74px); letter-spacing: -.055em; font-weight: 500; margin-bottom: 20px; }
.future-copy > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.75; }
.future-vision > picture { display: block; }
.future-vision img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.day-one {
  min-height: 85vh; display: flex; flex-direction: column; justify-content: center;
  margin-top: 130px; padding: 11vw clamp(22px, 6vw, 90px);
  background: var(--panel); border: 1px solid var(--line);
}
.day-one h2 { max-width: 1050px; }
.day-one-lines { margin: 30px 0 38px; color: var(--muted); font-size: clamp(17px, 1.5vw, 22px); }
.day-one-lines p { margin-bottom: 8px; }
.day-one strong { display: block; margin-bottom: 35px; color: var(--accent); font-size: clamp(26px, 3vw, 48px); letter-spacing: -.04em; }
.day-one .button { align-self: flex-start; }
@media (max-width: 720px) {
  .origin-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .origin-photo-main { grid-row: auto; }
  .origin-photo { aspect-ratio: 4 / 3; }
  .future-vision { margin-top: 80px; }
  .day-one { min-height: 75vh; margin-top: 80px; padding: 80px 22px; }
}
