/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface-2:   #161616;
  --border:      #1f1f1f;
  --text:        #e8e8e8;
  --text-muted:  #888888;
  --accent:      #5DCAA5;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --max-width:   1100px;
  --nav-h:       56px;
  --section-gap: 72px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Nav ────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}
.nav-mark {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.nav-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  display: none;
}
@media (min-width: 480px) {
  .nav-name { display: inline; }
}
.nav-links {
  display: none;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: var(--section-gap) 0;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 72px;
}
.hero-inner {
  max-width: 820px;
}
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-cta {
  display: inline-block;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.hero-cta:hover,
.hero-cta:focus-visible { border-color: var(--accent); }

/* ── Cards (What I do) ──────────────────────────────────── */
.cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  flex: 1;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--accent); }
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.card > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Clients ────────────────────────────────────────────── */
#clients {
  padding: 56px 0;
}
.client-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.client {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.15s;
}
.client:hover { border-color: var(--accent); }
.client-logo {
  flex: 0 0 120px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.client-name {
  flex: 1;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.client-dates {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── How I work / About ─────────────────────────────────── */
.how-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.how-photo img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.how-text-block { max-width: 640px; }
.how-lead {
  font-size: 20px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
}
.how-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Ebook ──────────────────────────────────────────────── */
#ebook {
  background: var(--surface);
}
.ebook-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.ebook-cover {
  width: 100%;
  max-width: 280px;
  align-self: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}
.ebook-cover img {
  display: block;
  width: 100%;
  height: auto;
}
.ebook-content { max-width: 640px; }
.ebook-content h2 { margin-bottom: 8px; }
.ebook-subtitle {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 16px;
}
.ebook-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}
.ebook-toc {
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 20px;
  margin-bottom: 32px;
}
.ebook-toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ebook-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 24px;
}
.ebook-toc li {
  counter-increment: toc;
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}
.ebook-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1.7;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }
.ebook-form {
  display: none;
  margin-top: 24px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 11px 16px;
  transition: border-color 0.15s;
}
.form-row input:focus-visible { outline: none; border-color: var(--accent); }
.form-row input::placeholder { color: var(--text-muted); }
.form-row button[type="submit"] {
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  transition: opacity 0.15s;
}
.form-row button[type="submit"]:hover { opacity: 0.88; }
.form-row button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }
.ebook-form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}
.ebook-thanks {
  font-size: 16px;
  color: var(--accent);
  margin-top: 8px;
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.testimonial {
  flex: 1;
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.testimonial p {
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial footer strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial footer span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Contact ────────────────────────────────────────────── */
.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contact-links a {
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.contact-links a:hover,
.contact-links a:focus-visible { border-color: var(--accent); }
.contact-sep {
  display: none;
  color: var(--border);
  font-size: 18px;
}

/* ── Legal pages (Privacy, Terms) ───────────────────────── */
.legal {
  max-width: 720px;
  padding-top: calc(var(--nav-h) + 32px);
}
.legal h1 {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.legal-lead {
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 12px;
}
.legal p,
.legal li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal p { margin-bottom: 12px; }
.legal ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
.legal li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.legal li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}
.legal strong { color: var(--text); font-weight: 600; }
.legal a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.legal a:hover,
.legal a:focus-visible { border-color: var(--accent); }
.legal code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text);
}
.legal-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
#footer p {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --section-gap: 96px;
  }

  .nav-links { display: flex; }

  #hero {
    padding-top: calc(var(--nav-h) + 96px);
    padding-bottom: 96px;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .card { flex: 1 1 calc(50% - 12px); }

  .client-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .client {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }
  .client-logo {
    flex: 0 0 auto;
    width: 100%;
    height: 64px;
    justify-content: flex-start;
  }
  .client-name { flex: none; }

  .how-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
  .how-photo img {
    width: 140px;
    height: 140px;
  }

  .ebook-grid {
    flex-direction: row;
    gap: 56px;
    align-items: flex-start;
  }
  .ebook-cover {
    flex: 0 0 280px;
    align-self: flex-start;
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }
  .ebook-toc ol {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .form-row input {
    width: auto;
    min-width: 180px;
  }
  .form-row button[type="submit"] { width: auto; }

  .contact-links {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .contact-sep { display: inline; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-gap: 120px;
  }

  .testimonials { flex-direction: row; }
}
