/* ═══════════════════════════════════════════════════
   MADE BY MUSSIE — Ghost Theme Stylesheet
   madebymussie.com
══════════════════════════════════════════════════ */

/* ─── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #0C0C0C;
  color: #F0F0F0;
  overflow-x: hidden;
  cursor: default;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ─── VARIABLES ──────────────────────────────────── */
:root {
  --bg:        #0C0C0C;
  --bg-card:   #131313;
  --bg-raised: #1A1A1A;
  --border:    rgba(255,255,255,0.07);
  --accent:    #FF4D1C;
  --amber:     #F5A623;
  --text:      #F0F0F0;
  --muted:     #777;
  --nav-h:     68px;
}

/* ─── SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── NOISE OVERLAY ──────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .35;
}

/* ─── LAYOUT ─────────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 64px; }
#site-main { padding-top: var(--nav-h); }

/* ─── ANIMATIONS ─────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }
.delay-5 { transition-delay: .5s !important; }

/* ─── SECTION LABEL ──────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 18px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 14px; padding: 13px 26px; border-radius: 8px;
  border: none; cursor: pointer; letter-spacing: .03em;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #e03a0c; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 14px; padding: 12px 26px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15); cursor: pointer;
  letter-spacing: .03em; transition: border-color .2s, transform .15s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }

/* ════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between; padding: 0 48px;
  background: rgba(12,12,12,.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); z-index: 200;
  transition: background .3s;
}
.site-nav.scrolled { background: rgba(12,12,12,.96); }

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-link { display: flex; align-items: center; }
.nav-logo-img {
  width: 36px; height: 36px;
  border-radius: 50%; object-fit: cover;
}
.nav-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 15px; line-height: 1.1; color: var(--text);
}
.nav-name span { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .08em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  letter-spacing: .04em; transition: color .2s;
}
.nav-links a:hover,
.nav-links a.nav-active { color: var(--text); }

.btn-resume {
  background: var(--accent); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 13px; padding: 9px 20px; border-radius: 6px;
  border: none; cursor: pointer; letter-spacing: .03em;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center;
}
.btn-resume:hover { background: #e03a0c; transform: translateY(-1px); }
.btn-resume .arrow { display: inline-block; margin-left: 4px; }
/* Desktop: show inline button, hide mobile version */
.nav-resume-mobile { display: none; }
.nav-resume-desktop { display: inline-flex; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,77,28,.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(245,166,35,.06) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.hero-inner {
  position: relative; display: grid;
  grid-template-columns: 1fr auto; gap: 60px;
  align-items: center; width: 100%;
  padding: 130px 64px 110px;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,77,28,.12); border: 1px solid rgba(255,77,28,.25);
  border-radius: 100px; padding: 5px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 24px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,77,28,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(255,77,28,0); }
}

.hero-greeting { font-size: 22px; font-weight: 300; color: var(--muted); margin-bottom: 6px; }
.hero-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(56px, 6.5vw, 108px);
  line-height: .93; letter-spacing: -.03em; margin-bottom: 4px;
}
.hero-name .accent { color: var(--accent); }

.hero-roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.hero-role {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-left: 2px solid var(--accent); padding-left: 10px;
}

.hero-bio {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: rgba(240,240,240,.65); max-width: 600px; margin-bottom: 36px;
}
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 52px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat-val {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 36px; color: var(--accent); line-height: 1;
}
.hero-stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }

/* HERO PHOTO */
.hero-photo-wrap { position: relative; flex-shrink: 0; }
.hero-photo-frame {
  width: 380px; height: 480px; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border);
  position: relative;
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero-photo-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,12,.6) 0%, transparent 50%);
}
.hero-photo-badge {
  position: absolute; bottom: -14px; left: -14px;
  background: var(--accent); border-radius: 10px; padding: 10px 14px;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 11px; color: #fff; letter-spacing: .04em;
  box-shadow: 0 8px 28px rgba(255,77,28,.4);
}
.hero-photo-badge span { display: block; font-size: 18px; font-weight: 800; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
.hero-scroll-line { width: 1px; height: 28px; background: linear-gradient(to bottom, transparent, var(--muted)); }

/* ════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════ */
.about-section { padding: 140px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }

.about-heading {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 1.05; letter-spacing: -.02em; margin-bottom: 20px;
}
.about-heading .accent { color: var(--accent); }
.about-body { font-size: 15px; line-height: 1.8; color: rgba(240,240,240,.65); margin-bottom: 14px; }

.about-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
.skill-chip {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color .2s, background .2s;
}
.skill-chip:hover { border-color: rgba(255,77,28,.3); background: rgba(255,77,28,.04); }
.skill-chip-icon {
  font-size: 16px; width: 30px; height: 30px;
  background: rgba(255,77,28,.1); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.skill-chip-name { font-size: 13px; font-weight: 600; }

.about-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.about-num-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 18px;
  transition: border-color .2s;
}
.about-num-card:hover { border-color: rgba(255,77,28,.3); }
.about-num-val {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 44px; color: var(--accent); line-height: 1;
}
.about-num-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.about-tools {}
.tools-heading {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.tools-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px;
  font-size: 12px; font-weight: 500;
  transition: border-color .2s, color .2s;
}
.tool-tag:hover { border-color: rgba(255,77,28,.3); color: var(--accent); }

/* ════════════════════════════════════════════════════
   PROJECTS / WORK
════════════════════════════════════════════════════ */
.projects-section { padding: 140px 0; }
.section-header { margin-bottom: 52px; }
.split-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.section-heading {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(36px, 3.5vw, 60px);
  line-height: 1.05; letter-spacing: -.02em;
}
.section-heading .accent { color: var(--accent); }
.section-sub { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 480px; line-height: 1.7; }

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.below-featured { margin-top: 20px; }

.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,77,28,.25);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.project-card.featured,
.project-card.featured-work {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1.2fr;
}

.project-thumb {
  display: block; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, #151515, #1e1e1e);
  position: relative;
}
.project-card.featured .project-thumb,
.project-card.featured-work .project-thumb { aspect-ratio: auto; min-height: 300px; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}
.project-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,77,28,.12), transparent);
}

.project-body { padding: 24px; }
.project-card.featured .project-body,
.project-card.featured-work .project-body {
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.project-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(255,77,28,.1); border: 1px solid rgba(255,77,28,.2);
  border-radius: 4px; padding: 3px 8px;
}
.project-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.15; letter-spacing: -.01em; margin-bottom: 10px;
}
.project-title a { color: var(--text); transition: color .2s; }
.project-title a:hover { color: var(--accent); }
.project-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }

.project-metrics { display: flex; gap: 16px; flex-wrap: wrap; }
.project-metric { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.project-metric-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.project-cta {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 20px; font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 13px; color: var(--accent);
  letter-spacing: .04em; text-transform: uppercase;
  transition: gap .2s;
}
.project-cta:hover { gap: 9px; }

/* ─── CTA BANNER ─────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,77,28,.1), rgba(245,166,35,.05));
  border: 1px solid rgba(255,77,28,.2); border-radius: 14px;
  padding: 44px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-top: 24px;
}
.cta-banner-text h3 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 22px; margin-bottom: 4px;
}
.cta-banner-text p { font-size: 14px; color: var(--muted); }
.cta-banner-section { padding: 40px 0 80px; }

/* ════════════════════════════════════════════════════
   BLOG CARDS
════════════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-preview-section { padding: 120px 0; }

.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,77,28,.2);
  box-shadow: 0 16px 44px rgba(0,0,0,.4);
}

.blog-thumb {
  display: block;
  aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, #151515, #222);
  position: relative;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}

.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.blog-cat {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 4px; padding: 3px 8px; margin-bottom: 10px;
}
/* tag colour aliases */
.tag-esports-design     { color: #FF4D1C; background: rgba(255,77,28,.1); border: 1px solid rgba(255,77,28,.2); }
.tag-design-philosophy  { color: #F5A623; background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.2); }
.tag-case-study         { color: #4CAF50; background: rgba(76,175,80,.1);  border: 1px solid rgba(76,175,80,.2); }
.tag-ux-psychology      { color: #9C27B0; background: rgba(156,39,176,.1); border: 1px solid rgba(156,39,176,.2); }
.tag-design-systems     { color: #2196F3; background: rgba(33,150,243,.1); border: 1px solid rgba(33,150,243,.2); }
.tag-motion-design      { color: #FF9800; background: rgba(255,152,0,.1);  border: 1px solid rgba(255,152,0,.2); }
.tag-work               { color: #FF4D1C; background: rgba(255,77,28,.1); border: 1px solid rgba(255,77,28,.2); }

.blog-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 15px; line-height: 1.3; margin-bottom: 8px; flex: 1;
}
.blog-title a { color: var(--text); transition: color .2s; }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.blog-read-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  font-family: 'Syne', sans-serif; letter-spacing: .04em;
  text-transform: uppercase; margin-top: 12px;
  transition: gap .2s;
}
.blog-read-link:hover { gap: 8px; }

/* ════════════════════════════════════════════════════
   ARCHIVE PAGES (work.hbs / blog.hbs)
════════════════════════════════════════════════════ */
.archive-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.archive-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(48px, 5.5vw, 88px);
  line-height: .95; letter-spacing: -.03em; margin-bottom: 14px;
}
.archive-title .accent { color: var(--accent); }
.archive-sub { font-size: 16px; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.7; }

.archive-body { padding: 60px 0 80px; }

/* BLOG FILTERS */
.blog-archive-hero { padding-bottom: 40px; }
.blog-filters {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-top: 32px; justify-content: center;
}
.filter-btn {
  padding: 7px 15px; border-radius: 100px; cursor: pointer;
  font-size: 13px; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover,
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.blog-post-count { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* featured post on archive pages */
.blog-card.featured-post {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.3fr 1fr;
  margin-bottom: 4px;
}
.blog-card.featured-post .blog-thumb.featured-thumb { aspect-ratio: auto; min-height: 300px; }
.blog-card.featured-post .blog-body { padding: 32px 28px; }
.blog-card.featured-post .blog-title { font-size: 20px; }
.featured-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 4px; padding: 3px 8px;
}

.blog-archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* PAGINATION */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 60px 0 0;
}
.pagination-info { font-size: 13px; color: var(--muted); }

/* EMPTY STATE */
.empty-state {
  text-align: center; padding: 80px 0;
  font-size: 16px; color: var(--muted);
}

/* ════════════════════════════════════════════════════
   SINGLE POST — Full-screen hero + section fade-ins
════════════════════════════════════════════════════ */

/* ── CASE STUDY HERO ─────────────────────────────── */
.cs-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-bottom: 80px;
}

/* Ambient radial glow */
.cs-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(255,77,28,.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(245,166,35,.07) 0%, transparent 60%);
  z-index: 1;
}

/* Grid overlay */
.cs-hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Optional feature image as blurred background */
.cs-hero-image {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(2px) brightness(.15) saturate(1.4);
  transform: scale(1.05);
}

/* Dark gradient overlay — strongest at bottom so text reads */
.cs-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(12,12,12,.3) 0%,
    rgba(12,12,12,.5) 40%,
    rgba(12,12,12,.9) 80%,
    rgba(12,12,12,1) 100%
  );
}

.cs-hero-inner {
  position: relative; z-index: 3;
  padding-top: calc(var(--nav-h) + 60px);
  width: 100%;
}

.cs-hero-content {
  max-width: 860px;
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 28px;
}
.post-breadcrumb a { color: rgba(255,77,28,.8); transition: color .2s; }
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb span { color: rgba(255,255,255,.15); }

/* Tag pill */
.cs-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,77,28,.12); border: 1px solid rgba(255,77,28,.3);
  border-radius: 100px; padding: 6px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 24px;
}
.cs-hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}

/* Title */
.cs-hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .93; letter-spacing: -.03em;
  color: var(--text); margin-bottom: 20px;
}

/* Subtitle */
.cs-hero-subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300; line-height: 1.7;
  color: rgba(240,240,240,.65);
  max-width: 640px; margin-bottom: 36px;
}

/* Meta row */
.cs-hero-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; font-size: 13px; color: rgba(255,255,255,.4);
}
.post-author { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.6); }
.post-author-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-meta-sep { color: rgba(255,255,255,.15); }

/* Scroll indicator */
.cs-hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.3); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; z-index: 3;
  animation: bob 2s ease-in-out infinite;
}
.cs-hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.3));
}

/* ── CONTENT SECTIONS (JS-generated) ─────────────── */

/* Each h2 becomes a section boundary */
.cs-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
}
.cs-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.cs-section:first-child { border-top: none; padding-top: 60px; }

/* Section heading (h2 from markdown) */
.cs-section > h2 {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(28px, 3vw, 44px) !important;
  letter-spacing: -.02em !important;
  line-height: 1.05 !important;
  color: var(--text) !important;
  margin-bottom: 36px !important;
  margin-top: 0 !important;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cs-section > h2::before {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--accent);
}

/* Section h3 */
.cs-section h3 {
  font-family: 'Syne', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  color: var(--text) !important;
  margin: 2em 0 .75em !important;
}

