/*
Theme Name: Mike Price
Theme URI: https://mikepriceseo.com
Description: Personal-brand portfolio theme for Mike Price. Search, AI, Automation & Software.
Version: 1.0
Author: Mike Price
Text Domain: mike-price
*/

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── Tokens (from the /preview design language) ─────────────────────── */
:root {
  --blue:        #1a56db;
  --blue-mid:    #2563eb;
  --blue-light:  #eff6ff;
  --blue-soft:   #dbeafe;
  --blue-border: #bfdbfe;
  --navy:        #0f2052;
  --text:        #111827;
  --text-mid:    #374151;
  --mid:         #4b5563;
  --text-muted:  #6b7280;
  --muted:       #9ca3af;
  --text-faint:  #9ca3af;
  --border:      #e5e7eb;
  --border-soft: #eef1f6;
  --bg:          #ffffff;
  --off:         #f9fafb;
  --bg-off:      #f9fafb;
  --sans:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono:        'SFMono-Regular', ui-monospace, 'JetBrains Mono', Menlo, monospace;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 3px rgba(15,32,82,0.05), 0 1px 2px rgba(15,32,82,0.04);
  --shadow:      0 1px 3px rgba(15,32,82,0.04), 0 8px 24px rgba(15,32,82,0.06);
  --shadow-lg:   0 8px 30px rgba(26,86,219,0.13), 0 2px 8px rgba(15,32,82,0.06);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Grid background + blobs (preview aesthetic) ────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
}
.blob { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.blob-1 { width: 480px; height: 480px; top: -120px; left: -140px; background: rgba(219,234,254,0.6); }
.blob-2 { width: 360px; height: 360px; top: 40%; right: -80px; background: rgba(209,250,229,0.45); }
.blob-3 { width: 300px; height: 300px; bottom: 8%; left: 15%; background: rgba(254,249,195,0.45); }

/* ── Layout ────────────────────────────────────────────────────────── */
.wrap        { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem,5vw,2.25rem); position: relative; z-index: 1; }
.wrap-wide   { max-width: 920px;  margin: 0 auto; padding: 0 clamp(1.25rem,5vw,2.25rem); position: relative; z-index: 1; }
.wrap-narrow { max-width: 760px;  margin: 0 auto; padding: 0 clamp(1.25rem,5vw,2.25rem); position: relative; z-index: 1; }

/* ── Header / Nav ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-soft); border: 2px solid var(--blue-border);
  overflow: hidden; flex-shrink: 0;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-name { font-size: 0.92rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.nav-name span { color: var(--blue); }

.main-nav ul { display: flex; align-items: center; gap: 0.1rem; }
.main-nav a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  padding: 0.4rem 0.7rem; border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--navy); background: var(--off); }

.header-cta .btn {
  background: var(--blue); color: #fff;
  padding: 0.5rem 1.05rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; border: none;
  transition: opacity 0.15s;
}
.header-cta .btn:hover { opacity: 0.88; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.2s; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-primary, .btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--blue); color: #fff;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: 10px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,86,219,0.28);
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover, .btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--bg); color: var(--text-mid);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.75rem 1.5rem; border-radius: 10px;
  border: 1.5px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--blue-border); color: var(--navy); }
.btn-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; color: var(--navy);
  font-size: 0.9rem; font-weight: 700;
  padding: 0.8rem 1.65rem; border-radius: 10px;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-white:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent; color: rgba(255,255,255,0.78);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.8rem 1.65rem; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.22);
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── Home hero (centered, preview style) ───────────────────────────── */
.hero { text-align: center; padding: clamp(3rem,8vw,5.5rem) 0 clamp(2.5rem,5vw,3.5rem); }
.hero-avatar {
  width: clamp(118px,20vw,158px); height: clamp(118px,20vw,158px);
  border-radius: 24px; margin: 0 auto 1.6rem; object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 30px rgba(26,86,219,0.18), 0 0 0 1px var(--blue-border);
}
.hero-name { font-size: clamp(2.2rem,6vw,3.5rem); font-weight: 800; color: var(--navy); letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 0.65rem; }
.hero-kicker { font-size: clamp(1.05rem,2.6vw,1.4rem); font-weight: 600; color: var(--blue); letter-spacing: 0.02em; margin-bottom: 0.9rem; }
.hero-kicker .dot { color: var(--blue-border); margin: 0 0.35rem; }
.hero-intro { font-size: clamp(1rem,2vw,1.12rem); font-weight: 400; color: var(--mid); line-height: 1.75; max-width: 620px; margin: 0 auto 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 660px; margin: 0 auto; }
.skill { font-size: 0.78rem; font-weight: 600; color: var(--blue); background: var(--blue-light); border: 1px solid var(--blue-border); border-radius: 999px; padding: 0.35rem 0.9rem; white-space: nowrap; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: clamp(3.5rem,7vw,6rem) 0; }
.section-alt { background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-light); border: 1px solid var(--blue-border);
  padding: 0.3rem 0.75rem; border-radius: 20px; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.6rem,3.4vw,2.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1.15; margin-bottom: 0.75rem; }
