:root {
  --bg:       #080c10;
  --bg2:      #0c1118;
  --bg3:      #111820;
  --surface:  rgba(255,255,255,0.03);
  --surface2: rgba(255,255,255,0.055);
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --blue:     #3b82f6;
  --blue-dim: rgba(59,130,246,0.12);
  --blue-glow:rgba(59,130,246,0.3);
  --indigo:   #818cf8;
  --indigo-dim: rgba(129,140,248,0.1);
  --slate:    #94a3b8;
  --text:     rgba(255,255,255,0.88);
  --text-2:   rgba(255,255,255,0.55);
  --text-3:   rgba(255,255,255,0.28);
  --text-4:   rgba(255,255,255,0.12);
  --nav-bg:   rgba(8,12,16,0.85);
  --grid-line: rgba(59,130,246,0.025);
  --stroke-color: rgba(255,255,255,0.18);
  --editorial-stroke: rgba(255,255,255,0.05);
  --btn-ghost-hover: rgba(255,255,255,0.25);
  --display: 'Syne', sans-serif;
  --mono:    'DM Mono', monospace;
  --body:    'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:       #ffffff;
    --bg2:      #f8fafc;
    --bg3:      #f1f5f9;
    --surface:  rgba(0,0,0,0.03);
    --surface2: rgba(0,0,0,0.06);
    --border:   rgba(0,0,0,0.08);
    --border2:  rgba(0,0,0,0.15);
    --blue:     #2563eb;
    --blue-dim: rgba(37,99,235,0.12);
    --blue-glow:rgba(37,99,235,0.25);
    --indigo:   #6366f1;
    --indigo-dim: rgba(99,102,241,0.1);
    --slate:    #64748b;
    --text:     rgba(0,0,0,0.88);
    --text-2:   rgba(0,0,0,0.65);
    --text-3:   rgba(0,0,0,0.45);
    --text-4:   rgba(0,0,0,0.15);
    --nav-bg:   rgba(255,255,255,0.88);
    --grid-line: rgba(37,99,235,0.05);
    --stroke-color: rgba(0,0,0,0.18);
    --editorial-stroke: rgba(0,0,0,0.06);
    --btn-ghost-hover: rgba(0,0,0,0.25);
  }
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; width: 100%; }
body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); text-decoration: none; }
.nav-logo em { font-style: normal; color: var(--blue); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; color: var(--blue); border: 1px solid rgba(59,130,246,0.35); padding: 7px 18px; text-decoration: none; transition: all 0.2s; background: var(--blue-dim); }
.nav-cta:hover { background: rgba(59,130,246,0.2); border-color: var(--blue); box-shadow: 0 0 20px var(--blue-glow); }

/* ── Hamburger button ──────────────────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ─────────────────────────────────────────────────────────── */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 57px; /* nav height */
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.nav-mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-links {
  list-style: none;
  margin: 0;
  padding: 12px 0 20px;
}
.nav-mobile-links li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-mobile-links li:last-child { border-bottom: none; }
.nav-mobile-links a {
  display: block;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-links a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-mobile-cta-item { border-bottom: none !important; padding: 12px 24px 4px; }
.nav-mobile-cta {
  display: inline-block !important;
  padding: 10px 24px !important;
  color: var(--blue) !important;
  border: 1px solid rgba(59,130,246,0.35);
  background: var(--blue-dim);
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  transition: all 0.2s !important;
}
.nav-mobile-cta:hover { background: rgba(59,130,246,0.2) !important; border-color: var(--blue); box-shadow: 0 0 20px var(--blue-glow); }

/* HERO */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  padding-top: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 52px;
  border-right: 1px solid var(--border);
  position: relative;
}
.hero-left::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 65%);
  top: 50%; left: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 6px 14px;
  width: fit-content;
  margin-bottom: 36px;
  animation: fadeUp 0.8s var(--ease) both;
}
.badge-dot { width: 5px; height: 5px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 6px var(--blue); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-name {
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeUp 0.9s var(--ease) 0.08s both;
  word-wrap: break-word;
}
.hero-name .line2 { display: block; color: transparent; -webkit-text-stroke: 1px var(--stroke-color); position: relative; overflow: hidden; }
.hero-name .line2-fill { position: absolute; left: 0; top: 0; color: var(--text); -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0); animation: text-reveal 1.2s var(--ease) 0.6s forwards; }
@keyframes text-reveal { to { clip-path: inset(0 0% 0 0); } }

