/* connections.html: documented connections (direction.md 5.5 + orchestrator rulings).
   Page-only CSS on top of shared/ratc.css. The finished, still page is the default;
   motion lives in the block at the end, behind the reduced-motion and Still guards. */

/* ---------- shared bits on this page ---------- */
.cx-first, .cx-last { display: block; }
.cx-label {
  display: inline-block; max-width: 100%;
  padding: 4px 9px 3px;
  background: var(--ink-plum); border: 1px solid var(--bone);
  font: 600 .875rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream); text-wrap: balance;
}

/* every section on this page uses the wide container, so Memphis margins are measured from it */
.cx-open, .cx-boardsec, .cx-listsec, .cx-out { --wrap: var(--w-wide); }

/* ---------- 1. Opening ---------------------------------------------------- */
.cx-open { padding-top: clamp(28px, 4.4vw, 64px); padding-bottom: clamp(56px, 6vw, 80px); }
.cx-open__kicker-out { display: none; margin: 0 0 12px; }
.cx-open__art {
  container-type: inline-size;
  aspect-ratio: 2.15 / 1;
  border-radius: var(--radius-img);
  --grain-opacity: .22;
}
.cx-open__art > img { height: 100%; object-fit: cover; object-position: 50% 38%; }
.cx-open__card { position: absolute; inset: 0; z-index: 3; color: var(--ink-plum); --focus: var(--ink-plum); }
/* kicker above the art's own string, between the two drawn hearts */
.cx-open__kicker {
  position: absolute; left: 30%; right: 30%; top: 15%;
  margin: 0; text-align: center; color: var(--ink-plum);
  font-size: max(.875rem, 1.35cqi); letter-spacing: .14em;
}
/* her line, set in the blank card under the string (ink plum on cream 13.57:1) */
.cx-hl {
  position: absolute; left: 24.5%; right: 22%; top: 37%; bottom: 9%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4cqi;
  margin: 0;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  color: var(--ink-plum); line-height: .9; letter-spacing: .004em;
  --reg-a: var(--lift-purple); --reg-b: var(--slate-teal);
}
.cx-hl__l { display: block; white-space: nowrap; }
.cx-hl__l1 { font-size: 3.7cqi; letter-spacing: .03em; }
.cx-hl__l2 { font-size: 6.2cqi; }
.cx-hl__l3 { font-size: 7.6cqi; }
.cx-hl > .reg__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4cqi; }

.cx-open__foot {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 32px;
  margin-top: 22px;
}
.cx-legend { margin: 0 0 34px; max-width: none; flex: 0 1 auto; color: var(--bone); line-height: 1.55; }
.cx-legend__dot { padding: 0 .35em; color: var(--mustard); }
.cx-open__jump { margin: 0; flex: none; }
.cx-open__jump .link-arrow { font-size: 1.0625rem; }

/* ---------- 2. Board and two-shot ---------------------------------------- */
html:not(.js) .cx-boardsec { display: none; }       /* without scripts the list below is the whole page */
.cx-boardsec { padding-top: clamp(64px, 6vw, 96px); }
.cx-boardsec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.cx-boardsec__hint { margin: 0; color: var(--lift-teal); }

.cx-stage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 44px); align-items: stretch; }