.section-sub { font-size: 1rem; font-weight: 400; color: var(--text-muted); line-height: 1.75; max-width: 520px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.75rem; }
.section-head .section-label { justify-content: center; }
.section-head .section-sub { margin: 0 auto; }
.section-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head-split .section-sub { margin: 0; }

/* ── Pillar cards (What I Do) ──────────────────────────────────────── */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pillar-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.9rem 1.4rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 1px 3px rgba(15,32,82,0.04), 0 8px 24px rgba(15,32,82,0.05);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.pillar-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-border); transform: translateY(-3px); }
.pillar-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.pillar-icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.pillar-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.pillar-body { font-size: 0.88rem; color: var(--mid); line-height: 1.6; }

/* ── Featured project ──────────────────────────────────────────────── */
.featured {
  background: var(--navy); border-radius: var(--radius); overflow: hidden;
  position: relative; color: #fff;
  padding: clamp(2rem,5vw,3.5rem);
}
.featured::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}
.featured > * { position: relative; z-index: 1; }
.featured-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #93c5fd; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.28);
  padding: 0.3rem 0.75rem; border-radius: 20px; margin-bottom: 1.25rem;
}
.featured h2 { font-size: clamp(1.6rem,3.6vw,2.4rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.15; margin-bottom: 1rem; max-width: 640px; }
.featured-lead { font-size: 1.05rem; color: rgba(255,255,255,0.72); line-height: 1.7; max-width: 620px; margin-bottom: 2rem; }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.featured-block { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 1.25rem; }
.featured-block h3 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #93c5fd; margin-bottom: 0.5rem; }
.featured-block p { font-size: 0.86rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.featured-metrics { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-bottom: 2rem; }
.featured-metric-num { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.featured-metric-label { font-size: 0.76rem; color: rgba(255,255,255,0.55); margin-top: 0.35rem; }

/* ── Work / project cards ──────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.work-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(15,32,82,0.04), 0 8px 24px rgba(15,32,82,0.05);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.work-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-border); transform: translateY(-3px); }
.work-tag { align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); border: 1px solid var(--blue-border); padding: 0.2rem 0.55rem; border-radius: 5px; margin-bottom: 0.9rem; }
.work-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.45rem; }
.work-desc { font-size: 0.86rem; color: var(--mid); line-height: 1.65; margin-bottom: 1rem; flex-grow: 1; }
.work-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 600; font-size: 0.84rem; transition: gap 0.15s; }
.work-link:hover { gap: 8px; }

/* ── How I work (3 cards) ──────────────────────────────────────────── */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.approach-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: 0 1px 3px rgba(15,32,82,0.04), 0 8px 24px rgba(15,32,82,0.05);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.approach-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-border); }
.approach-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.approach-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.approach-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.approach-body { font-size: 0.88rem; color: var(--mid); line-height: 1.65; margin-bottom: 1rem; }
.approach-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 600; font-size: 0.84rem; transition: gap 0.15s; }
.approach-link:hover { gap: 8px; }

/* ── Writing / articles list ───────────────────────────────────────── */
.writing-list { display: grid; gap: 0.25rem; }
.writing-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 0.25rem; border-bottom: 1px solid var(--border);
  transition: padding-left 0.18s;
}
.writing-row:hover { padding-left: 0.6rem; }
.writing-row:hover .writing-title { color: var(--blue); }
.writing-main { min-width: 0; }
.writing-title { font-size: 1rem; font-weight: 600; color: var(--navy); transition: color 0.15s; margin-bottom: 0.2rem; }
.writing-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.writing-meta { flex-shrink: 0; display: flex; align-items: center; gap: 0.75rem; }
.writing-cat { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); border: 1px solid var(--blue-border); padding: 0.2rem 0.55rem; border-radius: 5px; }
.writing-date { font-size: 0.76rem; color: var(--text-faint); }