.hero-name-byline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  animation: fadeUp 0.9s var(--ease) 0.18s both;
}
.hero-name-byline::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--blue);
  opacity: 0.5;
  flex-shrink: 0;
}
.byline-text {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.hero-desc { font-size: 15px; font-weight: 300; color: var(--text-2); max-width: 460px; line-height: 1.85; margin-bottom: 48px; padding-left: 16px; border-left: 2px solid rgba(59,130,246,0.3); animation: fadeUp 0.9s var(--ease) 0.28s both; }
.hero-actions { display: flex; gap: 12px; animation: fadeUp 0.9s var(--ease) 0.36s both; }
.btn-primary { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: #fff; background: var(--blue); padding: 13px 28px; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; }
.btn-primary:hover { background: #2563eb; box-shadow: 0 8px 30px rgba(59,130,246,0.4); transform: translateY(-1px); }
.btn-ghost { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--text-2); background: transparent; border: 1px solid var(--border2); padding: 13px 28px; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-ghost:hover { color: var(--text); border-color: var(--btn-ghost-hover); background: var(--surface2); transform: translateY(-1px); }

.hero-stats { display: flex; gap: 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); animation: fadeUp 0.9s var(--ease) 0.44s both; }
.stat-val { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -1px; line-height: 1; }
.stat-val.blue { color: var(--blue); }
.stat-label { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; margin-top: 6px; }

/* HERO RIGHT */
.hero-right { display: flex; flex-direction: column; justify-content: center; padding: 80px 52px; gap: 20px; position: relative; }
.hero-right::before { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(129,140,248,0.05) 0%, transparent 65%); top: 30%; right: 0; pointer-events: none; }

.terminal-panel { background: var(--bg2); border: 1px solid var(--border); overflow: hidden; animation: fadeUp 1s var(--ease) 0.5s both; width: 100%; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.t-dot { width: 8px; height: 8px; border-radius: 50%; }
.t-dot.r { background: rgba(255,80,80,0.5); }
.t-dot.y { background: rgba(255,190,50,0.5); }
.t-dot.g { background: rgba(40,200,100,0.5); }
.terminal-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; margin-left: 8px; }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.9; overflow-x: hidden; }
.t-line { color: var(--text-2); white-space: pre-wrap; word-break: break-all; overflow-wrap: break-word; }
.t-key { color: var(--blue); }
.t-val { color: var(--indigo); }
.t-string { color: #86efac; }
.t-cursor { display: inline-block; width: 7px; height: 12px; background: var(--blue); margin-left: 2px; animation: blink-cursor 1s infinite; vertical-align: middle; }
@keyframes blink-cursor { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.funnel-widget { background: var(--bg2); border: 1px solid var(--border); padding: 20px; animation: fadeUp 1s var(--ease) 0.65s both; width: 100%; }
.funnel-title { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.funnel-title::before { content: ''; width: 16px; height: 1px; background: var(--border2); }
.funnel-stage { margin-bottom: 10px; }
.funnel-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; margin-bottom: 5px; }
.funnel-label { color: var(--text-2); }
.funnel-num { color: var(--blue); font-weight: 500; }
.funnel-bar-bg { height: 3px; background: var(--border); width: 100%; }
.funnel-bar-fill { height: 3px; background: linear-gradient(90deg, var(--blue), var(--indigo)); transition: width 1.2s var(--ease); }

.skills-panel { background: var(--bg2); border: 1px solid var(--border); padding: 20px; animation: fadeUp 1s var(--ease) 0.8s both; width: 100%; }
.skills-title { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.skills-title::before { content: ''; width: 16px; height: 1px; background: var(--border2); }
.skills-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--text-2); border: 1px solid var(--border); padding: 4px 10px; text-transform: uppercase; transition: all 0.2s; background: var(--surface); }
.skill-chip:hover { color: var(--blue); border-color: rgba(59,130,246,0.3); background: var(--blue-dim); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* TICKER */
.ticker-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); padding: 11px 0; overflow: hidden; position: relative; z-index: 1; width: 100%; max-width: 100vw; }
.ticker-inner { display: flex; gap: 64px; white-space: nowrap; animation: ticker 40s linear infinite; font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--text-3); }
.ticker-item { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.t-sep { color: var(--border2); }
.t-tag { color: var(--blue); opacity: 0.7; }
@keyframes ticker { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* SECTIONS */
section { position: relative; z-index: 1; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 52px; width: 100%; }
.section-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--blue); opacity: 0.5; }
.section-heading { font-family: var(--display); font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -1px; color: var(--text); margin-bottom: 14px; }
.section-heading .hl { color: var(--blue); }
.section-heading .hl2 { color: var(--indigo); }
.section-sub { font-size: 15px; font-weight: 300; color: var(--text-2); max-width: 520px; line-height: 1.85; }

