/* ==========================================================================
   Storyline & Sinker — research case study components (ab- prefix)
   Shared by /resources/research-changed-content-plan/ (the full case study)
   and /about.html (its summary). Loaded after resources.css on the article
   and before about.css on About, so About's page rules (lane geometry, the
   sounding-line states under html.ab-live) still win there.
   Default CSS = final, visible state. One-shot pre-reveal states exist only
   under html.ready.ab-motion (About) or html.ready.res-motion (articles);
   pages.js adds .in to [data-io].
   ========================================================================== */

/* ---------------------------------------------------------------- labels, highlights, lamps */
.ab-k { max-width: none; margin-bottom: 14px; font: 500 .62rem/1.55 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-t); }
.ab-catch { color: var(--text); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: background-size .9s var(--ease); }
.ab-lamp { display: flex; align-items: center; gap: 10px; font: 500 .58rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-t); transition: color .6s; }
.ab-lamp::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--accent); background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: background .6s, box-shadow .6s; }
.ab-lamp::after { content: attr(data-l); }

/* strata */
.ab-strat { position: relative; height: 1px; margin-top: 64px; margin-bottom: 44px; background: linear-gradient(90deg, var(--line2), transparent 85%); }
.ab-strat::before { content: attr(data-l); position: absolute; left: 0; bottom: 10px; font: 500 .58rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-t); white-space: nowrap; }
.ab-strat--in { margin: 52px 0 36px; }

/* ---------------------------------------------------------------- the initial brief (false floor) */
/* the dashed floor breaks in two; about.css extends the left piece into its lane */
.ab-floor { position: relative; display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 52px; margin-bottom: 52px; padding-bottom: 14px; }
.ab-floor::before, .ab-floor::after { content: ''; position: absolute; bottom: 0; border-top: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .7s var(--ease); }
.ab-floor::before { left: 0; width: 16%; transform: translateX(-12px) rotate(-4deg); transform-origin: right center; }
.ab-floor::after { left: calc(16% + 6px); right: 0; transform: translateX(12px) rotate(.8deg); transform-origin: left center; }
.ab-buoy { display: inline-block; padding: 6px 11px; border: 1px dashed var(--line2); background: rgba(21, 25, 31, .75); font: 500 .58rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); transition: transform .7s var(--ease), opacity .7s var(--ease); }
.ab-buoy::before { content: attr(data-l); }
.ab-floor .ab-buoy:nth-child(1) { transform: rotate(-4deg); }
.ab-floor .ab-buoy:nth-child(3) { transform: rotate(4deg); }
.ab-floor .ab-buoy:nth-child(2) { transform: translateY(3px); }
.ab-floor .ab-buoy { opacity: .55; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.ab-floor-l { position: absolute; right: 0; bottom: -32px; font: 500 .56rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-t); white-space: nowrap; transition: opacity .7s var(--ease) .2s; }
.ab-floor-l::before { content: attr(data-l); }

/* ---------------------------------------------------------------- figures */
.ab-chart, .ab-reel { margin: 0; font: 400 .95rem/1.6 var(--sans); color: var(--text2); }
.ab-chart { contain: layout paint; padding: 12px 0; }
.ab-chart:focus { outline: none; }
.ab-chart:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .ab-chart:target { animation: abPing 1.2s var(--ease) 1; }
}
@keyframes abPing { from { outline: 2px solid color-mix(in srgb, var(--accent) 90%, transparent); outline-offset: 8px; } to { outline: 2px solid transparent; outline-offset: 24px; } }
.ab-cap { max-width: 46rem; font: 400 .95rem/1.6 var(--sans); color: var(--ink); }
.ab-meta { margin-top: 10px; max-width: none; font: 500 .6rem/1.7 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.ab-panel { position: relative; margin-top: 28px; padding: clamp(22px, 3vw, 40px); background: rgba(21, 25, 31, .7); border: 1px solid var(--line); }
.ab-reel .ab-panel { contain: layout paint; }
.ab-panel > .cb.tl, .ab-card > .cb.tl { top: -1px; left: -1px; }
.ab-panel > .cb.br, .ab-card > .cb.br { bottom: -1px; right: -1px; }
.ab-card > .cb { opacity: .95; transform: none; pointer-events: none; }   /* the card has no [data-io] of its own */
.ab-num { position: absolute; top: 16px; right: 18px; font: 500 .58rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-t); white-space: nowrap; }
.ab-num::before { content: attr(data-l); }
.ab-panel > .ab-k { padding-right: 9em; }
:where(.ab-chart, .ab-reel) p { max-width: 46rem; font-size: .95rem; color: var(--text2); }
:where(.ab-chart, .ab-reel) p + p { margin-top: .8em; }
.ab-panel > .ab-k + * { margin-top: 0; }
.ab-q { margin: 0 0 14px; }
.ab-chart .ab-q p { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.25 var(--serif); color: var(--text); max-width: 34em; }
.ab-note { margin-top: 18px; padding-left: 12px; border-left: 1px solid var(--accent); font-size: .88rem; color: var(--text2); }
.ab-tag { display: inline-block; margin-left: 8px; padding: 3px 7px; vertical-align: .1em; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); font: 500 .54rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-t); white-space: nowrap; }

