:root {
  --bg: #0b0d0f;
  --bg-alt: #12151a;
  --ink: #e8eaed;
  --muted: #8b9198;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Familjen Grotesk', sans-serif;
}
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--bg); }

.mono-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.mono-code { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.mono-sector { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }

.section-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 56px; max-width: 640px; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-2px); }
.btn-glow { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
.btn-glow:hover { box-shadow: 0 0 28px 2px rgba(45, 212, 191, 0.45); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: rgba(45, 212, 191, 0.5); background: rgba(255, 255, 255, 0.04); color: var(--ink); transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(11, 13, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { opacity: 1; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a:not(.btn) { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.main-nav a:not(.btn):hover { color: var(--ink); }
.nav-cta { padding: 10px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle-bar { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a:not(.btn) { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 24px; color: var(--ink); }
.mobile-menu-cta { margin-top: 12px; padding: 14px 32px; font-size: 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; padding: 96px 0; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(11,13,15,0) 0%, #0b0d0f 85%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-content .mono-eyebrow { margin-bottom: 0; }
.hero-content h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero-lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 560px; line-height: 1.6; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pillar-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.pillar-card h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 21px; }
.pillar-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Metrics */
.metrics-panel { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 48px 36px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric-value { font-family: 'Space Mono', monospace; font-weight: 700; font-size: clamp(30px, 4vw, 44px); color: var(--ink); }
.metric-label { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }

/* Portfolio */
.portfolio-list { display: flex; flex-direction: column; gap: 96px; }
.portfolio-item { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.portfolio-visual { position: relative; flex: 1 1 460px; min-width: 320px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; will-change: transform; }
.img-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #14171c, #14171c 12px, #191c22 12px, #191c22 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 12px;
}
.label-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.label-line { stroke: var(--accent); stroke-width: 0.3; opacity: 0; transition: opacity 0.5s ease; }
.label-dot { fill: var(--accent); opacity: 0; transition: opacity 0.5s ease; }
.data-label {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  background: rgba(11, 13, 15, 0.85);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 6px;
  padding: 6px 10px;
  white-space: nowrap;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.data-label.is-visible, .label-line.is-visible, .label-dot.is-visible { opacity: 1; }

.portfolio-body { flex: 1 1 320px; min-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.portfolio-body h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 26px; }
.portfolio-body p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.portfolio-result { font-family: 'Space Mono', monospace; font-size: 20px; color: var(--accent); margin-top: 8px; }

/* Featured mission */
.featured-inner { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.featured-frame { position: relative; border-radius: 12px; overflow: hidden; min-height: clamp(560px, 75vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; }
.featured-img { position: absolute; inset: 0; z-index: 0; }
.featured-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,15,0) 40%, rgba(11,13,15,0.9) 100%); pointer-events: none; z-index: 1; }
.featured-content { position: relative; z-index: 2; padding: 56px; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.featured-content h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(28px, 4.5vw, 46px); letter-spacing: -0.02em; }
.featured-content p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.featured-content .mono-eyebrow { margin-bottom: 0; }

/* Closing */
.closing-section { max-width: 760px; margin: 0 auto; padding: 96px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing-section h2 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.02em; }
.closing-section p { font-size: 16px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 80px 24px 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 220px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; }
.footer-legal span { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .portfolio-visual { transform: none !important; }
  .btn { transition: none; }
}

@media (max-width: 840px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-content h1 { font-size: clamp(34px, 9vw, 50px); }
  .portfolio-item { flex-direction: column; align-items: stretch; }
}