/* ABOUT */
#about { padding: 120px 0; border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: start; }
.about-body p { font-size: 15px; font-weight: 300; color: var(--text-2); line-height: 1.9; margin-bottom: 18px; }
.about-body strong { color: var(--text); font-weight: 500; }
.about-body .hl { color: var(--blue); }
.about-body .hl2 { color: var(--indigo); }
.about-certs { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.certs-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; margin-bottom: 16px; }
.certs-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--border); padding: 5px 11px; background: var(--surface); transition: all 0.2s; }
.cert-tag:hover { color: var(--blue); border-color: rgba(59,130,246,0.3); background: var(--blue-dim); }
.about-editorial { background: var(--bg2); border: 1px solid var(--border); padding: 52px 48px; position: relative; overflow: hidden; }
.about-editorial::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--indigo), transparent); }
.editorial-large { font-family: var(--display); font-size: 108px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--editorial-stroke); line-height: 0.9; margin-bottom: 28px; letter-spacing: -4px; }
.editorial-quote { font-family: var(--body); font-size: 22px; font-weight: 300; color: var(--text); line-height: 1.5; letter-spacing: -0.3px; margin-bottom: 24px; font-style: italic; }
.editorial-quote em { color: var(--blue); font-style: normal; font-weight: 500; }
.editorial-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; }

/* CLIENTS */
#clients { padding: 72px 0; border-bottom: 1px solid var(--border); }
.clients-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; text-align: center; margin-bottom: 32px; }
.clients-row { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.client-name { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text-3); letter-spacing: -0.5px; transition: color 0.2s; }
.client-name:hover { color: var(--text); }

/* SERVICES */
#services { padding: 120px 0; border-bottom: 1px solid var(--border); }
.services-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service-card { background: var(--bg); padding: 40px 36px; position: relative; transition: background 0.25s; overflow: hidden; }
.service-card:hover { background: var(--bg2); }
.service-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.service-card:hover::after { transform: scaleX(1); }
.service-card.indigo-accent::after { background: var(--indigo); }
.service-num { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--text-4); margin-bottom: 28px; }
.service-icon-wrap { width: 44px; height: 44px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 20px; transition: all 0.2s; }
.service-card:hover .service-icon-wrap { border-color: rgba(59,130,246,0.3); background: var(--blue-dim); }
.service-card.indigo-accent:hover .service-icon-wrap { border-color: rgba(129,140,248,0.3); background: var(--indigo-dim); }
.service-name { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.3px; }
.service-desc { font-size: 13px; font-weight: 300; color: var(--text-2); line-height: 1.85; }
.service-tag { display: inline-block; margin-top: 24px; font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--blue); text-transform: uppercase; opacity: 0.6; }
.service-card.indigo-accent .service-tag { color: var(--indigo); }