/* tables */
.ab-tbl { width: 100%; margin-top: 18px; border-collapse: collapse; text-align: left; font-size: .9rem; }
.ab-tbl th, .ab-tbl td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid var(--line); line-height: 1.45; }
.ab-tbl thead th { font: 500 .58rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-t); background: rgba(32, 38, 48, .55); border-bottom-color: var(--line2); }
.ab-tbl tbody th { font-weight: 600; color: var(--text); }
.ab-tbl td { color: var(--text2); }
.ab-tbl tbody tr:last-child > * { border-bottom: 0; }
.ab-stamp { position: relative; display: inline-block; padding: 4px 9px; font: 500 .6rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.ab-stamp::after { content: ''; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); transform: rotate(-2deg); transition: transform .6s cubic-bezier(.3, 1.5, .5, 1), opacity .4s; }
.ab-stamp--1 { color: var(--gold); }
.ab-stamp--1::after { border-color: var(--gold); box-shadow: 0 0 12px -2px var(--gold); }
.ab-s01 tr:nth-child(1) .ab-stamp::after { transition-delay: .5s; }
.ab-s01 tr:nth-child(2) .ab-stamp::after { transition-delay: .65s; }
.ab-s01 tr:nth-child(3) .ab-stamp::after { transition-delay: .8s; }
.ab-buoys { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.ab-buoys .ab-buoy { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }

/* S-02: how sellers decide */
.ab-s02 { background: rgba(12, 22, 40, .82); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.ab-s02-grid { display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; margin-top: 8px; }
.ab-depth { position: relative; height: 340px; margin-top: 4px; }
.ab-ax-top { position: absolute; left: 0; top: 0; font: 500 .6rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.ab-ax-top::before { content: attr(data-l); }
.ab-ax { position: absolute; left: 54px; top: 20px; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.ab-tick { position: absolute; left: 0; width: 66px; height: 0; top: calc(22px + (100% - 22px) * var(--y) / 100); }
.ab-tick::before { content: attr(data-l); position: absolute; right: 22px; top: -.55em; font: 500 .56rem/1.1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-t); white-space: nowrap; transition: color .5s; }
.ab-tick::after { content: ''; position: absolute; left: 49px; width: 11px; top: 0; height: 1px; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: background .5s, box-shadow .5s; }
.ab-band { position: absolute; left: 50px; width: 9px; top: calc(22px + (100% - 22px) * .44); height: calc((100% - 22px) * .16); background: color-mix(in srgb, var(--accent) 45%, transparent); }
.ab-band::before { content: attr(data-l); position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: max-content; max-width: 150px; font: 500 .56rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.ab-floor6 { position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px solid var(--accent); }
.ab-floor6::before { content: attr(data-l); position: absolute; right: 0; bottom: 8px; max-width: 140px; text-align: right; font: 500 .56rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-t); }
.ab-fork { position: absolute; left: 55px; right: 18px; top: calc(22px + (100% - 22px) * .2); height: calc((100% - 22px) * .12); border-top: 1px dashed var(--accent); border-right: 1px dashed var(--accent); border-top-right-radius: 16px; }
.ab-fork::before { content: attr(data-l); position: absolute; right: -10px; top: calc(100% + 6px); width: max-content; max-width: 160px; text-align: right; font: 500 .56rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.ab-stats { display: grid; margin: 0; }
.ab-stats > div { padding: 12px 0; border-top: 1px solid var(--line); }
.ab-stats dt { font: 500 .58rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.ab-stats dd { margin: 4px 0 0; font: 400 clamp(1.15rem, 1.6vw, 1.4rem)/1.25 var(--serif); color: var(--text); }
.ab-src { margin-top: 14px; font-size: .78rem; }
.ab-take { margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--accent); font: italic 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.3 var(--serif); color: var(--accent-t); }
@media (max-width: 760px) {
  .ab-s02-grid { grid-template-columns: minmax(0, 1fr); }
}

/* S-03: two orders, strands */
.ab-orders-wrap { position: relative; margin-top: 8px; }
.ab-orders { table-layout: fixed; margin-top: 0; }
.ab-oc1 { width: 18%; } .ab-oc2, .ab-oc3 { width: 41%; }
.ab-orders thead tr { height: 40px; }
.ab-orders tbody tr { height: 56px; }
.ab-orders th, .ab-orders td { padding-top: 6px; padding-bottom: 6px; }
.ab-orders tbody th { font: 400 1.3rem/1 var(--serif); color: var(--accent-t); }
.ab-orders tr > :nth-child(2) { text-align: right; padding-right: 40px; }
.ab-orders tr > :nth-child(3) { padding-left: 40px; }
.ab-orders td { color: var(--text); }
.ab-strands { position: absolute; top: 40px; left: calc(59% - 34px); width: 68px; height: 168px; overflow: visible; pointer-events: none; }
.ab-sd { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.ab-sd-a { stroke: var(--teal); } .ab-sd-c { stroke: #6F9BE0; }
.ab-sd-b { transition-delay: .25s; } .ab-sd-c { transition-delay: .5s; }

/* S-04: allocation */
.ab-stack { display: flex; gap: 2px; height: 14px; margin: 6px 0 20px; transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
.ab-stack i { flex: var(--v); background: var(--sw); }
.ab-stack i:nth-child(1), .ab-alloc li:nth-child(1) { --sw: #19E6CF; }
.ab-stack i:nth-child(2), .ab-alloc li:nth-child(2) { --sw: #12C9DA; }
.ab-stack i:nth-child(3), .ab-alloc li:nth-child(3) { --sw: #0AA7B8; }
.ab-stack i:nth-child(4), .ab-alloc li:nth-child(4) { --sw: #1598B8; }
.ab-stack i:nth-child(5), .ab-alloc li:nth-child(5) { --sw: #3478D4; }
.ab-alloc { display: grid; gap: 2px; }
.ab-alloc li { display: grid; grid-template-columns: 10px 3.2em minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--text); }
.ab-alloc li::before { content: ''; width: 10px; height: 10px; background: var(--sw); align-self: center; }
.ab-alloc b { font: 400 1.35rem/1 var(--serif); color: var(--accent-t); }

/* S-05: questions */
.ab-qs { display: grid; gap: 12px; }
.ab-qs li { padding-left: 14px; border-left: 1px solid var(--accent); font: italic 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.35 var(--serif); color: var(--text); }
.ab-friction { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 22px; padding: 16px 18px; background: rgba(11, 13, 16, .5); border: 1px solid var(--line); }
.ab-friction p + p { margin-top: 0; }
.ab-friction b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .ab-friction { grid-template-columns: 1fr; } }

/* figure B */
.ab-thesis { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--accent); }
.ab-thesis p { font: 400 clamp(1.25rem, 2vw, 1.65rem)/1.3 var(--serif); color: var(--text); max-width: 36em; }

/* P-01 */
.ab-p01-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: start; }
.ab-grid24 { --fw: 22px; display: grid; gap: 4px; }
.ab-g-h, .ab-g-r { display: grid; grid-template-columns: 14px repeat(3, var(--fw)); gap: 4px; align-items: center; }
.ab-g-h b, .ab-g-r::before { font: 500 .52rem/1 var(--mono); letter-spacing: .08em; color: var(--text2); text-align: center; }
.ab-g-h b::before { content: attr(data-l); }
.ab-g-r::before { content: attr(data-l); }
.ab-g-r i { display: block; aspect-ratio: 9 / 16; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); transition: border-color .5s, background .5s, box-shadow .5s; transition-delay: calc(var(--r) * 60ms + .3s); }
.ab-g-r:first-of-type i, .ab-g-r[style*="--r:0"] i { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 30%, transparent); box-shadow: 0 0 10px -2px var(--teal); }
.ab-scen { counter-reset: sc; display: grid; gap: 0; }
.ab-scen li { counter-increment: sc; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); color: var(--text); font-size: .95rem; }
.ab-scen li::before { content: counter(sc, decimal-leading-zero); font: 500 .6rem/1 var(--mono); letter-spacing: .1em; color: var(--accent-t); }
.ab-scen li:first-child { color: var(--teal); }
.ab-scen .ab-tag { grid-column: 2; justify-self: start; margin: 6px 0 2px; }
.ab-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line2); }
.ab-styles dt { font-weight: 600; color: var(--text); }
.ab-styles dd { margin: 4px 0 0; font-size: .9rem; }
@media (max-width: 1099px) { .ab-styles { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ab-p01-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-grid24 { --fw: 18px; grid-auto-flow: column; grid-template-columns: 12px repeat(8, var(--fw)); justify-content: start; }
  .ab-g-h, .ab-g-r { grid-template-columns: var(--fw); grid-template-rows: 12px repeat(3, calc(var(--fw) * 16 / 9)); }
  .ab-g-h { grid-template-columns: 12px; }
}

/* P-02: Scenario 01 switch */
.ab-switch { position: relative; margin-top: 28px; }
.ab-card { position: relative; padding: clamp(22px, 3vw, 40px); background: rgba(14, 22, 34, .92); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: 0 30px 90px -50px var(--accent); }
.ab-card-k { padding-right: 6em; }
.ab-card-k .ab-tag { margin-left: 10px; }
.ab-card-n { display: inline-flex; align-items: center; gap: 10px; }
.ab-dots { display: inline-flex; gap: 5px; }
.ab-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); transition: background .4s, box-shadow .4s; }
.ab-card:not([data-state="2"]):not([data-state="3"]) .ab-dots i:nth-child(1), .ab-card[data-state="2"] .ab-dots i:nth-child(2), .ab-card[data-state="3"] .ab-dots i:nth-child(3) { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.ab-open { margin: 0 0 20px; }
.ab-open p { font: 400 clamp(1.25rem, 1.9vw, 1.6rem)/1.28 var(--serif); color: var(--text); }
.ab-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ab-zone > .ab-k { margin-bottom: 8px; }
.ab-zone p { font-size: .92rem; }
.ab-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.ab-nums dt { font: 500 .56rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.ab-nums dd { margin: 2px 0 0; font: 400 1.25rem/1.15 var(--serif); color: var(--text); }
.ab-gates { display: grid; gap: 6px; margin-top: 12px; }
.ab-gates li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--text); transition: color .4s, opacity .4s; }
.ab-gates li::before { content: ''; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; border: 1px solid var(--line2); transition: background .4s, border-color .4s, box-shadow .4s; }
.ab-gates li::after { content: ''; position: absolute; left: -2px; top: calc(.42em + 4px); width: 14px; height: 1px; background: var(--text2); transform: rotate(-45deg) scaleX(0); transition: transform .4s var(--ease); }
.ab-card:not([data-state="2"]):not([data-state="3"]) .ab-gates li::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 8px var(--teal); }
.ab-card[data-state="2"] .ab-gates li:not([data-g="res"])::before, .ab-card[data-state="3"] .ab-gates li:not([data-g="need"])::before { background: color-mix(in srgb, var(--teal) 45%, transparent); border-color: var(--teal); }
.ab-card[data-state="2"] .ab-gates [data-g="res"], .ab-card[data-state="3"] .ab-gates [data-g="need"] { color: var(--text2); text-decoration: line-through; opacity: .75; }
.ab-card[data-state="2"] .ab-gates [data-g="res"]::after, .ab-card[data-state="3"] .ab-gates [data-g="need"]::after { transform: rotate(-45deg) scaleX(1); }
.ab-bigtag { display: grid; margin-top: 18px; }
.ab-bigtag span { grid-area: 1 / 1; font: 400 clamp(2rem, 3.4vw, 3rem)/1 var(--serif); letter-spacing: -.01em; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.ab-bigtag [data-v="1"] { color: var(--teal); text-shadow: 0 0 40px color-mix(in srgb, var(--teal) 40%, transparent); }
.ab-bigtag [data-v="2"] { color: #8FB8FF; text-shadow: 0 0 40px rgba(143, 184, 255, .35); }
.ab-bigtag [data-v="3"] { color: var(--text); }
.ab-card:not([data-state="2"]):not([data-state="3"]) .ab-bigtag [data-v="1"], .ab-card[data-state="2"] .ab-bigtag [data-v="2"], .ab-card[data-state="3"] .ab-bigtag [data-v="3"] { opacity: 1; transform: none; }
.ab-verdicts { display: grid; gap: 6px; margin-top: 14px; }
.ab-verdicts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 12px; border: 1px solid var(--line); border-left: 2px solid var(--line2); font-size: .88rem; color: var(--text); transition: background .4s, border-color .4s, opacity .4s; }
.ab-verdicts b { font: 500 .64rem/1 var(--mono); letter-spacing: .14em; color: var(--text); white-space: nowrap; }
.ab-card:not([data-state="2"]):not([data-state="3"]) .ab-verdicts [data-v="1"], .ab-card[data-state="2"] .ab-verdicts [data-v="2"], .ab-card[data-state="3"] .ab-verdicts [data-v="3"] { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); border-left-color: var(--teal); }
.ab-card:not([data-state="2"]):not([data-state="3"]) .ab-verdicts [data-v="1"] b, .ab-card[data-state="2"] .ab-verdicts [data-v="2"] b, .ab-card[data-state="3"] .ab-verdicts [data-v="3"] b { color: var(--teal); }
.ab-card[data-state="1"] .ab-verdicts li:not([data-v="1"]), .ab-card[data-state="2"] .ab-verdicts li:not([data-v="2"]), .ab-card[data-state="3"] .ab-verdicts li:not([data-v="3"]) { opacity: .6; }
.ab-change { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; padding: 0 20px; border: 1px solid var(--teal); color: var(--teal); font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s, box-shadow .4s; }
.ab-change:hover { background: var(--teal); color: #071012; box-shadow: 0 0 40px -10px var(--teal); }
.ab-change[hidden] { display: none; }
.ab-echo { display: inline-block; margin-left: 14px; vertical-align: -.35em; font: 400 1.6rem/1 var(--serif); color: var(--teal); transition: color .4s; }
.ab-echo::before { content: attr(data-l); }
.ab-card[data-state="2"] .ab-echo { color: #8FB8FF; }
.ab-card[data-state="3"] .ab-echo { color: var(--text); }
.ab-change[hidden] + .ab-echo { display: none; }
@media (min-width: 1100px) { .ab-echo { display: none; } }
@media (min-width: 1100px) {
  .ab-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(22px, 2.6vw, 40px); align-items: start; }
  .ab-card-k { grid-column: 1 / -1; grid-row: 1; }
  .ab-open { grid-column: 1; grid-row: 2; margin: 0; }
  .ab-z-num { grid-column: 1; grid-row: 3; }
  .ab-z-rec { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
  .ab-z-risk { grid-column: 3; grid-row: 2; margin-top: 0; }
  .ab-z-chg { grid-column: 3; grid-row: 3; }
}
/* desktop pin (case-study.js sets html.res-cs-pin and the stage height): the verdict follows the scroll */
@media (min-width: 1100px) and (min-height: 720px) {
  html.res-cs-pin .ab-card { position: sticky; top: 12vh; top: 12svh; }
  /* S-02 in the article: the month gauge runs a screen tall and the stats stay beside it (About's line did this) */
  html.res-motion .resg-case .ab-depth { height: 90vh; }
  html.res-motion .resg-case .ab-stats-col { position: sticky; top: 22vh; }
}

/* P-03: filmstrip */
.ab-film7 { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 18px 6px; background: #050607; border: 1px solid var(--line); counter-reset: fr; }
.ab-film7::before, .ab-film7::after { content: ''; position: absolute; left: 6px; right: 6px; height: 6px; background: radial-gradient(circle, rgba(244, 243, 239, .28) 1.6px, transparent 2.2px) 0 50% / 12px 6px repeat-x; }
.ab-film7::before { top: 6px; } .ab-film7::after { bottom: 6px; }
.ab-film7 li { counter-increment: fr; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; aspect-ratio: 9 / 16; padding: 22px 8px 9px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(165deg, #183A66, #15191F 62%, #0f1a22); font: 500 .58rem/1.45 var(--mono); letter-spacing: .04em; color: var(--text2); transition: border-color .5s, box-shadow .5s; transition-delay: calc(var(--k) * 140ms + .3s); }
.ab-film7 li::before { content: counter(fr, decimal-leading-zero); position: absolute; left: 8px; top: 8px; font: 500 .54rem/1 var(--mono); color: var(--text2); }
.ab-fn { display: inline; font: 600 .76rem/1.25 var(--sans); letter-spacing: 0; color: var(--text); }
.ab-film7 b { display: block; margin-top: 4px; font-weight: 500; color: var(--teal); }
.ab-film7 .ab-f-sw { border-color: var(--teal); box-shadow: 0 0 16px -4px var(--teal); }
@media (max-width: 1099px) {
  .ab-film7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ab-film7 { gap: 4px; padding: 16px 4px; }
  .ab-film7 li { padding: 20px 5px 7px; font-size: .64rem; letter-spacing: 0; }
  .ab-fn { font-size: .7rem; overflow-wrap: anywhere; hyphens: auto; }
}

/* P-04: run of show */
.ab-ros { position: relative; overflow: hidden; padding: 6px 0; border-block: 1px solid var(--line); }
.ab-ros li { display: grid; grid-template-columns: minmax(0, 16em) 4.6em minmax(0, 1fr); gap: 14px; align-items: center; padding: 7px 8px; font-size: .9rem; color: var(--text); }
.ab-ros-m { font: 500 .6rem/1 var(--mono); letter-spacing: .1em; color: var(--text2); text-align: right; white-space: nowrap; }
.ab-ros li > i { display: block; height: 8px; width: calc(var(--m) / 120 * 100%); background: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 12px -3px var(--accent); }
.ab-ros .ab-hi { background: color-mix(in srgb, var(--teal) 9%, transparent); }
.ab-ros .ab-hi .ab-ros-n { color: var(--teal); }
.ab-ros .ab-hi > i { background: var(--teal); box-shadow: 0 0 14px -2px var(--teal); }
.ab-ros::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(36px + 18.54rem); right: 8px; border-top: 1px solid var(--teal); opacity: 0; pointer-events: none; }  /* 8px + 16em + 14px + 4.6em + 14px at the li's .9rem */
.ab-sets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ab-sets li { padding: 7px 12px; border: 1px solid var(--line2); font-size: .84rem; color: var(--text2); }
.ab-sets b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .ab-ros li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 8px 6px; }
  .ab-ros li > i { grid-column: 1 / -1; }
  .ab-ros::after { display: none; }   /* bars sit under the names here; the staggered bars carry the sweep */
}

/* P-05: completion chips */
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-chips li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid var(--line2); font-size: .86rem; color: var(--text); }
.ab-chips li::before { content: ''; width: 5px; height: 9px; margin-top: -3px; border: solid var(--teal); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--k) * 110ms + .3s); }

