/* ============================================
   b2bheadz — design tokens (indigo / amber / white)
   ============================================ */
:root {
  --paper: #FFFFFF;
  --paper-dim: #F5F6FA;
  --ink: #1B1D29;
  --ink-soft: #5B5E70;
  --ink-faint: #8C8FA3;
  --line: #E4E5EC;
  --indigo: #2E3A6B;
  --indigo-deep: #1F2850;
  --amber: #E8A33D;
  --amber-deep: #C98A2C;
  --amber-soft: #FBE8C8;
  --amber-ink: #5A3A0A;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --max-w: 1120px;
  --content-w: 700px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.2em; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Top accent bar ---------- */
.topbar-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--indigo) 0%, #5B6BA0 55%, var(--amber) 100%);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  position: relative;
  box-shadow: 0 2px 8px rgba(27,29,41,0.06);
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
}
.logo .b2b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  background: var(--indigo);
  color: var(--paper);
  padding: 2px 6px;
  border-radius: 3px;
}
.logo .headz {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 23px;
  font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--indigo);
  color: var(--paper);
}
.btn-primary:hover { background: var(--indigo-deep); }
.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
}
.btn-amber:hover { background: var(--amber-deep); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-deep);
  margin-top: 96px;
  padding: 40px 0;
  overflow-x: hidden;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 100%;
}
.site-footer .logo { color: var(--paper); }
.site-footer .logo .b2b { background: var(--amber); color: var(--amber-ink); }
.footer-note {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 420px;
  min-width: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
}
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.75); white-space: nowrap; }
.footer-links a:hover { color: var(--paper); }
.site-footer .footer-links a { font-size: 13.5px !important; font-weight: 500 !important; }

@media (max-width: 640px) {
  .site-footer .wrap { flex-direction: column; }
  .footer-links { gap: 10px 16px; font-size: 13.5px; }
}

/* ---------- Homepage article section (textured background, no hero copy) ---------- */
.article-section {
  background-color: var(--paper-dim);
  background-image: radial-gradient(#E2E4EE 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 40px 0 64px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}

/* Tag filter row */
.tag-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tag-filter button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tag-filter button:hover { border-color: var(--indigo); color: var(--indigo); }
.tag-filter button.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--paper);
}

/* Article blocks as a 2-column grid of vertical cards */
.article-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.article-block {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(27,29,41,0.04), 0 8px 24px rgba(27,29,41,0.06);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(27,29,41,0.06), 0 16px 36px rgba(27,29,41,0.11);
}
.block-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}
.block-media img { width: 100%; height: 100%; object-fit: cover; }
.block-copy { padding: 22px 22px 26px; }
.block-media .tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(46,58,107,0.92);
  color: #fff;
}
.block-media .tag-pill.amber { background: rgba(200,138,44,0.95); }
.block-media .no-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(27,29,41,0.55);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.block-copy .no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 10px;
}
.block-copy h2 {
  font-size: clamp(19px, 2vw, 23px);
  margin-bottom: 10px;
  line-height: 1.3;
}
.block-copy .dek {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 14px;
}
.block-copy .read-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--indigo);
  border-bottom: 1.5px solid var(--indigo);
  padding-bottom: 1px;
}
.article-block:hover .read-link { color: var(--indigo-deep); border-color: var(--indigo-deep); }

@media (max-width: 720px) {
  .article-blocks { grid-template-columns: 1fr; }
}

/* Byline under article meta */
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.byline .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--indigo);
  color: var(--paper);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.byline span { font-size: 13px; color: var(--ink-soft); }

/* Inline pill-list — brand-colored, alternating indigo/amber */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 1.3em 0 1.7em;
  padding: 0;
  list-style: none;
}
.pill-list li {
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 20px;
  border: 1px solid transparent;
}
.pill-list li:nth-child(odd) {
  color: var(--indigo-deep);
  background: #EEF0FA;
  border-color: rgba(46,58,107,0.14);
}
.pill-list li:nth-child(even) {
  color: var(--amber-ink);
  background: var(--amber-soft);
  border-color: rgba(200,138,44,0.22);
}

/* Horizontal step-flow for showing a sequence (e.g. follow-up cadence) */
.step-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 1.8em 0;
}
.step-flow .step {
  flex: 1;
  min-width: 130px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  position: relative;
}
.step-flow .step .step-when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber-ink);
  background: var(--amber-soft);
  font-weight: 700;
  display: inline-block;
  padding: 3px 11px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.step-flow .step .step-what {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
}
.step-flow .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: var(--ink-faint);
  font-size: 16px;
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .step-flow { flex-direction: column; }
  .step-flow .arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* Pulled-out stat callouts inside article body — gradient-backed */