/* ── Blog / insights grid ──────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(15,32,82,0.04), 0 8px 24px rgba(15,32,82,0.05);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.post-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-border); transform: translateY(-3px); }
.post-card .writing-cat { align-self: flex-start; margin-bottom: 0.9rem; }
.post-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 0.5rem; }
.post-card p { font-size: 0.86rem; color: var(--mid); line-height: 1.6; margin-bottom: 1rem; flex-grow: 1; }
.post-card .post-date { font-size: 0.76rem; color: var(--text-faint); }

.cat-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.cat-chip { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 1rem; transition: all 0.15s; }
.cat-chip:hover, .cat-chip.active { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ── Page hero (inner pages) ───────────────────────────────────────── */
.page-hero { padding: clamp(3rem,7vw,5rem) 0 clamp(1.5rem,3vw,2.5rem); text-align: center; }
.page-hero h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 800; color: var(--navy); letter-spacing: -0.035em; margin-bottom: 0.6rem; }
.page-hero p { font-size: 1.08rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.breadcrumbs { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 0.4rem; }

/* ── About page ────────────────────────────────────────────────────── */
.about-top { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
.about-portrait { position: sticky; top: 90px; }
.about-portrait img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-portrait-facts { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.about-fact { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-mid); padding: 0.6rem 0.85rem; background: var(--off); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.about-fact svg { width: 16px; height: 16px; stroke: var(--blue); stroke-width: 2; fill: none; flex-shrink: 0; }
.prose h2 { font-size: clamp(1.4rem,3vw,1.8rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin: 2.25rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 1.75rem 0 0.6rem; }
.prose p { font-size: 1.02rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 1.2rem; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose .lead { font-size: 1.15rem; line-height: 1.8; color: var(--mid); }

/* Evolution timeline */
.evo { position: relative; margin: 2rem 0; padding-left: 1.75rem; }
.evo::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--blue-border); }
.evo-step { position: relative; padding-bottom: 1.75rem; }
.evo-step:last-child { padding-bottom: 0; }
.evo-step::before { content: ''; position: absolute; left: -1.75rem; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--blue-border); }
.evo-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.evo-step p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; margin: 0; }

/* Philosophy callout */
.philosophy { background: var(--off); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 1.75rem 2rem; margin: 2rem 0; }
.philosophy p { font-size: 1.1rem; font-style: italic; color: var(--navy); line-height: 1.7; margin: 0; }

/* ── Project detail blocks (Projects / Case Studies) ───────────────── */
.project { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 2rem; }
.project-head { padding: clamp(1.75rem,4vw,2.5rem); border-bottom: 1px solid var(--border); }
.project-head .work-tag { margin-bottom: 1rem; }
.project-head h2 { font-size: clamp(1.5rem,3.2vw,2rem); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.project-head p { font-size: 1.02rem; color: var(--mid); line-height: 1.7; max-width: 680px; }
.project-body { padding: clamp(1.75rem,4vw,2.5rem); display: grid; gap: 1.75rem; }
.project-section h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.6rem; }
.project-section p { font-size: 0.98rem; color: var(--text-mid); line-height: 1.75; }
.project-section ul { display: grid; gap: 0.5rem; }
.project-section li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; }
.project-section li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.project-metrics { display: flex; flex-wrap: wrap; gap: 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.project-metric-num { font-size: 1.8rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.project-metric-label { font-size: 0.76rem; color: var(--text-faint); margin-top: 0.35rem; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stack-chip { font-size: 0.72rem; font-weight: 600; color: var(--text-mid); background: var(--off); border: 1px solid var(--border); border-radius: 6px; padding: 0.25rem 0.6rem; font-family: var(--mono); }
.codeblock { background: #0b1224; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; overflow-x: auto; }
.codeblock code { font-family: var(--mono); font-size: 0.8rem; line-height: 1.7; color: #cbd5e1; white-space: pre; }
.codeblock .c-key { color: #93c5fd; } .codeblock .c-str { color: #86efac; } .codeblock .c-com { color: #64748b; }

/* ── Experience (resume) ───────────────────────────────────────────── */
.xp-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.xp-role { position: relative; padding-left: 1.75rem; padding-bottom: 2rem; border-left: 2px solid var(--border); }
.xp-role:last-child { border-left-color: transparent; padding-bottom: 0; }
.xp-role::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--blue-border); }
.xp-role-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.15rem; }
.xp-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.xp-dates { font-size: 0.78rem; font-weight: 600; color: var(--blue); }
.xp-company { font-size: 0.9rem; font-weight: 600; color: var(--text-mid); margin-bottom: 0.65rem; }
.xp-role ul { display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.xp-role li { position: relative; padding-left: 1.4rem; font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; }
.xp-role li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: 0.6; }
.xp-side { position: sticky; top: 90px; display: grid; gap: 1.25rem; }
.xp-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.xp-card h3 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.9rem; }
.xp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.xp-tag { font-size: 0.74rem; font-weight: 600; color: var(--text-mid); background: var(--off); border: 1px solid var(--border); border-radius: 6px; padding: 0.28rem 0.6rem; }
.xp-list { display: grid; gap: 0.7rem; }
.xp-list-item { font-size: 0.86rem; color: var(--text-mid); line-height: 1.5; }
.xp-list-item strong { display: block; color: var(--navy); font-weight: 700; font-size: 0.9rem; }

/* ── Agency partnerships ───────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.detail-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 1px 3px rgba(15,32,82,0.04), 0 8px 24px rgba(15,32,82,0.05); }
.detail-card .approach-icon { margin-bottom: 0.9rem; }
.detail-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.detail-card p { font-size: 0.9rem; color: var(--mid); line-height: 1.65; }
.detail-card ul { margin-top: 0.75rem; display: grid; gap: 0.45rem; }
.detail-card li { position: relative; padding-left: 1.4rem; font-size: 0.88rem; color: var(--text-mid); line-height: 1.55; }
.detail-card li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-intro-list { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.contact-intro-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.9rem 1rem; background: var(--off); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.contact-intro-item svg { width: 18px; height: 18px; stroke: var(--blue); stroke-width: 2; fill: none; flex-shrink: 0; margin-top: 2px; }
.contact-intro-item div strong { display: block; font-size: 0.9rem; color: var(--navy); font-weight: 700; }
.contact-intro-item div span { font-size: 0.82rem; color: var(--text-muted); }
.contact-meta { margin-top: 1.5rem; display: grid; gap: 0.5rem; font-size: 0.85rem; color: var(--text-mid); }
.contact-meta strong { color: var(--navy); }
.contact-form { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-form h3 { font-weight: 700; margin-bottom: 1.25rem; font-size: 1.05rem; color: var(--navy); }
.form-group { margin-bottom: 0.9rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-mid); margin-bottom: 0.3rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.9rem; color: var(--text); background: var(--off); transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── CTA band ──────────────────────────────────────────────────────── */
.section-cta { background: var(--navy); padding: clamp(3.5rem,7vw,5.5rem) 0; text-align: center; position: relative; overflow: hidden; z-index: 1; }
.section-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(59,130,246,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.07) 1px, transparent 1px); background-size: 48px 48px; }
.cta-inner { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }
.cta-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #93c5fd; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.25); padding: 0.3rem 0.75rem; border-radius: 20px; margin-bottom: 1.25rem; }
.cta-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.section-cta h2 { font-size: clamp(1.7rem,4vw,2.75rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.15; margin-bottom: 0.85rem; }
.section-cta p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--off); border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; position: relative; z-index: 1; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.footer-brand { max-width: 300px; }
.footer-brand-name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.footer-brand-name span { color: var(--blue); }
.footer-tagline { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.85rem; }
.footer-col ul { display: grid; gap: 0.45rem; }
.footer-col a { font-size: 0.84rem; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.76rem; color: var(--text-faint); }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { width: 32px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.15s; }
.footer-social a:hover { color: var(--blue); border-color: var(--blue-border); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ── TOC + article (ported for SEO landing pages) ──────────────────── */
.toc-block { background: var(--off); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 1.5rem 1.75rem; margin: 0 0 1.5rem; }
.toc-block h2 { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.85rem; border: none; padding: 0; }
.toc-block ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 2rem; }
.toc-block li { counter-increment: toc; display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.85rem; }
.toc-block li::before { content: counter(toc, decimal-leading-zero); font-size: 0.65rem; font-weight: 700; color: var(--blue); opacity: 0.6; min-width: 1.4em; }
.toc-block a { color: var(--text-mid); transition: color 0.15s; }
.toc-block a:hover { color: var(--blue); }
.page-info { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.78rem; color: var(--text-faint); padding: 1rem 0; border-top: 1px solid var(--border); margin-bottom: 2.5rem; }
.page-info strong { color: var(--text-muted); font-weight: 500; }