/* the consideration window: six months of content, then contact (read left to right) */
.ab-window { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-end; flex-wrap: wrap; gap: 10px 12px; }
.ab-win-c { display: flex; align-items: center; gap: 8px; margin-left: 6px; padding-bottom: 2px; font: 500 .56rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.ab-win-c::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.ab-win-c::after { content: attr(data-l); }
.ab-win-m { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.ab-win-m::before { content: attr(data-l); font: 500 .5rem/1 var(--mono); letter-spacing: .1em; color: var(--text2); }
.ab-win-m i { display: block; width: 14px; aspect-ratio: 9 / 16; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 18%, transparent); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--k) * 120ms + .3s); }

/* ---------------------------------------------------------------- phone tables -> cards */
@media (max-width: 760px) {
  .ab-tbl:not(.ab-orders) thead { position: absolute; display: block; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ab-tbl:not(.ab-orders), .ab-tbl:not(.ab-orders) tbody, .ab-tbl:not(.ab-orders) tr { display: block; }
  .ab-tbl:not(.ab-orders) tr { padding: 14px 14px 8px; margin-bottom: 10px; background: rgba(11, 13, 16, .55); border: 1px solid var(--line); }
  .ab-tbl:not(.ab-orders) tbody th { display: block; padding: 0 0 10px; border: 0; font: 400 1.25rem/1.2 var(--serif); }
  .ab-tbl:not(.ab-orders) td { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 12px; padding: 9px 0; border: 0; border-top: 1px solid var(--line); }
  .ab-tbl:not(.ab-orders) td::before { content: attr(data-l); content: attr(data-l) / ""; font: 500 .7rem/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-t); padding-top: .2em; }
  .ab-panel { padding: 22px 16px; }
  .ab-panel > .ab-num { position: static; display: block; margin: -6px 0 10px; text-align: right; }
  .ab-panel > .ab-k { padding-right: 0; }
  .ab-orders { font-size: .84rem; }
  .ab-orders tr > :nth-child(2) { padding-right: 36px; padding-left: 4px; }
  .ab-orders tr > :nth-child(3) { padding-left: 36px; padding-right: 4px; }
  .ab-orders thead th { font-size: .7rem; letter-spacing: 0; }
  .ab-orders tr > :first-child { padding-left: 4px; padding-right: 4px; }
  /* column 1 sized to its "PRIORITY" header; columns 2 and 3 split the rest, and the strands follow their boundary */
  .ab-oc1 { width: max(3.6rem, 57px); }
  .ab-oc2, .ab-oc3 { width: auto; }
  .ab-strands { left: calc(50% + max(1.8rem, 28.5px) - 34px); }
}
/* below the 375px floor there is no room for the strand gap: the strands (decorative) give way to the words */
@media (max-width: 340px) {
  .ab-strands { display: none; }
  .ab-orders tr > :nth-child(2) { padding-right: 10px; }
  .ab-orders tr > :nth-child(3) { padding-left: 10px; }
}

