/* ============================================
   Automatiqa Ghost Theme v2 — screen.css
   Dark industrial design
   ============================================ */

/* --- Reset & Variables --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root {
  /* Dark zone */
  --dark:      #0e0d0b;
  --dark2:     #161411;
  --dark3:     #1e1c18;
  --dark-rule: rgba(255,255,255,0.06);
  --dim:       rgba(255,255,255,0.28);
  --ghost:     rgba(255,255,255,0.14);

  /* Light zone */
  --canvas:    #f5f2ec;
  --canvas2:   #ede9e1;
  --canvas3:   #e4e0d7;
  --ink:       #1a1916;
  --ink2:      #2e2c28;
  --ink3:      #4a4740;
  --muted:     #7a756e;
  --light-rule:rgba(26,25,22,0.09);

  /* Accent */
  --amber:     #c8611a;
  --amber2:    #e8721f;
  --amber-dim: rgba(200,97,26,0.12);
  --amber-b:   rgba(200,97,26,0.22);
  --green:     #1e7a45;
  --green-dim: rgba(30,122,69,0.12);
  --green-b:   rgba(30,122,69,0.22);
  --green-txt: #2a9d5c;

  /* Type */
  --mono: 'IBM Plex Mono', monospace;
  --cond: 'Barlow Condensed', sans-serif;
  --body: 'Libre Franklin', sans-serif;
}

html { scroll-behavior: smooth }
body { background: var(--canvas); font-family: var(--body); color: var(--ink); overflow-x: hidden }
a { color: inherit; text-decoration: none }
img { max-width: 100%; height: auto }

/* --- Navigation (dark) --- */
.nav {
  background: var(--dark);
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 56px; height: 56px;
  border-bottom: 1px solid var(--dark-rule);
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none }
.nav-wordmark {
  font-family: var(--cond); font-size: 18px; font-weight: 700;
  color: rgba(245,242,236,0.92); letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1;
}
.nav-links { display: flex; gap: 32px }
.nav-link {
  font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; transition: color 0.15s;
}
.nav-link:hover { color: rgba(255,255,255,0.7) }
.nav-cta {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--amber); color: #fff;
  padding: 9px 20px; border: none; cursor: pointer; transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: #a04e12 }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(245,242,236,0.7); margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.nav-toggle.active span:nth-child(2) { opacity: 0 }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* --- Hero (dark zone) --- */
.hero {
  background: var(--dark); padding: 68px 56px 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -100px; top: 50%;
  transform: translateY(-55%); width: 560px; height: 560px;
  border: 1px solid rgba(200,97,26,0.07); border-radius: 50%; pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 72px; align-items: center;
  position: relative; z-index: 1; max-width: 1280px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9px;
  color: var(--amber); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow-pulse {
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.3)} }

.hero-h1 {
  font-family: var(--cond); font-size: clamp(56px, 5.5vw, 76px);
  font-weight: 800; line-height: 0.9; color: rgba(245,242,236,0.96);
  letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: 6px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-h1 em { font-style: italic; color: var(--amber) }
.hero-slogan {
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.2);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 24px;
}
.hero-body {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.4);
  line-height: 1.8; max-width: 400px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px }

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

/* Buttons */
.btn-primary {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--amber); color: #fff;
  padding: 13px 26px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: #a04e12; transform: translateY(-1px) }
.btn-ghost {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; background: transparent; color: rgba(255,255,255,0.3);
  padding: 13px 22px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  transition: border-color 0.2s, color 0.2s; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.6) }

/* Hero card (terminal style) */
.hero-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  animation: fadeUp 0.9s 0.3s ease both;
}
.hc-topbar { height: 2px; background: linear-gradient(90deg, var(--amber), var(--amber2)) }
.hc-header {
  padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.02);
}
.hc-title { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.22); letter-spacing: 0.12em; text-transform: uppercase }
.hc-live { display: flex; align-items: center; gap: 5px }
.hc-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-txt); animation: blink 2s ease-in-out infinite }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }
.hc-live-text { font-family: var(--mono); font-size: 9px; color: var(--green-txt) }

