/* Chordian Articles — extends site.css design system.
   Loaded only on /articles/* pages. Uses tokens from site.css. */

:root {
  --art-accent: #93b4ff;
  --art-good: #4ade80;
  --art-good-dim: rgba(74, 222, 128, 0.1);
  --art-bad: #f87171;
  --art-bad-dim: rgba(248, 113, 113, 0.09);
  --art-warn: #fbbf24;
  --art-warn-dim: rgba(251, 191, 36, 0.1);
}

/* ══════════════════════════════
   READING PROGRESS
══════════════════════════════ */
.art-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 501;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--blue-light) 60%,
    #93b4ff 100%
  );
  box-shadow: 0 0 12px rgba(59, 114, 240, 0.6);
  will-change: transform;
}

/* ══════════════════════════════
   ARTICLE HERO
══════════════════════════════ */
.art-hero {
  position: relative;
  padding: 128px 24px 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--bd);
  background: var(--bg);
}
.art-hero-mesh {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(
      42% 46% at 20% 28%,
      rgba(42, 95, 212, 0.22) 0%,
      transparent 68%
    ),
    radial-gradient(
      38% 44% at 78% 18%,
      rgba(59, 114, 240, 0.16) 0%,
      transparent 70%
    ),
    radial-gradient(
      40% 40% at 52% 62%,
      rgba(120, 184, 239, 0.1) 0%,
      transparent 72%
    );
  filter: blur(14px);
  animation: art-drift 22s ease-in-out infinite alternate;
}
@keyframes art-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-3%, 2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(3%, -2%, 0) scale(1.02);
  }
}
.art-hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000 0%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000 0%,
    transparent 78%
  );
}
.art-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.art-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--art-accent);
  margin-bottom: 22px;
}
.art-eyebrow .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.art-hero h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 500;
  letter-spacing: -1.9px;
  line-height: 1.07;
  color: #fff;
  margin-bottom: 20px;
}
.art-hero h1 em {
  font-style: normal;
  color: var(--art-accent);
}
.art-hero .art-standfirst {
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 28px;
}
.art-metabar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--tx3);
}
.art-metabar .art-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tx4);
  flex-shrink: 0;
}
.art-metabar strong {
  color: var(--tx2);
  font-weight: 500;
}

/* ══════════════════════════════
   LAYOUT — article body + sticky TOC
══════════════════════════════ */
.art-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 32px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 56px;
  align-items: start;
}
.art-body {
  min-width: 0;
  max-width: 760px;
}

.art-toc {
  position: sticky;
  top: 88px;
  border-left: 1px solid var(--bd);
  padding-left: 18px;
}
.art-toc-label {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--tx3);
  margin-bottom: 14px;
}
.art-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.art-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tx3);
  padding: 6px 0 6px 12px;
  margin-left: -19px;
  border-left: 2px solid transparent;
  transition:
    color 0.18s,
    border-color 0.18s;
}
.art-toc a:hover {
  color: var(--tx2);
}
.art-toc a.active {
  color: var(--art-accent);
  border-left-color: var(--blue-light);
}

/* ══════════════════════════════
   PROSE
══════════════════════════════ */
.art-body > p {
  font-size: 16.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.art-body h2 {
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.18;
  margin: 56px 0 16px;
  scroll-margin-top: 92px;
}
.art-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 34px 0 10px;
  scroll-margin-top: 92px;
}
.art-body h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--art-accent);
  margin: 26px 0 8px;
}
.art-body strong {
  color: var(--tx);
  font-weight: 500;
}
.art-body em {
  font-style: normal;
  color: var(--tx);
  font-weight: 400;
}
.art-body a:not([class]) {
  color: var(--art-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(147, 180, 255, 0.4);
  transition: text-decoration-color 0.18s;
}
.art-body a:not([class]):hover {
  text-decoration-color: var(--art-accent);
}
.art-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--bd2) 20%,
    var(--bd2) 80%,
    transparent
  );
  margin: 48px 0;
}

