/* ==========================================================================
   Storyline & Sinker — About page ("Sounding Line")
   Loaded after /styles.css. Every class is prefixed ab-.
   Default CSS = final, visible state. Pre-reveal states exist only under
   html.ready.ab-motion (one-shots, pages.js [data-io] -> .in) and
   html.ab-live (head-driven, about.js .hooked).
   ========================================================================== */

/* ---------------------------------------------------------------- tokens + layout */
/* metric-matched fallback so the Instrument Serif swap does not re-wrap the H1 (CLS) */
@font-face { font-family: 'ab-serif-fb'; src: local('Iowan Old Style'), local('Georgia'); size-adjust: 75%; }
.ab {
  --serif: 'Instrument Serif', 'ab-serif-fb', 'Iowan Old Style', Georgia, serif;
  --g: 24px;
  --lane: clamp(120px, 14vw, 220px);
  --ink: #E6E5E0;
  --cg: clamp(12px, 3vw, 48px);
  --col2: calc(var(--lane) + var(--cg));
}
@media (max-width: 1099px) { .ab { --lane: 56px; } }
/* >= 1380 the rail's always-visible active label sits at the right edge: keep content clear of it */
@media (min-width: 1380px) and (max-width: 1719px) { .ab-wrap { padding-right: 76px; } }
@media (max-width: 760px) { .ab { --g: 16px; --lane: 18px; } }

@media (prefers-reduced-motion: no-preference) {
  html:has(body.ab) { scroll-behavior: smooth; }
}
#sample-research, .ab-sec, #ab-links { scroll-margin-top: 96px; }

.ab-skip {
  position: fixed; left: 12px; top: 12px; z-index: 120; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--teal); color: #071012; font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-160%);
}
.ab-skip:focus, .ab-skip:focus-visible { transform: none; outline-offset: 2px; }
.ab main:focus { outline: none; }

/* Chapter accent. styles.css eases the registered --accent on <html>, which re-styles the whole document on every
   frame of each 1.1s change (frames > 50ms at 4x CPU, spec §13.11). Here every section carries its own --accent, so
   only the fixed chrome reads the root value: the root snaps and the chrome eases (the .ab-where and the
   1380px rail rules repeat this in their own transition lists). */
html.ab-js { transition: none; }
.ab .top, .ab .ambient, .ab .rail { transition: --accent 1.1s cubic-bezier(.2, .7, .1, 1); }

.ab-sec { position: relative; overflow-x: clip; padding: clamp(88px, 13vh, 160px) 0; --accent-t: color-mix(in srgb, var(--accent) 76%, #fff); }
.ab-sec > .ab-wrap, .ab-sec > .ab-surface { position: relative; z-index: 1; }
.ab-wrap { width: min(1240px, 100% - 2 * var(--g)); margin-inline: auto; }
.ab-row { display: grid; grid-template-columns: var(--lane) minmax(0, 38rem) minmax(0, 1fr); column-gap: var(--cg); }
.ab-row > * { grid-column: 2; min-width: 0; }
.ab-row + .ab-row { margin-top: 1.6em; }
@media (min-width: 1100px) {
  .ab-row > .ab-aside, .ab-row > .ab-portrait { grid-column: 3; }
  .ab-row--fig > figure { grid-column: 2 / -1; }
}
@media (max-width: 760px) { .ab-row { grid-template-columns: var(--lane) minmax(0, 1fr); } }

/* blocks placed in the same grid without their own row: start at column 2 */
.ab-wrap > .ab-strat, .ab-wrap > .ab-floor, .ab-wrap > .ab-film, .ab-wrap > .ab-recap, .ab-wrap > .ab-plate { margin-left: var(--col2); }
@media (max-width: 1099px) {
  .ab-wrap > .ab-strat, .ab-wrap > .ab-floor, .ab-wrap > .ab-film, .ab-wrap > .ab-recap, .ab-wrap > .ab-plate { max-width: 38rem; }
}

/* ---------------------------------------------------------------- type */
.ab-eyebrow { margin-bottom: 30px; }
.ab-h1 { font: 400 clamp(2.5rem, 1.3rem + 5vw, 6rem)/.98 var(--serif); letter-spacing: -.03em; max-width: 12em; text-wrap: balance; }
.ab-h2 { font: 400 clamp(2.1rem, 4.4vw, 4.2rem)/1.04 var(--serif); letter-spacing: -.02em; margin-bottom: 40px; max-width: 14em; text-wrap: balance; }
.ab-lead { font: 400 clamp(1.35rem, 1.1rem + .9vw, 1.8rem)/1.38 var(--serif); color: var(--text); max-width: 38rem; }
.ab-p { color: var(--ink); font-size: 1.0625rem; line-height: 1.7; max-width: 38rem; }
.ab-lead + .ab-p { margin-top: 1.5em; }
.ab-p + .ab-p { margin-top: 1.1em; }
.ab-ch { display: block; margin-bottom: 22px; font: 500 .66rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-t); }
.ab-ch::before { content: attr(data-n) " · " attr(data-l); }
.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-k { max-width: none; margin-bottom: 14px; font: 500 .62rem/1.55 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-t); }

