:root {
  /* Dark theme (default) */
  --bg: #0e0e12;
  --bg-soft: #16161d;
  --panel: #1c1c25;
  --ink: #f2f2f5;
  --muted: #9a9aab;
  --accent: #7c5cff;      /* electric violet */
  --accent-2: #a78bfa;
  --line: #2a2a36;
  --header-bg: rgba(14,14,18,0.95);
  --logo-chip: #ffffff;
  --shadow: rgba(124,92,255,0.35);
  --max: 1120px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #eef0f6;
  --panel: #ffffff;
  --ink: #16161d;
  --muted: #5b5b6b;
  --accent: #6a45f0;
  --accent-2: #7c5cff;
  --line: #e2e4ee;
  --header-bg: rgba(246,247,251,0.85);
  --logo-chip: #ffffff;
  --shadow: rgba(124,92,255,0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Theme transition on common surfaces */
.site-header, .strip, .network, .pillar, .net-card, .site-footer, .brand-logo, .brand-card {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.5px; }
.brand-dot { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
.nav a { color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--accent); color: var(--accent) !important;
  padding: 7px 16px; border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); cursor: pointer;
  padding: 7px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 16px; height: 16px; display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"]  .theme-toggle .icon-moon { display: block; }
:root .theme-toggle .icon-moon { display: block; } /* default = dark */

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 64px 28px 40px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center;
}
.hero-photo img {
  width: 100%; border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px var(--shadow);
  filter: saturate(1.02);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem;
  color: var(--accent-2); margin: 0 0 10px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 12px; line-height: 1.05; }
.lede { font-size: 1.35rem; font-weight: 600; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 52ch; margin: 0 0 26px; }
.sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.proof { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; flex-wrap: wrap; }
.proof li { font-size: 0.85rem; color: var(--muted); }
.proof strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* Strip */
.strip { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-inner { max-width: var(--max); margin: 0 auto; padding: 48px 28px; }
.strip h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 12px; max-width: 22ch; }
.strip p { color: var(--muted); max-width: 60ch; margin: 0; }

/* Pillars */
.pillars { max-width: var(--max); margin: 0 auto; padding: 64px 28px; }
.pillars h2 { font-size: 1.8rem; margin: 0 0 28px; }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pillar {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--accent); transform: translateY(-3px); }
.pillar-tag { color: var(--accent-2); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; }
.pillar h3 { margin: 8px 0 10px; font-size: 1.25rem; }
.pillar p { color: var(--muted); margin: 0 0 16px; }
.pillar-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* Network */
.network { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.network { padding: 64px 28px; }
.network > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.network h2 { font-size: 1.8rem; margin: 0 0 8px; }
.network-sub { color: var(--muted); margin: 0 0 28px; }
.network-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.net-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 3px solid var(--brand, var(--accent));
}
.net-card:hover { border-color: var(--brand, var(--accent)); transform: translateY(-3px); }
.net-logo {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--logo-chip); padding: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.3);
}
.net-logo img { width: 100%; height: 100%; object-fit: contain; }
.net-card h4 { margin: 0; font-size: 1.05rem; }
.net-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.net-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--brand, var(--accent));
  border: 1px solid currentColor; padding: 2px 8px; border-radius: 999px; opacity: 0.9;
}

