/* ============================================================
   DESIGN TOKENS
   Persona: Chester Vincent, Local SEO & Citation Building Specialist.
   Direction: dark, confident "citation audit" motif, softened for a
   client-facing audience — plain-English copy over shell jargon,
   trust signals up front, one clear call to action per page.
   Palette:
     --bg        #0B0E14  deep blue-charcoal
     --bg-alt    #12161F  panel/card surface
     --bg-raised #171C27  hover / raised surface
     --ink       #F3F5F8  primary text
     --muted     #8A93A6  secondary text
     --accent    #FFB020  warm amber — primary accent
     --accent-2  #6C8CFF  periwinkle — secondary accent
     --good      #3DDC97  status-green, "verified / live" states
   Type:
     Display : 'Space Grotesk'
     Body    : 'Inter'
     Mono    : 'JetBrains Mono' (used sparingly, for stats & data only)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  --bg: #0B0E14;
  --bg-alt: #12161F;
  --bg-raised: #171C27;
  --ink: #F3F5F8;
  --muted: #8A93A6;
  --line: #232939;
  --accent: #FFB020;
  --accent-ink: #1A1200;
  --accent-2: #6C8CFF;
  --good: #3DDC97;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --maxw: 1180px;
  --nav-h: 72px;
}

html[data-theme="light"]{
  --bg: #F5F6F9;
  --bg-alt: #FFFFFF;
  --bg-raised: #ECEEF3;
  --ink: #12151C;
  --muted: #5B6272;
  --line: #E1E4EB;
  --accent-ink: #1A1200;
  --shadow: 0 20px 50px rgba(20,24,34,0.10);
}

*, *::before, *::after{ box-sizing: border-box; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

html{ scroll-behavior: smooth; }

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

a{ color: inherit; }
img{ max-width: 100%; display: block; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.mono{ font-family: 'JetBrains Mono', monospace; }

.eyebrow{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before{ content: ''; width: 16px; height: 2px; background: var(--accent); display: inline-block; }

.section{ padding: 100px 0; border-bottom: 1px solid var(--line); }
.page-hero{ padding: 64px 0 20px; }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h1{ font-size: clamp(30px, 4.4vw, 44px); }
.section-head h2{ font-size: clamp(28px, 4vw, 40px); }
.section-head p{ color: var(--muted); font-size: 17px; margin-top: 14px; }

::selection{ background: var(--accent); color: var(--accent-ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ SKIP LINK (accessibility) ============ */
.skip-link{
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-sm); text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus{ top: 12px; }