.stat-row {
  display: flex;
  gap: 16px;
  margin: 2em 0;
  flex-wrap: wrap;
}
.stat-block {
  flex: 1;
  min-width: 140px;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-block:nth-child(odd) { background: linear-gradient(150deg, #F2F3FA 0%, #E9EBF6 100%); }
.stat-block:nth-child(even) { background: linear-gradient(150deg, var(--amber-soft) 0%, #FBE2BC 100%); }
.stat-block:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27,29,41,0.08); }
.stat-block .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-block:nth-child(odd) .num { color: var(--indigo); }
.stat-block:nth-child(even) .num { color: var(--amber-deep); }
.stat-block .label {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* Next-article teaser at the end of an article */
.next-article {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: var(--content-w);
  margin: 3em auto 0;
  padding: 20px;
  background: var(--paper-dim);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.next-article:hover { transform: translateY(-2px); }
.next-article img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; margin: 0; flex-shrink: 0; }
.next-article .na-label { font-family: var(--font-mono); font-size: 11px; color: var(--amber-deep); font-weight: 700; display: block; margin-bottom: 4px; }
.next-article h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.next-article .na-cta { font-size: 13px; font-weight: 700; color: var(--indigo); }

/* Tag pill on article detail page */
.article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--indigo);
  color: var(--paper);
  margin-bottom: 14px;
}

/* Social share icon row */
.share-icons { display: flex; gap: 12px; align-items: center; }
.share-icons button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.share-icons button:hover { border-color: var(--indigo); color: var(--indigo); background: var(--paper-dim); }
.share-icons svg { width: 21px; height: 21px; fill: currentColor; }
.share-icons .copy-link-btn { width: auto; padding: 0 16px; border-radius: 23px; font-size: 13.5px; font-weight: 600; gap: 6px; }

/* ---------- Article page ---------- */
.article-head {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at top left, #EEF0FA 0%, var(--paper) 55%);
}
.article-head .content-w { max-width: var(--content-w); }
.article-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.article-head h1 { font-size: clamp(30px, 4vw, 42px); }
.article-head .dek {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 56ch;
}
.article-cover {
  margin: 32px 0 0;
  border-radius: 10px;
  overflow: hidden;
}
.article-cover img, .block-media img, .article-body figure img {
  transition: transform 0.5s ease;
}
.article-cover:hover img, .block-media:hover img, .article-body figure:hover img {
  transform: scale(1.045);
}

.article-body {
  max-width: var(--content-w);
  margin: 48px auto 0;
  font-size: 18px;
  line-height: 1.75;
}
.article-body h2 { font-size: 26px; margin-top: 2.2em; }
.article-body h3 { font-size: 21px; margin-top: 1.8em; }
.article-body p { margin-bottom: 1.4em; }
.article-body img { border-radius: 10px; margin: 1.6em 0; }
.article-body figure { margin: 2em 0; border-radius: 10px; overflow: hidden; }
.article-body figure img { margin: 0; }
.article-body figcaption { font-size: 13px; color: var(--ink-faint); margin-top: 8px; font-family: var(--font-mono); }
.article-body .callout-line {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.5;
  color: var(--indigo-deep);
  margin: 1.9em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--amber);
  background: linear-gradient(90deg, var(--amber-soft) 0%, var(--paper-dim) 75%);
  border-radius: 0 10px 10px 0;
}
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--amber);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--indigo-deep);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}
.article-body th { color: var(--ink-faint); font-weight: 500; font-size: 13px; }
.article-body td:first-child, .article-body th:first-child { font-family: var(--font-body); }

.footnotes {
  max-width: var(--content-w);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.footnotes ol { padding-left: 20px; }
.footnotes li { margin-bottom: 10px; }
.footnotes a { color: var(--indigo); }

.article-cta {
  max-width: var(--content-w);
  margin: 56px auto 0;
  padding: 32px;
  background: var(--indigo);
  color: var(--paper);
  border-radius: 10px;
}
.article-cta p { color: rgba(255,255,255,0.82); margin-bottom: 20px; }

.share-row {
  max-width: var(--content-w);
  margin: 24px auto 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.share-row button {
  font-family: var(--font-body);
  font-size: 13px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink-soft);
}
.share-row button:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ---------- Lead-magnet gate (embedded mid-article) — enticing version ---------- */
.lead-gate {
  max-width: var(--content-w);
  margin: 3em auto;
  padding: 30px 32px;
  background: linear-gradient(135deg, var(--amber-soft) 0%, var(--paper) 65%);
  border: 1.5px solid var(--amber);
  border-radius: 14px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.lead-gate-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(200,138,44,0.3);
}
.lead-gate-form-wrap { flex: 1; }
.lead-gate h3 { font-size: 21px; margin-bottom: 8px; }
.lead-gate p { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.lead-gate-form { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-gate-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.lead-gate-form input[type="email"]:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,163,61,0.2); }
.lead-gate-form button {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 8px;
  border: none;
  background: var(--indigo);
  color: var(--paper);
  cursor: pointer;
}
.lead-gate-form button:hover { background: var(--indigo-deep); }
.lead-gate-note { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.lead-gate-error { font-size: 13px; color: #B23A3A; margin-top: 8px; display: none; }
.lead-gate-content { display: none; }
.lead-gate-content.revealed { display: block; }
.lead-gate.unlocked .lead-gate-form,
.lead-gate.unlocked .lead-gate-note { display: none; }
@media (max-width: 560px) { .lead-gate { flex-direction: column; } }

.message-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.message-card .msg-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--indigo);
  margin-bottom: 8px;
  display: block;
}
.message-card .msg-text {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
  font-style: italic;
}
.message-card .msg-why { font-size: 14px; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Generic page (Rólunk / Kapcsolat) ---------- */
.page-head { padding: 64px 0 24px; max-width: var(--content-w); position: relative; }
.page-head::before {
  content: '';
  position: absolute;
  top: -20px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(232,163,61,0.12) 0%, transparent 70%);
  z-index: -1;
}
.page-head h1 { font-size: clamp(30px, 4vw, 40px); }
.page-body { max-width: var(--content-w); font-size: 18px; line-height: 1.75; padding-bottom: 48px; }
.page-body h2 { font-size: 24px; margin-top: 1.6em; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(46,58,107,0.12); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.form-status { font-size: 14px; margin-top: 4px; display: none; }
.form-status.success { color: #2A7A4C; display: block; }
.form-status.error { color: #B23A3A; display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(27,29,41,0.04), 0 10px 28px rgba(27,29,41,0.07);
}
.contact-side {
  background: var(--paper-dim);
  border-radius: 16px;
  padding: 28px;
}
.contact-side h3 { font-size: 18px; margin-bottom: 16px; }
.contact-perk { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-perk .icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.contact-perk p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.contact-perk strong { color: var(--ink); display: block; font-size: 14.5px; margin-bottom: 2px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

/* Lead-gate newsletter checkbox */
.lead-gate-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  cursor: pointer;
}
.lead-gate-checkbox input { margin-top: 3px; accent-color: var(--indigo); }

/* Comments section */
.comments-section {
  max-width: var(--content-w);
  margin: 4em auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.comments-heading { font-size: 22px; margin-bottom: 20px; }
.comments-list { margin-bottom: 32px; }
.comments-empty { color: var(--ink-faint); font-size: 14px; }
.comment-item { display: flex; gap: 14px; margin-bottom: 22px; }
.comment-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.comment-meta strong { font-size: 14.5px; }
.comment-meta span { font-size: 12px; color: var(--ink-faint); }
.comment-body p { font-size: 15px; margin: 0; color: var(--ink); }
.comment-form { background: var(--paper-dim); border-radius: 12px; padding: 22px; }
.comment-form-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.comment-form-row input {
  flex: 1; min-width: 160px;
  font-family: var(--font-body); font-size: 14px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper);
}
.comment-form textarea {
  width: 100%; min-height: 90px;
  font-family: var(--font-body); font-size: 14px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper);
  resize: vertical; margin-bottom: 12px;
}
.comment-form-footer { display: flex; align-items: center; gap: 14px; }
.comment-status { font-size: 13px; margin: 0; display: none; }
.comment-status.success { color: #2A7A4C; display: block; }
.comment-status.error { color: #B23A3A; display: block; }
.comment-form-note { font-size: 12px; color: var(--ink-faint); margin: 10px 0 0; }
.comment-form-note a { color: var(--indigo); }

/* Cookie consent banner + settings modal */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(27,29,41,0.18);
  padding: 22px 24px;
  z-index: 1000;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner h4 { font-family: var(--font-display); font-size: 17px; margin: 0 0 8px; }
.cookie-banner p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }
.cookie-banner p a { color: var(--indigo); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
}
.cookie-actions .cookie-accept-all { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }
.cookie-actions .cookie-accept-all:hover { background: var(--indigo-deep); }
.cookie-actions button:not(.cookie-accept-all):hover { border-color: var(--indigo); }

.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(27,29,41,0.45); z-index: 1100; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal-overlay.visible { display: flex; }
.cookie-modal {
  background: var(--paper); border-radius: 14px; max-width: 460px; width: 100%; padding: 28px;
}
.cookie-modal h4 { font-size: 19px; margin: 0 0 16px; }
.cookie-option { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option-text strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.cookie-option-text span { font-size: 13px; color: var(--ink-soft); }
.cookie-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 24px; transition: background 0.15s ease; cursor: pointer; }
.cookie-switch .track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--paper); border-radius: 50%; transition: transform 0.15s ease; }
.cookie-switch input:checked + .track { background: var(--indigo); }
.cookie-switch input:checked + .track::before { transform: translateX(18px); }
.cookie-switch input:disabled + .track { background: var(--ink-faint); opacity: 0.5; cursor: not-allowed; }
.cookie-modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.cookie-modal-actions button {
  flex: 1; font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 11px 16px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: var(--paper);
}
.cookie-modal-actions .cookie-save { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }
@media (max-width: 480px) { .cookie-actions { flex-direction: column; } .cookie-actions button { width: 100%; } }
@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .article-block { grid-template-columns: 1fr; gap: 24px; }
  .article-block:nth-child(even) .block-media { order: 0; }
}
@media (max-width: 820px) {
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 28px 28px;
    gap: 18px;
    z-index: 20;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@keyframes tap-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.tap-pulse-active { animation: tap-pulse 0.4s ease; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* ---------- Homepage hero (elegant, not too tall) ---------- */
.hero-mini {
  padding: 56px 0 8px;
  max-width: 760px;
}
.hero-mini h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 12px;
}
.hero-mini-sub {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 58ch;
}

/* ---------- Short intro blurb ---------- */
.intro-blurb {
  max-width: 760px;
  padding: 20px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.intro-blurb p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.intro-blurb strong { color: var(--ink); }

/* ---------- Homepage layout: main content + sidebar ---------- */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 36px;
  align-items: start;
}
.home-main { min-width: 0; }
.home-sidebar { position: static; margin-top: 8px; }
.home-sidebar .newsletter-box {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 20px;
}
.home-sidebar .newsletter-box h3 { font-size: 15.5px; }
.home-sidebar .newsletter-box p { font-size: 12.5px; }
.home-sidebar .newsletter-box button {
  background: var(--paper);
  border: 1px solid var(--indigo);
  color: var(--indigo);
  font-weight: 600;
}
.home-sidebar .newsletter-box button:hover { background: var(--indigo); color: var(--paper); }
@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { display: none; }
}

/* ---------- Featured article (first/most recent) ---------- */
.featured-article {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--paper);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(27,29,41,0.04), 0 10px 28px rgba(27,29,41,0.08);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.featured-article:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(27,29,41,0.08), 0 18px 40px rgba(27,29,41,0.12); }
.featured-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-media .tag-pill { position: absolute; top: 14px; left: 14px; }
.featured-copy .no { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); display:block; margin-bottom: 8px; }
.featured-copy h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.featured-copy .dek { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; }
.featured-copy .read-link { font-weight: 700; font-size: 14.5px; color: var(--indigo); border-bottom: 1.5px solid var(--indigo); padding-bottom: 1px; }
@media (max-width: 720px) {
  .featured-article { grid-template-columns: 1fr; }
}

