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

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

:root {
  --bg: #0a0a0c;
  --bg-alt: #111114;
  --line: #212027;
  --text: #f2f0f5;
  --muted: #9a95a8;
  --accent: #c9a6f0;
  --accent-soft: rgba(201, 166, 240, 0.12);
}

html { scroll-behavior: smooth; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  text-decoration: none;
  background: var(--accent);
  color: #17101f;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: 0.88; }
.menu-toggle { display: none; }

/* Hero */
.hero {
  padding: 110px 24px 90px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin: 0 auto 22px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity .15s, background .15s;
}
.btn-primary { background: var(--accent); color: #17101f; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { border: 1px solid var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }

/* Pulse — a quiet nod to the "rhythm" in the brand. Single accent, low
   opacity so it stays true to Minimal Noir's restraint. */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  margin: 52px auto 0;
}
.waveform span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.5;
  animation: pulse 1.5s ease-in-out infinite;
}
.waveform span:nth-child(odd) { animation-delay: 0.2s; }
.waveform span:nth-child(3n) { animation-delay: 0.4s; }
.waveform span:nth-child(1)  { height: 10px; }
.waveform span:nth-child(2)  { height: 18px; }
.waveform span:nth-child(3)  { height: 26px; }
.waveform span:nth-child(4)  { height: 14px; }
.waveform span:nth-child(5)  { height: 32px; }
.waveform span:nth-child(6)  { height: 20px; }
.waveform span:nth-child(7)  { height: 38px; }
.waveform span:nth-child(8)  { height: 24px; }
.waveform span:nth-child(9)  { height: 38px; }
.waveform span:nth-child(10) { height: 20px; }
.waveform span:nth-child(11) { height: 32px; }
.waveform span:nth-child(12) { height: 14px; }
.waveform span:nth-child(13) { height: 26px; }
.waveform span:nth-child(14) { height: 18px; }
.waveform span:nth-child(15) { height: 10px; }
@keyframes pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50%      { transform: scaleY(1);   opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; }
}

/* Section shared */
section { padding: 90px 24px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* Balance multi-line headings so no single word gets stranded on its own line */
.hero h1, .section-head h2, .cta h2, .testimonial blockquote { text-wrap: balance; }

/* Services */
.services { border-bottom: 1px solid var(--line); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* Certifications — real Credly badges; these DO link out (to verification),
   so unlike the info cards they get a clickable hover lift. */
.certs { border-bottom: 1px solid var(--line); }
.cert-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 780px;
  margin: 0 auto;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 170px;
  text-decoration: none;
  transition: transform .15s;
}
.cert-badge img { width: 120px; height: 120px; object-fit: contain; }
.cert-badge span { font-size: 0.88rem; font-weight: 600; color: var(--muted); text-align: center; }
.cert-badge:hover { transform: translateY(-4px); }
.cert-badge:hover span { color: var(--text); }

/* About */
.about { border-bottom: 1px solid var(--line); }
.about-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 28px;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.about-wrap p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.placeholder-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Testimonial */
.testimonial { border-bottom: 1px solid var(--line); text-align: center; }
.testimonial blockquote {
  font-size: 1.4rem;
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto 20px;
  letter-spacing: -0.01em;
}
.testimonial cite { color: var(--muted); font-style: normal; font-size: 0.95rem; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta p { color: var(--muted); margin-bottom: 34px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 32px;
}
.footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-brand span { font-weight: 700; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1080px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 760px) {
  .nav-links { display: none; }

  /* Compact, single-line header */
  nav { padding: 13px 18px; }
  .brand span { font-size: 0.92rem; }
  .brand img { width: 30px; height: 30px; }
  .nav-cta { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }

  /* Tighter vertical rhythm — less scrolling */
  .hero { padding: 56px 20px 48px; }
  .hero p { margin-bottom: 30px; }
  .waveform { margin-top: 34px; }
  section { padding: 52px 20px; }
  .section-head { margin-bottom: 32px; }
  .service-grid { gap: 14px; }
  .service-card { padding: 24px 22px; }
  .about-photo { width: 104px; height: 104px; margin-bottom: 22px; }
  footer { padding: 36px 20px 28px; }

  /* Buttons stack full-width and centered so long labels (email) stay balanced */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary, .btn-secondary { text-align: center; padding: 14px 20px; }

  /* Center the footer brand + links on mobile */
  .footer-wrap { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }

  /* Certification badges: fit two per row on phones */
  .cert-row { gap: 22px 20px; }
  .cert-badge { width: 132px; }
  .cert-badge img { width: 108px; height: 108px; }
}