/* WRITING */
#writing { padding: 120px 0; border-bottom: 1px solid var(--border); }
.writing-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-card { background: var(--bg2); border: 1px solid var(--border); padding: 36px; text-decoration: none; color: inherit; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: border-color 0.25s, transform 0.25s var(--ease); }
.article-card:hover { border-color: rgba(59,130,246,0.25); transform: translateY(-3px); }
.article-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(59,130,246,0.03), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.article-card:hover::before { opacity: 1; }
.article-card.featured { grid-column: span 2; flex-direction: row; gap: 36px; align-items: flex-start; }
.article-cat { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; display: inline-block; margin-bottom: 20px; border: 1px solid; }
.cat-saas { color: var(--blue); border-color: rgba(59,130,246,0.3); background: var(--blue-dim); }
.cat-enablement { color: var(--indigo); border-color: rgba(129,140,248,0.3); background: var(--indigo-dim); }
.article-title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.25; letter-spacing: -0.3px; margin-bottom: 14px; transition: color 0.2s; }
.article-card:hover .article-title { color: var(--blue); }
.article-card.featured .article-title { font-size: 26px; }
.article-excerpt { font-size: 13px; font-weight: 300; color: var(--text-2); line-height: 1.85; flex: 1; margin-bottom: 24px; }
.article-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); margin-top: auto; }
.article-meta { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; display: flex; gap: 16px; }
.article-arrow { font-family: var(--mono); font-size: 13px; color: var(--text-4); transition: color 0.2s, transform 0.2s; }
.article-card:hover .article-arrow { color: var(--blue); transform: translate(3px,-3px); }

/* TOPICS */
#topics { padding: 120px 0; border-bottom: 1px solid var(--border); }
.topics-layout { display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start; margin-top: 64px; }
.topics-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.topic-item { background: var(--bg); padding: 28px; transition: background 0.2s; position: relative; }
.topic-item:hover { background: var(--bg2); }
.topic-item::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform 0.3s var(--ease); }
.topic-item:nth-child(even)::after { background: var(--indigo); }
.topic-item:hover::after { transform: scaleY(1); }
.topic-icon { font-size: 22px; margin-bottom: 12px; display: block; }
.topic-name { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; margin-bottom: 8px; }
.topic-desc { font-size: 12px; font-weight: 300; color: var(--text-2); line-height: 1.75; }
.topic-bar { margin-top: 16px; height: 1px; background: var(--border); position: relative; }
.topic-bar-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--indigo)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.topic-item:hover .topic-bar-fill { transform: scaleX(1); }

/* PROCESS */
#process { padding: 120px 0; border-bottom: 1px solid var(--border); }
.process-header { margin-bottom: 72px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); }
.process-step { padding: 36px 32px; border-right: 1px solid var(--border); position: relative; transition: background 0.2s; }
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--bg2); }
.process-num { font-family: var(--display); font-size: 48px; font-weight: 800; color: var(--text-4); letter-spacing: -2px; line-height: 1; margin-bottom: 24px; transition: color 0.2s; }
.process-step:nth-child(odd):hover .process-num { color: rgba(59,130,246,0.2); }
.process-step:nth-child(even):hover .process-num { color: rgba(129,140,248,0.2); }
.process-name { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; margin-bottom: 12px; }
.process-desc { font-size: 13px; font-weight: 300; color: var(--text-2); line-height: 1.8; }