.auto-row { padding: 12px 18px 11px; border-bottom: 1px solid rgba(255,255,255,0.04) }
.auto-row:last-of-type { border-bottom: none }
.auto-headline { display: flex; align-items: center; gap: 8px; margin-bottom: 4px }
.auto-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0 }
.auto-dot.amber { background: var(--amber); animation: blink 2.5s ease-in-out infinite }
.auto-dot.green { background: var(--green-txt) }
.auto-name { font-family: var(--mono); font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.75); flex: 1; letter-spacing: 0.01em }
.auto-version { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.2) }
.auto-status { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.04em }
.auto-status.amber { color: var(--amber) }
.auto-status.green { color: var(--green-txt) }
.auto-meta { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.18); letter-spacing: 0.02em; padding-left: 13px; margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.auto-bar { padding-left: 13px; display: flex; align-items: center; gap: 8px }
.prog-track { flex: 1; height: 2px; background: rgba(255,255,255,0.07); border-radius: 1px; overflow: hidden }
.prog-fill { height: 100%; border-radius: 1px }
.prog-fill.amber { background: var(--amber) }
.prog-fill.green { background: var(--green-txt) }
.prog-val { font-family: var(--mono); font-size: 9px; font-weight: 500; min-width: 28px; text-align: right }
.prog-val.amber { color: rgba(200,97,26,0.55) }
.prog-val.green { color: rgba(42,157,92,0.55) }
.hc-footer {
  padding: 9px 18px; border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01); display: flex; justify-content: space-between;
}
.hc-footer-note { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.12) }
.hc-footer-stat { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.18) }

/* --- Stats Bridge (dark transition) --- */
.stats-bridge {
  background: var(--dark3); display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.stat-cell { padding: 26px 40px; border-right: 1px solid rgba(255,255,255,0.05) }
.stat-cell:last-child { border-right: none }
.stat-val {
  font-family: var(--cond); font-size: 44px; font-weight: 800;
  color: var(--amber); line-height: 1; letter-spacing: -0.02em; font-style: italic;
}
.stat-label {
  font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.22);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; line-height: 1.5;
}

/* --- Problem Band (dark) --- */
.problem {
  background: var(--dark2); padding: 56px 56px;
  display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.prob-div { background: rgba(255,255,255,0.06) }
.prob-item { padding: 0 44px }
.prob-item:first-child { padding-left: 0 }
.prob-item:last-child { padding-right: 0 }
.prob-label {
  font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.2);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px;
}
.prob-quote {
  font-family: var(--cond); font-size: 20px; font-weight: 400;
  font-style: italic; color: rgba(255,255,255,0.82); line-height: 1.45;
}

/* --- Amber Rule separator --- */
.amber-rule { height: 3px; background: var(--amber) }

/* --- Section common --- */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px }
.section-eyebrow {
  font-family: var(--mono); font-size: 9px; color: var(--amber);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-family: var(--cond); font-size: clamp(28px, 3vw, 38px);
  font-weight: 700; color: var(--ink); text-transform: uppercase;
  line-height: 1.05; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--amber) }
.section-link {
  font-family: var(--mono); font-size: 9px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border-bottom: 1px solid var(--light-rule);
  padding-bottom: 2px; transition: color 0.15s, border-color 0.15s;
}
.section-link:hover { color: var(--ink); border-color: var(--ink) }

/* --- Services (light zone) --- */
.services { background: var(--canvas); padding: 80px 56px; border-bottom: 1px solid var(--light-rule) }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--light-rule); border: 1px solid var(--light-rule);
}
.svc {
  background: var(--canvas); padding: 36px 32px;
  cursor: pointer; position: relative; transition: background 0.2s;
}
.svc:hover { background: var(--canvas2) }
.svc::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 2px; background: var(--amber); transition: width 0.35s ease;
}
.svc:hover::before { width: 100% }
.svc-num { font-family: var(--mono); font-size: 10px; color: var(--amber); margin-bottom: 18px }
.svc-title {
  font-family: var(--cond); font-size: 24px; font-weight: 700;
  color: var(--ink); text-transform: uppercase; line-height: 1.1; margin-bottom: 12px;
}
.svc-body { font-size: 13px; font-weight: 300; color: var(--ink3); line-height: 1.75; margin-bottom: 20px }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0; margin-top: 8px }
.svc-tag {
  font-family: var(--mono); font-size: 9px; color: rgba(26,25,22,0.3);
  letter-spacing: 0.04em; background: none; border: none; padding: 0;
}
.svc-tag::after { content: ' \00B7'; margin: 0 4px; color: rgba(26,25,22,0.15) }
.svc-tag:last-child::after { content: '' }