/* Bullet lists */
.art-list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.art-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.68;
}
.art-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue-light);
  transform: rotate(45deg);
}
.art-list li strong {
  color: #fff;
}

/* ══════════════════════════════
   TL;DR CALLOUT
══════════════════════════════ */
.art-tldr {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(42, 95, 212, 0.11) 0%,
    rgba(42, 95, 212, 0.04) 100%
  );
  border: 1px solid var(--blue-border);
  border-radius: var(--rxl);
  padding: 26px 28px;
  margin: 0 0 40px;
  overflow: hidden;
}
.art-tldr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(147, 180, 255, 0.85),
    transparent
  );
  animation: art-sheen 4.5s ease-in-out infinite;
}
@keyframes art-sheen {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-30%);
  }
  50% {
    opacity: 1;
    transform: translateX(30%);
  }
}
.art-tldr-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--art-accent);
  margin-bottom: 12px;
}
.art-tldr-label svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-tldr p {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--tx);
  line-height: 1.72;
  margin: 0;
}
.art-tldr p + p {
  margin-top: 12px;
}

/* ══════════════════════════════
   CALLOUT / PULL QUOTE
══════════════════════════════ */
.art-callout {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-left: 2px solid var(--blue-light);
  border-radius: 0 var(--rlg) var(--rlg) 0;
  padding: 22px 26px;
  margin: 32px 0;
}
.art-callout p {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.7;
  margin: 0;
}
.art-callout p + p {
  margin-top: 10px;
}
.art-callout .art-callout-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.art-pullquote {
  margin: 44px 0;
  padding: 0 0 0 26px;
  border-left: 2px solid var(--blue);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.6px;
  color: #fff;
}

/* ══════════════════════════════
   COMPARISON MATRIX
══════════════════════════════ */
.cmp-wrap {
  margin: 32px 0 40px;
  border: 1px solid var(--bd);
  border-radius: var(--rxl);
  background: var(--bg1);
  overflow: hidden;
}
.cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}
.cmp-table caption {
  caption-side: top;
  text-align: left;
  padding: 20px 24px 0;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tx3);
}
.cmp-table th,
.cmp-table td {
  text-align: left;
  padding: 15px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--bd);
}
.cmp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--tx2);
  border-bottom: 1px solid var(--bd2);
  white-space: nowrap;
}
.cmp-table thead th.cmp-us {
  color: var(--art-accent);
  background: linear-gradient(180deg, rgba(42, 95, 212, 0.18), var(--bg2));
}
.cmp-table tbody tr {
  transition: background 0.16s;
}
.cmp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}
.cmp-table tbody th {
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  width: 30%;
}
.cmp-table td {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.55;
  width: 35%;
}
.cmp-table td.cmp-us {
  background: rgba(42, 95, 212, 0.05);
  border-left: 1px solid rgba(42, 95, 212, 0.14);
}
.cmp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  margin-right: 8px;
  vertical-align: -3px;
  flex-shrink: 0;
}
.cmp-mark.is-yes {
  background: var(--art-good-dim);
  color: var(--art-good);
}
.cmp-mark.is-no {
  background: var(--art-bad-dim);
  color: var(--art-bad);
}
.cmp-mark.is-warn {
  background: var(--art-warn-dim);
  color: var(--art-warn);
}
/* staggered row reveal — armed by JS so rows stay visible without it */
.cmp-wrap.is-armed tbody tr {
  opacity: 0;
  transform: translateY(10px);
}
.cmp-wrap.is-armed.is-visible tbody tr {
  animation: art-row-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes art-row-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════
   PILLAR / STEP CARDS
══════════════════════════════ */
.art-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 40px;
}
.art-pillar {
  position: relative;
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--rlg);
  padding: 24px 22px;
  overflow: hidden;
  transition:
    border-color 0.22s,
    transform 0.22s,
    background 0.22s;
}
.art-pillar:hover {
  border-color: var(--blue-border);
  background: var(--bg2);
  transform: translateY(-3px);
}
.art-pillar-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--art-accent);
  margin-bottom: 12px;
}
.art-pillar h3 {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
  scroll-margin-top: 92px;
}
.art-pillar p {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════
   STAT ROW (count-up)
══════════════════════════════ */
.art-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 40px;
}
.art-stat {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--rlg);
  padding: 22px;
  text-align: center;
}
.art-stat-val {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: -1.4px;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.art-stat-val span {
  color: var(--art-accent);
}
.art-stat-lbl {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.5;
  margin-top: 8px;
}

/* ══════════════════════════════
   TOGGLE / TAB SWITCH  (problem ↔ solution)
══════════════════════════════ */
.art-switch {
  margin: 32px 0 40px;
  border: 1px solid var(--bd);
  border-radius: var(--rxl);
  background: var(--bg1);
  overflow: hidden;
}
.art-switch-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--bd);
  background: var(--bg2);
}
.art-switch-tab {
  flex: 1 1 0;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--tx3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}