/* ---------------------------------------------------------------- 00 surface */
.ab-hero { padding-bottom: 0; }
.ab-hero > .ab-wrap .ab-txt { grid-column: 2 / -1; }
div.ab-surface {  /* div: html.ab-surface is the "near the surface" state class */
  position: relative; margin-top: clamp(48px, 8vh, 96px); padding: 64px 0 clamp(40px, 6vh, 72px);
  background: linear-gradient(180deg, rgba(16, 35, 42, .62), rgba(16, 35, 42, .22) 55%, rgba(16, 35, 42, 0));
}
.ab-waterline { position: absolute; left: 0; right: 0; top: -12px; height: 24px; pointer-events: none; }
.ab-waterline svg { display: block; width: 200%; height: 100%; overflow: visible; }
.ab-waterline path { fill: none; stroke: var(--teal); stroke-opacity: .55; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ab-wl-l { position: absolute; right: max(var(--g), (100% - 1240px) / 2); bottom: calc(100% + 8px); font: 500 .58rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text2); white-space: nowrap; }
.ab-wl-l::before { content: attr(data-l); }

.ab-route { margin: 52px 0 0 var(--col2); max-width: 640px; }
.ab-route svg { display: block; width: 100%; height: auto; overflow: visible; }
.ab-route-p { fill: none; stroke: var(--accent); stroke-opacity: .75; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .1 6; }
.ab-route-n circle { fill: var(--text2); }
.ab-rt { font: 500 9.5px var(--mono); letter-spacing: .14em; fill: var(--text2); }
.ab-rt-deep { fill: var(--accent-t); }
.ab-route-dot { display: none; fill: var(--teal); filter: drop-shadow(0 0 4px var(--teal)); }
html.ab-live .ab-route-dot { display: inline; }
@media (max-width: 760px) {
  .ab-route { margin-top: 36px; }
  .ab-rt-mid { display: none; }
  .ab-rt { font-size: 19px; transform: translateY(13px); }
}

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

/* static fallback: no ab-live -> a quiet straight line in the lane + per-section tint */
html:not(.ab-live) .ab-sec:not(.ab-hero)::before,
html:not(.ab-live) .ab-hero::after {
  --wl: max(var(--g), (100% - 1240px) / 2);
  content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--wl) + var(--lane) * .5); width: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 30%, transparent));
}
html:not(.ab-live) .ab-hero::after { top: calc(clamp(130px, 19vh, 190px) + .35rem); }
html:not(.ab-live) .ab-sec:not(.ab-hero)::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--wash) calc(var(--tint) * 100%), transparent));
}
html:not(.ab-live) #real-content-plan::after {
  background: linear-gradient(180deg, transparent, rgba(24, 58, 102, .34) 18%, rgba(24, 58, 102, .34) 82%, transparent),
              linear-gradient(180deg, transparent, color-mix(in srgb, var(--wash) 80%, transparent));
}

/* water layers, sinker */
.ab-water { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; }
html.ab-live .ab-water { display: block; }
.ab-water i { position: absolute; inset: 0; opacity: 0; }
.ab-water-w { background: linear-gradient(180deg, rgba(16, 35, 42, .3), rgba(16, 35, 42, .95)); }
.ab-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)); }

