/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0d0d;
  --surface:     #141414;
  --surface-2:   #1c1c1c;
  --border:      #242424;
  --text:        #e0e0e0;
  --muted:       #777;
  --faint:       #444;
  --accent:      #5aacf0;
  --accent-dim:  rgba(90, 172, 240, 0.08);
  --accent-mid:  rgba(90, 172, 240, 0.25);
  --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Google Font (Open Sans) ────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.nav-brand span {
  color: var(--accent);
}

.nav-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.hero-logo {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 2rem;
  display: block;
}

.footer-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(0.25);
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ── Page Wrapper ───────────────────────────────────────────── */
main {
  margin-top: var(--nav-h);
  flex: 1;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(90,172,240,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: #999;
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.75rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: var(--accent-dim);
}

/* ── Highlights strip (homepage) ────────────────────────────── */
.highlights {
  border-bottom: 1px solid var(--border);
}

.highlights-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.highlight-item {
  padding: 3.5rem 2rem;
  border-right: 1px solid var(--border);
}

.highlight-item:last-child { border-right: none; }

.highlight-item .number {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.highlight-item .number span {
  color: var(--accent);
}

.highlight-item .label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Section base ───────────────────────────────────────────── */
.section {
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* ── Intro blurb (about page) ───────────────────────────────── */
.intro-blurb {
  max-width: 720px;
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ── Project cards ──────────────────────────────────────────── */
.project-grid {
  display: grid;
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.project-card {
  background: var(--surface);
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.project-card:hover { background: var(--surface-2); }

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.65rem;
}

.project-card p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.75;
}

.project-stat {
  text-align: right;
  white-space: nowrap;
}

.project-stat .fig {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.project-stat .fig span { color: var(--accent); }

.project-stat .fig-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ── Capability grid ────────────────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.cap-item {
  background: var(--surface);
  padding: 2rem 2.25rem;
}

.cap-item:hover { background: var(--surface-2); }

.cap-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.cap-item p {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.7;
}

/* ── Contact page ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.contact-info p {
  font-size: 0.95rem;
  color: #999;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-mid);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select option {
  background: var(--surface);
}

.btn-submit {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  border-radius: 3px;
  padding: 0.8rem 1.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-submit:hover { background: rgba(90, 172, 240, 0.14); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--faint);
}

/* ── Hamburger toggle ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 2.5rem 1rem;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 1rem 0;
  }

  .nav-links a.active { border-bottom: none; padding-bottom: 1rem; }

  .highlights-inner {
    grid-template-columns: 1fr;
  }
  .highlight-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem;
  }
  .highlight-item:last-child { border-bottom: none; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-stat { text-align: left; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
