    :root {
      --bg: #0f1419;
      --surface: #1a2332;
      --surface-hover: #243044;
      --border: #2d3a4f;
      --text: #e8eef7;
      --text-muted: #94a3b8;
      --accent: #3b82f6;
      --accent-soft: rgba(59, 130, 246, 0.15);
      --teal: #14b8a6;
      --green: #22c55e;
      --indigo: #6366f1;
      --purple: #8b5cf6;
      --radius: 12px;
      --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    }

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

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    /* Header */
    header {
      border-bottom: 1px solid var(--border);
      background: rgba(15, 20, 25, 0.85);
      backdrop-filter: blur(12px);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .nav {
      max-width: 1120px;
      margin: 0 auto;
      padding: 1rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo {
      font-weight: 700;
      font-size: 1.25rem;
      letter-spacing: -0.02em;
      color: var(--text);
      text-decoration: none;
    }

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

    nav a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      margin-left: 1.75rem;
      transition: color 0.2s;
    }

    nav a:hover {
      color: var(--text);
    }

    /* Hero */
    .hero {
      max-width: 1120px;
      margin: 0 auto;
      padding: 4.5rem 1.5rem 3rem;
      text-align: center;
    }

    .hero h1 {
      font-size: clamp(2rem, 5vw, 2.75rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.2;
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: 1.125rem;
      color: var(--text-muted);
      max-width: 560px;
      margin: 0 auto;
    }

    /* Projects Section */
    .projects {
      max-width: 1120px;
      margin: 0 auto;
      padding: 2rem 1.5rem 3rem;
    }

    .section-header {
      margin-bottom: 2.5rem;
      text-align: center;
    }

    .section-header h2 {
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 0.5rem;
    }

    .section-header p {
      color: var(--text-muted);
      font-size: 1rem;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 1.5rem;
    }

    /* Card */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.75rem;
      display: flex;
      flex-direction: column;
      transition: background 0.2s, border-color 0.2s, transform 0.2s;
      position: relative;
      overflow: hidden;
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--card-accent, var(--accent));
      opacity: 0.9;
    }

    .card:hover {
      background: var(--surface-hover);
      border-color: #3d4f6a;
      transform: translateY(-3px);
    }

    .card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.85rem;
    }

    .card h3 {
      font-size: 1.15rem;
      font-weight: 600;
      letter-spacing: -0.01em;
    }

    .badge {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 0.25rem 0.55rem;
      border-radius: 999px;
      white-space: nowrap;
      background: var(--accent-soft);
      color: var(--accent);
    }

    .badge.live {
      background: rgba(34, 197, 94, 0.15);
      color: var(--green);
    }

    .badge.dev {
      background: rgba(99, 102, 241, 0.15);
      color: var(--indigo);
    }

    .badge.partner {
      background: rgba(20, 184, 166, 0.15);
      color: var(--teal);
    }

    .card p {
      color: var(--text-muted);
      font-size: 0.925rem;
      flex-grow: 1;
      margin-bottom: 1.25rem;
    }

    .card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--accent);
      text-decoration: none;
      transition: gap 0.2s;
    }

    .card-link:hover {
      gap: 0.5rem;
    }

    .card-link svg {
      width: 14px;
      height: 14px;
    }

    /* Accent colours per card */
    .card.cadria { --card-accent: #3b82f6; }
    .card.healthhub { --card-accent: #22c55e; }
    .card.datawell { --card-accent: #3b82f6; }
    .card.paix { --card-accent: #8b5cf6; }
    .card.cair { --card-accent: #14b8a6; }

    /* About & Contact sections */
    .about, .contact {
      max-width: 1120px;
      margin: 0 auto;
      padding: 3rem 1.5rem 4rem;
    }

    .about {
      border-top: 1px solid var(--border);
    }

    .contact {
      border-top: 1px solid var(--border);
      padding-bottom: 5rem;
    }

    .content-block {
      max-width: 640px;
      margin: 0 auto;
      text-align: center;
    }

    .content-block h2 {
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 1.25rem;
    }

    .content-block p {
      color: var(--text-muted);
      font-size: 1.05rem;
      margin-bottom: 1rem;
    }

    .content-block a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }

    .content-block a:hover {
      color: #60a5fa;
      text-decoration: underline;
    }

    .company-details {
      margin-top: 1.75rem;
      padding: 1.25rem 1.5rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 0.925rem;
      color: var(--text-muted);
      text-align: left;
    }

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

    .email-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 0.5rem;
      padding: 0.75rem 1.5rem;
      background: var(--accent-soft);
      border: 1px solid rgba(59, 130, 246, 0.3);
      border-radius: 999px;
      color: var(--accent);
      font-weight: 500;
      font-size: 1rem;
      text-decoration: none;
      transition: background 0.2s, border-color 0.2s;
    }

    .email-link:hover {
      background: rgba(59, 130, 246, 0.25);
      border-color: var(--accent);
      text-decoration: none;
    }

    .email-link svg {
      width: 18px;
      height: 18px;
    }

    /* Footer */
    footer {
      border-top: 1px solid var(--border);
      padding: 2rem 1.5rem;
      text-align: center;
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    footer a {
      color: var(--text-muted);
      text-decoration: none;
    }

    footer a:hover {
      color: var(--text);
    }

    @media (max-width: 640px) {
      .grid {
        grid-template-columns: 1fr;
      }
      nav a {
        margin-left: 1rem;
        font-size: 0.85rem;
      }
    }

/* Project detail pages */
.project-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.project-hero .badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.project-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.project-hero .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.project-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.project-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.project-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.025rem;
}

.project-content ul {
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem 1.25rem;
  font-size: 1.025rem;
}

.project-content li {
  margin-bottom: 0.4rem;
}

.project-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.project-content a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.cta-box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.cta-box p {
  margin-bottom: 1rem;
}

.key-details {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.key-details h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.key-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.key-details li {
  color: var(--text-muted);
  font-size: 0.925rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.key-details li:last-child {
  border-bottom: none;
}

.key-details strong {
  color: var(--text);
  font-weight: 500;
}