.ab-sinker { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; display: none; will-change: transform; }
html.ab-live .ab-sinker { display: block; }
.ab-sinker i {
  display: block; width: 12px; height: 12px; margin: -9px 0 0 -6px; border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  background: var(--teal); box-shadow: 0 0 12px var(--teal), 0 0 2px #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s;
}
html.ab-weighted .ab-sinker i { transform: rotate(45deg) scale(1.25); box-shadow: 0 0 22px 2px var(--teal), 0 0 3px #fff; }
html.ab-docked .ab-sinker i { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.ab-surface .ab-sinker i { animation: abBob 3.2s ease-in-out infinite; }
  html.ab-motion.ab-surface .ab-waterline svg { animation: abWave 14s linear infinite; }
}
@keyframes abBob { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 2px; } }
@keyframes abWave { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .ab-sinker i { width: 10px; height: 10px; margin: -8px 0 0 -5px; } }

/* letterbox + H1 rack focus (load) */
.ab-lb { display: none; position: fixed; left: 0; right: 0; height: 15vh; background: #020304; z-index: 90; pointer-events: none; }
.ab-lb-t { top: 0; transform-origin: top; } .ab-lb-b { bottom: 0; transform-origin: bottom; }
@media (max-width: 760px) { .ab-lb { height: 8vh; } }
@media (prefers-reduced-motion: no-preference) {
  html.ab-motion .ab-lb { display: block; animation: abLbOpen 1.6s var(--ease) .15s forwards; }
  html.ab-motion .ab-h1 { animation: abRack 1.1s var(--ease) .2s both; }
}
@keyframes abRack { from { filter: blur(6px); } }
@keyframes abLbOpen { to { transform: scaleY(0); } }  /* lbOpen, as a transform: no layout shift */

/* ---------------------------------------------------------------- wayfinding */
.ab-where {
  position: fixed; top: 76px; right: var(--g); z-index: 58; display: none; align-items: center; gap: 10px; padding: 8px 12px;
  background: rgba(11, 13, 16, .74); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 .58rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text2);
  opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease), --accent 1.1s cubic-bezier(.2, .7, .1, 1); pointer-events: none;
}
html.ab-js .ab-where { display: flex; }
.ab-where.on { opacity: 1; transform: none; }
.ab-where::before { content: attr(data-n) " / 05 · " attr(data-l); }
.ab-where svg { width: 60px; height: 16px; flex: none; overflow: visible; }
.ab-where path { fill: none; stroke: var(--line2); stroke-width: 1.2; }
.ab-where circle { fill: var(--accent); }
@media (min-width: 1380px) { html.ab-js .ab-where { display: none; } }
/* 1100-1379: the chip sits top-right over column 3; it steps aside while the Scenario 01 card is pinned beneath it
   (ab-staging) and while a panel, figure, the portrait or any text block runs under it (ab-under, about.js) */
html.ab-staging .ab-where.on, html.ab-under .ab-where.on { opacity: 0; }
/* <= 1099: the reading column runs to the right edge, so the chip becomes a vertical readout in the empty
   left margin (gutter + lane), bottom-up like a film-edge marking; it never sits over copy */
@media (max-width: 1099px) {
  .ab-where {
    top: auto; right: auto; left: max(4px, var(--g) - 12px); bottom: calc(16px + env(safe-area-inset-bottom));
    writing-mode: vertical-rl; padding: 10px 4px; transform: rotate(180deg) translateY(-6px);
  }
  .ab-where.on { transform: rotate(180deg); }
  .ab-where svg { display: none; }
}
@media (max-width: 760px) { .ab-where { padding: 9px 3px; font-size: .54rem; letter-spacing: .12em; } }

.ab .prog { height: 2px; }
.ab .prog b { position: absolute; bottom: 0; width: 1px; height: 5px; background: var(--line2); transition: background .4s; pointer-events: none; }
.ab .prog b.passed { background: var(--teal); box-shadow: 0 0 6px var(--teal); }

