/* ── LAB (2026-11-20): the connections slots after the notes stop (conn/CONTRACT.md). Shared: edited by the
   scaffold / integration agent only. A builder styles only inside .feat-conn-<N> from conn/a<N>/style.css. ──

   Each slot: section.feat.feat-conn.feat-conn-N[data-conn=N] > .cn-pin > .cn-stage > .art[data-art=conn].
   Defaults here make an empty slot one quiet screen of cream with the page's thread straight through it. A builder
   makes it a runway (the section's height) with a sticky .cn-pin, or a plain flow, in its own sheet. */
.feat-conn{position:relative;padding:0;margin-top:clamp(32px,6vh,80px);min-height:100svh;overflow-anchor:none}
/* (overflow-anchor: a slot building its stage while the page glides through it must not nudge the scroll: deck.js
   reads any scroll that is not its own as the reader's, and lets its glide go) */
.feat-conn>.cn-pin{position:relative;height:100svh;box-sizing:border-box}
.feat-conn .cn-stage{position:relative;height:100%;z-index:1}
.feat-conn .art{position:absolute;inset:0;min-height:0;transform:none;opacity:1;visibility:visible}
.feat-conn .art:empty{min-height:0}
/* (2026-11-20, integration) each slot's runway, reserved here before its own sheet and module load (they load as the
   slot nears the screen): the page's height never changes under a reader, so a reload or a nav jump lands where it
   should. The same numbers as each slot's own sheet (conn/a<N>/style.css); change them together. */
:is(.feat-conn-2,.feat-conn-3,.feat-conn-4){height:calc(100svh + 400svh)}
.feat-conn-1{height:calc(100svh + 200svh)}  /* (a1: 3 stops, owner 2026-11-20) */
.feat-conn-5{height:calc(100svh + 270svh)}
@media (max-width:899px){.feat-conn-5{height:calc(100svh + 180svh)}}
@media (prefers-reduced-motion:reduce){.feat-conn-5{height:100svh}}
:is(.feat-conn-1,.feat-conn-2,.feat-conn-3,.feat-conn-4,.feat-conn-5)>.cn-pin{position:sticky;top:0;height:100svh}
.feat-conn.cn-failed{height:auto}
.feat-conn.cn-failed>.cn-pin{position:relative}
/* a slot whose module is missing or threw: left empty and quiet (art/conn.js) */
.feat-conn.cn-failed .art{display:none}

/* the thread's anchors a builder may place (zero size; spine.js reads only their x, as laid, transforms ignored) */
.feat-conn .cn-in,.feat-conn .cn-out{position:absolute;width:0;height:0;pointer-events:none}

/* the in-slot stretch of the thread (conn/kit.js threadStretch): the spine's own rail, ink and playhead, as the notes
   stop's .nt-thread */
.cn-thread{position:absolute;left:0;top:0;width:0;height:0;z-index:0;pointer-events:none}
.cn-thread svg{position:absolute;left:0;top:0;overflow:visible}
.cn-thread .sp-fill{transition:stroke .9s var(--ease)}
.cn-thread.cn-ease .sp-fill{transition:stroke .9s var(--ease),stroke-dashoffset .5s cubic-bezier(.4,0,.2,1)}
.cn-thread .sp-pin{opacity:1;transition:background-color .9s var(--ease)}
/* one playhead: off a held stop the spine's own pin is the one (a scroll-linked slot shows its own with .cn-live on
   the section while its stage is stuck) */
.feat-conn:not(.is-current):not(.cn-live) .cn-thread .sp-pin{opacity:0!important}

