:root {
  --bg: #050505;
  --bg-soft: #080808;
  --panel: #101010;
  --panel-hover: #151515;
  --line: #242424;
  --text: #f5f2e8;
  --muted: #a8a8a8;
  --gold: #d6a93b;
  --gold-light: #f5c451;
  --status-active: #59B7FF;
  --status-operational: #5EE6A8;
  --status-experimental: #D66A42;
  --status-planned: #6E7F80;
  --status-archived: #8F98A3;



  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(214, 169, 59, .12), transparent 30rem),
    radial-gradient(circle at 90% 24%, rgba(245, 196, 81, .06), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--gold-light); }

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(5, 5, 5, .86);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: .95rem;
}

.hero {
  padding: 7.2rem 0 5.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  align-items: center;
  gap: 4rem;
}

.kicker, .eyebrow {
  margin: 0 0 .8rem;
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.4rem, 8vw, 7rem);
  letter-spacing: -.065em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.045em;
}

h3 { margin-bottom: .55rem; }

.hero-lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

blockquote {
  margin: 2rem 0 0;
  padding: .15rem 0 .15rem 1.15rem;
  border-left: 4px solid var(--gold);
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 750;
}

.hero-mark {
  display: grid;
  min-height: 320px;
  place-items: center;
  border: 1px solid rgba(214, 169, 59, .2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(214,169,59,.15), rgba(214,169,59,.025) 52%, transparent 68%);
  box-shadow: inset 0 0 80px rgba(214,169,59,.05);
}

.hero-mark img {
  width: min(72%, 300px);
  opacity: .92;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(16,16,16,.8);
  font-weight: 750;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  text-decoration: none;
}

.button-primary {
  border-color: transparent;
  background: var(--gold);
  color: #111;
}

.button-primary:hover {
  background: var(--gold-light);
  color: #111;
}

.text-link {
  padding: .6rem .2rem;
  color: var(--muted);
  font-weight: 650;
}

.section { padding: 5.5rem 0; }

.section-alt {
  border-block: 1px solid rgba(255,255,255,.055);
  background: rgba(8,8,8,.66);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading > p:not(.eyebrow) {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.status-card {
  display: flex;
  gap: .9rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16,16,16,.7);
}

.status-card h3 { margin: 0; }
.status-card p { margin: .1rem 0; color: var(--text); font-weight: 650; }
.status-card small { color: var(--muted); }

.status-dot {
  flex: 0 0 auto;
  width: .7rem;
  height: .7rem;
  margin-top: .42rem;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}
.status-dot.active { color: var(--status-active); background: var(--status-active); }
.status-dot.operational { color: var(--status-operational); background: var(--status-operational); }
.status-dot.experimental { color: var(--status-experimental); background: var(--status-experimental); }
.status-dot.planned { color: var(--status-planned); background: var(--status-planned); }
.status-dot.archived { color: var(--status-archived); background: var(--status-archived); }

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

.project-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background-color: var(--panel-hover);
}

.project-card.featured {
  grid-column: span 8;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: .26rem .58rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #0a0a0a;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.active-pill { color: var(--status-active); }
.operational-pill { color: var(--status-operational); }
.experiment-pill { color: var(--status-experimental); }
.planned-pill { color: var(--status-planned); }
.archived-pill { color: var(--status-archived); }

.project-icon {
  color: var(--gold-light);
  font-size: 1.35rem;
}

.project-type {
  margin: 0 0 .35rem;
  color: var(--gold-light) !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-card p, .project-card li { color: var(--muted); }
.project-card ul { margin: .7rem 0 0; padding-left: 1.15rem; }
.project-card li + li { margin-top: .25rem; }

.card-focus {
  padding-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.065);
}

.card-link {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--gold-light);
  font-weight: 800;
}

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

.tech-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.tech-card h3 { margin-bottom: .35rem; }
.tech-card p { margin: 0; color: var(--muted); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--muted);
}

.process-grid span {
  display: block;
  margin-bottom: .6rem;
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.split-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.focus-list {
  columns: 2;
  column-gap: 3rem;
  margin: 0;
  padding-left: 1.2rem;
}

.focus-list li {
  break-inside: avoid;
  margin-bottom: .75rem;
  color: var(--muted);
}

.connect-section { padding-top: 4.5rem; }

.connect-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid rgba(214, 169, 59, .45);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(214,169,59,.13), rgba(245,196,81,.05)),
    var(--panel);
  box-shadow: var(--shadow);
}

.connect-card > div { max-width: 780px; }
.connect-card p { margin-bottom: 0; color: var(--muted); }

.site-footer {
  margin-top: 4rem;
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .6fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 850;
}

.site-footer h3 {
  margin-bottom: .55rem;
  color: var(--text);
  font-size: .9rem;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin: .2rem 0;
}

.site-footer p { margin: .4rem 0 0; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .status-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-card, .project-card.featured { grid-column: span 6; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: .9rem 0;
  }

  .site-nav { gap: .75rem 1rem; }

  .hero { padding-top: 4.6rem; }
  .section { padding: 4rem 0; }

  .status-grid,
  .tech-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.featured {
    grid-column: 1 / -1;
  }

  .focus-list { columns: 1; }

  .connect-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid { grid-template-columns: 1fr; }
}

/* Shared project-detail structure */
.project-page {
  --accent: var(--gold-light);
  --project-panel: var(--panel);
}

.project-vapor-page {
  --accent: var(--gold-light);
  --project-panel: #101010;
}

.rover-page {
  --accent: var(--gold-light);
  --project-panel: #19160e;
}

.project-page .site-nav a:hover,
.project-page .site-nav a:focus-visible,
.project-page .section-label,
.project-page .section-kicker {
  color: var(--accent);
}

.project-page .project-hero {
  padding: 6rem 0 4.5rem;
}

.project-page .project-hero h1 {
  max-width: none;
  margin: 1rem 0;
}

.project-page .project-hero > .container > p,
.project-page section > .container > p,
.project-page section > .container > ul,
.project-page .card p {
  max-width: 820px;
  color: var(--muted);
}

.project-page .project-hero > .container > p {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.project-page main > .section,
.project-page main > section:not(.project-hero) {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.project-page .section-label,
.project-page .section-kicker {
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-page .grid,
.project-page .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-page .card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--project-panel);
}

.project-page .card h3 { margin-top: 0; }
.project-page .status-box { border-color: color-mix(in srgb, var(--accent) 42%, transparent); }
.project-page .status-box h3 { color: var(--accent); }

.project-page .hero-image {
  width: 100%;
  max-width: 900px;
  max-height: 640px;
  margin: 2.5rem auto 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.project-page .button-primary {
  background: var(--accent);
  color: #111;
}

.project-page .site-footer { text-align: center; }

@media (max-width: 680px) {
  .project-page .project-hero { padding: 4rem 0 3rem; }
  .project-page .grid,
  .project-page .grid-2 { grid-template-columns: 1fr; }
}