/* ── the notes stop (round 4, 2026-11-19, art/notes.js): after the live stop, the same call's notes as a stack of five
   tabbed folders on the page's thread. Layout "Size C" (mockups/notes-r3/deck.html): the slide's title and its few
   points in a column at the left, the deck at the right, the thread down the deck's left, under it (the beads) and
   down its right. A phone: the title and 2 points on top, the deck under it, full width. A runway whose stage holds
   (deck.js). Each folder's body is its own module (notes/f-<key>.css, scoped .ntf-<key>); this sheet lays the
   deck, its tabs and the thread. Transform and opacity only in the films; no filters. ── */
.feat-notes{
  --nt-g:clamp(24px,calc(10vw - 83px),72px); /* the page's gutter (1512: 68px; narrower screens give the deck more) */
  --nt-tw:clamp(260px,calc(30vw - 60px),440px); /* the title column (1512: 394px; 1280: 324px; round r5: the points are whole sentences now) */
  --nt-gap:56px;                     /* title column to deck (the thread's left leg runs in it) */
  --nt-ll:34px;                      /* the left leg, that far left of the deck */
  --nt-lr:26px;                      /* the right leg, that far right of the deck's stack */
  --nt-dx:6px;                       /* each folder under the top one, that much further right */
  --nt-sk:calc(var(--nt-dx) * 4);    /* (room for the 4 under it) */
  --nt-tabh:44px;
  --nt-dw:min(1240px,100% - 2 * var(--nt-g) - var(--nt-tw) - var(--nt-gap) - var(--nt-lr));
  --nt-x0:calc((100% - var(--nt-tw) - var(--nt-gap) - var(--nt-dw) - var(--nt-lr)) / 2);
  --nt-dl:calc(var(--nt-x0) + var(--nt-tw) + var(--nt-gap));
  --nt-dt:calc(var(--top-h) + clamp(18px,4.3vh,40px));
  --nt-rb:clamp(40px,6.3vh,56px);    /* the thread under the deck, that far above the stage's foot */
  --nt-db:calc(var(--nt-rb) + clamp(34px,5.8vh,48px));
  position:relative;height:calc(100svh + 300svh);padding:0;margin-top:clamp(32px,6vh,80px)}
.nt-pin{position:sticky;top:0;height:100svh;padding:0;box-sizing:border-box}
.nt-stage{position:relative;height:100%;z-index:1}
.feat-notes .art{position:absolute;inset:0;min-height:0;transform:none;opacity:1;visibility:visible}
/* where the thread runs under the deck (spine.js measures it): down the deck's left at its left end, down again at
   its right end */
.nt-rail{position:absolute;left:calc(var(--nt-dl) - var(--nt-ll));width:calc(var(--nt-dw) + var(--nt-ll) + var(--nt-lr));bottom:var(--nt-rb);height:0;pointer-events:none}

/* the thread's stretch here, under the stage: the spine's own rail and ink (landing.css .sp-rail/.sp-fill) */
.nt-thread{position:absolute;left:0;top:0;width:0;height:0;z-index:0;pointer-events:none}
.nt-thread svg{position:absolute;left:0;top:0;overflow:visible}
.nt-thread .sp-fill{transition:stroke .9s var(--ease),stroke-dashoffset .5s cubic-bezier(.4,0,.2,1)}
.nt-thread .sp-pin{opacity:1;transition:background-color .9s var(--ease)}
/* one playhead: off the stop, the spine's own pin is the one (it stands where this one would) */
.feat-notes:not(.is-current) .nt-thread .sp-pin{opacity:0!important}