/* --- How We Work (light zone) --- */
.how {
  background: var(--canvas2); padding: 80px 56px;
  display: grid; grid-template-columns: 300px 1fr; gap: 80px;
  border-bottom: 1px solid var(--light-rule);
}
.how-left { position: sticky; top: 80px; align-self: start }
.how-desc { font-size: 13px; font-weight: 300; color: var(--ink3); line-height: 1.75; margin-top: 16px }
.how-steps { display: flex; flex-direction: column }
.how-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--light-rule); align-items: start;
}
.how-step:first-child { border-top: 1px solid var(--light-rule) }
.how-step:hover .step-num { color: var(--amber); opacity: 0.5 }
.step-num {
  font-family: var(--cond); font-size: 38px; font-weight: 800;
  font-style: italic; color: var(--canvas3); line-height: 1; transition: color 0.2s, opacity 0.2s;
}
.step-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px }
.step-body { font-size: 13px; font-weight: 300; color: var(--ink3); line-height: 1.7 }
.step-duration { font-family: var(--mono); font-size: 8px; color: var(--amber); margin-top: 7px; letter-spacing: 0.06em }

/* --- Who / Clients (light zone) --- */
.who { background: var(--canvas); padding: 80px 56px; border-bottom: 1px solid var(--light-rule) }
.who-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0 40px; margin-top: 48px }
.who-card {
  background: var(--canvas); border-top: 2px solid rgba(26,25,22,0.1);
  padding: 24px 0; cursor: pointer; transition: border-color 0.2s;
}
.who-card:hover { border-color: var(--amber) }
.who-icon { display: block; margin-bottom: 14px }
.who-abbr { font-family: var(--mono); font-size: 9px; color: var(--amber); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px }
.who-sector {
  font-family: var(--cond); font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px; text-transform: uppercase; line-height: 1.05;
}
.who-desc { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.7 }
.who-pain {
  font-family: var(--cond); font-size: 14px; font-weight: 600;
  font-style: italic; color: var(--ink3); margin-top: 14px;
  border-top: 1px solid rgba(26,25,22,0.07); padding-top: 10px; line-height: 1.3;
}

/* --- Lab (dark zone) --- */
.lab { background: var(--dark); padding: 80px 56px; border-top: 3px solid var(--amber) }
.lab .section-eyebrow { color: var(--amber) }
.lab .section-title { color: rgba(245,242,236,0.92) }
.lab .section-title em { color: var(--amber) }
.lab .section-link { color: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.1) }
.lab .section-link:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.4) }
.lab-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px }
.lab-card {
  border: 1px solid rgba(255,255,255,0.07); cursor: pointer;
  transition: border-color 0.2s, transform 0.2s; text-decoration: none; color: inherit; display: block;
}
.lab-card:hover { border-color: rgba(200,97,26,0.4); transform: translateY(-2px) }
.lab-card-top { padding: 26px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.05) }
.lab-pill { font-family: var(--mono); font-size: 8px; padding: 3px 8px; display: inline-block; margin-bottom: 14px }
.lab-pill.exp { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber-b) }
.lab-pill.bp { background: var(--green-dim); color: var(--green-txt); border: 1px solid var(--green-b) }
.lab-title {
  font-family: var(--cond); font-size: 18px; font-weight: 700;
  color: rgba(245,242,236,0.88); text-transform: uppercase; line-height: 1.2; margin-bottom: 8px;
}
.lab-desc { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.35); line-height: 1.6 }
.lab-card-btm {
  padding: 12px 26px; background: rgba(255,255,255,0.02);
  display: flex; justify-content: space-between; align-items: center;
}
.lab-stat { font-family: var(--mono); font-size: 8px; color: var(--green-txt) }
.lab-link { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; cursor: pointer; transition: color 0.15s }
.lab-link:hover { color: rgba(255,255,255,0.6) }