.article-content h2 { font-size: clamp(1.4rem,3vw,1.75rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin: 3rem 0 1rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.article-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 2rem 0 0.5rem; }
.article-content h4 { font-size: 0.95rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.article-content p { font-size: 1.02rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 1.25rem; }
.article-content strong { color: var(--navy); font-weight: 600; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-content ul, .article-content ol { padding-left: 0; margin: 0.75rem 0 1.5rem; list-style: none; }
.article-content li { font-size: 1rem; line-height: 1.75; color: var(--text-mid); padding: 0.4rem 0 0.4rem 1.6rem; position: relative; border-bottom: 1px solid var(--border-soft); }
.article-content li:last-child { border-bottom: none; }
.article-content ul li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: 0.5; }
.article-content ol { counter-reset: ol-counter; }
.article-content ol li { counter-increment: ol-counter; }
.article-content ol li::before { content: counter(ol-counter); position: absolute; left: 0; top: 0.45rem; font-size: 0.72rem; font-weight: 700; color: var(--blue); opacity: 0.8; }
.article-content .info-box, .article-content .key-terms { background: var(--off); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 1.5rem 2rem; margin: 2rem 0; }
.article-content .info-box h3 { margin-top: 0; color: var(--blue); }
.article-content .key-terms dt { font-weight: 700; color: var(--navy); margin-top: 1rem; font-size: 0.92rem; }
.article-content .key-terms dt:first-child { margin-top: 0; }
.article-content .key-terms dd { color: var(--text-mid); font-size: 0.92rem; line-height: 1.7; margin-left: 0; padding-left: 1rem; border-left: 2px solid var(--blue-border); margin-top: 0.25rem; }
.article-content .callout-warning { background: #fef9e7; border: 1px solid #f5e6a3; border-left: 3px solid #d4a017; border-radius: var(--radius-sm); padding: 1.5rem 2rem; margin: 2rem 0; }
.article-content .callout-warning h4 { color: #7a5c00; margin-top: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.article-content .callout-warning p { margin-bottom: 0; }
.article-content .pricing-table, .article-content .timeline-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.88rem; }
.article-content .pricing-table thead, .article-content .timeline-table thead { background: var(--navy); }
.article-content .pricing-table th, .article-content .timeline-table th { color: #fff; font-weight: 600; padding: 12px 16px; text-align: left; font-size: 0.8rem; letter-spacing: 0.04em; }
.article-content .pricing-table td, .article-content .timeline-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-mid); line-height: 1.6; }
.article-content .pricing-table tbody tr:nth-child(even), .article-content .timeline-table tbody tr:nth-child(even) { background: var(--off); }
.article-content .timeline-table td:first-child { font-weight: 700; color: var(--blue); white-space: nowrap; width: 130px; }
.article-content .pull-quote { border-left: 3px solid var(--navy); padding: 0.75rem 0 0.75rem 1.5rem; margin: 2.5rem 0; }
.article-content .pull-quote p { font-size: 1.1rem; font-style: italic; color: var(--navy); margin-bottom: 0; }
.article-content .faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.article-content .faq-item:first-of-type { border-top: 1px solid var(--border); }
.article-content .faq-item h3 { margin-top: 0; font-size: 1rem; }
.article-content .cta-block { text-align: center; padding: clamp(2rem,5vw,3rem); background: var(--navy); border-radius: var(--radius); margin: 3rem 0 1rem; position: relative; overflow: hidden; }
.article-content .cta-block::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(59,130,246,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.07) 1px, transparent 1px); background-size: 48px 48px; }
.article-content .cta-block h2 { color: #fff; border: none; padding: 0; margin: 0 0 0.85rem; position: relative; }
.article-content .cta-block p { color: rgba(255,255,255,0.55); font-size: 0.95rem; max-width: 520px; margin: 0 auto 1.5rem; position: relative; }
.article-content .cta-block .btn { position: relative; }
.article-content .intro-text { margin-bottom: 2rem; }
.article-content .intro-text p { font-size: 1.1rem; line-height: 1.85; color: var(--text-muted); }

/* ── Animations ────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fu { animation: fadeUp 0.6s ease both; }
.fu1 { animation-delay: 0.05s; } .fu2 { animation-delay: 0.13s; } .fu3 { animation-delay: 0.21s; }
.fu4 { animation-delay: 0.29s; } .fu5 { animation-delay: 0.37s; } .fu6 { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) { .fu { animation: none; } html { scroll-behavior: auto; } }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .about-top { grid-template-columns: 1fr; gap: 2rem; }
  .about-portrait { position: static; max-width: 320px; }
  .xp-layout { grid-template-columns: 1fr; gap: 2rem; }
  .xp-side { position: static; grid-template-columns: 1fr 1fr; display: grid; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); padding: 12px; border-top: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; padding: 10px 16px; }
  .mobile-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .approach-grid, .work-grid, .post-grid, .detail-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
  .xp-side { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-cols { gap: 1.75rem; }
  .article-content .pricing-table, .article-content .timeline-table { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .toc-block ol { grid-template-columns: 1fr; }
  .project-metrics, .featured-metrics { gap: 1.5rem; }
}
