:root {
  --bg: #08111d;
  --bg-soft: #101c2b;
  --panel: #132235;
  --text: #edf4ff;
  --muted: #a9b7c9;
  --line: rgba(255,255,255,0.10);
  --accent: #59d5c3;
  --accent-dark: #092b2d;
  --max: 1160px;
  --shadow: 0 18px 50px rgba(0,0,0,0.22);
}

* { 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.65;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 100px 0; }
.muted-section { background: var(--bg-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 29, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #062027;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: .2s ease; }
.nav-links a:hover { color: var(--text); }

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: var(--text);
}

.hero { padding-top: 120px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.12;
}
h1 { font-size: clamp(3rem, 6vw, 5.7rem); max-width: 880px; letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.045em; }
h3 { font-size: 1.3rem; }
.hero-copy, .prose, .card p, .project p, .contact-box p {
  color: var(--muted);
}
.hero-copy { max-width: 760px; margin: 26px 0 0; font-size: 1.1rem; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--accent); color: #062027; }
.secondary { border: 1px solid var(--line); background: rgba(255,255,255,0.03); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.stats div { padding-top: 16px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.2rem; font-family: "Space Grotesk", sans-serif; }
.stats span { color: var(--muted); font-size: 0.88rem; }

.hero-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(19, 34, 53, 0.92);
  box-shadow: var(--shadow);
}
.terminal-header {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.terminal-header span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
}
pre { margin: 0; padding: 22px; overflow-x: auto; font-size: 0.9rem; }
code { color: #dce8f7; }
.code-muted { color: var(--accent); }

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.prose p:first-child { margin-top: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
}
.card-index, .project-number {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}
.card h3 { margin-top: 22px; }
.card p { margin-top: 16px; font-size: 0.94rem; }

.project-list { margin-top: 34px; }
.project {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project-tag {
  margin: 0 0 10px !important;
  color: var(--accent) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project p { max-width: 790px; }

.statement { text-align: center; }
blockquote {
  max-width: 900px;
  margin: 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.contact-section { background: var(--accent); color: #062027; }
.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}
.contact-section .eyebrow, .contact-section p { color: #174447; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; }
.contact-actions .primary { background: #062027; color: var(--text); }
.small-note { margin: 10px 0 0; font-size: 0.78rem; }

footer { padding: 24px 0; border-top: 1px solid var(--line); }
.footer-content {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .hero-grid, .two-columns, .contact-box { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { max-width: 680px; }
}

@media (max-width: 680px) {
  .section { padding: 74px 0; }
  .hero { padding-top: 88px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 18px 20px 24px;
    flex-direction: column;
    gap: 16px;
    background: rgba(8,17,29,0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .stats { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .footer-content { flex-direction: column; gap: 6px; }
}
