/* Stack architecture article, immersive viz + polish */

.stack-article {
  --viz-accent: #34d399;
  --viz-cyan: #22d3ee;
  --viz-amber: #fbbf24;
  --viz-violet: #a78bfa;
}

.stack-article .blog-wrap {
  max-width: 48rem;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--viz-cyan), var(--viz-accent), var(--viz-amber));
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
  transition: width 0.08s linear;
}

.stack-article .blog-hero h1 {
  background: linear-gradient(120deg, #f4f4f5 0%, #f4f4f5 40%, var(--viz-accent) 55%, var(--viz-cyan) 75%, #f4f4f5 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 8s ease-in-out infinite;
}

@keyframes title-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.stack-article .article-tag {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stack-article .article-tag:hover {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.article-section {
  position: relative;
  padding: 0.25rem 0 0.5rem;
}

.article-section::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(52, 211, 153, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.article-section.is-active::before {
  opacity: 1;
}

.section-label {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--viz-cyan);
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

/* ── Intro: model vs architecture ── */
.viz-intro {
  position: relative;
  margin: 1.25rem 0 1.75rem;
  padding: 1.25rem 1rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.viz-intro canvas {
  display: block;
  width: 100%;
  height: 140px;
}

.viz-intro-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.viz-intro-caption span:last-child {
  color: var(--viz-accent);
}

/* ── Five-layer stack ── */
.viz-layers {
  display: grid;
  gap: 0.35rem;
  margin: 1.25rem 0;
}

.viz-layer {
  --layer-color: var(--viz-accent);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  opacity: 0.45;
  transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s, border-color 0.3s, box-shadow 0.3s;
}

.viz-layer.is-lit {
  opacity: 1;
  transform: translateX(0);
  border-color: color-mix(in srgb, var(--layer-color) 50%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--layer-color) 25%, transparent);
}

.viz-layer-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--layer-color);
  box-shadow: 0 0 10px var(--layer-color);
  flex-shrink: 0;
}

.viz-layer-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--layer-color) 45%, transparent);
  background: color-mix(in srgb, var(--layer-color) 12%, transparent);
  position: relative;
}

.viz-layer-icon::before.viz-layer-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.viz-layer-icon[data-icon="reasoning"]::before {
  inset: 0.35rem;
  border: 1.5px solid var(--layer-color);
  border-radius: 50%;
  box-shadow: 0 0 8px color-mix(in srgb, var(--layer-color) 40%, transparent);
}

.viz-layer-icon[data-icon="reasoning"]::after {
  width: 0.55rem;
  height: 0.55rem;
  top: 0.18rem;
  left: 0.18rem;
  background: linear-gradient(135deg, transparent 45%, var(--layer-color) 45%, var(--layer-color) 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, var(--layer-color) 45%, var(--layer-color) 55%, transparent 55%);
}

.viz-layer-icon[data-icon="agents"]::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--layer-color);
  top: 0.22rem;
  left: 0.58rem;
  box-shadow: -0.42rem 0.55rem 0 var(--layer-color), 0.42rem 0.55rem 0 var(--layer-color);
}

.viz-layer-icon[data-icon="creative"]::before {
  inset: 0.32rem;
  border: 1.5px solid var(--layer-color);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--layer-color) 1px, transparent 1px) 0 0 / 0.38rem 0.38rem,
    linear-gradient(var(--layer-color) 1px, transparent 1px) 0 0 / 0.38rem 0.38rem;
  opacity: 0.85;
}

.viz-layer-icon[data-icon="memory"]::before {
  width: 0.95rem;
  height: 0.55rem;
  left: 0.35rem;
  top: 0.55rem;
  border: 1.5px solid var(--layer-color);
  border-radius: 0 0 3px 3px;
}

.viz-layer-icon[data-icon="memory"]::after {
  width: 0.95rem;
  height: 0.28rem;
  left: 0.35rem;
  top: 0.38rem;
  border: 1.5px solid var(--layer-color);
  border-radius: 50%;
}

.viz-layer-icon[data-icon="edge"]::before {
  inset: 0.3rem 0.38rem;
  border: 1.5px solid var(--layer-color);
  border-radius: 2px;
  background: linear-gradient(var(--layer-color) 0 0) 0.12rem 0.18rem / 0.55rem 0.12rem no-repeat,
    linear-gradient(var(--layer-color) 0 0) 0.12rem 0.42rem / 0.55rem 0.12rem no-repeat,
    linear-gradient(var(--layer-color) 0 0) 0.12rem 0.66rem / 0.55rem 0.12rem no-repeat;
}

.viz-layer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-left: auto;
  margin-right: 0.35rem;
}

