/* Figures for the ARTEX brief (EN and TR share them). Site tokens from base.css; motion only after figs.js marks a
   figure .anim, so without JS or with reduced motion every figure is shown complete and still. */
.article .ax { width: min(1080px, calc(100vw - 48px)); margin: 12px 0 8px; }
.article .ax figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); max-width: 72ch; }
.article .ax h5 { margin: 0 0 10px; font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.article .ax-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 22px; }
.article .ax-night { background: var(--night); border-color: var(--night-line); color: var(--night-fg); }
.article .ax-night h5, .article .ax-night figcaption { color: var(--night-muted); }

/* 1. How ARTEX works: targets | console and agents | models, with moving packets on the wires */
.article .ax-op { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.article .ax-op .who { font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); }
.article .ax-op q { font: 500 17px/1.4 var(--font-body); color: var(--night-fg); padding: 10px 16px; border: 1px solid var(--night-line); border-radius: 14px 14px 14px 2px; background: var(--night-2); quotes: "“" "”"; }
.article .ax-arch { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.25fr) 56px minmax(0, 1fr); align-items: center; }
.article .ax-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.article .ax-col li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--night-line); border-radius: 8px; background: var(--night-2); font-size: 14px; color: var(--night-fg); line-height: 1.3; }
.article .ax-col li i { width: 8px; height: 8px; border-radius: 50%; background: var(--night-muted); flex: none; }
.article .ax-targets li i { background: var(--night-blaze); }
.article .ax-models li b { margin-left: auto; font: 500 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-blaze); }
.article .ax-core { border: 1.5px solid var(--night-blaze); border-radius: 12px; padding: 16px; background: rgba(255, 107, 69, 0.06); display: grid; gap: 12px; align-content: start; }
.article .ax-core .console { font: 800 20px var(--font-display); font-stretch: 112%; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.article .ax-core .console small { font: 500 11px var(--font-mono); color: var(--night-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.article ul.ax-agents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.article .ax-agents li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--night-line); border-radius: 8px; background: var(--night); font-size: 13.5px; color: var(--night-fg); line-height: 1.3; }
.article .ax-agents li span { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--night-blaze); display: grid; place-items: center; font: 500 10.5px var(--font-mono); color: var(--night-blaze); }
.article .ax-wire { position: relative; align-self: center; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--night-line) 0 6px, transparent 6px 10px); }
.article .ax-wire::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--night-blaze); box-shadow: 0 0 10px var(--night-blaze); opacity: 0; }
.article .ax-wire.rev::after { left: auto; right: 0; }
.article .anim.in .ax-wire::after { opacity: 1; animation: ax-run 1.6s linear infinite; }
.article .anim.in .ax-wire.rev::after { animation-name: ax-run-rev; animation-duration: 1.1s; }
.article .anim.in .ax-wire.b::after { animation-delay: 0.8s; }
@keyframes ax-run { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes ax-run-rev { from { right: 0; } to { right: calc(100% - 8px); } }
.article .anim.in .ax-agents li span { animation: ax-blink 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.4s); }
@keyframes ax-blink { 0%, 70%, 100% { background: transparent; color: var(--night-blaze); } 20% { background: var(--night-blaze); color: var(--night); } }
.article .anim.in .ax-targets li i { animation: ax-ping 1.8s ease-out infinite; animation-delay: calc(var(--i) * 0.45s); }
@keyframes ax-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 69, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(255, 107, 69, 0); } }
@media (max-width: 820px) {
  .article .ax-arch { grid-template-columns: minmax(0, 1fr); }
  .article .ax-wire { height: 34px; width: 2px; margin: 6px auto; background: repeating-linear-gradient(180deg, var(--night-line) 0 6px, transparent 6px 10px); }
  .article .ax-wire::after { left: -3px; top: 0; }
  .article .ax-wire.rev::after { right: auto; top: auto; bottom: 0; left: -3px; }
  .article .ax-wire.b { display: none; }
  @keyframes ax-run { from { top: 0; } to { top: calc(100% - 8px); } }
  @keyframes ax-run-rev { from { bottom: 0; } to { bottom: calc(100% - 8px); } }
}