/* ── the column at the left: the slide's title, then its points ── */
.nt-side{position:absolute;left:var(--nt-x0);width:var(--nt-tw);top:calc(var(--nt-dt) + 36px);bottom:var(--nt-db);pointer-events:none}
.nt-beat{position:absolute;left:0;right:0;top:0;opacity:0;transform:translateY(18px);transition:opacity .4s var(--ease),transform .55s var(--ease)}
.nt-beat.on{opacity:1;transform:none;transition-delay:.12s,.08s}
.nt-beat:not(.on){transition-duration:.2s,.4s}
.nt-beat.past{transform:translateY(-18px)}
.nt-beat h3{margin:0;font:800 var(--nt-hfs,clamp(38px,calc(9vw - 72px),64px))/1.02 var(--hf);letter-spacing:-.032em;color:#241E1A}
.nt-beat h3>span:first-child{display:block}
.nt-beat h3>span{text-wrap:balance}
.nt-beat h3 .ember{padding-bottom:.06em}
.nt-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)}
.nt-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"] .nt-pts li{font-size:clamp(18px,min(1.6vw,max(22.5px,18px + .3125vw)),25px)}
/* the kinds named in a bullet: bold, a touch larger, in their bead's colour */
.nt-pts .nt-k{font-weight:800;font-size:1.12em;letter-spacing:-.01em}
.nt-pts .nt-kq{color:#2F5FE0}.nt-pts .nt-ko{color:#E8506A}.nt-pts .nt-kp{color:#1E9257}
.nt-pts li::before{content:"";position:absolute;left:2px;top:.36em;width:14px;height:14px;border-radius:4px;background:var(--c);border:1.5px solid #1E1A17;box-sizing:border-box}
/* (his ask, 2026-11-19) the column hangs off the thread: title and points set to its right edge, which stands --nt-tg
   left of the thread's left leg, and each point is a black bead ON that leg */
@media (min-width:900px){
  .feat-notes{--nt-tg:30px}
  .nt-side{width:calc(var(--nt-tw) + var(--nt-gap) - var(--nt-ll) - var(--nt-tg));text-align:right}
  .nt-pts{align-items:flex-end}
  .nt-pts li{padding-left:0}
  .nt-pts li::before{left:auto;right:calc(-1 * var(--nt-tg) - 9px);top:calc(.775em - 9px);width:18px;height:18px;border-radius:50%;background:#1E1A17;border:3px solid #FBF9F6;z-index:1}
}

/* ── the deck: the folders stacked, each one on top of the last, its tab at its own slot ── */
.nt-deck{position:absolute;left:var(--nt-dl);width:var(--nt-dw);top:var(--nt-dt);bottom:var(--nt-db)}
.nt-f{position:absolute;left:0;top:0;right:var(--nt-sk);bottom:0;will-change:transform}
.nt-tab{position:absolute;left:var(--slot,18px);top:0;height:var(--nt-tabh);padding:3px 18px 0;display:flex;align-items:center;box-sizing:border-box;
  background:var(--c);border:1.5px solid #1E1A17;border-bottom:0;border-radius:11px 11px 0 0;z-index:2;
  font:800 18px/1 Manrope,ui-sans-serif,system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#1E1A17;white-space:nowrap}
/* (r7, his ask: the tab was off the folder's outline) the tab stands ON the body's top edge, its sides ending exactly
   where the body's top line starts, and that line is opened under it by a strip in the tab's colour drawn as the same
   1.5px border (so it snaps to the very pixels the body's line does, at any screen density; the old tab ran 2px down
   over a line that paints 1px, and its sides poked out under the line) */
.nt-tab::after{content:"";position:absolute;left:0;right:0;top:100%;height:0;border-top:1.5px solid var(--c);pointer-events:none}
.nt-tab .nt-tw{position:absolute;inset:0;border-radius:inherit;background:#fff;opacity:0;transition:opacity .3s}
.nt-tab .nt-tl,.nt-tab .nt-ts{position:relative}
.nt-tab .nt-ts{display:none}
/* the tabs of the folders under the top one: the same colour, lighter */
.nt-f:not(.is-front) .nt-tw{opacity:.5}
.nt-f:not(.is-front) .nt-tab{color:#4F443C}
.nt-body{position:absolute;left:0;right:0;top:var(--nt-tabh);bottom:0;background:#fff;border:1.5px solid #1E1A17;border-radius:14px;overflow:hidden;box-sizing:border-box}
/* the body a folder module fills (render(el)): sized here, the module lays out in it, top aligned */
.nt-c{position:absolute;left:0;top:0;width:var(--nt-cw,947px);height:var(--nt-ch,581px);overflow:hidden;transform:scale(var(--nt-k,1));transform-origin:0 0}
/* the words of a folder under the top one are never seen: not painted (they keep their place) */
.nt-f:is([data-d="1"],[data-d="2"],[data-d="3"],[data-d="4"]):not(.nt-keep) .nt-c{visibility:hidden}
/* a folder whose module is not there (yet): a plain placeholder */
.nt-ph{position:absolute;inset:0;padding:22px 24px;display:flex;flex-direction:column;gap:14px}
.nt-ph b{font:800 22px/1.1 Manrope,ui-sans-serif,system-ui,sans-serif;color:#1E1A17}
.nt-ph i{display:block;height:16px;border-radius:4px;background:#EEE8E1}
.nt-ph i:nth-of-type(1){width:78%} .nt-ph i:nth-of-type(2){width:64%} .nt-ph i:nth-of-type(3){width:42%}

/* ── the beads on the thread under the deck (each module's own markup, ~30px), centred on the thread ── */
.nt-beads{position:absolute;left:0;top:0;width:0;height:0;z-index:2;pointer-events:none}
.nt-bd{position:absolute;left:0;top:0;width:0;height:0;will-change:transform}
.nt-bi{position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:block;line-height:0}

/* ── what flies: the three marks into the email, and their sparks ── */
.nt-fly{position:absolute;inset:0;pointer-events:none;z-index:30;overflow:visible}
.nt-fm{position:absolute;left:0;top:0;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 3px #fff;will-change:transform}
.nt-fm svg{width:60%;height:60%;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.nt-spk{position:absolute;left:0;top:0;width:12px;height:12px;margin:-6px 0 0 -6px;background:#FF6414;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);will-change:transform,opacity}
.nt-spk.g{background:#FFB300} .nt-spk.c{background:#3E8E9C} .nt-spk.p{background:#E8457F} .nt-spk.n{background:#24A062}
/* tabs too wide for the deck: a size down (art/notes.js measures them) */
.nt-tight .nt-tab{padding:2px 12px 0;font-size:15px;letter-spacing:.05em}

/* ── a phone: the title and 2 points on top, the deck under it, full width ── */
@media (max-width:899px){
  .feat-notes{--nt-g:14px;--nt-ll:8px;--nt-lr:8px;--nt-dx:3px;--nt-tabh:34px;--nt-sideh:clamp(66px,8.6vh,82px);
    --nt-dw:calc(100% - 2 * var(--nt-g));--nt-x0:16px;--nt-dl:var(--nt-g);
    --nt-dt:calc(var(--top-h) + 8px + var(--nt-sideh));--nt-rb:clamp(62px,7.6vh,72px);--nt-db:calc(var(--nt-rb) + 34px)}
  .nt-rail{left:calc(var(--nt-dl) - var(--nt-ll));width:calc(var(--nt-dw) + var(--nt-ll) + var(--nt-lr))}
  .nt-side{left:16px;right:16px;width:auto;top:calc(var(--top-h) + 6px + var(--nt-sy,0px));bottom:auto;height:var(--nt-sideh)}
  .nt-beat h3{font-size:clamp(26px,7.6vw,34px);line-height:1.08;text-wrap:balance}
  .nt-beat h3>span:first-child{display:inline}
  .nt-beat{transform:translateY(10px)} .nt-beat.past{transform:translateY(-10px)}
  .nt-pts{flex-direction:row;flex-wrap:wrap;gap:4px 18px;margin-top:8px}
  .nt-pts li{font-size:16px;padding-left:20px}
  .nt-pts li::before{width:11px;height:11px;border-radius:3px;top:.3em;left:0}
  .nt-pts li:nth-child(n+3){display:none}
  /* (round r4b, the review: ~10 px tabs; asked bigger) words as they are written, 13.5 px */
  .nt-tab{padding:2px 5px 0;font-size:12.5px;letter-spacing:0;text-transform:none;border-radius:8px 8px 0 0} /* (2026-11-22, his phone: the last tab stuck out past the folder: smaller tabs) */
  .nt-tab .nt-tl{display:none} .nt-tab .nt-ts{display:inline}
  .nt-tight .nt-tab{padding:2px 4px 0;font-size:12px;letter-spacing:-.01em}
  .nt-body{border-radius:12px} /* (r7) its top-left corner no rounder than the first tab's slot (6px): the Timeline tab stands on the line, not over the curve */
  .nt-body{border-top-left-radius:6px}
  .nt-bi{transform:translate(-50%,-50%) scale(.86)}
}
@media (prefers-reduced-motion:reduce){.nt-beat,.nt-thread .sp-fill,.nt-tab .nt-tw{transition:none}}

/* his ask 2026-11-19 (r6): tab words in the tab's own colour made very dark (never black); the bullets' beads on
   the thread bigger */
.nt-tab{color:color-mix(in srgb,var(--c) 38%,#0E0B09)}
.nt-f:not(.is-front) .nt-tab{color:color-mix(in srgb,var(--c) 48%,#2A221D)}
@media (min-width:900px){
  .nt-pts li::before{width:26px;height:26px;border-width:4px;right:calc(-1 * var(--nt-tg) - 13px);top:calc(.775em - 13px)}
}
@media (max-width:899px){.nt-pts li::before{width:14px;height:14px;top:.25em}}