/* Brands I've partnered with */
.brands { max-width: var(--max); margin: 0 auto; padding: 64px 28px; }
.brands h2 { font-size: 1.8rem; margin: 0 0 8px; }
.brands-sub { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.brand-logo {
  width: 100%; height: 56px; border-radius: 10px;
  background: var(--logo-chip); padding: 8px 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.brand-logo img { max-height: 100%; max-width: 78%; object-fit: contain; }
.brand-card h4 { margin: 0; font-size: 1.05rem; }
.brand-card p { color: var(--muted); font-size: 0.86rem; margin: 0; }
.brands-note { color: var(--muted); font-size: 0.85rem; margin-top: 24px; }
.brands-note a { color: var(--accent); font-weight: 600; }

/* Insights */
.insights-tease { max-width: var(--max); margin: 0 auto; padding: 64px 28px; }
.insights-tease h2 { font-size: 1.8rem; margin: 0 0 6px; }
.insights-sub { color: var(--muted); margin: 0 0 24px; }
.insights-list { margin-bottom: 24px; }
.muted { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 0.9rem;
}
.footer-nav { display: flex; gap: 18px; }
.footer-nav a:hover { color: var(--accent); }

/* Hamburger (mobile only) */
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.nav-toggle-btn span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px; transition: 0.2s;
}

/* Standalone Contact button (sits beside the hamburger on mobile,
   full pill on desktop when there's room). */
.header-contact { display: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hero-photo { max-width: 320px; }
  .pillar-grid, .network-grid, .brand-grid { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: 0.85rem; }
}
@media (max-width: 760px) {
  .header-contact {
    display: inline-flex; align-items: center;
    margin-left: auto;            /* push right, next to the hamburger */
    border: 1px solid var(--accent); color: var(--accent);
    padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  }
  .header-contact.active { background: var(--accent); color: #fff !important; }
  .nav-toggle-btn { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6);
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a {
    padding: 14px 2px; font-size: 1.05rem; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav a.active { color: var(--accent); }
  .nav a.active::after { display: none; }
  .nav a.nav-cta {
    border: 1px solid var(--accent); color: var(--accent) !important;
    margin-top: 12px; text-align: center; border-radius: 999px;
  }
  .nav #theme-toggle {
    margin-top: 14px; align-self: flex-end;   /* right-aligned inside the menu */
  }
}

/* ===== Inner pages ===== */
.page { max-width: var(--max); margin: 0 auto; padding: 48px 28px 72px; }
.page-hero { padding: 16px 0 8px; }
.page-hero .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; color: var(--accent-2); margin: 0 0 10px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 14px; line-height: 1.05; }
.page-hero .lede { font-size: 1.3rem; font-weight: 600; margin: 0 0 16px; max-width: 60ch; }
.page-hero .sub { color: var(--muted); max-width: 64ch; margin: 0; }
.prose { max-width: 68ch; }
.prose p { color: var(--muted); margin: 0 0 18px; }
.prose p strong, .prose strong { color: var(--ink); }
.prose h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose ul { color: var(--muted); padding-left: 18px; }
.prose ul li { margin-bottom: 8px; }
.section { padding: 36px 0 8px; border-top: 1px solid var(--line); margin-top: 40px; }
.section > h2 { font-size: 1.8rem; margin: 0 0 8px; }
.section > .lead { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }

/* card grids (reuse tokens) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  border-top: 3px solid var(--brand, var(--accent));
}
.card .net-logo { width: 44px; height: 44px; border-radius: 11px; background: var(--logo-chip); padding: 4px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px -4px rgba(0,0,0,0.3); }
.card .net-logo img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.card .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--brand, var(--accent)); border: 1px solid currentColor; padding: 2px 8px; border-radius: 999px; }

/* expertise pillars expanded */
.pillar-full { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px; margin-bottom: 20px; border-left: 4px solid var(--brand, var(--accent)); scroll-margin-top: 90px; }
.pillar-full h2 { margin: 0 0 10px; font-size: 1.5rem; }
.pillar-full p { color: var(--muted); margin: 0 0 14px; }
.pillar-full ul { color: var(--muted); margin: 0; padding-left: 18px; }
.pillar-full ul li { margin-bottom: 6px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-size: 0.85rem; color: var(--muted); }
.contact-form input, .contact-form textarea { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); font: inherit; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.contact-side h3 { margin: 0 0 12px; }
.contact-side ul { list-style: none; padding: 0; margin: 0; }
.contact-side li { margin-bottom: 10px; color: var(--muted); }
.contact-side a { color: var(--accent); font-weight: 600; }
.contact-status { font-size: 0.9rem; margin: 0; min-height: 1.2em; }
.contact-status.success { color: #22c55e; }
.contact-status.error { color: #f87171; }

/* nav active */
.nav a.active { color: var(--ink); position: relative; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Blog post pages ===== */
.post { max-width: 760px; margin: 0 auto; padding: 48px 28px 80px; }
.post-meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; flex-wrap: wrap; }
.post-meta .post-tag { color: var(--accent); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.post h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin: 0 0 18px; }
.post .lede { font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.post .sub { color: var(--muted); margin: 0 0 30px; }
.post-body { font-size: 1.05rem; line-height: 1.8; }
.post-body > p { color: var(--muted); margin: 0 0 22px; }
.post-body > p strong, .post-body strong { color: var(--ink); }
.post-body h2 { font-size: 1.5rem; margin: 40px 0 14px; color: var(--ink); }
.post-body h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--ink); }
.post-body ul, .post-body ol { color: var(--muted); padding-left: 20px; margin: 0 0 22px; }
.post-body li { margin-bottom: 10px; }
.post-body blockquote { margin: 28px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--ink); font-style: italic; }
.post-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* insights index list */
.insight-index { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.insight-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: block; transition: border-color 0.2s, transform 0.2s; border-top: 3px solid var(--accent); }
.insight-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.insight-card .insight-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.insight-card .insight-meta .post-tag { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.insight-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.insight-card p { color: var(--muted); margin: 0 0 12px; }
.insight-card .read-more { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.post-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.post-foot a { color: var(--accent); font-weight: 600; }

/* media page: podcast + interviews */
.media-list { display: flex; flex-direction: column; gap: 28px; margin-top: 8px; }
.media-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; border-top: 3px solid var(--brand, var(--accent));
  display: flex; flex-direction: column; gap: 16px;
}
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.media-body p { color: var(--muted); margin: 0 0 12px; }
.media-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.media-link:hover { text-decoration: underline; }
@media (min-width: 820px) {
  .media-item { flex-direction: row; align-items: flex-start; }
  .media-item .video-embed { flex: 0 0 320px; }
  .media-item .media-body { flex: 1; }
}