@media (min-width: 1380px) {
  .ab .rail { left: auto; right: 28px; transition: opacity .5s var(--ease), --accent 1.1s cubic-bezier(.2, .7, .1, 1); }
  .ab .rail .rl { display: none; }
  .ab .rail ol { height: 56vh; gap: 3px; }
  .ab .rail li { display: flex; flex: var(--w, 1) 1 0; min-height: 0; justify-content: flex-end; transform: translateX(calc(var(--d, 0) * -24px)); }
  .ab .rail a { flex-direction: row-reverse; align-items: stretch; gap: 12px; min-height: 0; }
  .ab .rail a i { width: 3px; height: auto; border: 0; border-radius: 0; background: var(--line2); transform: none; box-shadow: none; }
  .ab .rail a.on i { background: var(--accent); box-shadow: 0 0 10px var(--accent); transform: none; }
  .ab .rail a span { align-self: center; transform: translateX(6px); }
  .ab .rail:hover a span { transform: none; }
  .ab .rail a.on span, .ab .rail a:focus-visible span { opacity: 1; transform: none; }
  body.ab-at-end .rail:not(:focus-within) { opacity: 0; pointer-events: none; }
  .ab .rail:not(:has(a)) { display: none; }   /* JS off: no empty landmark */
}
.ab-h1:focus:not(:focus-visible), .ab-h2:focus:not(:focus-visible) { outline: none; }

.ab-back {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px;
  background: rgba(11, 13, 16, .88); border: 1px solid var(--teal); color: var(--teal);
  font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 40px -14px var(--teal);
}
.ab-back:hover { background: var(--teal); color: #071012; }
.ab-sec > .ab-wrap:has(.ab-back) { z-index: 3; }
@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; } }

/* ---------------------------------------------------------------- photos */
.ab-portrait, .ab-plate { position: relative; margin: 0; }
.ab-portrait-frame, .ab-plate-frame { position: relative; overflow: hidden; background: #050607; }
.ab-portrait-frame { aspect-ratio: 4 / 5; }
.ab-plate-frame { aspect-ratio: 16 / 9; }
.ab-portrait img, .ab-plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.82) contrast(1.06) brightness(.82);
}
.ab-portrait img { object-position: 55% 40%; }
.ab-grade { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color; background: linear-gradient(200deg, rgba(24, 58, 102, .35), rgba(24, 58, 102, 0) 70%); }
.ab-portrait figcaption, .ab-plate figcaption { margin-top: 10px; max-width: none; font: 500 .62rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text2); }
.ab .cb { opacity: .95; transform: none; pointer-events: none; }
.ab-portrait > .cb.tl, .ab-plate > .cb.tl { top: -8px; left: -8px; }
.ab-portrait > .cb.br, .ab-plate > .cb.br { bottom: 26px; right: -8px; }

.ab-row--person { align-items: start; }
@media (min-width: 1100px) {
  .ab-row--person > * { grid-row: 1; }
  .ab-portrait { position: sticky; top: 18vh; align-self: start; width: min(100%, 320px); }
}
@media (max-width: 1099px) {
  .ab-portrait { max-width: 420px; margin-bottom: 44px; }
}
@media (max-width: 760px) { .ab-portrait { max-width: none; } }