/* the board: an ink plum surface with Memphis woven into it, a bone frame, cards pinned in a fixed grid */
.cx-board {
  position: relative; isolation: isolate;
  padding: 84px clamp(28px, 3vw, 44px) 84px;   /* top and bottom margins are lanes too: room for a two-line label */
  background: var(--ink-plum);
  border: 2px solid var(--bone);
  min-width: 0;
}
.cx-board::before { /* low-contrast pluses and pixel squares, woven into the surface (1.3:1 on ink plum) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(118deg, #3D2B38 0 55%, #2A343C 92%);
  -webkit-mask: var(--mp-scatter) 0 0 / 220px 220px repeat;
  mask: var(--mp-scatter) 0 0 / 220px 220px repeat;
  opacity: .9;
}
.cx-board::after { /* weathered stock on the board surface only (never on the cards' text: cards sit above it) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/texture/grain-256.webp") 0 0 / 256px 256px repeat;
  mix-blend-mode: overlay; opacity: .16;
}
.cx-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(34px, 6.4%, 52px); row-gap: clamp(96px, 9.4vw, 136px);   /* the gaps are the lanes strings travel in */
}
.cx-grid > li { display: flex; min-width: 0; }
.cx-card {
  position: relative; z-index: 3; flex: 1 1 auto; min-width: 0;   /* above the strings: a string that passes a card goes behind it, never across a name */
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 88px; padding: 14px 14px 12px;
  background: var(--night-plum); color: var(--bone);
  border: 2px solid var(--bone); border-radius: 0;
  text-align: left; font-family: var(--font-display); text-transform: uppercase; line-height: .95;
}
.cx-card { container-type: inline-size; }
.cx-card .cx-first { font-size: clamp(1rem, 12cqi, 1.125rem); letter-spacing: .04em; }
.cx-card .cx-last { font-size: clamp(1.25rem, 25cqi, 2.25rem); letter-spacing: .01em; white-space: nowrap; }
.cx-card:hover { background: var(--wine); }
.cx-card.is-chosen { background: var(--bone); color: var(--ink-plum); }
.cx-card.is-chosen:hover { background: var(--cream); }
.cx-card.is-dim { background: var(--ink-plum); border-style: dashed; border-color: var(--dusk-violet); color: #8E7A82; } /* 4.65:1 on ink plum: dimmed, still readable */
.cx-card.is-dim:hover { background: var(--night-plum); color: var(--bone); border-color: var(--bone); }
.cx-card.is-active::after { content: ""; position: absolute; inset: 4px; border: 2px solid var(--mustard); pointer-events: none; }

.cx-strings { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cx-strings path, .cx-shot__string path, .thread__string path { fill: none; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.cx-edge { stroke: var(--bone); stroke-width: 5px; }
.cx-line { stroke: var(--heart-red); stroke-width: 3px; }
.cx-s.is-active .cx-edge { stroke-width: 7px; }
.cx-s.is-active .cx-line { stroke-width: 5px; }
.cx-pins { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cx-pin { fill: var(--heart-red); stroke: var(--bone); stroke-width: 2px; transform-box: fill-box; transform-origin: center; }
.cx-strings.is-hovering .cx-s:not(.is-hot) { opacity: .45; }
/* the overview (no name chosen): all 12 strings, settled to thin and quiet, no labels */
.cx-ovg.is-quiet .cx-o { opacity: .62; }
.cx-ovg.is-quiet .cx-o .cx-edge { stroke-width: 3px; }
.cx-ovg.is-quiet .cx-o .cx-line { stroke-width: 1.5px; }
.cx-ovp.is-quiet .cx-pin { opacity: .62; transform: scale(.55); }
.cx-ovg.is-off, .cx-ovp.is-off { opacity: 0; visibility: hidden; }

.cx-tags { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
/* board labels: a touch smaller than the list's, in four shapes the layout can choose from (one line, wide, narrow, tight) */
.cx-tag { position: absolute; left: 0; top: 0; max-width: 30ch; padding: 3px 7px 2px; font-size: .8125rem; line-height: 1.25; letter-spacing: .05em; pointer-events: auto; cursor: pointer; text-align: center; }
.cx-tag--line { max-width: none; white-space: nowrap; }
.cx-tag--narrow { max-width: 17ch; }
.cx-tag--tight { max-width: 11ch; }
.cx-tag.is-active { border: 2px solid var(--mustard); padding: 2px 6px 1px; }
.cx-tags.is-hovering .cx-tag:not(.is-hot) { opacity: .55; }

/* the two-shot panel: a folder of the chosen person's documented relationships */
.cx-panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 100%; }
.cx-panel__empty { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
/* the intro folder (before a name is chosen): the same folder as the two-shot, solid, never a wireframe */
.cx-intro__tabs { display: flex; padding: 0 6px; }
.cx-intro__tabs span { display: block; width: 132px; height: 34px; background: var(--mustard); clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 100%, 0 100%); }
.cx-intro__body {
  position: relative; flex: 1 1 auto; display: flex; flex-direction: column; gap: 22px;
  padding: 28px clamp(18px, 2.2vw, 30px) 28px;
  background: var(--night-plum); border: 2px solid var(--bone); margin-top: -2px;
}
.cx-intro__body::after { /* the folder foot: pixel squares in the leftover space only, never under text */
  content: ""; flex: 0 1 96px; min-height: 0; pointer-events: none;
  margin: auto calc(-1 * clamp(18px, 2.2vw, 30px)) -28px;
  background: #4B3745;
  -webkit-mask: var(--mp-pixel) 0 100% / 192px 96px repeat-x; mask: var(--mp-pixel) 0 100% / 192px 96px repeat-x;
}
.cx-intro__line { margin: 0; max-width: 24ch; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); line-height: 1.4; color: var(--cream); text-wrap: balance; }
.cx-intro__key { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: grid; gap: 14px; border-top: 2px solid var(--dusk-violet); }   /* the key sits at the folder's foot when the folder is tall */
.cx-key { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; }
.cx-key .label { color: var(--bone); line-height: 1.45; }
.cx-key__art { width: 96px; height: 40px; overflow: visible; }
.cx-key__art path { fill: none; stroke-linecap: round; }
.cx-key__art .cx-edge { stroke-width: 5px; }
.cx-key__art .cx-line { stroke-width: 3px; }
.cx-key__card { fill: var(--ink-plum); stroke: var(--bone); stroke-width: 2px; }

.cx-panel__full { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.cx-panel__head { display: grid; gap: 6px; margin-bottom: 14px; }
.cx-panel__head .label { color: var(--lift-teal); }
.cx-panel__who { font: 400 var(--fs-h2)/1 var(--font-display); text-transform: uppercase; color: var(--bone); text-wrap: balance; }
.cx-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 4px; padding: 0 6px; position: relative; z-index: 1; }
.cx-tab { min-height: 40px; }
.cx-tab[aria-selected="true"]::before { background: var(--bone); }
.cx-tab[aria-selected="true"] { z-index: 1; }
.cx-shot {
  position: relative; flex: 1 1 auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px clamp(18px, 2.2vw, 30px) 28px;
  background: var(--night-plum); border: 2px solid var(--bone);
  margin-top: -2px;
}
.cx-shot::after { /* the empty foot of the folder: pixel squares woven into leftover space only, never under text */
  content: ""; flex: 0 1 96px; min-height: 0; pointer-events: none;
  margin: auto calc(-1 * clamp(18px, 2.2vw, 30px)) -28px;
  background: #4B3745;
  -webkit-mask: var(--mp-pixel) 0 100% / 192px 96px repeat-x; mask: var(--mp-pixel) 0 100% / 192px 96px repeat-x;
}
.cx-shot:focus { outline: none; }
.cx-shot:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cx-shot__pair { position: relative; display: flex; justify-content: space-between; align-items: center; gap: clamp(64px, 9vw, 120px); min-height: 82px; max-width: 600px; }
.cx-shot__label { max-width: 600px; }
.cx-shot__quote { max-width: 66ch; }
.cx-mini {
  position: relative; z-index: 1; margin: 0; flex: 0 1 auto; min-width: 0; max-width: 46%;
  padding: 10px 12px 9px; border: 2px solid var(--bone);
  font-family: var(--font-display); text-transform: uppercase; line-height: .95; color: var(--bone); background: var(--ink-plum);
}
.cx-mini .cx-first { font-size: 1rem; letter-spacing: .04em; }
.cx-mini .cx-last { font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem); }   /* the two-shot is the close-up: names large */
.cx-mini--a { background: var(--bone); color: var(--ink-plum); }
.cx-shot__string { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.cx-shot__label { margin: 0; text-align: center; }
.cx-shot__label .cx-label { max-width: 30ch; }
.cx-shot__quote { margin: 0; padding-left: 16px; border-left: 4px solid var(--mustard); font-size: var(--fs-body); line-height: 1.55; color: var(--cream); }
.cx-shot__quote p { margin: 0; }
.cx-shot__src { display: grid; gap: 8px; padding-top: 2px; }
.cx-shot__src p { margin: 0; font-size: 1rem; line-height: 1.45; }

/* links inside the pair rows, the panel and the threads */
.pair__src, .pair__conn, .pair__note, .cx-shot__src p, .thread__src p { color: var(--text); }
.pair__src .label, .pair__conn .label, .pair__note .label, .cx-shot__src .label, .thread__src .label { display: inline; margin-right: .45em; color: var(--lift-teal); font-size: .875rem; }
.pair__date { display: inline-block; color: var(--bone) !important; white-space: nowrap; }   /* no left margin: the space before it is enough, and a margin indents the line when the date wraps */
.pair__src a, .pair__conn a, .pair__note a, .cx-shot__src a, .thread__src a { color: var(--cream); font-weight: 600; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* 900 to 1199: the folder stays beside the board (narrower), so the quote is on screen after a click */
@media (min-width: 900px) and (max-width: 1199px) {
  .cx-stage { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 22px; align-items: start; }
  .cx-board { padding: 88px clamp(24px, 3.2vw, 34px); }
  .cx-grid { column-gap: clamp(34px, 4vw, 42px); row-gap: 108px; }   /* wide enough for three strings side by side */
  .cx-card { padding: 12px 10px 10px; }
  .cx-card .cx-first { font-size: clamp(.8125rem, 13cqi, 1.125rem); }
  .cx-card .cx-last { font-size: clamp(.9375rem, 24cqi, 2.25rem); }   /* narrow cards near 900px: the longest names (Ghislaine, Summers) still fit */
  .cx-shot__pair { gap: 36px; }
  .cx-mini .cx-last { font-size: 1.625rem; }
  .cx-mini { max-width: 48%; }
  .cx-intro__tabs span { width: 104px; }
}

/* phone: no board. A native select and vertical threads (direction.md 5.5) */
.cx-phone { display: none; }
@media (max-width: 899px) {
  .cx-stage, .cx-boardsec__hint { display: none; }
  .cx-phone { display: block; }
}
.cx-phone__pick { display: grid; gap: 10px; padding: 20px 18px 22px; background: var(--ink-plum); border: 2px solid var(--bone); }
.cx-phone__pick > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the h2 above already says it */
.cx-select-wrap { position: relative; }
.cx-select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--bone); border-bottom: 2px solid var(--bone); transform: rotate(45deg); pointer-events: none; }
.cx-phone select {
  width: 100%; min-height: 52px; padding: 0 48px 0 14px;
  -webkit-appearance: none; appearance: none;
  background: var(--night-plum); color: var(--cream);
  border: 2px solid var(--bone); border-radius: 0;
  font: 400 1.5rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
}
.cx-phone select option { font-family: var(--font-body); font-size: 1rem; text-transform: none; background: var(--ink-plum); color: var(--cream); }
.cx-phone__note { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--cream); }
.cx-threads { list-style: none; margin: 8px 0 0; padding: 0; }
.thread { padding: 26px 0 30px; border-bottom: 2px solid var(--dusk-violet); }
.thread__from, .thread__to { margin: 0; display: inline-block; padding: 9px 12px 8px; border: 2px solid var(--bone); font-family: var(--font-display); text-transform: uppercase; line-height: .95; }
.thread__from { background: var(--bone); color: var(--ink-plum); }
.thread__from .cx-first { font-size: .9375rem; letter-spacing: .04em; }
.thread__from .cx-last { font-size: 1.5rem; }
.thread__to { background: var(--night-plum); color: var(--bone); }
.thread__to .cx-first { font-size: 1rem; letter-spacing: .04em; }
.thread__to .cx-last { font-size: 2rem; }
.thread__mid { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding-left: 26px; }
.thread__string { position: absolute; left: 22px; top: 0; width: 28px; height: 100%; overflow: visible; }
.thread__mid .cx-label { margin-left: 40px; }
.thread blockquote { margin: 16px 0 14px; padding-left: 14px; border-left: 4px solid var(--mustard); font-size: var(--fs-body); line-height: 1.55; }
.thread blockquote p { margin: 0; }
.thread__src { display: grid; gap: 8px; }
.thread__src p { margin: 0; font-size: 1rem; line-height: 1.45; }

/* ---------- 3. Every documented pair (the source of truth) --------------- */
/* the corner cluster stays in the top padding and beside the heading, never near a name card */
.cx-listsec.mp-corner-cluster { --mp-area: linear-gradient(#000 0 calc(var(--section-pad) + 56px), transparent calc(var(--section-pad) + 76px)); }
.cx-listsec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 30px; }
.cx-listsec__head h2:focus { outline: none; }
.cx-listsec__head:has(.needs-call) { margin-bottom: 76px; }   /* room for the review tag under the heading */
@media (max-width: 599px) { .cx-listsec__head:has(.needs-call) { margin-bottom: 118px; } }
.cx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4.5vw, 64px); }
.pair { border-top: 2px solid var(--rule); padding: 26px 0 38px; min-width: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.pair__in { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.pair__names { position: relative; }
.pair__h { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 70px; margin: 0; font-family: var(--font-display); text-transform: uppercase; line-height: .95; color: var(--bone); }
.pair__a, .pair__b { display: block; min-width: 0; padding: 9px 12px 8px; border: 2px solid var(--bone); background: var(--ink-plum); }
.pair__b { text-align: right; }
.pair__h .cx-first { font-size: 1rem; letter-spacing: .04em; }
.pair__h .cx-last { font-size: clamp(1.625rem, 1.2rem + 1vw, 2.25rem); }
.pair__and { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pair__string { z-index: 0; }
.pair__label { margin: 0; }
.pair__quote { margin: 0; max-width: 66ch; padding-left: 16px; border-left: 4px solid var(--mustard); font-size: var(--fs-body); line-height: 1.55; color: var(--cream); }
.pair__quote p { margin: 0; }
.pair__src, .pair__conn, .pair__note { margin: 0; font-size: 1rem; line-height: 1.45; }
.pair__src.needs-call--below, .pair__conn.needs-call--below { margin-bottom: 64px; }
.pair.is-target .pair__in { outline: 2px solid var(--mustard); outline-offset: 10px; }

@media (max-width: 899px) {
  .cx-list { grid-template-columns: minmax(0, 1fr); }
  .pair__h { gap: 44px; }
}

/* ---------- 4. Ways out --------------------------------------------------- */
.cx-out__wrap { display: grid; gap: 22px; }
.cx-out__h { margin: 0; }
.cx-out__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(28px, 4vw, 56px); }
.cx-out__list a {
  display: inline-flex; align-items: baseline; gap: .3em;
  font: 400 var(--fs-h2)/1.15 var(--font-display); text-transform: uppercase; color: var(--cream);
  text-decoration: underline; text-decoration-color: var(--cream); text-decoration-thickness: 3px; text-underline-offset: .16em;
}
.cx-out__list a::after { content: "\2192"; font-family: var(--font-body); font-weight: 700; font-size: .8em; }
.cx-out__list a:hover { text-decoration-thickness: 5px; }

/* ---------- phone opening ------------------------------------------------- */
@media (max-width: 899px) {
  .cx-open__kicker-out { display: block; }
  .cx-open__kicker { display: none; }
  .cx-open__art { aspect-ratio: 4 / 3; }
  .cx-open__art > img { object-position: 50% 50%; }
  .cx-hl { left: 15%; right: 13%; top: 37%; bottom: 10%; }
  .cx-hl__l1 { font-size: 5.4cqi; }
  .cx-hl__l2 { font-size: 9.2cqi; }
  .cx-hl__l3 { font-size: 11cqi; }
}

/* ==========================================================================
   MOTION (only when the device allows it and Still is off). Strings, pins and
   the two-shot morph are driven from pages/connections.js with the Web
   Animations API and a same-document View Transition; this block only adds
   the CSS-side pieces. Text never moves on its own and never fades in.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* cards change state instantly: a colour cross-fade between bone and plum passes through an unreadable middle frame */
  :root:not([data-motion="still"]) .cx-card { transition: border-color 220ms ease; }
  :root:not([data-motion="still"]) .cx-strings .cx-s,
  :root:not([data-motion="still"]) .cx-tag { transition: opacity 160ms ease; }
  /* the overview settles from full strings to quiet ones, and steps back when a name is chosen */
  :root:not([data-motion="still"]) .cx-o { transition: opacity 700ms ease; }
  :root:not([data-motion="still"]) .cx-o path { transition: stroke-width 700ms ease; }
  :root:not([data-motion="still"]) .cx-ovp .cx-pin { transition: opacity 700ms ease, transform 700ms ease; }
  :root:not([data-motion="still"]) .cx-ovg, :root:not([data-motion="still"]) .cx-ovp { transition: opacity 360ms ease, visibility 0s linear 0s; }
  :root:not([data-motion="still"]) .cx-ovg.is-off, :root:not([data-motion="still"]) .cx-ovp.is-off { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  /* phone threads: the short vertical string draws down (CSS dash offset, 500ms) */
  :root.ratc-ready:not([data-motion="still"]) .thread:not(.is-drawn) .thread__string path { stroke-dashoffset: 1; }
  :root.ratc-ready:not([data-motion="still"]) .thread__string path { transition: stroke-dashoffset 500ms ease-in-out; transition-delay: var(--d, 0ms); }
  /* registration on her line, scaled to the size of the type (same move, same 600ms) */
  :root:not([data-motion="still"]) .cx-hl.reg--play .reg__copy--a { animation-name: cx-reg-a; }
  :root:not([data-motion="still"]) .cx-hl.reg--play .reg__copy--b { animation-name: cx-reg-b; }
  /* two-shot morph: the board card flies into the panel. Old snapshot hidden, new one shown at once, so
     no frame ever shows two names on top of each other. */
  /* arriving from a homepage: its mini two-shot grows into this opening card (same 420ms as the page change) */
  :root:not([data-motion="still"])::view-transition-group(two-shot) { animation-duration: 420ms; animation-timing-function: var(--ease-folder); }
  :root:not([data-motion="still"])::view-transition-group(cx-a),
  :root:not([data-motion="still"])::view-transition-group(cx-b) { animation-duration: 320ms; animation-timing-function: var(--ease-folder); }
}
::view-transition-old(cx-a), ::view-transition-old(cx-b), ::view-transition-old(two-shot) { animation: none; opacity: 0; }
::view-transition-new(two-shot) { animation: none; }   /* only the arriving card shows, so no frame mixes two sets of words */
::view-transition-new(cx-a), ::view-transition-new(cx-b) { animation: none; }
@keyframes cx-reg-a { 0% { transform: translate(calc(-1 * max(5px, .62cqi)), max(3px, .36cqi)); opacity: 1; } 78% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes cx-reg-b { 0% { transform: translate(max(4px, .5cqi), calc(-1 * max(3px, .36cqi))); opacity: 1; } 78% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