.art-switch-tab:hover {
  color: var(--tx2);
}
.art-switch-tab[aria-selected="true"] {
  color: #fff;
  background: var(--blue-dim);
  border-color: var(--blue-border);
}
.art-switch-panel {
  padding: 24px 26px;
  animation: art-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes art-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.art-switch-panel .art-list {
  margin: 0;
}

/* ══════════════════════════════
   CODE / TERMINAL BLOCK
══════════════════════════════ */
.art-term {
  background: #0b0b0e;
  border: 1px solid var(--bd2);
  border-radius: var(--rlg);
  margin: 28px 0 36px;
  overflow: hidden;
}
.art-term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg2);
  border-bottom: 1px solid var(--bd);
}
.art-term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.art-term-dot.r {
  background: #ff5f57;
}
.art-term-dot.y {
  background: #febc2e;
}
.art-term-dot.g {
  background: #28c840;
}
.art-term-title {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--tx3);
  margin-left: 6px;
}
.art-term-body {
  padding: 18px 20px;
  font-family: "Geist Mono", monospace;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--tx2);
  overflow-x: auto;
  white-space: pre;
}
.art-term-body .c {
  color: var(--tx4);
}
.art-term-body .k {
  color: var(--art-accent);
}
.art-term-body .a {
  color: var(--art-good);
}
.art-term-body .o {
  color: var(--tx);
}

/* ══════════════════════════════
   FAQ
══════════════════════════════ */
.art-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 28px 0 40px;
}
.art-faq-item {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--rlg);
  padding: 0 20px;
  transition: border-color 0.2s;
}
.art-faq-item[open] {
  border-color: var(--blue-border);
}
.art-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  position: relative;
}
.art-faq-item summary::-webkit-details-marker {
  display: none;
}
.art-faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--tx3);
  border-bottom: 1.5px solid var(--tx3);
  transform: rotate(45deg);
  transition:
    transform 0.22s,
    border-color 0.22s;
}
.art-faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--art-accent);
}
.art-faq-item p {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.7;
  margin: 0 0 18px;
}

/* ══════════════════════════════
   KEY TAKEAWAYS STRIP
══════════════════════════════ */
.art-keys {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0 40px;
}
.art-key {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--rlg);
  padding: 20px;
}
.art-key-tag {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--art-accent);
  margin-bottom: 9px;
}
.art-key p {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════
   ARTICLE CTA
══════════════════════════════ */
.art-cta {
  position: relative;
  margin: 56px 0 8px;
  border: 1px solid var(--blue-border);
  border-radius: var(--rxl);
  background: linear-gradient(
    150deg,
    rgba(42, 95, 212, 0.14) 0%,
    rgba(42, 95, 212, 0.03) 70%
  );
  padding: 36px 34px;
  overflow: hidden;
  text-align: center;
}
.art-cta h2 {
  font-size: clamp(21px, 2.7vw, 27px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.art-cta p {
  font-size: 15px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.65;
  margin: 0 auto 22px;
  max-width: 460px;
}
.art-cta-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════
   TAGS + RELATED
══════════════════════════════ */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--bd);
}
.art-tag {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--tx3);
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: 100px;
  padding: 4px 11px;
  transition:
    color 0.18s,
    border-color 0.18s;
}
.art-tag:hover {
  color: var(--art-accent);
  border-color: var(--blue-border);
}