/* TESTIMONIALS */
#testimonials { padding: 120px 0; border-bottom: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.testimonial-card { background: var(--bg2); border: 1px solid var(--border); padding: 36px; position: relative; transition: border-color 0.25s, transform 0.25s var(--ease); }
.testimonial-card:hover { border-color: rgba(59,130,246,0.2); transform: translateY(-3px); }
.quote-mark { font-family: var(--display); font-size: 56px; font-weight: 800; color: var(--blue); opacity: 0.12; line-height: 1; margin-bottom: 8px; }
.testimonial-text { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.9; margin-bottom: 28px; font-style: italic; }
.testimonial-text strong { color: var(--text); font-style: normal; font-weight: 500; }
.author-wrap { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.author-initials { width: 38px; height: 38px; background: var(--blue-dim); border: 1px solid rgba(59,130,246,0.2); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 11px; font-weight: 700; color: var(--blue); flex-shrink: 0; }
.author-name { font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.author-role { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; margin-top: 2px; }

/* PRICING */
#pricing { padding: 120px 0; border-bottom: 1px solid var(--border); }
.pricing-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; margin-top: 72px; }
.pricing-card { background: var(--bg2); border: 1px solid var(--border); padding: 52px 44px; position: relative; overflow: hidden; }
.pricing-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--indigo)); }
.pricing-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 28px; display: flex; align-items: center; gap: 8px; }
.pricing-eyebrow::before { content:''; width:16px; height:1px; background:var(--blue); opacity:0.4; }
.pricing-amount { font-family: var(--display); font-size: 72px; font-weight: 800; color: var(--text); letter-spacing: -3px; line-height: 1; display: flex; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
.pricing-currency { font-size: 0.38em; color: var(--blue); margin-top: 14px; font-weight: 600; }
.pricing-period { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; margin-bottom: 32px; }
.pricing-divider { height:1px; background:var(--border); margin-bottom: 32px; }
.pricing-desc { font-size: 13px; font-weight: 300; color: var(--text-2); line-height: 1.85; margin-bottom: 32px; }
.pricing-btn { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; background: var(--blue); padding: 16px 28px; text-decoration: none; text-align: center; transition: all 0.2s; font-weight: 500; }
.pricing-btn:hover { background: #2563eb; box-shadow: 0 8px 30px rgba(59,130,246,0.35); transform: translateY(-1px); }
.pricing-details h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; margin-bottom: 16px; }
.pricing-details > p { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.9; margin-bottom: 14px; }
.pricing-details > p strong { color: var(--text); font-weight: 500; }
.includes-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--text-3); text-transform: uppercase; margin: 36px 0 16px; }
.include-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 300; color: var(--text-2); line-height: 1.7; }
.include-row:last-child { border-bottom: none; }
.include-row::before { content: ''; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.include-row strong { color: var(--text); font-weight: 500; }
.pricing-note { margin-top: 32px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; color: var(--text-3); line-height: 1.8; }
.pricing-note .hl { color: var(--blue); }

/* CONTACT */
#contact { padding: 140px 0 120px; text-align: center; position: relative; overflow: hidden; }
#contact::before { content: ''; position: absolute; width: 800px; height: 800px; background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.contact-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.contact-heading { font-family: var(--display); font-size: clamp(32px, 8vw, 72px); font-weight: 800; line-height: 0.98; letter-spacing: -2px; color: var(--text); margin-bottom: 24px; }
.contact-heading .hl { color: var(--blue); }
.contact-heading .hl2 { color: var(--indigo); }
.contact-desc { font-size: 15px; font-weight: 300; color: var(--text-2); line-height: 1.9; margin-bottom: 48px; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.contact-link { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-2); text-decoration: none; padding: 12px 24px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 10px; transition: all 0.2s; }
.contact-link:hover { color: var(--blue); border-color: rgba(59,130,246,0.3); background: var(--blue-dim); transform: translateY(-2px); }
.contact-email { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--text-3); }
.contact-email a { color: var(--blue); text-decoration: none; }
.contact-email a:hover { color: var(--indigo); }