.ab-plate { margin-bottom: 64px; }
@media (min-width: 1100px) { .ab-wrap > .ab-plate { max-width: 940px; } }
.ab-plate-water { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(24, 58, 102, .9), rgba(8, 22, 46, .97)); transform: translateY(101%); transition: transform 1.4s var(--ease) .15s; }
.ab-bar { position: absolute; left: 0; right: 0; height: 9%; z-index: 3; background: #020304; transition: transform 1.4s var(--ease) .15s; }
.ab-bar-t { top: 0; transform-origin: top; } .ab-bar-b { bottom: 0; transform-origin: bottom; }

/* ---------------------------------------------------------------- 02 knowledge */
.ab-weigh { padding-top: 6px; }
.ab-beads { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 2px 0 26px 18px; border-left: 1px solid var(--line2); }
.ab-beads span { position: relative; padding: 6px 11px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(21, 25, 31, .7); font: 500 .58rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.ab-beads span::before { content: attr(data-l); }
.ab-beads span::after { content: ''; position: absolute; left: -19px; top: 50%; width: 18px; height: 1px; background: var(--line2); }
.ab-weight { position: absolute; left: -6px; bottom: -4px; width: 11px; height: 11px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: transform .9s cubic-bezier(.3, 1.4, .5, 1) .45s, opacity .5s .45s; }
.ab-lamps { display: grid; gap: 10px; margin-top: 22px; }
.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); }
.ab-aside > .ab-lamp { margin-top: 8px; }
html.ab-live .ab-row:not(:has(.hooked)) .ab-lamp { color: var(--text2); }
html.ab-live .ab-row:not(:has(.hooked)) .ab-lamp::before { background: transparent; box-shadow: none; border-color: var(--line2); }
@media (max-width: 1099px) {
  .ab-aside { margin-top: 16px; }
  .ab-weigh { display: grid; gap: 10px; min-height: 72px; padding: 0; }
  .ab-beads { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; }
  .ab-beads span::after, .ab-weight { display: none; }
  .ab-lamps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
}

.ab-film { position: relative; display: flex; align-items: flex-end; gap: 12px; margin-top: 56px; padding-bottom: 30px; }
.ab-film-card { position: relative; width: 104px; height: 74px; padding: 10px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(21, 25, 31, .8); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.ab-film-card::before { content: attr(data-l); display: block; font: 500 .56rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-t); }
.ab-film-card::after { content: ''; position: absolute; left: 10px; right: 22px; bottom: 12px; height: 14px; background: repeating-linear-gradient(180deg, var(--line2) 0 1px, transparent 1px 6px); }
.ab-film-rule { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px dashed var(--line2); }
.ab-film-rule::before { content: attr(data-l); position: absolute; right: 0; top: 8px; font: 500 .56rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text2); }
html.ab-live .ab-film:not(.hooked) .ab-film-card { opacity: .3; transform: translateY(10px); }

/* 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-wrap > .ab-strat::after { content: ''; position: absolute; right: 100%; top: 0; width: var(--col2); border-top: 1px dashed var(--line); }
.ab-strat--in { margin: 52px 0 36px; }

/* ---------------------------------------------------------------- 03 false floor */
.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: calc(-1 * var(--col2)); width: calc(var(--lane) * .5 - 3px); transform: translateX(-22px) rotate(-4deg); transform-origin: right center; }
.ab-floor::after { left: calc(-1 * var(--col2) + var(--lane) * .5 + 3px); right: 0; transform: translateX(22px) 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); }
html.ab-live .ab-floor:not(.hooked)::before, html.ab-live .ab-floor:not(.hooked)::after, html.ab-live .ab-floor:not(.hooked) .ab-buoy { transform: none; opacity: 1; text-decoration-color: transparent; }
html.ab-live .ab-floor:not(.hooked) .ab-floor-l { opacity: 0; }

/* ---------------------------------------------------------------- figures */
.ab-row--fig { margin-top: 56px; margin-bottom: 56px; }
.ab-row--fig + .ab-row { margin-top: 0; }
.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; }
.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-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(--teal); }
.ab-stamp--1::after { border-color: var(--teal); box-shadow: 0 0 12px -2px var(--teal); }
.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: the deepest point */
.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; }
html.ab-live .ab-tick:not(.hooked)::before { color: var(--text2); }
html.ab-live .ab-tick:not(.hooked)::after { background: var(--line2); box-shadow: none; }
.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 (min-width: 1100px) and (min-height: 720px) {
  html.ab-live .ab-depth { height: 90vh; }
  html.ab-live .ab-stats-col { position: sticky; top: 22vh; }
}
@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-step { position: absolute; left: 0; top: var(--t); width: 1px; height: 1px; pointer-events: none; }
.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; }
}
@media (min-width: 1100px) and (min-height: 720px) {
  html.ab-live.ab-pin .ab-card { position: sticky; top: 12vh; top: 12svh; }
}