/* --- CTA Band (amber) --- */
.cta-band {
  background: var(--amber); padding: 80px 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 56px;
  align-items: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -80px; top: 50%;
  transform: translateY(-50%); width: 440px; height: 440px;
  border: 48px solid rgba(255,255,255,0.06); border-radius: 50%;
  border-right-color: transparent; border-bottom-color: transparent;
}
.cta-title {
  font-family: var(--cond); font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 800; color: #fff; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.01em; position: relative;
}
.cta-title .light { font-weight: 300; opacity: 0.72 }
.cta-sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.65); margin-top: 12px; line-height: 1.7; max-width: 500px }
.cta-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; position: relative }
.cta-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; background: rgba(255,255,255,0.95); color: var(--amber);
  padding: 15px 30px; border: none; cursor: pointer; font-weight: 500;
  white-space: nowrap; transition: opacity 0.2s, transform 0.15s;
  text-decoration: none; display: inline-block;
}
.cta-btn:hover { opacity: 0.9; transform: translateY(-1px) }
.cta-note {
  font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.45);
  text-align: right; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6;
}

/* --- Footer (dark) --- */
.footer { background: var(--dark); padding: 52px 56px 36px }
.footer-top {
  display: grid; grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 28px;
}
.footer-brand-wordmark {
  font-family: var(--cond); font-size: 18px; font-weight: 700;
  color: rgba(245,242,236,0.88); letter-spacing: 0.06em;
  text-transform: uppercase; display: flex; align-items: center; gap: 9px;
  line-height: 1; margin-bottom: 12px;
}
.footer-tagline { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.28); line-height: 1.7 }
.footer-col-title {
  font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.22);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px }
.footer-link {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.38);
  text-decoration: none; transition: color 0.15s;
}
.footer-link:hover { color: rgba(255,255,255,0.75) }
.footer-bottom { display: flex; justify-content: space-between; align-items: center }
.footer-copy { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.18); letter-spacing: 0.08em }
.footer-legal { display: flex; gap: 20px }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.2); text-decoration: none; transition: color 0.15s }
.footer-legal a:hover { color: rgba(255,255,255,0.5) }
.domain-pill { font-family: var(--mono); font-size: 8px; color: rgba(200,97,26,0.55); letter-spacing: 0.1em; margin-top: 8px }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease }
.reveal.visible { opacity: 1; transform: translateY(0) }

/* ============================================
   Ghost Content Styles
   ============================================ */

/* Post feed */
.post-feed {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 0 56px;
}

/* Dark post cards (for lab/tag pages on dark bg) */
.post-card {
  border: 1px solid rgba(255,255,255,0.07); cursor: pointer;
  transition: border-color 0.2s, transform 0.2s; text-decoration: none; color: inherit; display: block;
}
.post-card:hover { border-color: rgba(200,97,26,0.4); transform: translateY(-2px) }
.post-card-image { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.05) }
.post-card-content { padding: 26px; background: rgba(255,255,255,0.03) }
.post-card-tag {
  font-family: var(--mono); font-size: 8px; padding: 3px 8px;
  display: inline-block; margin-bottom: 14px;
  background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber-b);
}
.post-card-title {
  font-family: var(--cond); font-size: 18px; font-weight: 700;
  color: rgba(245,242,236,0.88); text-transform: uppercase; line-height: 1.2; margin-bottom: 8px;
}
.post-card-excerpt { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; margin-bottom: 16px }
.post-card-meta { font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.25) }