/* 2. Credential map: every observed activity in the FBI table as a tile; credential ones lit */
.article .ax-heat-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.article .ax-heat-head b { font: 800 clamp(44px, 6vw, 64px)/1 var(--font-display); font-stretch: 118%; color: var(--blaze); }
.article .ax-heat-head span { color: var(--muted); max-width: 46ch; }
.article .ax-ph { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.article .ax-ph > span { font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.article .ax-ph ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.article .ax-ph li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; line-height: 1.3; color: var(--muted); background: var(--paper); transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease, color 0.4s ease, border-color 0.4s ease; transition-delay: calc(var(--i, 0) * 35ms); }
.article .ax-ph li.c { border-color: var(--blaze); color: var(--ink); background: var(--blaze-soft); font-weight: 600; }
.article .anim .ax-ph li { opacity: 0; transform: translateY(6px); }
.article .anim .ax-ph li.c { background: var(--paper); border-color: var(--line); color: var(--muted); font-weight: 400; }
.article .anim.in .ax-ph li { opacity: 1; transform: none; }
.article .anim.in .ax-ph li.c { border-color: var(--blaze); color: var(--ink); background: var(--blaze-soft); font-weight: 600; transition-delay: calc(var(--i, 0) * 35ms), calc(var(--i, 0) * 35ms), calc(1.8s + var(--i, 0) * 50ms), calc(1.8s + var(--i, 0) * 50ms), calc(1.8s + var(--i, 0) * 50ms); }
.article .ax-key { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.article .ax-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; border: 1px solid var(--line); background: var(--paper); }
.article .ax-key i.c { border-color: var(--blaze); background: var(--blaze-soft); }
@media (max-width: 640px) { .article .ax-ph { grid-template-columns: minmax(0, 1fr); gap: 6px; } .article .ax-ph > span { padding-top: 0; } }

/* 3. Key test: an illustrated agent log, lines typed in order; the decoy line last */
.article .ax-term { font: 14px/1.55 var(--font-mono); }
.article .ax-term .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.article .ax-term .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.article .ax-term .bar span { margin-left: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); }
.article .ax-term ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.article .ax-term li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; color: var(--night-fg); font-size: inherit; line-height: inherit; }
.article .ax-term li em { font-style: normal; color: var(--night-muted); }
.article .ax-term li b { font-weight: 500; color: var(--night-ok); }
.article .ax-term li.find { margin-top: 10px; padding: 12px 14px; border: 1.5px dashed var(--night-blaze); border-radius: 8px; background: rgba(255, 107, 69, 0.1); color: #fff; grid-template-columns: minmax(0, 1fr); }
.article .ax-term li.find strong { color: var(--night-blaze); font-weight: 500; letter-spacing: 0.06em; }
.article .anim .ax-term li { opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; transition-delay: calc(var(--i) * 0.55s); }
.article .anim.in .ax-term li { opacity: 1; transform: none; }
.article .ax-term li.find { transition-duration: 0.5s; }
.article .anim.in .ax-term li.find { animation: ax-glow 1.6s ease-in-out calc(var(--i) * 0.55s + 0.3s) 3; }
@keyframes ax-glow { 50% { box-shadow: 0 0 0 6px rgba(255, 107, 69, 0.18); } }
@media (max-width: 640px) { .article .ax-term { font-size: 12.5px; } .article .ax-term li { grid-template-columns: 58px minmax(0, 1fr); } .article .ax-term li > :last-child:not(:first-child) { grid-column: 2; } }

/* 4. The loop: a model key funds the agent, the agent reads your agents' configs, finds more keys */
.article .ax-loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; padding-bottom: 46px; }
.article .ax-loop > div { position: relative; z-index: 1; display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.article .ax-loop > div small { font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blaze); }
.article .ax-loop > div b { font: 700 18px/1.25 var(--font-display); font-stretch: 108%; }
.article .ax-loop > div span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.article .ax-loop::before { content: ""; position: absolute; left: 16%; right: 16%; top: 50%; bottom: 14px; border: 2px dashed var(--line); border-top: 0; border-radius: 0 0 18px 18px; }
.article .ax-loop .ret { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font: 500 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: 0 10px; }
.article .ax-loop .dot { position: absolute; z-index: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blaze); box-shadow: 0 0 12px var(--blaze); top: calc(50% - 6px); left: 16%; opacity: 0; }
.article .anim.in .ax-loop .dot { opacity: 1; animation: ax-loop 6s linear infinite; }
@keyframes ax-loop {
  0% { left: calc(16% - 6px); top: calc(50% - 6px); }
  45% { left: calc(84% - 6px); top: calc(50% - 6px); }
  52% { left: calc(84% - 6px); top: calc(100% - 20px); }
  93% { left: calc(16% - 6px); top: calc(100% - 20px); }
  100% { left: calc(16% - 6px); top: calc(50% - 6px); }
}
@media (max-width: 760px) { .article .ax-loop { grid-template-columns: minmax(0, 1fr); gap: 14px; } .article .ax-loop::before, .article .ax-loop .dot { display: none; } .article .ax-loop .ret { position: static; transform: none; text-align: center; } }

/* 5. ATT&CK chips: the FLASH's techniques, ones with a decoy pattern in our mapping lit */
.article .ax-tt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.article .ax-tt li { font: 500 12.5px var(--font-mono); padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--paper); transition: all 0.4s ease; transition-delay: calc(var(--i, 0) * 25ms); }
.article .ax-tt li.d { border-color: var(--blaze); color: var(--blaze); background: var(--blaze-soft); }
.article .anim .ax-tt li { opacity: 0; }
.article .anim .ax-tt li.d { border-color: var(--line); color: var(--muted); background: var(--paper); }
.article .anim.in .ax-tt li { opacity: 1; }
.article .anim.in .ax-tt li.d { border-color: var(--blaze); color: var(--blaze); background: var(--blaze-soft); transition-delay: calc(1.3s + var(--i, 0) * 90ms); }

/* 6. Sectors named in the FLASH */
.article .ax-sect { display: flex; flex-wrap: wrap; gap: 8px; }
.article .ax-sect span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { .article .ax *, .article .ax *::before, .article .ax *::after { animation: none !important; transition: none !important; } }

/* 0. In short: the four takeaways, text-column width */
.article .ax-sum { width: auto; padding: 22px 24px; border-left: 3px solid var(--blaze); background: var(--panel); border-radius: 0 10px 10px 0; }
.article .ax-sum ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.article .ax-sum li { counter-increment: s; position: relative; padding-left: 34px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.article .ax-sum li::before { position: absolute; left: 0; top: 1px; content: counter(s, decimal-leading-zero); font: 500 12px/1.9 var(--font-mono); color: var(--blaze); }
.article .ax-sum li b { color: var(--ink); }