/* 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); }

/* 03 window aside (>= 1100 only) */
.ab-window { display: none; }
@media (min-width: 1100px) {
  .ab-window { display: grid; justify-items: start; gap: 5px; padding-left: 14px; border-left: 1px solid var(--line2); }
  .ab-win-c { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; 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; align-items: center; gap: 8px; }
  .ab-win-m::before { content: attr(data-l); width: 2.2em; font: 500 .5rem/1 var(--mono); letter-spacing: .1em; color: var(--text2); }
  .ab-win-m i { display: block; width: 10px; 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); }
}

/* ---------------------------------------------------------------- 04 visible */
.ab-recap { display: flex; flex-wrap: wrap; gap: 8px 0; margin-bottom: 40px; }
.ab-recap li { display: inline-flex; align-items: center; font: 500 .6rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text2); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.ab-recap li::before { content: attr(data-l); }
.ab-recap li:not(:last-child)::after { content: ''; width: 22px; height: 1px; margin: 0 10px; background: var(--line2); }
.ab-recap li:last-child { color: var(--teal); }
.ab-recap li:nth-child(2) { transition-delay: 90ms; } .ab-recap li:nth-child(3) { transition-delay: 180ms; }
.ab-recap li:nth-child(4) { transition-delay: 270ms; } .ab-recap li:nth-child(5) { transition-delay: 360ms; }

.ab-links { display: flex; flex-wrap: wrap; gap: 4px 30px; max-width: none; margin-top: 28px; }

/* ---------------------------------------------------------------- 05 support */
.ab-support { padding-bottom: clamp(110px, 18vh, 200px); }
.ab-cta { margin-top: 38px; max-width: none; }
.ab .plink { padding-block: 11px; }   /* 44px hit area; vertical padding on an inline box does not move the line */
.ab-dock { gap: 14px; }
.ab-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 0 12px 2px rgba(255, 255, 255, .85); transition: background .5s, box-shadow .5s; }
html.ab-live:not(.ab-docked) .ab-dot { background: rgba(7, 16, 18, .35); box-shadow: none; }
@media (max-width: 760px) {
  .ab-cta .mag { display: block; }
  .ab-cta .btn { width: 100%; justify-content: center; }
}

/* nav guard: six links + Book */
@media (min-width: 981px) and (max-width: 1120px) {
  .ab .pk-nav { gap: 12px; }
  .ab .pk-nav a:not(.pk-book) { letter-spacing: .1em; }
  .ab .pk-nav .pk-book { padding: 0 12px; }
}