footer { border-top: 1px solid var(--border); padding: 28px 52px; display: flex; align-items: center; justify-content: space-between; background: var(--bg2); position: relative; z-index: 1; }
.footer-brand { font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--text-2); letter-spacing: -0.3px; }
.footer-copy { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.footer-copy-sep { color: var(--border2); }
.footer-built-link { color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-built-link:hover { color: var(--blue); }
.footer-nav { display: flex; gap: 24px; list-style: none; }
.footer-nav a { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--text-3); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.footer-nav a:hover { color: var(--blue); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.3); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* TABLET */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-right { padding-top: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .topics-layout { grid-template-columns: 1fr; gap: 48px; }
  .topics-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: span 1; flex-direction: column; gap: 24px; }
  .pricing-layout { grid-template-columns: 1fr; }
}

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile-drawer { display: block; }
  .container { padding: 0 20px; overflow: hidden; width: 100%; box-sizing: border-box; }
  #hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; width: 100%; overflow: hidden; }
  .hero-left { padding: 60px 20px 40px; border-right: none; border-bottom: 1px solid var(--border); width: 100%; box-sizing: border-box; }
  .hero-left::before, .hero-right::before { display: none !important; }
  .hero-badge { font-size: 9px; letter-spacing: 1.5px; padding: 5px 12px; margin-bottom: 28px; white-space: normal; max-width: 100%; }
  .hero-name { font-size: clamp(40px, 12vw, 60px); letter-spacing: -2px; margin-bottom: 18px; word-break: break-word; }
  .hero-name-byline { margin-bottom: 22px; gap: 10px; }
  .hero-name-byline::before { width: 14px; }
  .byline-text { font-size: 10px; letter-spacing: 2.5px; }
  .hero-desc { font-size: 14px; width: 100%; margin-bottom: 36px; padding-left: 12px; box-sizing: border-box; }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding: 24px 0 0 0; border-top: 1px solid var(--border); animation: none; opacity: 1; transform: none; width: 100%; }
  .hero-stats > div { padding: 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; }
  .stat-val { font-size: 24px; }
  .stat-label { font-size: 8px; }
  .hero-right { padding: 40px 20px; gap: 24px; width: 100%; box-sizing: border-box; overflow: hidden; }
  .terminal-panel { animation: none; opacity: 1; transform: none; width: 100%; }
  .terminal-body { padding: 16px; font-size: 11px; line-height: 0.5; word-break: break-all; white-space: pre-wrap; overflow-wrap: break-word; }
  .t-line { white-space: pre-wrap; word-break: break-all; overflow-wrap: break-word; }
  .funnel-widget, .skills-panel { padding: 16px; animation: none; opacity: 1; transform: none; width: 100%; }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .service-card, .article-card, .testimonial-card { padding: 24px 20px; }
  .topic-item { padding: 22px 18px; }
  .about-editorial { padding: 28px 22px; }
  .editorial-large { font-size: 64px; }
  .editorial-quote { font-size: 18px; }
  .pricing-card { padding: 28px 20px; }
  .pricing-amount { font-size: 52px; letter-spacing: -2px; }
  .process-step { padding: 28px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px 20px; }
  .footer-copy { justify-content: center; flex-wrap: wrap; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
  .clients-row { gap: 28px; }
}

/* ═══════════════════════════════════════════════════════
   BLOG — shared
═══════════════════════════════════════════════════════ */
.blog-wrap { padding-top: 60px; min-height: 100vh; }
.blog-container { padding-top: 64px; padding-bottom: 120px; }

/* Page header */
.blog-page-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.blog-page-header::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.blog-header-inner { position: relative; z-index: 1; }
.blog-page-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.0;
  color: var(--text);
  margin: 14px 0 16px;
}
.blog-page-sub { font-size: 15px; font-weight: 300; color: var(--text-2); max-width: 480px; line-height: 1.8; }

/* Shared meta pieces */
.blog-date { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; }
.blog-read-time { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; }
.blog-arrow { font-size: 14px; color: var(--text-4); transition: color 0.2s, transform 0.2s; }

/* Category pill */
.blog-cat-pill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 3px 9px;
  display: inline-block;
}

/* ── NAV Blog link + New badge ─────────────────────────── */
.nav-blog-link { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-new-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 2px 6px;
  border-radius: 2px;
  line-height: 1.4;
  position: relative;
  top: -1px;
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(59,130,246,0); }
}