.viz-tool {
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.38rem;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--layer-color) 35%, transparent);
  background: color-mix(in srgb, var(--layer-color) 10%, transparent);
  color: color-mix(in srgb, var(--layer-color) 85%, #fff);
  white-space: nowrap;
}

.viz-layer-name {
  flex: 1;
  min-width: 6rem;
}

.viz-layer-idx {
  font-size: 0.62rem;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

/* ── Reasoning orbit ── */
.viz-orbit {
  position: relative;
  height: 200px;
  margin: 1.25rem 0;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: radial-gradient(circle at center, rgba(52, 211, 153, 0.1), transparent 65%);
  overflow: hidden;
}

.viz-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.25);
  z-index: 2;
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 28px rgba(52, 211, 153, 0.25); }
  50% { box-shadow: 0 0 42px rgba(52, 211, 153, 0.45); }
}

.viz-orbit-ring {
  position: absolute;
  inset: 0;
}

.viz-host {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.65rem;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(calc(var(--angle) * 1deg)) translateY(-72px) rotate(calc(var(--angle) * -1deg));
  transform-origin: center center;
  animation: host-glow 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}

@keyframes host-glow {
  0%, 100% { border-color: rgba(255, 255, 255, 0.15); }
  50% { border-color: rgba(52, 211, 153, 0.55); color: var(--viz-accent); }
}

.viz-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.viz-orbit-svg circle {
  fill: none;
  stroke: rgba(52, 211, 153, 0.15);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: orbit-spin 24s linear infinite;
  transform-origin: center;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

/* ── Agentic graph canvas ── */
.viz-graph {
  position: relative;
  margin: 1.25rem 0;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.viz-graph canvas {
  display: block;
  width: 100%;
  height: 160px;
}

.viz-graph-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--viz-violet);
  opacity: 0.8;
}

/* ── Evolution forge ── */
.viz-forge {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.viz-forge-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  text-align: center;
  line-height: 1.2;
  padding: 0.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.viz-forge-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(251, 191, 36, 0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: forge-sweep 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.4s);
}

.viz-forge-cell:hover {
  transform: scale(1.06);
  border-color: rgba(251, 191, 36, 0.55);
}

@keyframes forge-sweep {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.viz-mutation-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0 1.25rem;
  overflow: hidden;
}

.viz-mutation-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--viz-amber), var(--viz-accent));
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.viz-mutation-fill.is-full { width: 100%; }

/* ── Memory constellation ── */
.viz-memory {
  position: relative;
  height: 150px;
  margin: 1.25rem 0;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: #040408;
  overflow: hidden;
}

.viz-memory canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Edge nexus ── */
.viz-edge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 1.25rem 0;
}

.viz-edge-node {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.72rem;
  position: relative;
  overflow: hidden;
}

.viz-edge-node.is-hub {
  grid-column: 1 / -1;
  text-align: center;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.viz-edge-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--viz-cyan);
  box-shadow: 0 0 8px var(--viz-cyan);
  animation: packet-flow 2.5s linear infinite;
  animation-delay: calc(var(--d) * 0.5s);
  opacity: 0;
}

.viz-edge-node.is-lit .viz-edge-packet { opacity: 1; }

@keyframes packet-flow {
  0% { left: 10%; top: 50%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 90%; top: 50%; opacity: 0; }
}

/* ── Lineage pipeline ── */
.viz-pipeline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.viz-pipe-stage {
  flex: 1;
  min-width: 4.5rem;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.58rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
  transition: opacity 0.35s, border-color 0.35s, transform 0.35s;
}

.viz-pipe-stage.is-active {
  opacity: 1;
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
}

.viz-pipe-arrow {
  color: var(--viz-accent);
  font-size: 0.75rem;
  opacity: 0.4;
  animation: arrow-pulse 1.5s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* ── DSEO organism ── */
.viz-dseo {
  position: relative;
  margin: 1.25rem 0;
  padding: 1.5rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.12), transparent 70%);
  text-align: center;
  overflow: hidden;
}

.viz-dseo-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.35);
  position: relative;
  animation: dseo-breathe 4s ease-in-out infinite;
}

.viz-dseo-ring::before.viz-dseo-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.25);
  animation: dseo-breathe 4s ease-in-out infinite reverse;
}

.viz-dseo-ring::after {
  inset: -16px;
  border-color: rgba(167, 139, 250, 0.2);
  animation-duration: 6s;
}

@keyframes dseo-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}

.viz-dseo-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--viz-accent);
}

.viz-dseo-sub {
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 0.35rem;
}

/* ── Figure frames ── */
.viz-frame {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 14px;
  overflow: hidden;
}

.viz-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(52, 211, 153, 0.35);
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 40px rgba(52, 211, 153, 0.06);
}

.viz-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}