/* ---------------------------------------------------------------- legibility floor for real text */
/* mono labels that carry content (not aria-hidden decoration) stay at or above ~11px; the honesty tag a bit larger */
.ab-k, .ab-meta, .ab-tbl thead th, .ab-stats dt, .ab-nums dt, .ab-ros-m, .ab-stamp, .ab-verdicts b { font-size: max(.7rem, 11px); }
.ab-tag { font-size: max(.75rem, 12px); }
.ab-film7 li { font-size: max(.7rem, 11px); }
@media (max-width: 760px) { .ab-film7 li { font-size: max(.66rem, 10.5px); } }

/* ---------------------------------------------------------------- the article (/resources/research-changed-content-plan/) */
/* labels follow their own chapter's accent, not whichever chapter is active */
.resg-case .res-ch { --accent-t: color-mix(in srgb, var(--accent) 76%, #fff); }
/* the research chapters keep About's deep-blue band */
.resg-case .res-ch.cs-deep::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(24, 58, 102, .26) 14%, rgba(24, 58, 102, .26) 86%, transparent);
}
.resg-case .res-ch.cs-deep { isolation: isolate; }
.resg-case :is(#sample-research, #sample-production, #scenario-01) { scroll-margin-top: 96px; }
/* figures run wider than the reading column, the same width as the intertitle cards */
/* (--cs-r: the lane reserve, below) */
.resg-case .res-prose > :is(.ab-chart, .ab-reel) { width: min(1040px, 100vw - 32px - var(--cs-r)); margin: 56px 0; margin-inline: calc(50% - min(520px, (100vw - var(--cs-r)) / 2 - 16px)); }
.resg-case .res-prose > .ab-floor { margin: 44px 0 60px; }
.resg-case .res-prose > .ab-aside { margin-top: 20px; }
.resg-case .res-prose > .ab-window { margin: 30px 0 34px; padding-top: 16px; border-top: 1px solid var(--line2); }
/* 900–1099: the article's figures are already wide, so the desktop arrangements apply (About's column is narrower) */
@media (min-width: 900px) and (max-width: 1099px) {
  .resg-case .ab-film7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .resg-case .ab-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resg-case .ab-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(22px, 2.6vw, 40px); align-items: start; }
  .resg-case .ab-card-k { grid-column: 1 / -1; grid-row: 1; }
  .resg-case .ab-open { grid-column: 1; grid-row: 2; margin: 0; }
  .resg-case .ab-z-num { grid-column: 1; grid-row: 3; }
  .resg-case .ab-z-rec { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
  .resg-case .ab-z-risk { grid-column: 3; grid-row: 2; margin-top: 0; }
  .resg-case .ab-z-chg { grid-column: 3; grid-row: 3; }
  .resg-case .ab-echo { display: none; }
}

/* ---------------------------------------------------------------- one-shot pre-states (pages.js .in) */
@media (prefers-reduced-motion: no-preference) {
  html.ready:is(.ab-motion, .res-motion) .ab-s01:not(.in) .ab-stamp::after { opacity: 0; transform: scale(1.7) rotate(-9deg); }
  html.ready:is(.ab-motion, .res-motion) .ab-s03:not(.in) .ab-sd { stroke-dashoffset: 1; }
  html.ready:is(.ab-motion, .res-motion) .ab-s04:not(.in) .ab-stack { transform: scaleX(0); }
  html.ready:is(.ab-motion, .res-motion) .ab-p01:not(.in) .ab-g-r i { border-color: var(--line2); background: transparent; box-shadow: none; }
  html.ready:is(.ab-motion, .res-motion) .ab-p03:not(.in) .ab-film7 li { border-color: var(--line2); box-shadow: none; }
  html.ready:is(.ab-motion, .res-motion) .ab-p04 .ab-ros li > i { transition: background .4s, box-shadow .4s; transition-delay: calc(var(--s) * 2.4s + .2s); }
  html.ready:is(.ab-motion, .res-motion) .ab-p04:not(.in) .ab-ros li > i { background: var(--line2); box-shadow: none; }
  html.ready:is(.ab-motion, .res-motion) .ab-p04.in .ab-ros::after { animation: abPh 2.4s linear .2s both; }
  html.ready:is(.ab-motion, .res-motion) .ab-p05:not(.in) .ab-chips li::before { opacity: 0; transform: rotate(45deg) scale(.3); }
  html.ready:is(.ab-motion, .res-motion) .ab-window:not(.in) .ab-win-m i { opacity: 0; transform: translateY(-26px); }
}
@keyframes abPh { from { transform: translateY(0); opacity: 1; } 92% { opacity: 1; } to { transform: translateY(100%); opacity: 0; } }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  [class*="ab-"], [class*="ab-"]::before, [class*="ab-"]::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- print */
@media print {
  .ab-strat, .ab-floor, .ab-aside, .ab-window, .ab-change, .ab-echo, .ab-buoys, .ab-grid24, .ab-stack, .ab-strands, .ab-depth, .ab-bigtag, .ab-num, .ab-dots { display: none !important; }
  :is(.ab-chart, .ab-reel) *, :is(.ab-chart, .ab-reel) *::before, :is(.ab-chart, .ab-reel) *::after { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  .resg-case .res-prose > :is(.ab-chart, .ab-reel) { width: auto; margin-inline: 0; }
  .ab-s02-grid, .ab-p01-grid, .ab-card, .ab-friction, .ab-styles { display: block !important; }
  .ab-panel, .ab-card { border: 1px solid #999 !important; break-inside: avoid; }
  .ab-card { position: static !important; }
  .ab-switch { height: auto !important; }
  .ab-tbl, .ab-tbl thead, .ab-tbl tbody, .ab-tbl tr { display: revert !important; }
  .ab-tbl th, .ab-tbl td { display: table-cell !important; border: 1px solid #999 !important; padding: 6px 8px !important; text-align: left !important; }
  .ab-tbl thead { position: static !important; width: auto !important; height: auto !important; clip-path: none !important; }
  .ab-tbl td::before { content: none !important; }
  .ab-film7 { display: block !important; }
  .ab-film7 li { aspect-ratio: auto !important; display: list-item !important; padding: 2px 0 !important; border: 0 !important; }
  .ab-ros li > i { display: none !important; }
  .ab-catch { color: #000 !important; background: none !important; text-decoration: underline; }   /* in the article these sit in ordinary paragraphs */
}

/* ==========================================================================
   THE SOUNDING LINE in the article (case-study.js; About's about.js F1 ported)
   Every rule is scoped to .resg-case or to classes only case-study.js sets, so About is untouched.
   Default CSS = final state. Head-driven pre-states exist only under html.cs-live.
   ========================================================================== */

/* ---------------------------------------------------------------- the lane (pure CSS in every mode: nothing shifts after load) */
/* About kept an empty lane left of its column. The article's 1040 column leaves one at >=1360; below that the intro and
   chapters reserve --cs-r on the left (>=1100: >=120px with labels · 761-1099: 40px · <=760: 18px, as on About). */
.resg-case { --cs-r: 0px; --cs-gap: 24px; }
@media (min-width: 1100px) and (max-width: 1379px) { .resg-case { --cs-r: clamp(0px, 1360px - 100vw, 144px); } }
@media (min-width: 761px) and (max-width: 1099px) { .resg-case { --cs-r: 56px; --cs-gap: 16px; } }
@media (max-width: 760px) { .resg-case { --cs-r: 30px; --cs-gap: 12px; } }
.resg-case .res-intro, .resg-case .res-ch { padding-left: var(--cs-r); }
@media (max-width: 1099px) { .resg-case .res-hero { padding-left: var(--cs-r); } }   /* the title lines up with the column below */
/* the article's own footer and the related reading follow the shifted column */
.resg-case .res-credits { padding-left: calc(16px + var(--cs-r)); }
.resg-case .res-rel { width: min(1060px, 100% - 12px - var(--cs-r)); position: relative; left: calc(var(--cs-r) / 2); }
/* chapters touch, so the line runs on across the seams (a figure's bottom margin would otherwise collapse out between them) */
.resg-case .res-ch { display: flow-root; }
.resg-case .resg-finale { width: min(860px, 100vw - 32px - var(--cs-r)); margin-inline: calc(50% - min(430px, (100vw - var(--cs-r)) / 2 - 16px)); }

/* the edit-timeline rail moves to the right edge here (About did the same), so the left lane stays empty */
@media (min-width: 1380px) {
  .resg-case .rail { left: auto; right: 26px; }
  .resg-case.res-art .rail a { padding-inline: 18px 2px; }
  .resg-case.res-art .rail a span { left: auto; right: calc(100% - 6px); }
  .resg-case .rail a span { transform: translateX(6px); }
  .resg-case .res-tc { left: auto; right: -2px; }
  .resg-case .rail:hover a span { transform: none; }
  /* the hero plate bleeds to the right edge: keep the rail off it while the opening is on screen (keyboard focus still shows it) */
  .resg-case .rail:not(:focus-within):has(li:first-child a.on) { opacity: 0; pointer-events: none; }
}

/* ---------------------------------------------------------------- the line */
.resg-case .res-ch > :is(.res-prose, .res-card) { position: relative; z-index: 1; }
svg.cs-ln, svg.cs-ghost { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.cs-ln .cs-ln-g { fill: none; stroke: var(--accent); stroke-width: 6; stroke-opacity: .18; stroke-linecap: round; }
.cs-ln .cs-ln-c { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.cs-ghost path { fill: none; stroke: var(--text); stroke-opacity: .08; stroke-width: 1; stroke-dasharray: 2 6; }
.cs-hk .cs-tt { fill: none; stroke: var(--accent); stroke-opacity: .6; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease); }
.cs-hk .cs-hj { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cs-hk text { font: 500 .56rem var(--mono); letter-spacing: .1em; fill: var(--text2); transition: fill .6s; }
.cs-hk.hooked text { fill: var(--accent-t); }
html.cs-live .cs-hk:not(.hooked) .cs-tt { stroke-dashoffset: 1; }

/* static fallback (JS off, reduced motion, save-data): a quiet straight line down the lane, as About had */
html:not(.cs-live) .resg-case .res-ch::before {
  --cs-lr: calc(var(--cs-r) + max(16px, (100% - var(--cs-r) - 1040px) / 2) - var(--cs-gap));
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px; z-index: 0; pointer-events: none;
  left: calc((max(16px, var(--cs-lr) - 220px) + var(--cs-lr)) / 2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 30%, transparent));
}

/* water: depth keys darken the screen toward S-02 and lift it through production (replaces the static band while live).
   No z-index on main: main is position: relative, so its content paints after the fixed water (inserted after .ambient). */
.cs-water { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; }
html.cs-live .cs-water { display: block; }
html.cs-live .resg-case .res-ch.cs-deep::after { content: none; }
.cs-water i { position: absolute; inset: 0; opacity: 0; }
.cs-water-w { background: linear-gradient(180deg, rgba(16, 35, 42, .3), rgba(16, 35, 42, .95)); }
.cs-water-d { background: radial-gradient(140% 100% at 50% 110%, rgba(24, 58, 102, .8), rgba(14, 30, 58, .55) 55%, rgba(8, 14, 28, .25)); }

/* the sinker: weighted for the whole case (About weighted it in its section 02, before the case began) */
.cs-sinker { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; display: none; will-change: transform; }
html.cs-live .cs-sinker { display: block; }
.cs-sinker i {
  display: block; width: 12px; height: 12px; margin: -9px 0 0 -6px; border-radius: 0 50% 50% 50%;
  transform: rotate(45deg) scale(1.25); background: var(--teal); box-shadow: 0 0 22px 2px var(--teal), 0 0 3px #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s;
}
html:is(.cs-pre, .cs-docked) .cs-sinker i { opacity: 0; }
@media (max-width: 760px) { .cs-sinker i { width: 10px; height: 10px; margin: -8px 0 0 -5px; } }

/* ---------------------------------------------------------------- head-driven states (.hooked from case-study.js) */
/* false floor: intact until the line reaches it, then it splits where the line crosses (case-study.js writes --cs-fx0/--cs-fxm) */
html.cs-live .ab-floor::before { left: var(--cs-fx0, 0px); width: calc(var(--cs-fxm, 16%) - var(--cs-fx0, 0px) - 3px); transform: translateX(-22px) rotate(-4deg); }
html.cs-live .ab-floor::after { left: calc(var(--cs-fxm, 16%) + 3px); transform: translateX(22px) rotate(.8deg); }
html.cs-live .ab-floor:not(.hooked)::before, html.cs-live .ab-floor:not(.hooked)::after,
html.cs-live .ab-floor:not(.hooked) .ab-buoy { transform: none; opacity: 1; text-decoration-color: transparent; }
html.cs-live .ab-floor:not(.hooked) .ab-floor-l { opacity: 0; }
/* static (no line engine): the floor still breaks on the static lane line, as on About (lane = the formula of .res-ch::before) */
html:not(.cs-live) .resg-case .ab-floor::before, html:not(.cs-live) .resg-case .ab-floor::after {
  --lr: calc(var(--cs-r) + max(16px, (100vw - var(--cs-r) - 1040px) / 2) - var(--cs-gap));
  --ll: max(16px, var(--lr) - 220px);
  --pl: calc(var(--cs-r) + (100vw - var(--cs-r) - 100%) / 2);   /* the column's left edge; 100% = the floor (column) width */
}
html:not(.cs-live) .resg-case .ab-floor::before { left: calc(var(--ll) - var(--pl)); width: calc((var(--lr) - var(--ll)) / 2 - 3px); transform: translateX(-22px) rotate(-4deg); }
html:not(.cs-live) .resg-case .ab-floor::after { left: calc((var(--ll) + var(--lr)) / 2 - var(--pl) + 3px); transform: translateX(22px) rotate(.8deg); }
/* lamps light when their paragraph is hooked (data-t on the paragraph targets the aside) */
html.cs-live .ab-aside:not(.hooked) .ab-lamp { color: var(--text2); }
html.cs-live .ab-aside:not(.hooked) .ab-lamp::before { background: transparent; box-shadow: none; border-color: var(--line2); }
/* S-02 month ticks (data-mark) */
html.cs-live .ab-tick:not(.hooked)::before { color: var(--text2); }
html.cs-live .ab-tick:not(.hooked)::after { background: var(--line2); box-shadow: none; }
/* Scenario 01 step anchors (the line passes them; step 2 carries the "Trevor changes one fact" hook) */
.ab-step { position: absolute; left: 0; top: var(--t); width: 1px; height: 1px; pointer-events: none; }

/* ---------------------------------------------------------------- one-shots at About's values */
/* corner brackets: visible without JS and under reduced motion (About), 30px fly-in */
html:not(.ready) .resg-case .ab-panel > .cb { opacity: .95; transform: none; }
@media (prefers-reduced-motion: reduce) { .resg-case .ab-panel > .cb { opacity: .95; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.ready .resg-case .ab-panel:not(.in) > .cb.tl { transform: translate(-30px, -30px); }
  html.ready .resg-case .ab-panel:not(.in) > .cb.br { transform: translate(30px, 30px); }
  /* paragraph focus pull (replaces the guides' colour brighten here; words never move) */
  html.ready.res-motion .resg-case .res-prose > p[data-io] { transition: opacity .9s var(--ease), filter .9s var(--ease); }
  html.ready.res-motion .resg-case .res-prose > p[data-io]:not(.in) { opacity: .35; filter: blur(3px); }
  html.ready.res-motion .resg-case .res-prose > p[data-io]:not(.in):focus-within { opacity: 1; filter: none; transition-duration: .2s; }   /* a focused link is never blurred */
  /* catch underlines draw when their paragraph is hooked */
  html.cs-live .resg-case [data-hook]:not(.hooked) .ab-catch { background-size: 0 1px; }
  /* chapter H2s: About's word-by-word reveal (.split) replaces the colour brighten */
  html.ready .resg-case .res-card:not(.in) h2.split { color: var(--text); }
}

/* ---------------------------------------------------------------- print */
@media print {
  svg.cs-ln, svg.cs-ghost, .cs-sinker, .cs-water { display: none !important; }
  .resg-case .res-ch::before { display: none !important; }
  .resg-case .res-intro, .resg-case .res-ch, .resg-case .res-hero { padding-left: 0 !important; }
  .resg-case .res-credits { padding-left: 16px !important; }
  .resg-case .res-rel { width: auto; left: 0; }
  .resg-case .res-prose > p { opacity: 1 !important; filter: none !important; }
  .resg-case .split .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .resg-case .resg-finale { width: auto; margin-inline: 0; }
}
