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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text: #e8e8e8;
  --muted: #555555;
  --accent: #39d353;
  --font: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Nav */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 56px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.nav-brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--accent);
  transition: color 0.15s;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 104px 56px 80px;
  max-width: 1000px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  flex-shrink: 0;
}

#ambient-canvas {
  display: block;
  opacity: 0.9;
}

.hero h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 6px;
}

.hero-links {
  display: flex;
  gap: 28px;
  margin-top: 36px;
}

.hero-links a {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.hero-links a:hover {
  color: var(--text);
  border-color: var(--muted);
}


/* Section Cards */

.section-label {
  padding: 0 56px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 56px 96px;
  max-width: 1200px;
}

.card {
  display: block;
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: 4px;
  transition: background 0.15s, border-color 0.2s;
  cursor: pointer;
}

.card:hover {
  background: var(--surface);
  border-color: #2e2e2e;
}

.card:hover .card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.card-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.card-outcome {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.35;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.2px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.card-arrow {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}

/* Resume Page */

.pdf-container {
  height: calc(100vh - 74px);
  width: 100%;
}

.pdf-container embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Case Study Page */

.prose {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 56px 104px;
}

.prose h1 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.prose h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 56px 0 20px;
}

.prose h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 44px 0 16px;
}

.prose p {
  font-size: 15px;
  line-height: 1.85;
  color: #c4c4c4;
  margin-bottom: 22px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 52px 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.prose ol li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 6px;
}

/* Case Study Image */

.case-image {
  margin: 48px 0;
  text-align: center;
}

.case-image img {
  max-width: 200px;
  width: 100%;
  filter: invert(1);
  opacity: 0.75;
}

/* Responsive */

@media (max-width: 640px) {
  nav {
    padding: 20px 24px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 64px 24px 56px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section-label {
    padding: 0 24px;
  }

  .cards {
    grid-template-columns: 1fr;
    padding: 0 24px 72px;
  }

  .hero-visual {
    display: none;
  }

  .prose {
    padding: 48px 24px 80px;
  }
}