.viz-frame.is-visible::after { opacity: 1; }

.viz-frame img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.viz-frame.is-visible img { transform: scale(1); }

.viz-frame figcaption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  opacity: 0.65;
  text-align: center;
}

.viz-frame-glow {
  position: absolute;
  width: 60%;
  height: 40%;
  left: 20%;
  top: 30%;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.2), transparent 70%);
  filter: blur(24px);
  z-index: 0;
  animation: glow-drift 6s ease-in-out infinite;
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -6px); }
}

/* ── Closing burst ── */
.viz-closing {
  position: relative;
}

.viz-closing .viz-frame {
  border-radius: 16px;
}

.viz-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--viz-accent);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle-pop 1.2s ease-out forwards;
}

@keyframes sparkle-pop {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.article-callout {
  position: relative;
  overflow: hidden;
}

.article-callout::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.12), transparent);
  animation: callout-sweep 5s ease-in-out infinite;
}

@keyframes callout-sweep {
  0%, 100% { left: -100%; }
  50% { left: 120%; }
}

.article-contact {
  position: relative;
  overflow: hidden;
}

.article-contact::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--viz-cyan), var(--viz-accent), var(--viz-amber));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
}

/* ── Book-a-call animated CTA hero ── */
.book-cta-hero {
  position: relative;
  display: block;
  margin: 1.5rem 0 1.75rem;
  padding: 2px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-cta-hero:hover {
  transform: translateY(-3px);
}

.book-cta-hero::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    var(--viz-cyan),
    var(--viz-accent),
    var(--viz-amber),
    var(--viz-violet),
    var(--viz-cyan)
  );
  animation: cta-border-spin 4s linear infinite;
  z-index: 0;
}

@keyframes cta-border-spin {
  to { transform: rotate(360deg); }
}

.book-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(52, 211, 153, 0.1), transparent 50%),
    rgba(4, 4, 10, 0.92);
  text-align: center;
}

.book-cta-canvas {
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.book-cta-inner > *:not(.book-cta-canvas) {
  position: relative;
  z-index: 1;
}

.book-cta-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--viz-cyan);
  animation: cta-kicker-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-kicker-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(34, 211, 238, 0.45); }
}

.book-cta-title {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.25;
  color: #f8fafc;
}

.book-cta-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--viz-accent), var(--viz-cyan), var(--viz-accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cta-name-shine 3s ease-in-out infinite;
}

@keyframes cta-name-shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.book-cta-sub {
  font-size: 0.78rem;
  opacity: 0.72;
  line-height: 1.45;
  max-width: 28rem;
  margin: 0 auto;
}

.book-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4f4f5;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
  animation: cta-btn-glow 2.8s ease-in-out infinite;
  transition: background 0.2s, box-shadow 0.2s;
}

.book-cta-hero:hover .book-cta-btn {
  background: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.35);
}

@keyframes cta-btn-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(52, 211, 153, 0.18); }
  50% { box-shadow: 0 0 28px rgba(52, 211, 153, 0.38); }
}

.book-cta-arrow {
  display: inline-block;
  animation: cta-arrow-nudge 1.2s ease-in-out infinite;
}

@keyframes cta-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.book-cta-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.book-cta-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--viz-accent);
  box-shadow: 0 0 8px var(--viz-accent);
  animation: cta-dot-blink 1.8s ease-in-out infinite;
}

@keyframes cta-dot-blink {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.book-cta-orbit {
  position: absolute;
  width: 140px;
  height: 140px;
  right: -30px;
  top: -30px;
  border-radius: 50%;
  border: 1px dashed rgba(52, 211, 153, 0.2);
  z-index: 0;
  animation: cta-orbit-spin 18s linear infinite;
  pointer-events: none;
}

.book-cta-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: -4px;
  left: 50%;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--viz-cyan);
  box-shadow: 0 0 10px var(--viz-cyan);
}

@keyframes cta-orbit-spin {
  to { transform: rotate(360deg); }
}

.book-cta-hero--bottom {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.book-cta-hero--bottom .book-cta-inner {
  background:
    radial-gradient(ellipse 80% 70% at 20% 100%, rgba(167, 139, 250, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 60% at 80% 0%, rgba(52, 211, 153, 0.12), transparent 50%),
    rgba(4, 4, 10, 0.94);
}

@media (prefers-reduced-motion: reduce) {
  .stack-article .blog-hero h1.viz-orbit-svg circle.viz-host.viz-orbit-core.viz-forge-cell::after.viz-pipe-arrow.viz-dseo-ring.article-callout::after.viz-frame-glow.book-cta-hero::before.book-cta-kicker.book-cta-title em.book-cta-btn.book-cta-arrow.book-cta-dot.book-cta-orbit {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}