.art-related {
  border-top: 1px solid var(--bd);
  background: var(--bg1);
  padding: 64px clamp(16px, 4vw, 24px);
}
.art-related-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* ══════════════════════════════
   ARTICLE CARDS (hub + homepage)
══════════════════════════════ */
.art-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.art-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--rxl);
  padding: 26px 24px 22px;
  overflow: hidden;
  transition:
    border-color 0.24s,
    transform 0.24s,
    background 0.24s;
}
.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(42, 95, 212, 0.14),
    transparent 62%
  );
}
.art-card:hover {
  border-color: var(--blue-border);
  background: var(--bg2);
  transform: translateY(-4px);
}
.art-card:hover::after {
  opacity: 1;
}
.art-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.art-card-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--art-accent);
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  padding: 3px 10px;
}
.art-card-read {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--tx3);
  margin-left: auto;
}
.art-card h3 {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.32;
  margin: 0 0 10px;
}
.art-card p {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--tx2);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1 1 auto;
}
.art-card-link {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--art-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.art-card-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s;
}
.art-card:hover .art-card-link svg {
  transform: translateX(3px);
}

/* staggered card entrance */
.art-card-grid .reveal:nth-child(2) {
  transition-delay: 0.07s;
}
.art-card-grid .reveal:nth-child(3) {
  transition-delay: 0.14s;
}
.art-card-grid .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1023px) {
  .art-hero {
    padding: 104px clamp(16px, 4vw, 24px) 44px;
  }
  .art-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 40px clamp(16px, 4vw, 24px) 16px;
  }
  .art-toc {
    display: none;
  }
  .art-pillars,
  .art-stats,
  .art-keys,
  .art-card-grid {
    grid-template-columns: 1fr;
  }
  .art-cta {
    padding: 30px 22px;
  }
  .art-cta-btns {
    flex-direction: column;
    max-width: 340px;
    margin: 0 auto;
  }
  .art-cta-btns .btn-hero-primary,
  .art-cta-btns .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .art-related {
    padding: 48px clamp(16px, 4vw, 24px);
  }

  /* comparison matrix → stacked cards */
  .cmp-wrap {
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .cmp-scroll {
    overflow: visible;
  }
  .cmp-table {
    min-width: 0;
  }
  .cmp-table caption {
    padding: 0 0 16px;
  }
  .cmp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td {
    display: block;
    width: auto;
  }
  .cmp-table tbody tr {
    background: var(--bg1);
    border: 1px solid var(--bd);
    border-radius: var(--rlg);
    padding: 16px 18px;
    margin-bottom: 10px;
  }
  .cmp-table tbody tr:hover {
    background: var(--bg1);
  }
  .cmp-table tbody th {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--bd);
    font-size: 14px;
  }
  .cmp-table tbody td {
    padding: 12px 0 0;
    border-bottom: 0;
    background: transparent !important;
    border-left: 0 !important;
  }
  .cmp-table tbody td::before {
    content: attr(data-col);
    display: block;
    font-family: "Geist Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tx3);
    margin-bottom: 6px;
  }
  .cmp-table tbody td.cmp-us::before {
    color: var(--art-accent);
  }
}

@media (max-width: 480px) {
  .art-switch-tabs {
    flex-direction: column;
  }
  .art-pullquote {
    padding-left: 18px;
  }
}

/* ══════════════════════════════
   MOTION PREFERENCES
══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .art-hero-mesh,
  .art-tldr::before,
  .art-eyebrow .badge-dot {
    animation: none;
  }
  .cmp-wrap.is-armed tbody tr,
  .cmp-wrap.is-armed.is-visible tbody tr {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .art-switch-panel {
    animation: none;
  }
  .art-card:hover,
  .art-pillar:hover {
    transform: none;
  }
  .art-progress {
    transition: none;
  }
}