/* ---------- Reusable newsletter module (sidebar / inline / end-of-article) ---------- */
.newsletter-box {
  background: linear-gradient(150deg, var(--amber-soft) 0%, var(--paper) 70%);
  border: 1px solid rgba(200,138,44,0.25);
  border-radius: 14px;
  padding: 24px;
}
.newsletter-box h3 { font-size: 18px; margin-bottom: 8px; }
.newsletter-box p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.newsletter-box form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-box input[type="email"] {
  font-family: var(--font-body); font-size: 14px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.newsletter-box button {
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  padding: 11px 16px; border-radius: 8px; border: none;
  background: var(--indigo); color: var(--paper); cursor: pointer;
}
.newsletter-box button:hover { background: var(--indigo-deep); }
.newsletter-box .nb-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; margin-bottom: 0; }
.newsletter-box .nb-status { font-size: 13px; margin-top: 8px; display: none; }
.newsletter-box .nb-status.success { color: #2A7A4C; display: block; }
.newsletter-box.compact { padding: 18px; }
.newsletter-inline-mobile { display: none; }
@media (max-width: 900px) {
  .newsletter-inline-mobile { display: block; margin: 28px 0; }
}

.article-newsletter { max-width: var(--content-w); margin: 3em auto; }

/* ---------- Slide-in newsletter popup (bottom corner, dismissible, capped) ---------- */
.slidein-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(27,29,41,0.18);
  padding: 20px;
  z-index: 900;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.slidein-popup.visible { transform: translateY(0); }
.slidein-popup .sp-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; font-size: 16px; color: var(--ink-faint); cursor: pointer;
}
.slidein-popup h4 { font-size: 15.5px; margin: 0 24px 6px 0; }
.slidein-popup p { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }
.slidein-popup form { display: flex; gap: 8px; }
.slidein-popup input[type="email"] {
  flex: 1; font-size: 13px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px;
}
.slidein-popup button {
  font-size: 12.5px; font-weight: 700; padding: 9px 12px; border-radius: 7px; border: none;
  background: var(--amber); color: var(--amber-ink); cursor: pointer; white-space: nowrap;
}
@media (max-width: 480px) {
  .slidein-popup { left: 16px; right: 16px; width: auto; bottom: 12px; }
}