/* ============ BUTTONS ============ */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px) scale(0.98); }
.btn-primary{ background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover{ box-shadow: 0 0 0 6px rgba(255,176,32,0.16); transform: translateY(-2px); }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.btn-sm{ padding: 9px 16px; font-size: 13px; }

/* ============ NAV ============ */
header.site-nav{
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(11,14,20,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] header.site-nav{ background: rgba(245,246,249,0.86); }
header.site-nav.scrolled{ box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
html[data-theme="light"] header.site-nav.scrolled{ box-shadow: 0 8px 30px rgba(20,24,34,0.14); }

.nav-inner{ width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo{ display:flex; align-items:center; gap:10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.logo .mark{
  width: 34px; height: 34px; border-radius: 10px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), #FFD27A); color: var(--accent-ink); font-size: 15px; font-weight: 700;
}

.nav-links{ display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a{
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--muted);
  position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav-links a::after{
  content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{ width: 100%; }

.nav-actions{ display: flex; align-items: center; gap: 14px; }

.theme-toggle{
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.theme-toggle svg{ width: 18px; height: 18px; }
.theme-toggle .sun{ display: none; }
html[data-theme="light"] .theme-toggle .sun{ display: block; }
html[data-theme="light"] .theme-toggle .moon{ display: none; }

.nav-toggle{
  display: none; width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-alt); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span{ width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ============ HERO (index only) ============ */
.hero{
  min-height: 88vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}
.hero::before{
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255,176,32,0.10), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(108,140,255,0.14), transparent 50%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 90%);
}
.hero-grid{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
  width: 100%;
}
.hero-kicker{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--good);
  background: rgba(61,220,151,0.08); border: 1px solid rgba(61,220,151,0.25);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero-kicker .pulse{
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 rgba(61,220,151,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(61,220,151,0.5); }
  70%{ box-shadow: 0 0 0 8px rgba(61,220,151,0); }
  100%{ box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}
.hero h1{ font-size: clamp(36px, 5.6vw, 62px); letter-spacing: -0.02em; }
.hero h1 span{ color: var(--accent); }
.hero .role{ font-family: 'JetBrains Mono', monospace; font-size: 17px; color: var(--accent-2); margin-top: 16px; }
.hero p.pitch{ color: var(--muted); font-size: 17px; max-width: 48ch; margin-top: 18px; }
.hero-ctas{ display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-tags{ display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.tag{
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
  background: var(--bg-alt);
}

/* terminal / audit panel */
.terminal{
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(6px);
}
.terminal-bar{ display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.terminal-bar span{ width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.terminal-bar span:nth-child(1){ background: #FF5F57; }
.terminal-bar span:nth-child(2){ background: #FEBC2E; }
.terminal-bar span:nth-child(3){ background: #28C840; }
.terminal-bar .path{ margin-left: 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.terminal-body{ font-family: 'JetBrains Mono', monospace; font-size: 13.5px; line-height: 1.95; padding: 22px 20px; min-height: 240px; color: var(--good); }
.terminal-body .line{ opacity: 0; }
.terminal-body .muted-line{ color: var(--muted); }
.terminal-body .accent-line{ color: var(--accent-2); }
.terminal-body .cursor{ display: inline-block; width: 8px; height: 15px; background: var(--good); vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity: 0; } }

/* ============ REVEAL ANIMATION ============ */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ============ TRUST STRIP ============ */
.trust-strip{ padding: 46px 0; border-bottom: 1px solid var(--line); }
.trust-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-grid strong{ display: block; font-family: 'Space Grotesk', sans-serif; font-size: 28px; }
.trust-grid span{ font-size: 13px; color: var(--muted); }

/* ============ ABOUT ============ */
.about-grid{ display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.avatar-card{
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; box-shadow: var(--shadow);
}
.avatar-photo{
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block;
  margin: 0 auto 18px; border: 4px solid var(--accent);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line);
}
.avatar-card h3{ font-size: 20px; }
.avatar-card .role{ color: var(--muted); font-size: 14px; margin-top: 4px; font-family: 'JetBrains Mono', monospace; }
.avatar-stats{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.avatar-stats div{ border-top: 1px solid var(--line); padding-top: 10px; }
.avatar-stats strong{ display: block; font-family: 'Space Grotesk', sans-serif; font-size: 22px; }
.avatar-stats span{ font-size: 12px; color: var(--muted); }

.about-copy p{ color: var(--muted); font-size: 16.5px; margin: 0 0 18px; }
.about-copy strong{ color: var(--ink); }
.about-facts{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fact-pill{
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--bg-alt);
  padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13.5px;
}
.fact-pill .k{ color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; text-transform: uppercase; }

/* ============ SKILLS ============ */
.skills-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.skill-group h4{
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px;
}
.skill-row{ margin-bottom: 18px; }
.skill-row .meta{ display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.skill-row .meta .pct{ font-family: 'JetBrains Mono', monospace; color: var(--accent-2); }
.meter{ height: 7px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.meter-fill{ height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 1.1s cubic-bezier(.22,.9,.34,1); }

.tech-tags{ display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ============ EXPERIENCE (timeline) ============ */
.timeline{ position: relative; padding-left: 28px; }
.timeline::before{ content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.commit{ position: relative; padding-bottom: 44px; }
.commit:last-child{ padding-bottom: 0; }
.commit::before{
  content: ''; position: absolute; left: -28px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.commit .when{ font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.commit h3{ font-size: 19px; }
.commit .org{ color: var(--accent-2); font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.commit ul{ margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.commit li{ margin-bottom: 6px; }

/* ============ SERVICES ============ */
.services-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card{
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover{ transform: translateY(-4px); border-color: var(--accent-2); }
.service-icon{ width: 42px; height: 42px; color: var(--accent-2); margin-bottom: 16px; }
.service-card h3{ font-size: 17px; }
.service-card p{ color: var(--muted); font-size: 14px; margin-top: 10px; }
.service-card .price-note{ margin-top: 14px; font-size: 12.5px; color: var(--accent); font-family: 'JetBrains Mono', monospace; }

.process-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.process-step{ background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.process-step .num{ font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 13px; margin-bottom: 10px; }
.process-step h4{ font-size: 15.5px; }
.process-step p{ color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* ============ TESTIMONIALS ============ */
.testi-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card{ background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.testi-quote{ font-size: 16px; line-height: 1.6; }
.testi-quote::before{ content: '“'; color: var(--accent); font-size: 28px; font-family: 'Space Grotesk', sans-serif; line-height: 0; display: block; margin-bottom: 6px; }
.testi-person{ margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.testi-avatar{
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-2), #A9B8FF);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: #10142A;
}
.testi-person .name{ font-weight: 600; font-size: 14px; }
.testi-person .role{ font-size: 12.5px; color: var(--muted); }

/* ============ CTA BANNER ============ */
.cta-banner{
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h3{ font-size: 24px; }
.cta-banner p{ color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ============ CONTACT ============ */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.form-row{ margin-bottom: 18px; }
.form-row label{ display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-family: 'JetBrains Mono', monospace; }
.form-row input, .form-row textarea{
  width: 100%; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink);
  padding: 12px 14px; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 14.5px;
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row textarea:focus{ border-color: var(--accent-2); }
.form-row textarea{ min-height: 130px; resize: vertical; }
.form-note{ font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-success{
  display: none; align-items: center; gap: 10px;
  background: rgba(61,220,151,0.1); border: 1px solid rgba(61,220,151,0.3); color: var(--good);
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px;
}
.form-success.show{ display: flex; }

.contact-card{ background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; height: fit-content; }
.contact-row{ display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 14.5px; }
.contact-row svg{ width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.social-row{ display: flex; gap: 12px; margin-top: 24px; }
.social-btn{
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-btn svg{ width: 17px; height: 17px; }
.social-btn:hover{ color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.faq-item{ border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child{ padding-bottom: 0; }
.faq-item h4{ font-size: 15px; }
.faq-item p{ color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ============ FOOTER ============ */
footer{ padding: 40px 0; }
.footer-inner{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner p{ color: var(--muted); font-size: 13.5px; margin: 0; font-family: 'JetBrains Mono', monospace; }
.back-top{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .avatar-card{ max-width: 320px; }
  .skills-grid{ grid-template-columns: 1fr 1fr; }
  .services-grid{ grid-template-columns: 1fr 1fr; }
  .process-grid{ grid-template-columns: 1fr 1fr; }
  .testi-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .trust-grid{ grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 720px){
  .nav-links{
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 20px 28px; gap: 18px;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav-links.open{ transform: translateY(0); }
  .nav-toggle{ display: flex; }
  .section{ padding: 70px 0; }
  .skills-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: 1fr; }
  .cta-banner{ flex-direction: column; align-items: flex-start; }
}