/* First section (intro) gets a two-col layout if it has an h3 group */
.cs-section-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.cs-section-intro-left {}
.cs-section-intro-right {}

/* ── POST CONTENT GENERAL ─────────────────────────── */
.post-content-wrap { padding: 0 0 60px; }
.post-content { max-width: 100%; }

/* Paragraphs */
.gh-content p {
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: rgba(240,240,240,.78) !important;
  margin-bottom: 1.4em !important;
}

/* Horizontal rules become section dividers */
.gh-content hr {
  border: none !important;
  border-top: 1px solid var(--border) !important;
  margin: 0 !important;
}

/* Lists */
.gh-content ul, .gh-content ol {
  padding-left: 1.4em !important;
  margin-bottom: 1.4em !important;
}
.gh-content li {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: rgba(240,240,240,.78) !important;
  margin-bottom: .5em !important;
}

/* Strong inside paragraphs */
.gh-content strong {
  color: var(--text) !important;
  font-weight: 700 !important;
}

/* Blockquote as callout */
.gh-content blockquote {
  border-left: 3px solid var(--accent) !important;
  background: rgba(255,77,28,.05) !important;
  padding: 18px 24px !important;
  border-radius: 0 10px 10px 0 !important;
  margin: 2em 0 !important;
}
.gh-content blockquote p {
  color: rgba(240,240,240,.85) !important;
  font-size: 17px !important;
  font-style: italic !important;
  margin: 0 !important;
}

/* Images */
.gh-content img {
  border-radius: 12px !important;
  max-width: 100% !important;
  margin: 2em 0 !important;
}

/* Tables */
.gh-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2em 0 !important;
  font-size: 15px !important;
  background: transparent !important;
}
.gh-content table th {
  background: #131313 !important;
  color: var(--text) !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 700 !important;
  padding: 13px 18px !important;
  text-align: left !important;
  border-bottom: 2px solid rgba(255,77,28,.3) !important;
}
.gh-content table td {
  padding: 12px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  color: rgba(240,240,240,.75) !important;
  background: transparent !important;
}
.gh-content table tr:nth-child(even) td { background: rgba(255,255,255,.02) !important; }
.gh-content table tr:hover td { background: rgba(255,77,28,.04) !important; }