/* ---------- Bottom audit CTA band (homepage) ---------- */
.bottom-audit-cta {
  background: var(--indigo);
  margin-top: 64px;
  padding: 56px 0;
}
.bottom-audit-cta .wrap { max-width: 640px; text-align: center; }
.bottom-audit-cta h2 { color: var(--paper); font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 14px; }
.bottom-audit-cta p { color: rgba(255,255,255,0.8); font-size: 15.5px; margin-bottom: 22px; }

/* ---------- Table of contents (long articles) ---------- */
.article-toc {
  max-width: var(--content-w);
  margin: 0 auto 2em;
  padding: 18px 22px;
  background: var(--paper-dim);
  border-radius: 10px;
}
.article-toc strong { font-size: 13px; text-transform: none; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.article-toc ol { margin: 0; padding-left: 18px; }
.article-toc li { font-size: 14px; margin-bottom: 4px; }
.article-toc a { color: var(--indigo); text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

/* ---------- Related article (dynamic, end of article) ---------- */
.related-article {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: var(--content-w);
  margin: 3em auto 0;
  padding: 20px;
  background: var(--paper-dim);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.related-article:hover { transform: translateY(-2px); }
.related-article img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; margin: 0; flex-shrink: 0; }
.related-article .ra-label { font-family: var(--font-mono); font-size: 11px; color: var(--amber-deep); font-weight: 700; display: block; margin-bottom: 4px; }
.related-article h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.related-article .ra-cta { font-size: 13px; font-weight: 700; color: var(--indigo); }

/* ---------- Editorial info-graphics inside article body ---------- */
/* These graphics already carry their own light cream background —
   no white card / shadow behind them, just a hairline border for edge definition. */
.article-body figure.article-graphic {
  margin: 2.6em auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.article-body figure.article-graphic img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}
.article-body figure.article-graphic.wide { max-width: 100%; }
.article-body figure.article-graphic.narrow { max-width: 82%; }
@media (max-width: 640px) {
  .article-body figure.article-graphic.narrow { max-width: 100%; }
}

/* ---------- Quiet scroll-reveal (respects prefers-reduced-motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.reveal.profile-diagram, .reveal.targeting-diagram,
.reveal.sequence-diagram, .reveal.handoff-diagram,
.reveal.dotfunnel-diagram, .reveal.compare-diagram,
.reveal.role-diagram, .reveal.firstmsg-diagram, .reveal.volume-diagram,
.reveal.system-diagram, .reveal.fallback-diagram {
  opacity: 1;
  transform: none;
}

/* ---------- Dynamic diagram: profile / first impression (redesigned, no crossing lines) ---------- */
.profile-diagram {
  margin: 2.6em 0;
  padding: 32px 24px;
  background: var(--paper-dim);
  border-radius: 14px;
}
.profile-diagram .pd-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.pd-card {
  flex: 1;
  max-width: 220px;
  background: var(--paper);
  border: 1.5px solid var(--indigo);
  border-radius: 10px;
  padding: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  z-index: 2;
}
.pd-card.pd-left { transition-delay: 0.05s; }
.pd-card.pd-right { transition-delay: 0.15s; }
.profile-diagram.is-visible .pd-card { opacity: 1; transform: translateY(0); }
.pd-card .pd-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
}
.pd-card .pd-bar { height: 7px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.pd-card .pd-bar.short { width: 55%; }
.pd-card .pd-icon-row { display: flex; gap: 6px; margin-top: 12px; }
.pd-card .pd-icon-row .pd-icon { width: 24px; height: 24px; border-radius: 4px; background: var(--indigo); opacity: 0.15; }

.pd-connector {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 40px;
  position: relative;
}
.pd-connector-line {
  flex: 1;
  height: 1.5px;
  background: var(--line);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}
.pd-connector-line.pd-line-left { transform-origin: left center; transition-delay: 0.4s; }
.pd-connector-line.pd-line-right { transform-origin: right center; transition-delay: 0.4s; }
.profile-diagram.is-visible .pd-connector-line { transform: scaleX(1); }
.pd-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease 0.9s, transform 0.5s ease 0.9s;
}
.profile-diagram.is-visible .pd-center { opacity: 1; transform: scale(1); }
.pd-center .pd-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px var(--amber-soft);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pd-center .pd-dot:hover { transform: scale(1.3); box-shadow: 0 0 0 8px var(--amber-soft); }
.pd-center .pd-caption-bottom {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .profile-diagram .pd-row { flex-direction: column; gap: 16px; }
  .pd-card { width: 100%; max-width: 100%; }
  .pd-connector { display: none; }
}

/* ---------- Dynamic diagram: targeting funnel (SVG converging outline, 6 stages) ---------- */
.targeting-diagram {
  margin: 2.6em 0;
  padding: 30px 12px 22px;
  background: var(--paper-dim);
  border-radius: 14px;
  position: relative;
}
.td-row {
  display: flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
  z-index: 2;
  padding-top: 90px;
  width: 100%;
}
.td-funnel-svg {
  position: absolute;
  top: 30px;
  left: 12px;
  right: 12px;
  height: 90px;
  width: auto;
}
.td-funnel-svg path {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.25;
  opacity: 0.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.1s ease 0.15s;
}
.targeting-diagram.is-visible .td-funnel-svg path { stroke-dashoffset: 0; }
.td-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 0 2px;
}
.targeting-diagram.is-visible .td-stage { opacity: 1; transform: translateY(0); }
.td-stage:nth-child(1) { transition-delay: 0.5s; }
.td-stage:nth-child(2) { transition-delay: 0.6s; }
.td-stage:nth-child(3) { transition-delay: 0.7s; }
.td-stage:nth-child(4) { transition-delay: 0.8s; }
.td-stage:nth-child(5) { transition-delay: 0.9s; }
.td-stage:nth-child(6) { transition-delay: 1.0s; }
.td-bubble {
  background: var(--paper);
  border: 1.5px solid var(--indigo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.td-stage:last-child .td-bubble { background: var(--amber); border-color: var(--amber-deep); width: 30px; height: 30px; border-radius: 50%; }
.td-dots { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; max-width: 28px; }
.td-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); opacity: 0.75; }
.td-caption {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.25;
}
.td-stage:last-child .td-caption { color: var(--amber-deep); }
@media (max-width: 480px) {
  .td-bubble { width: 34px; height: 34px; }
  .td-stage:last-child .td-bubble { width: 24px; height: 24px; }
  .td-caption { font-size: 8px; }
  .td-dots span { width: 4px; height: 4px; }
}

