/*
 * Article 01 — Intelligence Index Analysis
 * Split-column anchored editorial layout & visual components
 */

:root {
  --aa-border: rgba(211, 232, 255, 0.18);
  --aa-border-light: rgba(211, 232, 255, 0.10);
  --aa-card-bg: rgba(6, 16, 33, 0.65);
  --aa-card-bg-elevated: rgba(12, 26, 50, 0.82);
  --aa-hot: #e2b7a8;
  --aa-hot-bg: rgba(226, 183, 168, 0.14);
  --aa-hot-border: rgba(226, 183, 168, 0.45);
  --aa-accent: #c7e5ff;
  --aa-accent-glow: rgba(199, 229, 255, 0.22);
  --aa-mono: "IBM Plex Mono", "SF Mono", "Cascadia Code", "Fira Code", Consolas, Menlo, monospace;
  --aa-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* Force crystal-clear hardware-accelerated font rendering across post */
.aa-post {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Base Post Layout Override */
.aa-post-layout {
  max-width: min(calc(100% - 2.5rem), 1440px);
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

.aa-post .post-header {
  max-width: 1440px;
  margin: 2rem auto 3rem;
  padding: 2.5rem 0 2.2rem;
  border-top: 1px solid var(--aa-border);
  border-bottom: 1px solid var(--aa-border);
}

.aa-post .article-number {
  color: var(--aether-ice);
  font-family: var(--aa-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.aa-post .eyebrow {
  margin: 0 0 0.8rem;
  color: #a5c0dc;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.aa-post h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 35px rgba(199, 229, 255, 0.22);
}

.aa-post .post-subtitle {
  margin: 0 0 1.4rem;
  color: var(--aether-ice);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.aa-post .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  color: var(--aether-muted);
  font-family: var(--aa-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aa-post .post-tags {
  display: inline-flex;
  gap: 0.5rem;
  margin: 0;
}

.aa-post .tag {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--aa-border);
  border-radius: 999px;
  background: rgba(199, 229, 255, 0.08);
  color: var(--aether-ice);
  font-size: 0.62rem;
}

/* =========================================================================
   Anchored Split-Column Grid (Centerline Anchor Layout)
   ========================================================================= */

.aa-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  position: relative;
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--aa-border-light);
}

.aa-split-grid:first-of-type {
  padding-top: 1rem;
}

.aa-split-grid:last-of-type {
  border-bottom: none;
}

/* Subtle center divider guide */
.aa-split-grid::after {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(211, 232, 255, 0.12) 10%, rgba(211, 232, 255, 0.12) 90%, transparent);
  pointer-events: none;
}

/* Left Column: Narrative Prose */
.aa-prose-col {
  justify-self: end;
  min-width: 0;
  width: 100%;
  max-width: 64ch;
  padding-right: 1.5rem;
}

/* Section Headings inside Prose */
.aa-prose-col h2 {
  margin: 0 0 1.2rem;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.aa-prose-col h3 {
  margin: 2rem 0 0.75rem;
  color: var(--aether-ice);
  font-family: var(--aa-mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aa-prose-col p {
  margin: 0 0 1.3rem;
  color: #e2eeff;
  font-size: 1.05rem;
  line-height: 1.8;
}

.aa-prose-col .katex-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}


.aa-prose-col p.aa-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #f7fbff;
  font-weight: 400;
}

.aa-prose-col p.aa-highlight-callout {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--aether-ice);
  background: rgba(199, 229, 255, 0.07);
  border-radius: 0 12px 12px 0;
  color: #f0f6ff;
  font-size: 1rem;
}

.aa-prose-col .aa-list {
  margin: 0.5rem 0 1.6rem;
  padding-left: 1.25rem;
}

.aa-prose-col .aa-list li {
  margin: 0.6rem 0;
  color: #d7e7fb;
  font-size: 1rem;
  line-height: 1.65;
}

.aa-prose-col .aa-list li::marker {
  color: var(--aether-ice);
}

.aa-prose-col .aa-list li b {
  color: #fff;
}

.aa-prose-col code {
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: rgba(199, 229, 255, 0.12);
  color: var(--aether-ice);
  font-family: var(--aa-mono);
  font-size: 0.88em;
}

/* Right Column: Visual Stream */
.aa-visual-col {
  justify-self: start;
  min-width: 0;
  width: 100%;
  padding-left: 1.5rem;
  position: sticky;
  top: 4.5rem;
}

/* Figure Containers */
.aa-figure {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--aa-border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22, 44, 76, 0.72), rgba(4, 10, 24, 0.95) 75%);
  box-shadow: 0 20px 48px rgba(2, 8, 20, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
}

.aa-figure::before {
  position: absolute;
  top: -10rem;
  right: -6rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(199, 229, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(199, 229, 255, 0.02);
  content: "";
  pointer-events: none;
}

.aa-figure > * {
  position: relative;
  z-index: 1;
}

.aa-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--aa-border-light);
  color: #94a3b8;
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aa-topline span:last-child {
  color: var(--aether-ice);
  font-family: var(--aa-mono);
  font-weight: 500;
}

.aa-figure figcaption {
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--aa-border-light);
  color: #cbd5e1;
  font-family: var(--aa-sans);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* =========================================================================
   Component: Hero Recipe & Stage Plot Artifact
   ========================================================================= */

.aa-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.aa-card {
  padding: 1.15rem;
  border: 1px solid var(--aa-border);
  border-radius: 14px;
  background: var(--aa-card-bg);
}

.aa-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}

.aa-card-header h4 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.aa-card-badge {
  font-family: var(--aa-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--aether-ice);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Weight Distribution Stacked Bar */
.aa-macro-breakdown {
  margin-bottom: 1.1rem;
  padding: 0.9rem;
  border: 1px solid var(--aa-border-light);
  border-radius: 10px;
  background: rgba(4, 10, 24, 0.5);
}

.aa-macro-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--aa-sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aa-macro-label b {
  font-family: var(--aa-mono);
  color: #fff;
}

.aa-macro-bar {
  display: flex;
  height: 1.1rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--aa-border);
}

.aa-macro-seg {
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--aa-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #040a18;
}

.aa-macro-seg.agents {
  width: 50%;
  background: linear-gradient(90deg, #e2b7a8, #f5d6cb);
}

.aa-macro-seg.coding {
  width: 24%;
  background: linear-gradient(90deg, #8fa8c8, #b6cee8);
}

.aa-macro-seg.reasoning {
  width: 26%;
  background: linear-gradient(90deg, #c7e5ff, #ffffff);
}

.aa-macro-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  color: #cbd5e1;
}

.aa-macro-legend span i {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: -1px;
}

/* Weight rows */
.aa-weight-table {
  display: grid;
  gap: 0.35rem;
}

.aa-weight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(199, 229, 255, 0.04);
  border: 1px solid rgba(211, 232, 255, 0.08);
  font-family: var(--aa-sans);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.aa-weight-row b {
  font-family: var(--aa-mono);
  font-size: 0.82rem;
  color: #fff;
}

.aa-weight-row.hot {
  background: var(--aa-hot-bg);
  border-color: var(--aa-hot-border);
  color: #fff5ef;
  box-shadow: 0 0 16px rgba(226, 183, 168, 0.15);
}

.aa-weight-row.hot b {
  color: #ffe5da;
}

/* Reconstructed Stage Plot Artifact */
.aa-stage-card {
  padding: 1.1rem;
}

.aa-paper {
  margin-top: 0.5rem;
  padding: 0.9rem;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef5fb, #cfdeec);
  color: #172438;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  transform: rotate(0.8deg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.aa-paper-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--aa-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #334e68;
  text-transform: uppercase;
}

.aa-paper-bar span:last-child {
  font-family: var(--aa-mono);
}

.aa-paper-title {
  margin: 0.6rem 0 0.4rem;
  font-family: var(--aa-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: #102a43;
  letter-spacing: -0.02em;
}

.aa-paper-title small {
  display: block;
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: #486581;
}

.aa-stage-map {
  position: relative;
  height: 8.5rem;
  margin: 0.6rem 0;
  border: 1px solid rgba(61, 85, 108, 0.35);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(73, 96, 119, 0.2) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(73, 96, 119, 0.2) 50%, transparent 50.5%),
    repeating-linear-gradient(0deg, rgba(84, 107, 130, 0.1) 0 1px, transparent 1px 16px),
    #d9e6ef;
}

.stage-box {
  position: absolute;
  padding: 0.25rem 0.5rem;
  border: 1px solid #334e68;
  border-radius: 4px;
  background: rgba(248, 250, 252, 0.95);
  color: #102a43;
  font-family: var(--aa-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stage-box.stage { top: 40%; left: 36%; width: 28%; text-align: center; background: #e0ecf5; }
.stage-box.podium { top: 16%; left: 42%; }
.stage-box.screen { top: 8%; left: 8%; }
.stage-box.audio { right: 8%; bottom: 10%; }

.aa-paper-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(61, 85, 108, 0.2);
  font-family: var(--aa-sans);
  font-size: 0.68rem;
  color: #486581;
}

.aa-paper-details b {
  display: block;
  color: #102a43;
  font-weight: 600;
}

/* =========================================================================
   Component: Frontier Discrimination Ruler & Saturated Stopwatch
   ========================================================================= */

.aa-ruler-wrap {
  display: grid;
  gap: 1.1rem;
}

.aa-stopwatch-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--aa-hot-border);
  border-radius: 14px;
  background: var(--aa-hot-bg);
}

.aa-stopwatch-dial {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid var(--aa-hot);
  box-shadow: 0 0 18px rgba(226, 183, 168, 0.35);
  flex: 0 0 auto;
}

.aa-stopwatch-dial span {
  font-family: var(--aa-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.aa-stopwatch-info h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.aa-stopwatch-info p {
  margin: 0;
  font-family: var(--aa-sans);
  font-size: 0.78rem;
  color: #ffe4d8;
  line-height: 1.45;
}

.aa-bars {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.aa-bar-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(8rem, 2fr);
  align-items: center;
  gap: 0.9rem;
}

.aa-bar-row > div {
  display: flex;
  justify-content: space-between;
  font-family: var(--aa-sans);
  font-size: 0.76rem;
  color: #cbd5e1;
}

.aa-bar-row b {
  font-family: var(--aa-mono);
  font-size: 0.8rem;
  color: #fff;
}

.aa-bar-row > i {
  display: block;
  height: 0.75rem;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, #edf4fc, #8fa8c8);
  box-shadow: 0 0 12px rgba(199, 229, 255, 0.15);
}

.aa-bar-row.hot b {
  color: #ffe4d8;
}

.aa-bar-row.hot > i {
  background: linear-gradient(90deg, #e2b7a8, #f5d8cc);
  box-shadow: 0 0 14px rgba(226, 183, 168, 0.35);
}

.aa-bar-row.highlight b {
  color: #c7e5ff;
}

.aa-bar-row.highlight > i {
  background: linear-gradient(90deg, #c7e5ff, #ffffff);
  box-shadow: 0 0 14px rgba(199, 229, 255, 0.35);
}

/* =========================================================================
   Component: Coding Category Audit & The Missing Repository SWE Layer
   ========================================================================= */

.aa-coding-spectrum {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.aa-spectrum-tier {
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--aa-border);
  border-radius: 12px;
  background: var(--aa-card-bg);
}

.aa-spectrum-tier.missing {
  border: 1px dashed var(--aa-hot-border);
  background: var(--aa-hot-bg);
}

.aa-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.aa-tier-header b {
  font-family: var(--aa-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.aa-tier-badge {
  font-family: var(--aa-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(199, 229, 255, 0.12);
  color: var(--aether-ice);
  border: 1px solid var(--aa-border);
}

.aa-spectrum-tier.missing .aa-tier-badge {
  background: rgba(226, 183, 168, 0.2);
  color: #ffe5da;
  border-color: var(--aa-hot-border);
}

.aa-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(211, 232, 255, 0.08);
  font-family: var(--aa-sans);
  font-size: 0.74rem;
  color: #cbd5e1;
}

.aa-tier-grid span b {
  display: block;
  font-family: var(--aa-sans);
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

/* Missing SWE Dimensions Matrix */
.aa-swe-matrix {
  display: grid;
  gap: 0.6rem;
  padding: 1.15rem;
  border-radius: 14px;
  background: rgba(4, 10, 24, 0.65);
  border: 1px solid var(--aa-hot-border);
  box-shadow: 0 0 20px rgba(226, 183, 168, 0.08);
}

.aa-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--aa-border-light);
}

.aa-matrix-header h4 {
  margin: 0;
  font-family: var(--aa-sans);
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}

.aa-matrix-header span {
  font-family: var(--aa-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2b7a8;
}

.aa-matrix-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(226, 183, 168, 0.06);
  border: 1px solid rgba(226, 183, 168, 0.2);
  font-family: var(--aa-sans);
  font-size: 0.8rem;
  color: #cbd5e1;
}

.aa-matrix-icon.no {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(226, 183, 168, 0.22);
  color: #ffe5da;
  border: 1px solid var(--aa-hot-border);
}

.aa-matrix-row span.status.absent {
  font-family: var(--aa-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffe5da;
  background: rgba(226, 183, 168, 0.18);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* =========================================================================
   Component: SciCode Collinearity & Residual Analysis
   ========================================================================= */

.aa-scicode-audit {
  display: grid;
  gap: 0.95rem;
}

.aa-cor-card {
  padding: 1.15rem;
  border-radius: 14px;
  background: rgba(4, 10, 24, 0.65);
  border: 1px solid var(--aa-border);
}

.aa-cor-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--aa-border-light);
}

.aa-cor-header h4 {
  margin: 0;
  font-family: var(--aa-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.aa-cor-header span {
  font-family: var(--aa-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--aether-ice);
}

.aa-cor-meta {
  margin: 0 0 0.85rem;
  font-family: var(--aa-sans);
  font-size: 0.73rem;
  color: #94a3b8;
  line-height: 1.4;
}

.aa-cor-list {
  display: grid;
  gap: 0.55rem;
}

.aa-cor-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(6rem, 1.5fr) 3.6rem;
  align-items: center;
  gap: 0.75rem;
}

.aa-cor-row span {
  font-family: var(--aa-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-cor-row.high span {
  color: #fff;
  font-weight: 700;
}

.aa-cor-row i {
  display: block;
  height: 0.65rem;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, #475569, #64748b);
}

.aa-cor-row.high i {
  background: linear-gradient(90deg, #e2b7a8, #ff6b4a);
  box-shadow: 0 0 12px rgba(255, 107, 74, 0.4);
}

.aa-cor-row.mid i {
  background: linear-gradient(90deg, #8fa8c8, #c7e5ff);
  box-shadow: 0 0 8px rgba(199, 229, 255, 0.25);
}

.aa-cor-row b {
  font-family: var(--aa-mono);
  font-size: 0.8rem;
  color: #fff;
  text-align: right;
}

/* SciCode Failure Decomposition */
.aa-failure-card {
  padding: 1.1rem;
  border-radius: 14px;
  background: rgba(4, 10, 24, 0.65);
  border: 1px solid var(--aa-border);
}

.aa-failure-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--aa-border-light);
}

.aa-failure-header h4 {
  margin: 0;
  font-family: var(--aa-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.aa-failure-header span {
  font-family: var(--aa-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fca5a5;
}

.aa-stacked-bar {
  display: flex;
  height: 1.45rem;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.75rem 0 0.85rem;
  border: 1px solid var(--aa-border);
}

.aa-seg {
  display: grid;
  place-items: center;
  font-family: var(--aa-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #040a18;
}

.aa-seg.p1 {
  width: 68%;
  background: #f87171;
}

.aa-seg.p2 {
  width: 22%;
  background: #fbbf24;
}

.aa-seg.p3 {
  width: 10%;
  background: #38bdf8;
}

.aa-failure-legend {
  display: grid;
  gap: 0.4rem;
}

.aa-fleg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--aa-sans);
  font-size: 0.76rem;
  color: #cbd5e1;
}

.aa-fleg-item span i {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  margin-right: 0.45rem;
  vertical-align: -1px;
}

.aa-fleg-item b {
  font-family: var(--aa-mono);
  font-size: 0.76rem;
  color: #fff;
}

.aa-stat-callout {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: rgba(199, 229, 255, 0.06);
  border-left: 3px solid var(--aether-ice);
  font-family: var(--aa-sans);
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.aa-stat-callout b {
  color: #fff;
}

/* =========================================================================
   Component: GDPval Scaffolding Pipeline & Vision Loop
   ========================================================================= */

.aa-before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 0.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.aa-before {
  padding: 0.9rem;
  border: 1px solid var(--aa-border);
  border-radius: 12px;
  background: var(--aa-card-bg);
}

.aa-before.after {
  border-color: rgba(199, 229, 255, 0.45);
  background: rgba(199, 229, 255, 0.08);
}

.aa-panel-label {
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.aa-artifact-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.aa-artifact-status i {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: #040a18;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: transparent;
  flex: 0 0 auto;
}

.aa-before.after .aa-artifact-status i {
  border: 1px solid rgba(199, 229, 255, 0.55);
  border-radius: 50%;
  background: rgba(199, 229, 255, 0.15);
  color: var(--aether-ice);
  font-family: var(--aa-sans);
  font-size: 1.4rem;
  font-weight: 700;
}

.aa-artifact-status b {
  display: block;
  font-family: var(--aa-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.aa-artifact-status small {
  display: block;
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.aa-progress-wrap {
  margin-top: 0.6rem;
}

.aa-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  color: #cbd5e1;
}

.aa-progress-label b {
  font-family: var(--aa-mono);
  color: #fff;
}

.aa-progress-bar {
  height: 0.55rem;
  margin-top: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--aa-border);
  border-radius: 999px;
  background: rgba(211, 232, 255, 0.06);
}

.aa-progress-bar i {
  display: block;
  width: var(--p);
  height: 100%;
  background: linear-gradient(90deg, #8fa8c8, #edf4fc);
}

.aa-before.after .aa-progress-bar i {
  background: linear-gradient(90deg, #c7e5ff, #ffffff);
}

.aa-pipeline-arrow {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--aether-ice);
  text-align: center;
}

.aa-pipeline-arrow small {
  font-family: var(--aa-sans);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  color: #cbd5e1;
}

.aa-pipeline-arrow b {
  font-size: 1.8rem;
  font-weight: 400;
}

.aa-punchline {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(4, 10, 24, 0.6);
  border: 1px solid var(--aa-border);
  font-family: var(--aa-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.04em;
}

/* =========================================================================
   Component: Residual Correlation Forest Plot
   ========================================================================= */

.aa-forest-plot {
  display: grid;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--aa-border);
  border-radius: 14px;
  background: var(--aa-card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aa-forest-row {
  display: grid;
  grid-template-columns: 4.8rem 7.5rem 1fr 3rem;
  align-items: center;
  gap: 0.7rem;
  min-height: 1.8rem;
  font-family: var(--aa-sans);
  font-size: 0.76rem;
  color: #cbd5e1;
}

.aa-forest-row.header {
  border-bottom: 1px solid var(--aa-border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.2rem;
  font-family: var(--aa-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.aa-forest-row > div.forest-track {
  position: relative;
  height: 1.3rem;
  border-radius: 4px;
  background: rgba(199, 229, 255, 0.04);
  border-bottom: 1px solid rgba(211, 232, 255, 0.14);
}

.aa-forest-row > div.forest-track i.whisker {
  position: absolute;
  top: 50%;
  left: var(--low);
  width: calc(var(--high) - var(--low));
  height: 2px;
  background: var(--aether-ice);
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(199, 229, 255, 0.4);
}

.aa-forest-row > div.forest-track i.whisker::before,
.aa-forest-row > div.forest-track i.whisker::after {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 0.75rem;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.aa-forest-row > div.forest-track i.whisker::before { left: 0; }
.aa-forest-row > div.forest-track i.whisker::after { right: 0; }

.aa-forest-row > div.forest-track i.dot {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--aa-hot);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(226, 183, 168, 0.8);
}

.aa-forest-row > b {
  color: #fff;
  text-align: right;
  font-family: var(--aa-mono);
  font-size: 0.82rem;
}

.aa-forest-axis {
  display: grid;
  grid-template-columns: 4.8rem 7.5rem 1fr 3rem;
  gap: 0.7rem;
  font-family: var(--aa-mono);
  font-size: 0.65rem;
  color: #94a3b8;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(211, 232, 255, 0.12);
}

.aa-forest-axis-ticks {
  grid-column: 3 / 4;
  display: flex;
  justify-content: space-between;
}

/* =========================================================================
   Component: Ecosystem Feedback Loop & Access Dilemma
   ========================================================================= */

.aa-loop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.aa-loop-node {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(199, 229, 255, 0.04);
  border: 1px solid var(--aa-border);
}

.aa-loop-node.accent {
  border-color: rgba(226, 183, 168, 0.4);
  background: rgba(226, 183, 168, 0.08);
}

.aa-loop-node h5 {
  margin: 0 0 0.4rem;
  font-family: var(--aa-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.aa-loop-node p {
  margin: 0;
  font-family: var(--aa-sans);
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* =========================================================================
   Component: Weight Comparison (AA vs 10% Flat) & PCA Variance
   ========================================================================= */

.aa-weight-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.aa-weight-compare section {
  padding: 0.9rem;
  border: 1px solid var(--aa-border);
  border-radius: 12px;
  background: var(--aa-card-bg);
}

.aa-weight-compare section.flat {
  border-color: var(--aa-hot-border);
  background: var(--aa-hot-bg);
}

.aa-weight-compare section > div:not(.aa-panel-label) {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(211, 232, 255, 0.06);
  font-family: var(--aa-sans);
  font-size: 0.75rem;
  color: #cbd5e1;
}

.aa-weight-compare section b {
  font-family: var(--aa-mono);
  font-size: 0.78rem;
  color: #fff;
}

.aa-compare-mid {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 14rem;
  text-align: center;
  color: #cbd5e1;
}

.aa-compare-mid i {
  color: var(--aether-ice);
  font-style: italic;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.aa-compare-mid b {
  font-family: var(--aa-mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin: 0.2rem 0;
}

.aa-compare-mid small {
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

.aa-compare-mid strong {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  color: var(--aether-ice);
}

.aa-pca-waterfall {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--aa-border);
  border-radius: 10px;
  background: rgba(4, 10, 24, 0.5);
}

.aa-pca-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--aa-sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.aa-pca-header b {
  font-family: var(--aa-mono);
  color: #fff;
}

/* =========================================================================
   Component: Headroom Comparison (HLE vs GPQA)
   ========================================================================= */

.aa-headroom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.aa-headroom-card {
  padding: 1rem;
  border: 1px solid var(--aa-border);
  border-radius: 12px;
  background: var(--aa-card-bg);
}

.aa-headroom-card.saturated {
  border-color: var(--aa-hot-border);
  background: var(--aa-hot-bg);
}

.aa-headroom-card h4 {
  margin: 0 0 0.5rem;
  font-family: var(--aa-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.aa-headroom-gauge {
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--aa-border);
  background: rgba(4, 10, 24, 0.6);
  overflow: hidden;
  margin: 0.45rem 0 0.7rem;
}

.aa-headroom-gauge i {
  display: block;
  height: 100%;
  width: var(--score);
  background: linear-gradient(90deg, #8fa8c8, #c7e5ff);
}

.aa-headroom-card.saturated .aa-headroom-gauge i {
  background: linear-gradient(90deg, #e2b7a8, #f8d5c8);
}

.aa-headroom-stat {
  display: flex;
  justify-content: space-between;
  font-family: var(--aa-sans);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.aa-headroom-stat b {
  font-family: var(--aa-mono);
  font-size: 0.8rem;
  color: #fff;
}

/* =========================================================================
   Component: Taxonomy Architecture (Model vs Agent vs System)
   ========================================================================= */

.aa-taxonomy-stack {
  display: grid;
  gap: 0.75rem;
}

.aa-tax-layer {
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--aa-border);
  background: var(--aa-card-bg);
}

.aa-tax-layer.model {
  border-color: rgba(199, 229, 255, 0.4);
  background: rgba(199, 229, 255, 0.08);
}

.aa-tax-layer.agent {
  border-color: rgba(143, 168, 200, 0.4);
  background: rgba(143, 168, 200, 0.08);
}

.aa-tax-layer.system {
  border-color: var(--aa-hot-border);
  background: var(--aa-hot-bg);
}

.aa-tax-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.aa-tax-title b {
  font-family: var(--aa-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.aa-tax-title span {
  font-family: var(--aa-mono);
  font-size: 0.72rem;
  color: var(--aether-ice);
}

.aa-tax-layer p {
  margin: 0;
  font-family: var(--aa-sans);
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* =========================================================================
   Component: Reform Scorecard
   ========================================================================= */

.aa-reform-list {
  display: grid;
  gap: 0.65rem;
}

.aa-reform-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--aa-border);
  border-radius: 12px;
  background: var(--aa-card-bg);
}

.aa-reform-num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(199, 229, 255, 0.12);
  border: 1px solid var(--aa-border);
  color: var(--aether-ice);
  font-family: var(--aa-mono);
  font-size: 0.84rem;
  font-weight: 700;
}

.aa-reform-content b {
  display: block;
  font-family: var(--aa-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.aa-reform-content p {
  margin: 0;
  font-family: var(--aa-sans);
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* =========================================================================
   Math Equations & Formula Cards
   ========================================================================= */

.aa-equation-card {
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  border: 1px solid var(--aa-border);
  background: rgba(4, 10, 24, 0.75);
  font-family: var(--aa-sans);
  font-size: 0.95rem;
  color: var(--aether-ice);
  line-height: 1.7;
  overflow-x: auto;
  margin: 0.8rem 0;
}

.aa-code-box {
  padding: 0.95rem 1.2rem;
  border-radius: 12px;
  background: rgba(4, 10, 24, 0.85);
  border: 1px solid var(--aa-border);
  font-family: var(--aa-mono);
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0.85rem 0;
  overflow-x: auto;
}

.aa-code-box pre {
  margin: 0;
  font-family: inherit;
}

.aa-code-box .kw {
  color: #c7e5ff;
  font-weight: 600;
}

.aa-code-box .fn {
  color: #8fa8c8;
}

.aa-code-box .str {
  color: #86efac;
}

/* =========================================================================
   Centered Conclusion Section
   ========================================================================= */

.aa-conclusion-section {
  max-width: 780px;
  margin: 4.5rem auto 3rem;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(199, 229, 255, 0.08), rgba(4, 10, 24, 0.92) 70%);
  border: 1px solid var(--aa-border);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(199, 229, 255, 0.03);
  text-align: left;
  position: relative;
}

.aa-conclusion-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aether-ice), transparent);
}

.aa-conclusion-header {
  text-align: center;
  margin-bottom: 2rem;
}

.aa-conclusion-badge {
  display: inline-block;
  font-family: var(--aa-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--aether-ice);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.aa-conclusion-header h2 {
  font-family: var(--aa-sans);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
  text-align: center;
}

.aa-conclusion-body p {
  font-family: var(--aa-sans);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 1.3rem;
}

.aa-conclusion-body p.aa-lead {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.65;
  color: #ffffff;
}

.aa-conclusion-callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  background: rgba(199, 229, 255, 0.06);
  border-left: 4px solid var(--aether-ice);
  border-right: 1px solid var(--aa-border);
  border-top: 1px solid var(--aa-border);
  border-bottom: 1px solid var(--aa-border);
  text-align: center;
}

.aa-conclusion-callout p {
  font-family: var(--aa-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.aa-behold-tag {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--aa-border-light);
  font-family: var(--aa-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(199, 229, 255, 0.5);
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */

@media (max-width: 1080px) {
  .aa-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
  }

  .aa-split-grid::after {
    display: none;
  }

  .aa-prose-col {
    padding-right: 0;
    max-width: 100%;
  }

  .aa-visual-col {
    padding-left: 0;
    position: static;
  }
}

@media (max-width: 640px) {
  .aa-figure {
    padding: 1rem;
    border-radius: 15px;
  }

  .aa-coding-grid {
    grid-template-columns: 1fr;
  }

  .aa-headroom-grid {
    grid-template-columns: 1fr;
  }

  .aa-before-after {
    grid-template-columns: 1fr;
  }

  .aa-pipeline-arrow {
    transform: rotate(90deg);
    padding: 0.6rem 0;
  }

  .aa-pair {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .aa-pair-link {
    transform: rotate(90deg);
    padding: 0.8rem 0;
  }

  .aa-weight-compare {
    grid-template-columns: 1fr;
  }

  .aa-compare-mid {
    min-height: 0;
    padding: 1rem 0;
  }

  .aa-forest-row {
    grid-template-columns: 3.5rem 5rem minmax(4rem, 1fr) 2.2rem;
    font-size: 0.5rem;
  }
}