/* ═══════════════════════════════════════════════════════
   BLOG — Featured post (magazine hero)
═══════════════════════════════════════════════════════ */
.blog-featured { margin-bottom: 64px; }
.blog-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.blog-featured-inner:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-3px); }
.blog-featured-inner:hover .blog-arrow { color: var(--blue); transform: translate(3px,-3px); }
.blog-featured-inner:hover .blog-featured-title { color: var(--blue); }
.blog-featured-img { overflow: hidden; aspect-ratio: 16/10; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); display: block; }
.blog-featured-inner:hover .blog-featured-img img { transform: scale(1.03); }
.blog-featured-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.blog-featured-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--indigo), transparent);
}
.blog-featured-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.blog-featured-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 16px;
  transition: color 0.2s;
}
.blog-featured-excerpt { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.85; flex: 1; margin-bottom: 28px; }
.blog-featured-cta { display: flex; align-items: center; gap: 10px; }
.blog-read-link { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   BLOG — Grid cards
═══════════════════════════════════════════════════════ */
.blog-grid-header { margin-bottom: 28px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.blog-grid--archive { grid-template-columns: repeat(3, 1fr); }

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.blog-card:hover { border-color: rgba(59,130,246,0.25); transform: translateY(-3px); }
.blog-card:hover .blog-arrow { color: var(--blue); transform: translate(3px,-3px); }
.blog-card:hover .blog-card-title { color: var(--blue); }
.blog-card-img { overflow: hidden; aspect-ratio: 16/9; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); display: block; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.blog-card-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.blog-card-excerpt { font-size: 13px; font-weight: 300; color: var(--text-2); line-height: 1.8; flex: 1; margin-bottom: 20px; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto; }

/* Pagination */
.blog-pagination { margin-top: 48px; }
.blog-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 8px 14px;
  text-decoration: none;
  transition: all 0.2s;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current { color: var(--blue); border-color: rgba(59,130,246,0.3); background: var(--blue-dim); }

/* Empty state */
.blog-empty { padding: 80px 0; }

/* ═══════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════ */
.single-post-wrap {}

/* Header */
.single-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
}
.single-header-inner { max-width: 100%; }

.single-breadcrumb {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.single-breadcrumb a { color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.single-breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border2); }

.single-post-title {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 18px 0 28px;
  max-width: 820px;
}
.single-post-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.single-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 36px !important; height: 36px !important; border-radius: 50%; border: 1px solid var(--border2); }
.author-meta-name { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.author-meta-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; margin-top: 2px; }

/* Hero image */
.single-hero-img { margin: 0 auto 0; }
.single-hero-img img { width: 100%; max-height: 480px; object-fit: cover; display: block; border: 1px solid var(--border); border-top: none; }

/* Body layout */
.single-body-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 120px;
  align-items: start;
}

/* Content */
.single-content {
  min-width: 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.9;
}
.single-content h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 52px 0 18px;
  padding-top: 8px;
  line-height: 1.15;
}
.single-content h3 {
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  margin: 36px 0 14px;
  line-height: 1.2;
}
.single-content h4 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.single-content p { margin-bottom: 22px; }
.single-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(59,130,246,0.3); transition: text-decoration-color 0.2s; }
.single-content a:hover { text-decoration-color: var(--blue); }
.single-content strong { color: var(--text); font-weight: 500; }
.single-content em { font-style: italic; }
.single-content ul, .single-content ol { padding-left: 22px; margin-bottom: 22px; }
.single-content li { margin-bottom: 8px; }
.single-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--blue-dim);
  font-style: italic;
  color: var(--text);
}
/* Add scroll-margin so anchors don't hide under the sticky header */
.single-content h2, 
.single-content h3, 
.single-content h4 {
  scroll-margin-top: 90px;
}