/* ================= NEW ANIMATED DIAGRAMS (geometric, SVG/CSS) ================= */

/* ---------- Message sequence: prospect + sequential touchpoints ---------- */
.sequence-diagram {
  margin: 2.6em 0;
  padding: 40px 24px 34px;
  background: var(--paper-dim);
  border-radius: 14px;
  overflow-x: auto;
}
.sd-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  position: relative;
  width: max-content;
  min-width: 100%;
}
.sd-track::before {
  content: '';
  position: absolute;
  left: 8px; right: 8px; top: 8px;
  height: 1.5px;
  background: var(--line);
  z-index: 0;
}
.sd-point {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  width: 78px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.sd-point:nth-child(1) { margin-left: 0; }
.sd-point:nth-child(2) { margin-left: 24px; }
.sd-point:nth-child(3) { margin-left: 40px; }
.sd-point:nth-child(4) { margin-left: 60px; }
.sequence-diagram.is-visible .sd-point:nth-child(1) { opacity: 1; transform: scale(1); transition-delay: 0.1s; }
.sequence-diagram.is-visible .sd-point:nth-child(2) { opacity: 1; transform: scale(1); transition-delay: 0.4s; }
.sequence-diagram.is-visible .sd-point:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: 0.75s; }
.sequence-diagram.is-visible .sd-point:nth-child(4) { opacity: 1; transform: scale(1); transition-delay: 1.15s; }
.sequence-diagram.is-visible .sd-point.sd-prospect-point { opacity: 1; transform: scale(1); transition-delay: 1.4s; }
.sd-point .sd-dot {
  display: inline-block;
  width: 16px; height: 16px; border-radius: 50%; background: var(--indigo);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.sd-point .sd-dot:hover { background: var(--amber) !important; transform: scale(1.5); box-shadow: 0 0 0 5px var(--amber-soft); }
.sd-point .sd-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.sd-point.sd-prospect-point {
  margin-left: 80px;
  width: auto;
}
.sd-prospect-dot {
  display: inline-block;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--amber-soft);
  border: 2px solid var(--amber);
  cursor: pointer;
  transition: background 0.5s ease, border-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}
.sequence-diagram.is-visible .sd-prospect-dot {
  transition-delay: 1.6s;
  background: var(--amber);
  border-color: var(--amber-deep);
  transform: scale(1.6);
  box-shadow: 0 0 0 6px var(--amber-soft);
}
.sd-prospect-dot:hover {
  transform: scale(2) !important;
  box-shadow: 0 0 0 8px var(--amber-soft) !important;
  transition-delay: 0s !important;
}
.sd-point .sd-label.sd-prospect-label {
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
@media (max-width: 560px) {
  .sequence-diagram { padding: 30px 14px 24px; }
  .sd-point { width: 50px; }
  .sd-point .sd-dot, .sd-prospect-dot { width: 12px; height: 12px; }
  .sd-point .sd-label, .sd-prospect-label { font-size: 8.5px; }
  .sd-point:nth-child(2) { margin-left: 8px; }
  .sd-point:nth-child(3) { margin-left: 12px; }
  .sd-point:nth-child(4) { margin-left: 18px; }
  .sd-point.sd-prospect-point { margin-left: 24px; }
}

/* ---------- Automation to human handoff ---------- */
.handoff-diagram {
  margin: 2.6em 0;
  padding: 30px 20px;
  background: var(--paper-dim);
  border-radius: 14px;
  position: relative;
  min-height: 160px;
}
.hd-zones { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hd-zone {
  flex: 1;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.hd-zone.hd-human { border-style: solid; border-color: var(--amber-deep); }
.hd-zone-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 12px;
}
.hd-dots { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.hd-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); opacity: 0; transform: scale(0.5); transition: opacity 0.4s ease, transform 0.4s ease; }
.handoff-diagram.is-visible .hd-dots span { opacity: 0.6; transform: scale(1); }
.handoff-diagram.is-visible .hd-dots span:nth-child(1) { transition-delay: 0.05s; }
.handoff-diagram.is-visible .hd-dots span:nth-child(2) { transition-delay: 0.1s; }
.handoff-diagram.is-visible .hd-dots span:nth-child(3) { transition-delay: 0.15s; }
.handoff-diagram.is-visible .hd-dots span:nth-child(4) { transition-delay: 0.2s; }
.handoff-diagram.is-visible .hd-dots span:nth-child(5) { transition-delay: 0.25s; }
.handoff-diagram.is-visible .hd-dots span:nth-child(6) { transition-delay: 0.3s; }
.hd-arrow-track {
  flex: 0 0 60px;
  position: relative;
  height: 2px;
  background: var(--line);
}
.hd-traveling-dot {
  position: absolute;
  top: 50%; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--indigo);
  transform: translate(0, -50%) scale(0.8);
  opacity: 0;
  transition: left 0.8s ease, background 0.4s ease, transform 0.4s ease, opacity 0.3s ease;
}
.handoff-diagram.is-visible .hd-traveling-dot {
  opacity: 1;
  left: calc(100% - 12px);
  background: var(--amber);
  transform: translate(0, -50%) scale(1.2);
  transition-delay: 0.5s;
}
.hd-human .hd-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--amber-soft);
  border: 1.5px solid var(--amber-deep);
  margin: 0 auto 8px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease 1.3s, transform 0.4s ease 1.3s;
}
.handoff-diagram.is-visible .hd-human .hd-icon { opacity: 1; transform: scale(1); }
.hd-human-caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--amber-deep);
  opacity: 0;
  transition: opacity 0.4s ease 1.5s;
}
.handoff-diagram.is-visible .hd-human-caption { opacity: 1; }
@media (max-width: 560px) {
  .hd-zones { flex-direction: column; }
  .hd-arrow-track { width: 2px; height: 40px; flex-basis: 40px; }
  .hd-traveling-dot { transition: top 0.8s ease, background 0.4s ease, transform 0.4s ease, opacity 0.3s ease; left: 50% !important; top: 0; transform: translate(-50%,0) scale(0.8); }
  .handoff-diagram.is-visible .hd-traveling-dot { top: calc(100% - 12px); transform: translate(-50%,0) scale(1.2); }
}