/* Single post (dark bg) */
.post-wrapper { background: var(--dark); min-height: 100vh }
.post-header {
  max-width: 740px; margin: 0 auto; padding: 72px 24px 40px; text-align: center;
}
.post-header h1 {
  font-family: var(--cond); font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; color: rgba(245,242,236,0.96); line-height: 1.05;
  text-transform: uppercase; margin-bottom: 16px;
}
.post-meta {
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.post-tag-row { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px }
.post-tag {
  font-family: var(--mono); font-size: 8px; padding: 3px 8px;
  background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber-b); text-decoration: none;
}
.post-feature-image { max-width: 740px; margin: 0 auto; padding: 0 24px }
.post-feature-image img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 40px }

/* Ghost content */
.post-content {
  max-width: 740px; margin: 0 auto; padding: 0 24px 72px;
  font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.55);
}
.post-content h2 {
  font-family: var(--cond); font-size: 28px; font-weight: 700;
  color: rgba(245,242,236,0.92); text-transform: uppercase; margin: 48px 0 16px;
}
.post-content h3 {
  font-family: var(--cond); font-size: 22px; font-weight: 700;
  color: rgba(245,242,236,0.88); text-transform: uppercase; margin: 40px 0 12px;
}
.post-content p { margin-bottom: 24px }
.post-content a { color: var(--amber); border-bottom: 1px solid var(--amber-b); transition: border-color .15s }
.post-content a:hover { border-color: var(--amber) }
.post-content blockquote {
  border-left: 3px solid var(--amber); padding-left: 20px;
  margin: 32px 0; font-style: italic; color: rgba(255,255,255,0.45);
}
.post-content pre {
  background: rgba(255,255,255,0.05); color: rgba(245,242,236,0.8);
  padding: 24px; border-radius: 4px; overflow-x: auto; margin: 32px 0;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
}
.post-content code { font-family: var(--mono); font-size: 14px; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 3px }
.post-content pre code { background: none; padding: 0 }
.post-content ul, .post-content ol { margin: 16px 0 24px 24px }
.post-content li { margin-bottom: 8px }
.post-content img { border-radius: 4px; margin: 32px 0 }
.post-content hr { border: none; height: 1px; background: rgba(255,255,255,0.08); margin: 48px 0 }
.post-content .kg-image { width: 100%; border-radius: 4px }
.post-content .kg-width-wide { margin-left: -80px; margin-right: -80px; max-width: calc(100% + 160px) }
.post-content .kg-width-full { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw }
.post-content .kg-width-wide img, .post-content .kg-width-full img { width: 100% }

/* Post navigation */
.post-nav {
  max-width: 740px; margin: 0 auto; padding: 0 24px 72px;
  display: flex; justify-content: space-between; gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 40px;
}
.post-nav a { text-decoration: none; color: inherit; flex: 1 }
.post-nav-label { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px }
.post-nav-title { font-family: var(--cond); font-size: 18px; font-weight: 700; color: rgba(245,242,236,0.88); text-transform: uppercase }
.post-nav-next { text-align: right }

/* Page (dark bg) */
.page-wrapper { background: var(--dark); min-height: 100vh }
.page-header { max-width: 740px; margin: 0 auto; padding: 72px 24px 40px }
.page-header h1 {
  font-family: var(--cond); font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800; color: rgba(245,242,236,0.96); line-height: 1.05; text-transform: uppercase;
}
.page-content { max-width: 740px; margin: 0 auto; padding: 0 24px 72px }

/* Tag page (dark bg) */
.tag-wrapper { background: var(--dark); min-height: 100vh }
.tag-header { padding: 72px 56px 48px; border-bottom: 1px solid rgba(255,255,255,0.06) }
.tag-header h1 {
  font-family: var(--cond); font-size: clamp(36px, 4vw, 48px);
  font-weight: 800; color: rgba(245,242,236,0.96); text-transform: uppercase; margin-bottom: 8px;
}
.tag-description { font-size: 15px; color: rgba(255,255,255,0.4); line-height: 1.65; font-weight: 300; max-width: 600px }
.tag-feed { padding: 56px }