#toc-widget { display: none !important; }
/* ── Table of Contents Widget ── */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-list li a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.toc-list li a:hover {
  color: var(--text);
  background: var(--surface);
  border-left-color: var(--border2);
}
.toc-list li a.toc-active {
  color: var(--blue);
  background: var(--blue-dim);
  border-left-color: var(--blue);
  font-weight: 500;
}
/* Indentation for nested headings */
.toc-depth-3 { padding-left: 16px !important; }
.toc-depth-4 { padding-left: 28px !important; }
.single-content blockquote p { margin-bottom: 0; }
.single-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 7px;
  color: var(--indigo);
}
.single-content pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.single-content pre code { background: none; border: none; padding: 0; }
.single-content img,
.single-content video,
.wp-block-video { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    border: 1px solid var(--border); 
    margin: 28px 0; 
}
.single-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.single-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.single-content th { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border2); padding: 10px 14px; text-align: left; }
.single-content td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.single-content tr:hover td { background: var(--surface); }

/* Tags */
.single-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 48px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.tags-label { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); }
.blog-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  text-decoration: none;
  background: var(--surface);
  transition: all 0.2s;
}
.blog-tag:hover { color: var(--blue); border-color: rgba(59,130,246,0.3); background: var(--blue-dim); }

/* Post nav */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 0;
}
.post-nav-link {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.post-nav-link:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
.post-nav-next { text-align: right; }
.post-nav-dir { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }
.post-nav-title { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; line-height: 1.3; }

/* ── Sidebar ───────────────────────────────────────────── */
.single-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 20px;
}
.widget-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-label::before { content: ''; width: 14px; height: 1px; background: var(--border2); }

/* Related posts */
.related-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post:first-child { padding-top: 0; }
.related-post:hover .related-title { color: var(--blue); }
.related-thumb { width: 52px; height: 52px; flex-shrink: 0; overflow: hidden; }
.related-thumb img { width: 52px; height: 52px; object-fit: cover; display: block; }
.related-info { flex: 1; min-width: 0; }
.related-title { font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; line-height: 1.3; margin-bottom: 4px; transition: color 0.2s; }
.related-date { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; }

.sidebar-back-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.sidebar-back-btn:hover { color: var(--blue); }

/* ── Comments ─────────────────────────────────────────── */
.single-comments { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.comments-title { margin-bottom: 32px; }
.comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.dm-comment-inner { display: flex; gap: 14px; }
.dm-comment-avatar img { width: 38px !important; height: 38px !important; border-radius: 50%; border: 1px solid var(--border); }
.dm-comment-body { flex: 1; min-width: 0; }
.dm-comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.dm-comment-author { font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--text); }
.dm-comment-date { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--text-3); text-transform: uppercase; }
.dm-comment-edit a { font-family: var(--mono); font-size: 9px; color: var(--blue); text-decoration: none; }
.dm-comment-pending { font-family: var(--mono); font-size: 10px; color: var(--text-3); font-style: italic; margin-bottom: 8px; }
.dm-comment-text { font-size: 14px; font-weight: 300; color: var(--text-2); line-height: 1.8; }
.dm-comment-text p { margin-bottom: 12px; }
.dm-comment-text p:last-child { margin-bottom: 0; }
.comment-reply-link { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); text-decoration: none; margin-top: 8px; display: inline-block; }

/* Comment form */
.comment-respond { margin-top: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-field-wrap { display: flex; flex-direction: column; gap: 6px; }
.comment-field-label { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); }
.comment-field-label span { color: var(--blue); }
.comment-input, .comment-textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}
.comment-input:focus, .comment-textarea:focus { border-color: rgba(59,130,246,0.4); }
.comment-textarea { resize: vertical; min-height: 120px; }
.btn-primary { /* already defined — inherits */ }

/* ═══════════════════════════════════════════════════════
   BLOG — Responsive
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-featured-inner { grid-template-columns: 1fr; }
  .blog-featured-img { aspect-ratio: 16/7; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .single-body-wrap { grid-template-columns: 1fr; gap: 48px; }
  .single-sidebar { position: static; }
}
@media (max-width: 768px) {
  .blog-page-header { padding: 48px 0 36px; }
  .blog-container { padding-top: 40px; padding-bottom: 80px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-content { padding: 28px 20px; }
  .single-post-nav { grid-template-columns: 1fr; }
  .comment-fields-row { grid-template-columns: 1fr; }
  .single-header { padding: 40px 0 32px; }
}

.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav { top: 46px; }
}