/* ---------- Illustrative narrowing funnel (dot grids) — polished, dot-by-dot animation ---------- */
.dotfunnel-diagram {
  margin: 2.8em 0;
  padding: 34px 20px 28px;
  background: var(--paper-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}
.df-stage {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 10px;
}
.df-stage:last-child { border-color: var(--amber-deep); background: var(--amber-soft); }
.df-chevron { flex: 0 0 auto; color: var(--ink-faint); font-size: 18px; }
.df-grid { display: grid; grid-template-columns: repeat(6, 7px); gap: 5px; justify-content: center; height: 60px; align-content: start; }
.df-grid span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--indigo);
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.dotfunnel-diagram.is-visible .df-grid span { opacity: 1; transform: scale(1); }
.df-stage:last-child .df-grid span { background: var(--amber-deep); }
.df-num { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink); line-height: 1; }
.df-stage:last-child .df-num { color: var(--amber-deep); }
.df-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); text-align: center; line-height: 1.3; }
@media (max-width: 640px) {
  .dotfunnel-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .df-chevron { display: none; }
  .df-stage { min-width: 0; width: 100%; }
}

/* ---------- Presence vs Acquisition: isolated vs connected system ---------- */
.compare-diagram {
  margin: 2.6em 0;
  padding: 28px 20px;
  background: var(--paper-dim);
  border-radius: 14px;
  display: flex;
  gap: 28px;
}
.cd-col { flex: 1; }
.cd-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 14px;
  text-align: center;
}
.cd-items { display: flex; flex-direction: column; gap: 8px; position: relative; }
.cd-item {
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 7px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.compare-diagram.is-visible .cd-item { opacity: 1; transform: translateY(0); }
.cd-col.cd-left .cd-item {
  background: var(--paper);
  border: 1px dashed var(--ink-faint);
  color: var(--ink-soft);
}
.compare-diagram.is-visible .cd-col.cd-left .cd-item:nth-child(1) { transition-delay: 0.05s; }
.compare-diagram.is-visible .cd-col.cd-left .cd-item:nth-child(2) { transition-delay: 0.15s; }
.compare-diagram.is-visible .cd-col.cd-left .cd-item:nth-child(3) { transition-delay: 0.25s; }
.compare-diagram.is-visible .cd-col.cd-left .cd-item:nth-child(4) { transition-delay: 0.35s; }
.cd-col.cd-left .cd-item:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px) !important; transition-delay: 0s !important; }
.cd-col.cd-right { position: relative; padding-left: 14px; }
.cd-col.cd-right::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 0%;
  background: var(--amber);
  transition: height 1.1s ease 0.5s;
}
.compare-diagram.is-visible .cd-col.cd-right::before { height: 100%; }
.cd-col.cd-right .cd-item {
  border: 1px solid var(--amber-deep);
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.compare-diagram.is-visible .cd-col.cd-right .cd-item:nth-child(1) { transition-delay: 0.6s; }
.compare-diagram.is-visible .cd-col.cd-right .cd-item:nth-child(2) { transition-delay: 0.72s; }
.compare-diagram.is-visible .cd-col.cd-right .cd-item:nth-child(3) { transition-delay: 0.84s; }
.compare-diagram.is-visible .cd-col.cd-right .cd-item:nth-child(4) { transition-delay: 0.96s; }
.compare-diagram.is-visible .cd-col.cd-right .cd-item:nth-child(5) { transition-delay: 1.08s; }
.compare-diagram.is-visible .cd-col.cd-right .cd-item:nth-child(6) { transition-delay: 1.2s; }
.cd-col.cd-right .cd-item:hover {
  background: var(--amber) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 4px 12px rgba(200,138,44,0.3);
  transition-delay: 0s !important;
}
@media (max-width: 620px) {
  .compare-diagram { flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sequence-diagram *, .handoff-diagram *, .dotfunnel-diagram *, .compare-diagram * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Company → Person → Role → Relevance (narrowing highlight) ---------- */
.role-diagram {
  margin: 2.6em 0;
  padding: 32px 20px 26px;
  background: var(--paper-dim);
  border-radius: 14px;
}
.rd-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.role-diagram.is-visible .rd-company { opacity: 1; transform: translateY(0); }
.rd-company-box { width: 46px; height: 34px; border: 1.5px solid var(--indigo); border-radius: 6px; background: var(--paper); }
.rd-company-label, .rd-final-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.03em; }
.rd-branch-lines { height: 26px; position: relative; }
.rd-branch-lines svg { width: 100%; height: 100%; }
.rd-branch-lines path {
  fill: none; stroke: var(--line); stroke-width: 1;
  stroke-dasharray: 60; stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.6s ease 0.3s;
}
.role-diagram.is-visible .rd-branch-lines path { stroke-dashoffset: 0; }
.rd-people { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.rd-person {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line);
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.role-diagram.is-visible .rd-person { opacity: 1; transform: scale(1); }
.role-diagram.is-visible .rd-person:nth-child(1) { transition-delay: 0.7s; }
.role-diagram.is-visible .rd-person:nth-child(2) { transition-delay: 0.8s; }
.role-diagram.is-visible .rd-person:nth-child(3) { transition-delay: 0.9s; }
.role-diagram.is-visible .rd-person:nth-child(4) { transition-delay: 1.0s; }
.role-diagram.is-visible .rd-person.rd-relevant {
  transition-delay: 1.3s;
  background: var(--amber);
  border-color: var(--amber-deep);
  transform: scale(1.5);
  box-shadow: 0 0 0 5px var(--amber-soft);
}
.role-diagram.is-visible .rd-person:not(.rd-relevant) {
  transition-delay: 1.4s;
  opacity: 0.25;
}
.rd-final {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0; transition: opacity 0.5s ease 1.6s;
}
.role-diagram.is-visible .rd-final { opacity: 1; }
.rd-final-label { color: var(--amber-deep); font-size: 11px; }

/* ---------- First message: prospect -> ... -> business opportunity (delayed highlight) ---------- */
.firstmsg-diagram {
  margin: 2.6em 0;
  padding: 30px 16px;
  background: var(--paper-dim);
  border-radius: 14px;
  overflow-x: auto;
}
.fm-row { display: flex; align-items: flex-start; gap: 0; min-width: 520px; position: relative; }
.fm-row::before {
  content: ''; position: absolute; left: 5%; right: 5%; top: 10px; height: 1px; background: var(--line);
}
.fm-node {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  position: relative; z-index: 1;
}
.firstmsg-diagram.is-visible .fm-node { opacity: 1; transform: translateY(0); }
.firstmsg-diagram.is-visible .fm-node:nth-child(1) { transition-delay: 0.05s; }
.firstmsg-diagram.is-visible .fm-node:nth-child(2) { transition-delay: 0.25s; }
.firstmsg-diagram.is-visible .fm-node:nth-child(3) { transition-delay: 0.45s; }
.firstmsg-diagram.is-visible .fm-node:nth-child(4) { transition-delay: 0.65s; }
.firstmsg-diagram.is-visible .fm-node:nth-child(5) { transition-delay: 0.95s; }
.fm-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--indigo); transition: background 0.4s ease 1.1s, border-color 0.4s ease 1.1s, transform 0.15s ease, box-shadow 0.15s ease; }
.fm-node:last-child .fm-dot {
  background: var(--paper); border-color: var(--line);
  transition: background 0.4s ease 1.1s, border-color 0.4s ease 1.1s, transform 0.4s ease 1.1s, box-shadow 0.4s ease 1.1s;
}
.firstmsg-diagram.is-visible .fm-node:last-child .fm-dot {
  background: var(--amber); border-color: var(--amber-deep); transform: scale(1.3); box-shadow: 0 0 0 6px var(--amber-soft);
}
.fm-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--ink-soft); text-align: center; }
.fm-node:last-child .fm-label { color: var(--amber-deep); }
@media (max-width: 560px) { .firstmsg-diagram { padding: 24px 12px; } }