/* Error page (dark bg) */
.error-wrapper { background: var(--dark); min-height: 100vh }
.error-page {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 72px 56px; text-align: center;
}
.error-code { font-family: var(--cond); font-size: 120px; font-weight: 800; color: rgba(255,255,255,0.08); line-height: 1; margin-bottom: 16px }
.error-message { font-family: var(--cond); font-size: 28px; font-weight: 700; color: rgba(245,242,236,0.88); text-transform: uppercase; margin-bottom: 12px }
.error-desc { font-size: 15px; color: rgba(255,255,255,0.4); line-height: 1.65; font-weight: 300; max-width: 400px; margin-bottom: 32px }
.error-link { background: var(--amber); color: #fff; padding: 12px 24px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background .2s }
.error-link:hover { background: #a04e12 }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 40px 0 }
.pagination a {
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.3);
  text-decoration: none; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.1); transition: border-color .15s;
}
.pagination a:hover { border-color: rgba(255,255,255,0.3) }
.pagination .page-number { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.2) }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .nav { padding: 0 32px }
  .hero { padding: 48px 32px 56px }
  .hero-inner { grid-template-columns: 1fr; gap: 40px }
  .hero-card { max-width: 480px }
  .stats-bridge { grid-template-columns: repeat(2, 1fr) }
  .stat-cell:nth-child(2) { border-right: none }
  .problem { grid-template-columns: 1fr; padding: 48px 32px; gap: 32px }
  .prob-div { display: none }
  .prob-item { padding: 0 }
  .services { padding: 64px 32px }
  .services-grid { grid-template-columns: 1fr }
  .how { grid-template-columns: 1fr; padding: 64px 32px; gap: 40px }
  .how-left { position: static }
  .who { padding: 64px 32px }
  .who-grid { grid-template-columns: repeat(2, 1fr) }
  .lab { padding: 64px 32px }
  .lab-grid { grid-template-columns: repeat(2, 1fr) }
  .cta-band { grid-template-columns: 1fr; padding: 64px 32px; gap: 32px }
  .cta-right { align-items: flex-start }
  .footer { padding: 40px 32px 32px }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px }
  .post-feed { grid-template-columns: repeat(2, 1fr); padding: 0 32px }
  .tag-header { padding: 56px 32px 40px }
  .tag-feed { padding: 40px 32px }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 20px;
    gap: 16px; border-bottom: 1px solid var(--dark-rule);
  }
  .nav-links.open { display: flex }
  .nav-toggle { display: block }
  .nav-cta { display: none }

  .hero { padding: 32px 20px 40px }
  .hero-h1 { font-size: 42px }
  .hero-body { font-size: 13px }
  .hero-actions { flex-direction: column; align-items: stretch }
  .hero-card { max-width: 100% }

  .stats-bridge { padding: 0 }
  .stat-cell { padding: 20px }
  .stat-val { font-size: 36px }
  .problem { padding: 40px 20px; gap: 24px }
  .prob-quote { font-size: 18px }

  .services { padding: 48px 20px }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px }
  .svc { padding: 28px 20px }
  .svc-title { font-size: 20px }

  .how { padding: 48px 20px; gap: 32px }
  .how-step { grid-template-columns: 40px 1fr; gap: 14px }
  .step-num { font-size: 32px }

  .who { padding: 48px 20px }
  .who-grid { grid-template-columns: 1fr; gap: 0 }

  .lab { padding: 48px 20px }
  .lab-grid { grid-template-columns: 1fr }

  .cta-band { padding: 48px 20px; gap: 24px }
  .cta-title { font-size: 32px }

  .footer { padding: 32px 20px 24px }
  .footer-top { grid-template-columns: 1fr; gap: 28px }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center }

  .post-feed { grid-template-columns: 1fr; padding: 0 20px }
  .post-header { padding: 48px 20px 32px }
  .post-content { padding: 0 20px 48px }
  .post-nav { flex-direction: column; padding: 0 20px 48px }
  .post-nav-next { text-align: left }
  .page-header { padding: 48px 20px 32px }
  .page-content { padding: 0 20px 48px }
  .tag-header { padding: 48px 20px 32px }
  .tag-feed { padding: 32px 20px }
  .error-page { padding: 48px 20px }
  .error-code { font-size: 80px }
}