/* ── lab only (.cn-lab): the numeral before each slot, and the nav ── */
.cn-tag{position:relative;height:0;z-index:2;pointer-events:none}
.cn-tag b{position:absolute;left:var(--gut);top:calc(clamp(32px,6vh,80px) / 2);transform:translateY(-50%);
  font:700 15px/1 Manrope,ui-sans-serif,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:var(--mute-text,#776A5F);letter-spacing:0}
.cn-nav{position:fixed;right:16px;bottom:16px;z-index:58;display:flex;gap:2px;padding:3px;border-radius:12px;background:rgba(252,250,247,.94);
  border:1px solid var(--hairs,#E4DCD3);font:700 15px/1 Manrope,ui-sans-serif,system-ui,sans-serif;font-variant-numeric:tabular-nums;
  transition:background-color .9s var(--ease),border-color .9s var(--ease)}
.cn-nav a{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;color:var(--mute-text,#776A5F);text-decoration:none;
  transition:color .2s,background-color .2s}
.cn-nav a:hover{color:var(--ink,#241E1A);background:var(--sand,#F8F4EF)}
.cn-nav a[aria-current="true"]{color:var(--ink,#241E1A);background:var(--sand,#F8F4EF)}
.cn-nav a:focus-visible{outline:3px solid #ff6414;outline-offset:1px}
html.is-dusk .cn-nav{background:rgba(58,50,44,.94);border-color:#59524C}
html.is-dusk .cn-nav a{color:#C3B6AA}
html.is-dusk .cn-nav a:hover,html.is-dusk .cn-nav a[aria-current="true"]{color:#FCFAF7;background:#453C35}
html.is-boot .cn-nav{opacity:0}
/* (touch: 40 px targets; a mouse keeps the small pill, clear of the slots' frames) */
@media (pointer:coarse){.cn-nav{right:10px;bottom:10px}.cn-nav a{width:40px;height:40px}}
@media (prefers-reduced-motion:reduce){.cn-nav,.cn-nav a{transition:none}}

/* ── the house type for a slot's slide titles and points: the notes stop's own look (notes/notes.css .nt-beat h3,
   .nt-pts), so all five read as the page does. Markup (conn/kit.js titleHtml for the *ember* words):
     <div class="cn-beat on" style="--c:#8F82BC"><h3 class="cn-h3"><span>Title with <span class="ember">ember.</span></span></h3>
       <ul class="cn-pts"><li>Point one</li><li>Point two</li></ul></div>
   .cn-beat is stacked absolutely by the slot; .on shows it, .past moves it up as it goes (as .nt-beat). ── */
.cn-beat{position:absolute;left:0;right:0;top:0;opacity:0;transform:translateY(18px);transition:opacity .4s var(--ease),transform .55s var(--ease)}
.cn-beat.on{opacity:1;transform:none;transition-delay:.12s,.08s}
.cn-beat:not(.on){transition-duration:.2s,.4s}
.cn-beat.past{transform:translateY(-18px)}
.cn-beat.cn-static{position:relative;opacity:1;transform:none}
.cn-h3{margin:0;font:800 var(--cn-hfs,clamp(38px,calc(9vw - 72px),64px))/1.02 var(--hf);letter-spacing:-.032em;color:#241E1A}
.cn-h3>span{display:block;text-wrap:balance}
.cn-h3 .ember{padding-bottom:.06em}
.cn-pts{list-style:none;margin:clamp(20px,3.4vh,32px) 0 0;padding:0;display:flex;flex-direction:column;gap:clamp(10px,1.7vh,16px)}
.cn-pts li{position:relative;padding-left:30px;font:400 clamp(18px,1.6vw,22.5px)/1.55 Manrope,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--soft,#5F5249);text-wrap:pretty}
html[data-wide="1"] .cn-pts li{font-size:clamp(18px,min(1.6vw,max(22.5px,18px + .3125vw)),25px)}
.cn-pts li::before{content:"";position:absolute;left:2px;top:.36em;width:14px;height:14px;border-radius:4px;background:var(--c,#1E1A17);border:1.5px solid #1E1A17;box-sizing:border-box}
/* the kinds named in a point: bold, a touch larger, in their bead's colour (as .nt-k) */
.cn-pts .cn-k{font-weight:800;font-size:1.12em;letter-spacing:-.01em}
.cn-pts .cn-kq{color:#2F5FE0}.cn-pts .cn-ko{color:#E8506A}.cn-pts .cn-kp{color:#1E9257}
/* the notes' right-set column hung off the thread (its points black beads ON a vertical thread at the column's right,
   --cn-tg off it): add .cn-hang to the column, and set --cn-tg */
@media (min-width:900px){
  .cn-hang{text-align:right}
  .cn-hang .cn-pts{align-items:flex-end}
  .cn-hang .cn-pts li{padding-left:0}
  .cn-hang .cn-pts li::before{left:auto;right:calc(-1 * var(--cn-tg,30px) - 13px);top:calc(.775em - 13px);width:26px;height:26px;border-radius:50%;background:#1E1A17;border:4px solid #FBF9F6;z-index:1}
}
/* a phone (as the notes stop's): title smaller, 2 points in a row */
@media (max-width:899px){
  .cn-h3{font-size:clamp(26px,7.6vw,34px);line-height:1.08}
  .cn-h3>span{display:inline}
  .cn-beat{transform:translateY(10px)} .cn-beat.past{transform:translateY(-10px)}
  .cn-pts{flex-direction:row;flex-wrap:wrap;gap:4px 18px;margin-top:8px}
  .cn-pts li{font-size:16px;padding-left:20px}
  .cn-pts li::before{width:14px;height:14px;border-radius:3px;top:.25em;left:0}
  .cn-pts li:nth-child(n+3){display:none}
}
@media (prefers-reduced-motion:reduce){.cn-beat,.cn-thread .sp-fill{transition:none}}