/* ---------- Messy many vs clean relevant outreach ---------- */
.volume-diagram {
  margin: 2.6em 0;
  padding: 28px 20px;
  background: var(--paper-dim);
  border-radius: 14px;
  display: flex;
  gap: 24px;
}
.vd-col { flex: 1; }
.vd-title { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.03em; display: block; margin-bottom: 14px; text-align: center; }
.vd-field { position: relative; height: 110px; }
.vd-messy span {
  position: absolute;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0; transform: scale(0);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.volume-diagram.is-visible .vd-messy span { opacity: 0.55; transform: scale(1) rotate(var(--r, 0deg)); }
.vd-messy span:hover { opacity: 1 !important; background: var(--amber) !important; transform: scale(1.8) !important; transition-delay: 0s !important; }

.vd-clean-wrap { position: relative; height: 110px; display: flex; align-items: center; justify-content: center; }
.vd-clean-line {
  position: absolute; top: 50%; left: 10%; right: 10%; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.8s ease 0.5s;
}
.volume-diagram.is-visible .vd-clean-line { transform: scaleX(1); }
.vd-clean {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%;
}
.vd-clean span {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--indigo);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--indigo);
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
  cursor: pointer;
}
.volume-diagram.is-visible .vd-clean span { opacity: 1; transform: scale(1); }
.volume-diagram.is-visible .vd-clean span:nth-child(1) { transition-delay: 0.6s; }
.volume-diagram.is-visible .vd-clean span:nth-child(2) { transition-delay: 0.75s; }
.volume-diagram.is-visible .vd-clean span:nth-child(3) { transition-delay: 0.9s; }
.volume-diagram.is-visible .vd-clean span:nth-child(4) { transition-delay: 1.05s; }
.vd-clean span:hover { background: var(--amber) !important; box-shadow: 0 0 0 1px var(--amber-deep) !important; transform: scale(1.5) !important; transition-delay: 0s !important; }
@media (max-width: 620px) { .volume-diagram { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) {
  .role-diagram *, .firstmsg-diagram *, .volume-diagram * {
    transition: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ================= Global hover interactivity for diagram dots ================= */
.sd-dot, .fm-dot, .rd-person, .rd-company-box, .df-grid span,
.hd-dots span, .td-dots span, .td-bubble, .pd-center .pd-dot, .fb-dot, .sys-satellite {
  cursor: pointer;
}
.sd-dot:hover, .fm-dot:hover, .df-grid span:hover,
.hd-dots span:hover, .td-dots span:hover, .pd-center .pd-dot:hover, .fb-dot:hover {
  background: var(--amber) !important;
  border-color: var(--amber-deep) !important;
  transform: scale(1.35) !important;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.rd-person:hover { background: var(--amber) !important; border-color: var(--amber-deep) !important; transform: scale(1.4) !important; }
.td-bubble:hover { border-color: var(--amber-deep) !important; transform: translateY(-3px); transition: transform 0.2s ease, border-color 0.2s ease; }
.rd-company-box:hover, .sys-hub:hover { border-color: var(--amber-deep) !important; transform: scale(1.06); transition: transform 0.2s ease, border-color 0.2s ease; }
@keyframes gentle-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
.sys-satellite:hover {
  background: var(--amber-soft) !important;
  border-color: var(--amber-deep) !important;
  color: var(--amber-ink) !important;
  transform: translateY(-2px) scale(1.06) !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
  transition-delay: 0s !important;
}

/* ---------- Fix: dot clusters now align as an even single/wrapped grid, not ragged ---------- */
.td-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; justify-items: center; align-content: center; width: 28px; }
.hd-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; justify-items: center; }

/* ================= Grafika 1: LinkedIn csak a csatorna (radial system) ================= */
.system-diagram {
  margin: 2.6em 0;
  padding: 20px;
  background: var(--paper-dim);
  border-radius: 14px;
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  --radius: 120px;
}
.sys-center { position: relative; width: 100%; height: 100%; }
.sys-hub {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--indigo); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; text-align: center;
  opacity: 0; z-index: 3;
  transition: opacity 0.5s ease, transform 0.5s ease;
  border: 2px solid var(--indigo);
  box-shadow: 0 6px 20px rgba(46,58,107,0.35);
}
.system-diagram.is-visible .sys-hub { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sys-spoke {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 1.5px; background: var(--ink-faint);
  transform-origin: left center;
  transform: rotate(var(--a, 0deg));
  transition: width 0.6s ease;
  z-index: 1;
}
.system-diagram.is-visible .sys-spoke { width: calc(var(--radius) - 2px); }
.sys-satellite {
  position: absolute; top: 50%; left: 50%;
  width: 96px; margin-left: -48px; margin-top: -16px;
  padding: 7px 10px;
  background: var(--paper); border: 1.5px solid var(--indigo); border-radius: 18px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--ink);
  text-align: center;
  box-shadow: 0 2px 8px rgba(27,29,41,0.08);
  opacity: 0; z-index: 2;
  transform: rotate(var(--a, 0deg)) translate(0, calc(var(--radius) * -1)) rotate(calc(var(--a, 0deg) * -1));
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.system-diagram.is-visible .sys-satellite { opacity: 1; }
@media (max-width: 620px) {
  .system-diagram { height: 400px; --radius: 85px; }
  .sys-satellite { width: 78px; margin-left: -39px; font-size: 9px; padding: 5px 6px; }
  .sys-hub { width: 72px; height: 72px; font-size: 11px; }
}
@media (max-width: 400px) {
  .system-diagram { --radius: 70px; height: 380px; }
  .sys-satellite { width: 66px; margin-left: -33px; font-size: 8px; }
}

/* ================= Grafika 7: LinkedIn -> Email fallback ================= */
.fallback-diagram {
  margin: 2.6em 0;
  padding: 30px 20px;
  background: var(--paper-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
}
.fb-node { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fb-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--indigo); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fb-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.fb-paths { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 160px; }
.fb-path { display: flex; align-items: center; gap: 8px; }
.fb-path-track { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.fb-path-track::before {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--indigo); transition: width 0.9s ease;
}
.fallback-diagram.is-visible .fb-linkedin .fb-path-track::before { width: 100%; transition-delay: 0.2s; }
.fallback-diagram.is-visible .fb-email .fb-path-track::before { width: 100%; background: var(--amber); transition-delay: 1.2s; }
.fb-path-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--ink-faint);
  white-space: nowrap; opacity: 0.5; transition: opacity 0.4s ease;
}
.fallback-diagram.is-visible .fb-linkedin .fb-path-label { opacity: 1; transition-delay: 0.2s; }
.fallback-diagram.is-visible .fb-email .fb-path-label { opacity: 1; color: var(--amber-deep); transition-delay: 1.2s; }
.fb-result .fb-dot { transition: background 0.4s ease 1.8s, border-color 0.4s ease 1.8s, transform 0.4s ease 1.8s, box-shadow 0.4s ease 1.8s; }
.fallback-diagram.is-visible .fb-result .fb-dot {
  background: var(--indigo); border-color: var(--indigo-deep); transform: scale(1.3); box-shadow: 0 0 0 6px var(--paper);
}
@media (prefers-reduced-motion: reduce) {
  .system-diagram *, .fallback-diagram * { transition: none !important; opacity: 1 !important; width: auto !important; }
  .fallback-diagram * { transform: none !important; }
  /* sys-satellite / sys-spoke intentionally keep their transform — it positions them radially, it's not just decorative animation */
}
@media (max-width: 560px) {
  .fallback-diagram { padding: 22px 14px; gap: 10px; }
  .fb-path-label { white-space: normal; font-size: 8.5px; line-height: 1.3; }
  .fb-paths { min-width: 0; }
  .fb-label { font-size: 8.5px; }
}

/* ================= Additional card-level hover feedback (audit fix) ================= */
.pd-card {
  cursor: pointer;
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pd-card:hover {
  border-color: var(--amber-deep) !important;
  box-shadow: 0 6px 16px rgba(200,138,44,0.18);
  transform: translateY(-3px) !important;
  transition-delay: 0s !important;
}

.hd-zone {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hd-zone:hover {
  border-color: var(--amber-deep) !important;
  box-shadow: 0 6px 16px rgba(200,138,44,0.18);
  transform: translateY(-3px);
}

.df-stage {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.df-stage:hover {
  border-color: var(--amber-deep) !important;
  box-shadow: 0 6px 16px rgba(200,138,44,0.18);
  transform: translateY(-3px);
}

.fm-node {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.fm-node:hover .fm-dot {
  background: var(--amber) !important;
  border-color: var(--amber-deep) !important;
  transform: scale(1.5) !important;
  box-shadow: 0 0 0 5px var(--amber-soft);
  transition-delay: 0s !important;
}
.fm-node:hover .fm-label { color: var(--amber-deep) !important; }

.fb-node {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.fb-node:hover .fb-dot {
  transform: scale(1.4) !important;
  box-shadow: 0 0 0 5px var(--amber-soft);
  transition-delay: 0s !important;
}
.fb-path {
  cursor: pointer;
}
.fb-path:hover .fb-path-label { color: var(--amber-deep) !important; opacity: 1 !important; }
.fb-path:hover .fb-path-track { transform: translateY(-1px); transition: transform 0.15s ease; }

.rd-people, .cd-items { cursor: default; }

/* ---------- Coming-soon placeholder card on homepage ---------- */
.article-block.coming-soon {
  cursor: default;
  opacity: 0.85;
}
.article-block.coming-soon .block-media img { filter: grayscale(30%); }
.article-block.coming-soon:hover { transform: none; box-shadow: 0 1px 2px rgba(27,29,41,0.04), 0 8px 24px rgba(27,29,41,0.06); }

.tag-pill.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27,29,41,0.78);
  backdrop-filter: blur(2px);
}
.coming-soon-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(232,163,61,0.7);
  animation: coming-soon-pulse 1.8s infinite;
}
@keyframes coming-soon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,163,61,0.6); }
  70% { box-shadow: 0 0 0 6px rgba(232,163,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,163,61,0); }
}
.coming-soon-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--amber-ink);
  background: var(--amber-soft);
  border: 1px solid rgba(200,138,44,0.3);
  padding: 5px 12px;
  border-radius: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .coming-soon-dot { animation: none; }
}

/* ---------- End-of-article topic tag (clickable, links to another article on the same topic) ---------- */
.article-topics {
  max-width: var(--content-w);
  margin: 2.4em auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-topics-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.topic-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--indigo-deep);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
a.topic-tag:hover {
  background: var(--amber-soft);
  border-color: var(--amber-deep);
  color: var(--amber-ink);
  transform: translateY(-1px);
}
.topic-tag.topic-tag-static {
  cursor: default;
  color: var(--ink-soft);
}