/* ---------------------------------------------------------------- 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,
.ab-portrait figcaption, .ab-plate figcaption { 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); } }

/* ---------------------------------------------------------------- one-shot pre-states (pages.js .in) */
@media (prefers-reduced-motion: no-preference) {
  html.ready.ab-motion .ab-p[data-io] { transition: opacity .9s var(--ease), filter .9s var(--ease); }
  html.ready.ab-motion .ab-p[data-io]:not(.in) { opacity: .35; filter: blur(3px); }

  html.ready.ab-motion .ab-route { transition: opacity 1s var(--ease) .2s; }
  html.ready.ab-motion .ab-route:not(.in) { opacity: 0; }

  html.ready.ab-motion :not(.in) > .cb { opacity: 0; transition: opacity 1.2s var(--ease) .3s, transform 1.4s var(--ease) .3s; }
  html.ready.ab-motion .ab-portrait:not(.in) > .cb.tl, html.ready.ab-motion .ab-plate:not(.in) > .cb.tl, html.ready.ab-motion .ab-panel:not(.in) > .cb.tl { transform: translate(-30px, -30px); }
  html.ready.ab-motion .ab-portrait:not(.in) > .cb.br, html.ready.ab-motion .ab-plate:not(.in) > .cb.br, html.ready.ab-motion .ab-panel:not(.in) > .cb.br { transform: translate(30px, 30px); }
  html.ready.ab-motion .ab-card > .cb { opacity: .95; }

  html.ready.ab-motion .ab-portrait-frame { transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
  html.ready.ab-motion .ab-portrait:not(.in) .ab-portrait-frame { opacity: 0; transform: translateY(26px); }

  html.ready.ab-motion .ab-weigh:not(.in) .ab-beads span { opacity: 0; transform: translateX(-14px); }
  html.ready.ab-motion .ab-weigh .ab-beads span:nth-child(2) { transition-delay: 120ms; }
  html.ready.ab-motion .ab-weigh .ab-beads span:nth-child(3) { transition-delay: 240ms; }
  html.ready.ab-motion .ab-weigh:not(.in) .ab-weight { opacity: 0; transform: translateY(-22px) rotate(45deg); }

  html.ready.ab-motion .ab-s01:not(.in) .ab-stamp::after { opacity: 0; transform: scale(1.7) rotate(-9deg); }
  html.ready.ab-motion .ab-s03:not(.in) .ab-sd { stroke-dashoffset: 1; }
  html.ready.ab-motion .ab-s04:not(.in) .ab-stack { transform: scaleX(0); }
  html.ready.ab-motion .ab-p01:not(.in) .ab-g-r i { border-color: var(--line2); background: transparent; box-shadow: none; }
  html.ready.ab-motion .ab-p03:not(.in) .ab-film7 li { border-color: var(--line2); box-shadow: none; }
  html.ready.ab-motion .ab-p04 .ab-ros li > i { transition: background .4s, box-shadow .4s; transition-delay: calc(var(--s) * 2.4s + .2s); }
  html.ready.ab-motion .ab-p04:not(.in) .ab-ros li > i { background: var(--line2); box-shadow: none; }
  html.ready.ab-motion .ab-p04.in .ab-ros::after { animation: abPh 2.4s linear .2s both; }
  html.ready.ab-motion .ab-p05:not(.in) .ab-chips li::before { opacity: 0; transform: rotate(45deg) scale(.3); }
  html.ready.ab-motion .ab-window:not(.in) .ab-win-m i { opacity: 0; transform: translateY(-26px); }

  html.ready.ab-motion .ab-recap:not(.in) li { opacity: 0; transform: translateY(10px); }
  html.ready.ab-motion .ab-plate:not(.in) .ab-plate-water { transform: none; }
  html.ready.ab-motion .ab-plate:not(.in) .ab-bar { transform: scaleY(1.4222); }

  html.ab-live [data-hook]:not(.hooked) .ab-catch { background-size: 0 1px; }
  html.ab-docked .ab-dot { animation: abIgnite 1.1s var(--ease) 1; }
}
@keyframes abPh { from { transform: translateY(0); opacity: 1; } 92% { opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
@keyframes abIgnite { 0% { transform: scale(.4); } 45% { transform: scale(1.8); } 100% { transform: none; } }

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

/* ---------------------------------------------------------------- print */
@media print {
  .ambient, .grain, .vignette, .ab-water, .ab-sinker, .ab-where, .ab-lb, .rail, .top, svg.ab-ln, svg.ab-ghost,
  .ab-route, .ab-strat, .ab-floor, .ab-film, .ab-recap, .ab-change, .cb, .pk-foot, .ab-back, .ab-skip,
  .ab-aside, .ab-grid24, .ab-stack, .ab-strands, .ab-depth, .ab-bigtag, .ab-waterline, .ab-num, .ab-dots, .ab-plate-water, .ab-bar { display: none !important; }
  html, body, .ab { background: #fff !important; color: #000 !important; }
  .ab *, .ab *::before, .ab *::after { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  .ab-sec::before, .ab-sec::after, .ab-hero::after, .pk-hero::before { display: none !important; }
  .ab-sec { padding: 24px 0; }
  .ab-row, .ab-s02-grid, .ab-p01-grid, .ab-card, .ab-friction, .ab-styles { display: block !important; }
  .ab-wrap > * { margin-left: 0 !important; }
  .ab-p { opacity: 1 !important; filter: none !important; }
  .ab-h1 { animation: none !important; filter: none !important; }
  .split .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ab-panel, .ab-card { border: 1px solid #999 !important; break-inside: avoid; }
  .ab-portrait, .ab-stats-col { position: static !important; }
  .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; }
  .btn { border: 1px solid #000 !important; }
}
