/* Page-specific semantic scanner and evidence-led case archive */
.nm-agent-paradox {
    position: relative;
    min-height: 520px;
    margin: 0;
    padding: 34px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(5,6,10,.78);
    box-shadow: 0 32px 90px rgba(0,0,0,.5);
}
.nm-agent-paradox::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(225,29,51,.16);
    pointer-events: none;
}
.nm-agent-paradox-score {
    min-width: 0;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 230px;
    margin-top: 28px;
    border-bottom: 1px solid var(--repair-line);
}
.nm-agent-paradox-word {
    min-width: 0;
    max-width: 100%;
    color: var(--repair-ink);
    font: 800 clamp(34px, 3vw, 44px)/.9 var(--nm-font-display);
    letter-spacing: -.05em;
    text-transform: uppercase;
}
.nm-agent-paradox-word.danger { color: var(--repair-red-hi); text-align: right; }
.nm-agent-paradox-mark { color: #5a5b63; font: 400 58px/1 var(--nm-font-mono); }
.nm-agent-paradox-trace {
    display: grid;
    grid-template-columns: auto 1fr auto auto 1fr auto auto 1.4fr;
    gap: 10px 14px;
    align-items: baseline;
    padding: 34px 0 26px;
    font: 400 10px/1.35 var(--nm-font-mono);
    text-transform: uppercase;
}
.nm-agent-paradox-trace span { color: #777985; }
.nm-agent-paradox-trace b { color: var(--repair-ink); font-weight: 400; }
.nm-agent-paradox-trace b:last-child { color: var(--repair-red-hi); }
.nm-agent-paradox-trace i { color: #5a5b63; font-style: normal; }
.nm-agent-paradox-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #747680;
    font: 400 10px var(--nm-font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.nm-agent-paradox-foot span:last-child { color: #7cc7c0; }

.nm-agent-case-stage { min-height: 0; }
.nm-agent-case-panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
    grid-template-rows: auto auto;
    min-height: 0;
    padding: 48px 0;
    gap: 0;
}
.nm-agent-case-visual {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    padding-right: 44px;
    border-right: 1px solid var(--repair-line);
}
.nm-agent-case-media { position: relative; overflow: hidden; }
.nm-agent-case-visual img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 24px 60px rgba(0,0,0,.38);
}
.nm-agent-case-visual figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    color: #777985;
    font: 400 10px/1.5 var(--nm-font-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.nm-agent-case-visual a { color: var(--repair-red-hi); }
.nm-agent-case-release { color: #c9c4c4; }
.nm-agent-case-copy {
    padding: 0 0 38px 44px;
    border-right: 0;
}
.nm-agent-case-copy h3 { font-size: clamp(34px, 3.8vw, 58px); }
.nm-agent-case-proof {
    grid-column: 2;
    padding: 30px 0 0 44px;
    border-top: 1px solid var(--repair-line);
    background: transparent;
}
.nm-agent-case-proof ul { margin-top: 18px; }
.nm-agent-case-proof li { padding-block: 13px; }

.nm-agent-story-ledger {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 1px;
    align-items: stretch;
    border: 1px solid var(--repair-line);
    background: var(--repair-line);
}
.nm-agent-story-row {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(153, 0, 1, .10), #08090d 42%);
    transition: background 260ms cubic-bezier(.16,1,.3,1);
}
.nm-agent-story-row:nth-child(1) { grid-column: span 7; }
.nm-agent-story-row:nth-child(2) { grid-column: span 5; }
.nm-agent-story-row:nth-child(3) { grid-column: span 4; }
.nm-agent-story-row:nth-child(4) { grid-column: span 8; }
.nm-agent-story-row:nth-child(5) { grid-column: span 5; }
.nm-agent-story-row:nth-child(6) { grid-column: span 3; }
.nm-agent-story-row:nth-child(7) { grid-column: span 4; }
.nm-agent-story-row.is-published:hover { background: linear-gradient(155deg, rgba(153, 0, 1, .18), #0c090d 48%); }
.nm-agent-story-row.is-scheduled {
    --scheduled-scan-duration: 2.8s;
    --scheduled-scan-delay: 0s;
    --scheduled-noise-duration: .46s;
    --scheduled-noise-delay: 0s;
    --scheduled-image-blur: 3.3px;
    background: linear-gradient(155deg, rgba(153, 0, 1, .08), #07080c 48%);
}
.nm-agent-story-row.is-scheduled:nth-child(1) {
    --scheduled-scan-duration: 2.55s;
    --scheduled-scan-delay: -.33s;
    --scheduled-noise-duration: .41s;
    --scheduled-noise-delay: -.12s;
}
.nm-agent-story-row.is-scheduled:nth-child(2) {
    --scheduled-scan-duration: 3.18s;
    --scheduled-scan-delay: -1.74s;
    --scheduled-noise-duration: .53s;
    --scheduled-noise-delay: -.38s;
}
.nm-agent-story-row.is-scheduled:nth-child(3) {
    --scheduled-scan-duration: 2.42s;
    --scheduled-scan-delay: -.81s;
    --scheduled-noise-duration: .37s;
    --scheduled-noise-delay: -.21s;
}
.nm-agent-story-row.is-scheduled:nth-child(4) {
    --scheduled-scan-duration: 3.46s;
    --scheduled-scan-delay: -2.63s;
    --scheduled-noise-duration: .59s;
    --scheduled-noise-delay: -.47s;
}
.nm-agent-story-row.is-scheduled:nth-child(5) {
    --scheduled-scan-duration: 2.76s;
    --scheduled-scan-delay: -1.19s;
    --scheduled-noise-duration: .43s;
    --scheduled-noise-delay: -.08s;
}
.nm-agent-story-row.is-scheduled:nth-child(6) {
    --scheduled-scan-duration: 3.31s;
    --scheduled-scan-delay: -.46s;
    --scheduled-noise-duration: .56s;
    --scheduled-noise-delay: -.31s;
}
.nm-agent-story-row.is-scheduled:nth-child(7) {
    --scheduled-scan-duration: 2.63s;
    --scheduled-scan-delay: -2.08s;
    --scheduled-noise-duration: .39s;
    --scheduled-noise-delay: -.26s;
}
.nm-agent-story-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.nm-agent-story-card:focus-visible {
    outline: 2px solid var(--repair-red-hi);
    outline-offset: -3px;
}
.nm-agent-story-row figure,
.nm-agent-story-row:nth-child(even) figure {
    position: relative;
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 12 / 7;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--repair-line);
}
.nm-agent-story-row:nth-child(1) figure,
.nm-agent-story-row:nth-child(4) figure { aspect-ratio: 16 / 7; }
.nm-agent-story-row img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(.16,1,.3,1);
}
.nm-agent-story-row.is-published:hover img { transform: scale(1.025); }
.nm-agent-story-row.is-scheduled img {
    filter: blur(var(--scheduled-image-blur)) saturate(.72) contrast(.96);
    transform: scale(1.025);
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}
.nm-agent-case-panel.is-scheduled .nm-agent-case-media img {
    filter: saturate(.72) contrast(.96);
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}
.nm-agent-story-row.is-scheduled figure::before,
.nm-agent-case-panel.is-scheduled .nm-agent-case-media::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: -24%;
    right: 0;
    left: 0;
    height: 24%;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 85, 104, .16) 35%,
        rgba(247, 242, 239, .42) 50%,
        rgba(255, 85, 104, .18) 65%,
        transparent
    );
    mix-blend-mode: screen;
    opacity: .58;
    animation: nm-agent-scheduled-scan var(--scheduled-scan-duration, 2.8s) linear var(--scheduled-scan-delay, 0s) infinite;
}
.nm-agent-story-row.is-scheduled figure::after,
.nm-agent-case-panel.is-scheduled .nm-agent-case-media::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(180deg, rgba(247, 242, 239, .13) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 24% 18%, rgba(255, 85, 104, .22), transparent 18%),
        radial-gradient(circle at 76% 68%, rgba(247, 242, 239, .15), transparent 22%);
    mix-blend-mode: screen;
    animation: nm-agent-scheduled-static var(--scheduled-noise-duration, .46s) steps(2, end) var(--scheduled-noise-delay, 0s) infinite;
}
.nm-agent-story-copy,
.nm-agent-story-row:nth-child(even) .nm-agent-story-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    padding: 28px;
}
.nm-agent-story-copy > span {
    color: var(--repair-red-hi);
    font: 400 10px var(--nm-font-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
}
.nm-agent-story-copy h3 {
    max-width: none;
    margin: 16px 0 18px;
    color: var(--repair-ink);
    font: 800 clamp(28px, 2.4vw, 38px)/.96 var(--nm-font-display);
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.nm-agent-story-copy p {
    max-width: 48ch;
    margin: 0 0 22px;
    color: #aaa6a6;
    font-size: 15px;
    line-height: 1.6;
}
.nm-agent-story-copy .nm-agent-story-proof { min-width: 0; margin-top: auto; overflow-wrap: anywhere; }
.nm-agent-story-action {
    display: inline-block;
    margin-top: 22px;
    color: var(--repair-red-hi);
    font: 400 11px var(--nm-font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nm-agent-story-row.is-scheduled .nm-agent-story-action,
.nm-agent-story-row.is-draft .nm-agent-story-action,
.nm-agent-story-row.is-missing .nm-agent-story-action { color: #c9c4c4; }

@keyframes nm-agent-scheduled-static {
    0%, 100% { opacity: .38; transform: translate3d(0, 0, 0); background-position: 0 0, 0 0, 0 0; }
    25% { opacity: .68; transform: translate3d(0, -1px, 0); background-position: 0 5px, 4px -2px, -3px 2px; }
    50% { opacity: .44; transform: translate3d(1px, 0, 0); background-position: 0 -4px, -3px 3px, 2px -4px; }
    75% { opacity: .62; transform: translate3d(-1px, 1px, 0); background-position: 0 3px, 3px -3px, -2px 4px; }
}
@keyframes nm-agent-scheduled-scan {
    0% { opacity: .01; transform: translate3d(0, 0, 0); }
    10% { opacity: .58; }
    78% { opacity: .42; }
    100% { opacity: .01; transform: translate3d(0, 620%, 0); }
}
.nm-agent-outcome {
    padding-block: var(--repair-section-space);
    border-block: 1px solid var(--repair-line);
    background: linear-gradient(125deg, #07080c, #110407 72%, #07080c);
}
.nm-agent-outcome-head {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: clamp(48px, 6vw, 80px);
    align-items: end;
    margin-bottom: var(--repair-content-gap);
}
.nm-agent-outcome-head > p { max-width: 540px; margin: 0; font-size: 18px; line-height: 1.7; }
.nm-agent-outcome-sequence { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--repair-line); }
.nm-agent-outcome-step { position: relative; min-height: 270px; padding: 28px; border-right: 1px solid var(--repair-line); }
.nm-agent-outcome-step:last-child { border-right: 0; }
.nm-agent-outcome-step strong { display: block; margin: 44px 0 18px; color: var(--repair-ink); font: 800 clamp(34px, 4vw, 56px)/1 var(--nm-font-display); }
.nm-agent-outcome-step p { max-width: 23ch; margin: 0; line-height: 1.55; }
.nm-agent-outcome-step.danger strong { color: var(--repair-red-hi); }
.nm-agent-outcome-step.success strong { color: #7cc7c0; }

@media (max-width: 980px) {
    .nm-agent-case-panel { grid-template-columns: 1fr; }
    .nm-agent-case-visual, .nm-agent-case-copy, .nm-agent-case-proof { grid-column: 1; grid-row: auto; }
    .nm-agent-case-visual { padding: 0 0 38px; border: 0; border-bottom: 1px solid var(--repair-line); }
    .nm-agent-case-copy { padding: 38px 0; }
    .nm-agent-case-proof { padding: 32px 0; }
    .nm-agent-story-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nm-agent-story-row,
    .nm-agent-story-row:nth-child(n) { grid-column: span 1; gap: 0; }
    .nm-agent-story-row:nth-child(1),
    .nm-agent-story-row:nth-child(4),
    .nm-agent-story-row:nth-child(7) { grid-column: 1 / -1; }
    .nm-agent-outcome-head { grid-template-columns: 1fr; gap: 28px; }
    .nm-agent-outcome-sequence { grid-template-columns: 1fr 1fr; }
    .nm-agent-outcome-step:nth-child(2) { border-right: 0; }
    .nm-agent-outcome-step:nth-child(-n+2) { border-bottom: 1px solid var(--repair-line); }
}

@media (max-width: 640px) {
    .nm-agent-paradox { min-height: 0; padding: 22px; }
    .nm-agent-paradox-score {
    min-width: 0; grid-template-columns: 1fr; gap: 12px; padding: 34px 0; text-align: center; }
    .nm-agent-paradox-word, .nm-agent-paradox-word.danger { font-size: 40px; text-align: center; }
    .nm-agent-paradox-mark { font-size: 38px; }
    .nm-agent-paradox-trace { grid-template-columns: 1fr 1fr; padding-block: 26px; }
    .nm-agent-paradox-trace i { display: none; }
    .nm-agent-paradox-foot { flex-direction: column; }
    .nm-agent-case-panel { padding: 38px 0; }
    .nm-agent-case-visual figcaption { flex-direction: column; }
    .nm-agent-case-copy h3 { font-size: 38px; }
    .nm-agent-story-ledger { grid-template-columns: 1fr; }
    .nm-agent-story-row:nth-child(n) { grid-column: 1; }
    .nm-agent-story-row {
        display: flex;
        gap: 0;
        min-height: 0;
        padding: 0;
    }
    .nm-agent-story-copy { padding: 24px; }
    .nm-agent-story-copy h3 { font-size: clamp(25px, 7vw, 30px); overflow-wrap: anywhere; }
    .nm-agent-outcome { padding: 92px 0; }
    .nm-agent-outcome-sequence { grid-template-columns: 1fr; }
    .nm-agent-outcome-step { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--repair-line); }
    .nm-agent-outcome-step:last-child { border-bottom: 0; }
    .nm-agent-outcome-step strong { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .nm-agent-repair-page *, .nm-agent-repair-page *::before, .nm-agent-repair-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }
    .nm-agent-story-row.is-scheduled figure::before,
    .nm-agent-story-row.is-scheduled figure::after,
    .nm-agent-case-panel.is-scheduled .nm-agent-case-media::before,
    .nm-agent-case-panel.is-scheduled .nm-agent-case-media::after {
        animation: none;
        transform: none;
    }
}
.nm-agent-signature {
    padding: clamp(2rem, 5vw, 4rem) 0;
    border-bottom: 1px solid var(--repair-line);
    background: #08090f;
}

.nm-agent-signature .nm-agent-paradox {
    max-width: 70rem;
    margin-inline: auto;
}