/* ── POST FOOTER ──────────────────────────────────── */
.post-footer { padding: 40px 0 60px; border-top: 1px solid var(--border); }
.post-footer-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.post-footer-tags-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.post-tags-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.post-inline-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(255,77,28,.1); border: 1px solid rgba(255,77,28,.2);
  border-radius: 4px; padding: 3px 8px; transition: background .2s;
}
.post-inline-tag:hover { background: rgba(255,77,28,.2); }
.post-share { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.share-btn {
  background: var(--bg-raised); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.share-btn:hover { border-color: rgba(255,77,28,.3); color: var(--accent); }

/* ── RELATED POSTS ────────────────────────────────── */
.related-posts { padding: 60px 0; border-top: 1px solid var(--border); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .cs-hero { min-height: 80vh; padding-bottom: 60px; }
  .cs-hero-title { font-size: clamp(36px, 10vw, 64px); }
  .cs-section { padding: 56px 0; }
  .cs-section-intro { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .cs-hero { min-height: 70vh; }
  .cs-hero-title { font-size: clamp(32px, 12vw, 52px); }
  .cs-section { padding: 44px 0; }
}


/* ════════════════════════════════════════════════════
   NEWSLETTER
════════════════════════════════════════════════════ */
.newsletter-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.newsletter-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.newsletter-text h3 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 22px; margin-bottom: 4px;
}
.newsletter-text p { font-size: 14px; color: var(--muted); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-input {
  background: var(--bg-raised); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 12px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  width: 260px; outline: none; transition: border-color .2s;
}
.newsletter-input:focus { border-color: rgba(255,77,28,.4); }
.newsletter-btn {
  background: var(--accent); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 13px; padding: 12px 20px; border-radius: 8px;
  border: none; cursor: pointer; letter-spacing: .03em;
  transition: background .2s;
}
.newsletter-btn:hover { background: #e03a0c; }

/* ════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════ */
.contact-page-hero { padding: 80px 0 60px; text-align: center; }
.contact-page-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1; letter-spacing: -.02em; margin-bottom: 14px;
}
.contact-page-hero h1 .accent { color: var(--accent); }
.contact-hero-sub { font-size: 16px; color: var(--muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }
.contact-section { padding: 40px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,77,28,.1); border: 1px solid rgba(255,77,28,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-item-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-item-val { font-size: 14px; font-weight: 500; margin-top: 2px; }

.contact-socials { margin-top: 8px; }

/* CONTACT FORM */
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.form-input, .form-select, .form-textarea {
  background: var(--bg-raised); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 12px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color .2s; outline: none;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(255,77,28,.45);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; background: var(--accent); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  padding: 15px; border-radius: 8px; border: none; cursor: pointer;
  margin-top: 6px; letter-spacing: .03em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.form-submit:hover { background: #e03a0c; transform: translateY(-1px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; letter-spacing: .02em; }

.form-success-msg {
  text-align: center; padding: 40px 20px;
}
.form-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(76,175,80,.15); border: 1px solid rgba(76,175,80,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #4CAF50; margin: 0 auto 16px;
}
.form-success-msg h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 22px; margin-bottom: 8px;
}
.form-success-msg p { font-size: 14px; color: var(--muted); }

/* ─── HOME CONTACT STRIP ──────────────────────────── */
.contact-strip { padding: 80px 0; border-top: 1px solid var(--border); }
.contact-strip-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.contact-strip-inner h2 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(26px, 3vw, 40px); margin-bottom: 6px;
}
.contact-strip-inner p { font-size: 14px; color: var(--muted); }

/* ════════════════════════════════════════════════════
   STATIC PAGE
════════════════════════════════════════════════════ */
.static-page {}
.page-hero { padding: 80px 0 60px; border-bottom: 1px solid var(--border); }
.page-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(36px, 5vw, 60px); letter-spacing: -.02em; margin-bottom: 14px;
}
.page-subtitle { font-size: 18px; color: var(--muted); max-width: 600px; line-height: 1.65; }
.page-feature-image { padding: 40px 0 0; }
.page-feature-image img { width: 100%; border-radius: 12px; max-height: 480px; object-fit: cover; }
.page-content-wrap { padding: 60px 0 100px; }

/* ════════════════════════════════════════════════════
   ERROR PAGE
════════════════════════════════════════════════════ */
.error-page {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.error-inner { text-align: center; max-width: 480px; }
.error-code {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(48px, 20vw, 120px); color: rgba(255,77,28,.15); line-height: 1;
  margin-bottom: -20px; word-break: break-all;
}
.error-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 36px; margin-bottom: 14px;
}
.error-sub { font-size: 16px; color: var(--muted); margin-bottom: 36px; }
.error-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.site-footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 44px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.footer-brand-desc { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 220px; }
.footer-col-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.social-btn:hover { background: rgba(255,77,28,.1); color: var(--accent); border-color: rgba(255,77,28,.25); }

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .hero-photo-frame { width: 320px; height: 400px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .container { padding: 0 48px; }
}

@media (max-width: 900px) {
  .site-nav { padding: 0 24px; }
  .container { padding: 0 24px; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: rgba(12,12,12,.97); border-bottom: 1px solid var(--border); padding: 20px 24px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-resume-desktop { display: none; }
  .nav-resume-mobile { display: inline-flex; width: 100%; justify-content: center; margin-top: 8px; padding: 13px 20px; font-size: 14px; border-radius: 8px; }
  .container { padding: 0 24px; }
  .hero-inner { grid-template-columns: 1fr; padding: 80px 24px 60px; }
  .hero-photo-wrap { display: flex; justify-content: center; margin-top: 40px; }
  .hero-photo-frame { width: 240px; height: 300px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured, .project-card.featured-work { grid-column: auto; display: flex; flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-archive-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured-post { grid-column: 1 / -1; display: flex; flex-direction: column; }
  .blog-card.featured-post .blog-thumb.featured-thumb { aspect-ratio: 16/9; min-height: auto; }
  .cs-two-col, .solution-grid { grid-template-columns: 1fr; gap: 40px; }
  .results-row { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .cta-banner { flex-direction: column; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .contact-strip-inner { flex-direction: column; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-archive-grid { grid-template-columns: 1fr; }
  .about-skills { grid-template-columns: 1fr; }
  .about-numbers { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-socials { flex-wrap: wrap; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-input { width: 100%; }
  .results-row { grid-template-columns: 1fr 1fr; }
  /* 404 page */
  .error-page { overflow-x: hidden; }
  .error-cta { flex-direction: column; }
  .error-cta .btn-primary,
  .error-cta .btn-outline { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════
   KOENIG EDITOR CARD CLASSES (required by Ghost)
════════════════════════════════════════════════════ */

/* Width utilities */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw * 0.85);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Image card */
.kg-image-card { margin: 2em 0; }
.kg-image-card img { border-radius: 10px; width: 100%; }
.kg-image-card figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Gallery card */
.kg-gallery-card { margin: 2em 0; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 6px; }
.kg-gallery-row { display: flex; gap: 6px; }
.kg-gallery-image { flex: 1; overflow: hidden; border-radius: 6px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bookmark card */
.kg-bookmark-card { margin: 2em 0; }
.kg-bookmark-container {
  display: flex; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  background: var(--bg-card);
  transition: border-color .2s;
}
.kg-bookmark-container:hover { border-color: rgba(255,77,28,.3); }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.kg-bookmark-description { font-size: 13px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; overflow: hidden; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.kg-callout-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px; margin: 2em 0;
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.kg-callout-text { font-size: 15px; line-height: 1.7; color: rgba(240,240,240,.8); }

/* Toggle card */
.kg-toggle-card { margin: 2em 0; }
.kg-toggle-heading {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 18px; cursor: pointer;
}
.kg-toggle-heading-text { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px; }
.kg-toggle-content { padding: 16px 18px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* Video card */
.kg-video-card { margin: 2em 0; }
.kg-video-card video { width: 100%; border-radius: 10px; }

/* Audio card */
.kg-audio-card { margin: 2em 0; }
.kg-audio-player-container {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
}

/* Button card */
.kg-button-card { margin: 2em 0; display: flex; }
.kg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 14px; padding: 12px 24px; border-radius: 8px;
  transition: background .2s;
}
.kg-btn:hover { background: #e03a0c; }
.kg-btn-accent { background: var(--accent); }

/* Divider card */
.kg-divider { border: none; border-top: 1px solid var(--border); margin: 3em 0; }

/* Code card */
.kg-code-card { margin: 2em 0; }
.kg-code-card pre {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; overflow-x: auto;
  font-family: 'Courier New', monospace; font-size: 14px;
  line-height: 1.6; color: var(--text);
}

/* Product card */
.kg-product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin: 2em 0;
  display: flex; gap: 20px; align-items: flex-start;
}
.kg-product-card-image { width: 100px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.kg-product-card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.kg-product-card-description { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.kg-product-card-rating { color: var(--amber); margin-bottom: 14px; }
.kg-product-card-button { display: inline-flex; }

/* File card */
.kg-file-card { margin: 2em 0; }
.kg-file-card-container {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 22px;
  transition: border-color .2s;
}
.kg-file-card-container:hover { border-color: rgba(255,77,28,.3); }
.kg-file-card-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.kg-file-card-caption { font-size: 12px; color: var(--muted); }
.kg-file-card-contents { flex: 1; }
.kg-file-card-icon { width: 38px; color: var(--accent); flex-shrink: 0; }

/* NFT card */
.kg-nft-card { margin: 2em 0; }
.kg-nft-link { display: block; }
.kg-nft-link img { border-radius: 10px; width: 100%; }

/* ─── NAV TOGGLE OPEN STATE ──────────────────────── */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform .2s, opacity .2s; }

/* ─── WORK LOOP WRAPPER ──────────────────────────── */
.work-loop-wrap > .project-card.featured-work {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
}
.work-loop-wrap > .project-card.featured-work .project-thumb {
  aspect-ratio: auto;
  min-height: 300px;
}

/* ════════════════════════════════════════════════════
   GHOST DARK MODE — Nuclear override
   Targets Ghost's injected card CSS, color-scheme
   defaults, and any light backgrounds globally.
════════════════════════════════════════════════════ */

/* Force dark on everything Ghost might inject */
html, body,
.post-template,
.page-template,
.tag-template,
.author-template {
  background-color: #0C0C0C !important;
  color: #F0F0F0 !important;
  color-scheme: dark !important;
}

/* Post/page content wrappers */
.post-content,
.gh-content,
.gh-canvas,
.article-content,
.kg-canvas {
  background: transparent !important;
  color: #F0F0F0 !important;
}

/* All headings */
.gh-content h1, .gh-content h2, .gh-content h3,
.gh-content h4, .gh-content h5, .gh-content h6,
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
  color: #F0F0F0 !important;
  font-family: 'Syne', sans-serif !important;
}

/* All body text */
.gh-content p, .gh-content li, .gh-content span,
.post-content p, .post-content li, .post-content span {
  color: rgba(240,240,240,.8) !important;
}

/* Links */
.gh-content a, .post-content a {
  color: #FF4D1C !important;
  text-decoration-color: rgba(255,77,28,.4) !important;
}
.gh-content a:hover, .post-content a:hover {
  text-decoration-color: #FF4D1C !important;
}

/* Blockquote */
.gh-content blockquote,
.post-content blockquote {
  border-left: 3px solid #FF4D1C !important;
  background: rgba(255,77,28,.05) !important;
  padding: 16px 20px !important;
  border-radius: 0 8px 8px 0 !important;
  margin: 2em 0 !important;
}
.gh-content blockquote p,
.post-content blockquote p {
  color: rgba(240,240,240,.85) !important;
  margin: 0 !important;
}

/* Horizontal rule */
.gh-content hr, .post-content hr {
  border: none !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
  margin: 3em 0 !important;
}

/* Inline code */
.gh-content code, .post-content code {
  background: #1A1A1A !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  color: #F5A623 !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  font-size: .88em !important;
}

/* Code blocks */
.gh-content pre, .post-content pre {
  background: #131313 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  padding: 24px !important;
  overflow-x: auto !important;
  margin: 2em 0 !important;
}
.gh-content pre code, .post-content pre code {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #F0F0F0 !important;
}

/* Tables */
.gh-content table, .post-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2em 0 !important;
  font-size: 15px !important;
  background: transparent !important;
}
.gh-content table th, .post-content table th {
  background: #131313 !important;
  color: #F0F0F0 !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  text-align: left !important;
  border-bottom: 2px solid rgba(255,77,28,.3) !important;
}
.gh-content table td, .post-content table td {
  padding: 11px 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  color: rgba(240,240,240,.75) !important;
  background: transparent !important;
}
.gh-content table tr:nth-child(even) td,
.post-content table tr:nth-child(even) td {
  background: rgba(255,255,255,.02) !important;
}
.gh-content table tr:hover td,
.post-content table tr:hover td {
  background: rgba(255,77,28,.04) !important;
}

/* Images */
.gh-content figure, .gh-content img,
.post-content figure, .post-content img {
  background: transparent !important;
}
.gh-content img, .post-content img {
  border-radius: 10px;
  max-width: 100%;
}
.gh-content figcaption, .post-content figcaption {
  text-align: center !important;
  font-size: 13px !important;
  color: #777 !important;
  margin-top: 8px !important;
}

/* ── KOENIG CARDS (card_assets:false means we own all styles) ── */

/* Image card */
.kg-image-card { margin: 2em 0; background: transparent !important; }
.kg-image-card img { border-radius: 10px; width: 100%; }
.kg-image-card figcaption { text-align: center; font-size: 13px; color: #777; margin-top: 8px; }

/* Width modifiers */
.kg-width-wide {
  position: relative;
  width: 85vw; min-width: 100%;
  margin-left: calc(50% - 50vw * 0.85);
  margin-right: calc(50% - 50vw * 0.85);
}
.kg-width-full {
  position: relative; width: 100vw;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
}

/* Gallery */
.kg-gallery-card { margin: 2em 0; background: transparent !important; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 6px; }
.kg-gallery-row { display: flex; gap: 6px; }
.kg-gallery-image { flex: 1; overflow: hidden; border-radius: 6px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bookmark */
.kg-bookmark-card { margin: 2em 0; }
.kg-bookmark-container {
  display: flex; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px; overflow: hidden;
  background: #131313 !important; transition: border-color .2s;
  text-decoration: none !important;
}
.kg-bookmark-container:hover { border-color: rgba(255,77,28,.3) !important; }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #F0F0F0 !important; }
.kg-bookmark-description { font-size: 13px; color: #777 !important; margin-bottom: 10px; line-height: 1.5; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #777 !important; }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; overflow: hidden; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }

/* Callout */
.kg-callout-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #131313 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important; padding: 20px 24px; margin: 2em 0;
}
.kg-callout-emoji { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.kg-callout-text { font-size: 15px; line-height: 1.7; color: rgba(240,240,240,.8) !important; }

/* Toggle */
.kg-toggle-card { margin: 2em 0; }
.kg-toggle-heading {
  display: flex; align-items: center; justify-content: space-between;
  background: #131313 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 8px; padding: 14px 18px; cursor: pointer;
}
.kg-toggle-heading-text { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px; color: #F0F0F0 !important; }
.kg-toggle-content { padding: 16px 18px; font-size: 15px; color: rgba(240,240,240,.7) !important; line-height: 1.7; }
.kg-toggle-card-icon { color: #FF4D1C !important; }

/* Video */
.kg-video-card { margin: 2em 0; background: transparent !important; }
.kg-video-card video { width: 100%; border-radius: 10px; }

/* Audio */
.kg-audio-card { margin: 2em 0; }
.kg-audio-player-container {
  background: #131313 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px; padding: 20px;
}
.kg-audio-title { color: #F0F0F0 !important; }
.kg-audio-player { color: #F0F0F0 !important; }

/* Button */
.kg-button-card { margin: 2em 0; display: flex; }
.kg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FF4D1C !important; color: #fff !important;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 14px; padding: 12px 24px; border-radius: 8px;
  transition: background .2s;
}
.kg-btn:hover { background: #e03a0c !important; }

/* File */
.kg-file-card { margin: 2em 0; }
.kg-file-card-container {
  display: flex; align-items: center; gap: 16px;
  background: #131313 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px; padding: 18px 22px; transition: border-color .2s;
  text-decoration: none !important;
}
.kg-file-card-container:hover { border-color: rgba(255,77,28,.3) !important; }
.kg-file-card-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 4px; color: #F0F0F0 !important; }
.kg-file-card-caption { font-size: 12px; color: #777 !important; }
.kg-file-card-contents { flex: 1; }

/* Product */
.kg-product-card {
  background: #131313 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 12px; padding: 24px; margin: 2em 0;
  display: flex; gap: 20px; align-items: flex-start;
}
.kg-product-card-image { width: 100px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.kg-product-card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 8px; color: #F0F0F0 !important; }
.kg-product-card-description { font-size: 14px; color: rgba(240,240,240,.7) !important; line-height: 1.6; margin-bottom: 14px; }
.kg-product-card-rating { color: #F5A623; margin-bottom: 14px; }

/* Header card */
.kg-header-card {
  background: #131313 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 12px !important; padding: 48px !important; margin: 2em 0 !important;
  text-align: center;
}
.kg-header-card-header { color: #F0F0F0 !important; font-family: 'Syne', sans-serif !important; font-weight: 800 !important; }
.kg-header-card-subheader { color: rgba(240,240,240,.65) !important; }
.kg-header-card .kg-btn { background: #FF4D1C !important; color: #fff !important; }

/* Signup card */
.kg-signup-card {
  background: #131313 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 12px !important; padding: 40px !important; margin: 2em 0 !important;
  text-align: center;
}
.kg-signup-card-header { color: #F0F0F0 !important; font-family: 'Syne', sans-serif !important; font-weight: 800 !important; }
.kg-signup-card-subheader { color: rgba(240,240,240,.65) !important; }
.kg-signup-card input[type="email"] {
  background: #1A1A1A !important; border: 1px solid rgba(255,255,255,.07) !important;
  color: #F0F0F0 !important; border-radius: 8px !important; padding: 12px 14px !important;
  font-family: 'DM Sans', sans-serif !important;
}
.kg-signup-card button[type="submit"] {
  background: #FF4D1C !important; color: #fff !important;
  font-family: 'Syne', sans-serif !important; font-weight: 700 !important;
  border-radius: 8px !important; border: none !important;
}

/* Code card */
.kg-code-card { margin: 2em 0; }
.kg-code-card pre {
  background: #131313 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important; padding: 24px !important;
  overflow-x: auto; font-family: 'Courier New', monospace;
  font-size: 14px !important; line-height: 1.6 !important; color: #F0F0F0 !important;
}

/* Divider */
.kg-divider { border: none !important; border-top: 1px solid rgba(255,255,255,.07) !important; margin: 3em 0 !important; }

/* NFT */
.kg-nft-card { margin: 2em 0; }
.kg-nft-link img { border-radius: 10px; width: 100%; }

/* ─── MISSING REQUIRED BOOKMARK CLASSES ─────────── */
.kg-bookmark-author {
  font-size: 12px;
  color: #777 !important;
  font-weight: 500;
}
.kg-bookmark-publisher {
  font-size: 12px;
  color: #777 !important;
  font-weight: 400;
}
.kg-bookmark-author::after {
  content: ' · ';
  color: rgba(255,255,255,.2);
}
