/* ══ /demo4 — PROJECTS, RESTORED (2026-11-12) ══════════════════════════════════════════════════════════════════
 * Carter: "RESTORE PROJECTS" / "Projects was beige in its last working build."  The approved Projects (Oct 31 list,
 * polished through ba22b65, 11-03; ported from 04580b1's demo4-projects.css) — PROJECTS + chips on one
 * row, builds as ruled rows (thumb LEFT at the text's height, words RIGHT), three rows to a column, the columns on a
 * sideways track clipped at the section and faded across the gutter at both screen edges (CRITIC2 #8).
 * Target frame: docs/ops/logs/2026-10-31-land-it/ship/cls/pj-rest-1728.png.
 * Later rules kept: no section eyebrow, no counts, content on the rail's margin (--rl-m 64 / 20), the CTA on the title
 * row, THE chip (demo4-native.css), card gaps on the 24 gutter.  The track is a NATIVE horizontal scroller: nothing
 * below Recent holds the vertical scroll (vertical wheel over it passes straight to the page).
 * Seams: the paper rises out of Ink at its top (Recent ends on dark) and sinks back into Ink at its foot (Beta rises
 * out of Ink) — eased ramps, never a hard edge.  Palette: DESIGN.md via the --mb5-* tokens; Ink #0A0A0A, Bone #EDE7D8.
 * Markup includes/demo4-projects.php · filter + photo unpark src-demo3/native.js (N1, LQ DIAG #5). */

html .mb5-projects.mb2-sec {
  --pj-m: var(--rl-m, 64px);
  /* 2026-11-12: the stop's padding is the header band + one even margin top, the same margin at the foot, so the
     flex centring below centres the block in the screen UNDER the header (was 220 / 170: the rows sat high on an
     empty foot band at 1728) */
  --pj-in: calc(var(--rl-band, 72px) + clamp(80px, 11vh, 190px));   /* top: the Ink -> Bone ramp lives in the first --pj-rt of this */
  --pj-rt: clamp(110px, 16vh, 190px);
  --pj-out: clamp(96px, 13vh, 200px);     /* foot: the Bone -> Ink ramp is the last --pj-rb of this */
  --pj-rb: clamp(96px, 13vh, 160px);
  --pj-lip: 48px;
  padding: var(--pj-in) 0 var(--pj-out); overflow-x: clip; z-index: 21;
}
/* THE FIELD (Carter 2026-11-12, ref-01-gradient-grid — feel, not copy): Ink underneath; one oversized gradient layer
   (.mb5-pjg__f) — Signal Red + Ember pooled lower-left, Dusk Violet through the middle, Alpine Teal upper-right, a
   faint warm haze lower-right — drifting a few percent with scroll (projects.js, one pre-promoted transform); hairline
   grid lines on the rail's 12 columns, Bone at 4 %; the site's film grain over both.  Field + grid are masked out at
   the section's top and foot, so Recent's dark foot and Beta's Ink top meet plain Ink: no edge at either seam.
   Hues are DESIGN.md's: Signal Red #A83A28, Ember #FF5B04, Dusk Violet #7C6BA6, Alpine Teal #34978F, Bone, Ink. */
.mb5-projects > .mb5-pjg {
  top: calc(-1 * var(--pj-lip)); bottom: calc(-1 * var(--pj-lip)); overflow: clip;   /* a lip over each neighbour's edge: Recent's dark foot and Beta's lifted Ink top both ease into this Ink */
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0, rgba(10, 10, 10, .55) calc(var(--pj-lip) * .5), #0A0A0A var(--pj-lip),
    #0A0A0A calc(100% - var(--pj-lip)), rgba(10, 10, 10, .55) calc(100% - var(--pj-lip) * .5), rgba(10, 10, 10, 0) 100%);
}
.mb5-pjg__in {   /* field + grid + grain, faded out at the section's top and foot; the mask is on THIS still box, so it never drifts */
  position: absolute; left: 0; right: 0; top: var(--pj-lip); bottom: var(--pj-lip); overflow: clip;
  -webkit-mask-image: var(--pj-mask); mask-image: var(--pj-mask);
  --pj-mask: linear-gradient(180deg, transparent 0,
    rgba(0, 0, 0, .1) calc(var(--pj-rt) * .25), rgba(0, 0, 0, .45) calc(var(--pj-rt) * .55),
    rgba(0, 0, 0, .85) calc(var(--pj-rt) * .82), #000 var(--pj-rt),
    #000 calc(100% - var(--pj-rb)), rgba(0, 0, 0, .85) calc(100% - var(--pj-rb) * .82), rgba(0, 0, 0, .45) calc(100% - var(--pj-rb) * .55),
    rgba(0, 0, 0, .1) calc(100% - var(--pj-rb) * .25), transparent 100%);
}
.mb5-pjg__in > i { position: absolute; display: block; pointer-events: none; }
.mb5-pjg__f {
  inset: -10% -8%;
  background:
    /* 2026-11-12 critic: ~80 % of the field read near-black against the luminous ref — every pool is larger and
       brighter, the teal centred lower (it peaked at the section's very top, so the header band cut it into a hard
       edge at y ~85) and feathered over a longer fall, a violet floor under the middle so no stretch is bare Ink */
    radial-gradient(56% 50% at 82% 30%, rgba(52, 151, 143, .92) 0%, rgba(52, 151, 143, .46) 40%, rgba(52, 151, 143, .12) 66%, rgba(52, 151, 143, 0) 86%),
    radial-gradient(64% 54% at 48% 50%, rgba(124, 107, 166, .78) 0%, rgba(124, 107, 166, .34) 50%, rgba(124, 107, 166, 0) 84%),
    radial-gradient(58% 62% at 6% 88%, rgba(168, 58, 40, .96) 0%, rgba(168, 58, 40, .46) 44%, rgba(168, 58, 40, 0) 78%),
    radial-gradient(40% 34% at 24% 100%, rgba(255, 91, 4, .55) 0%, rgba(255, 91, 4, 0) 72%),
    radial-gradient(44% 40% at 90% 90%, rgba(237, 231, 216, .14) 0%, rgba(237, 231, 216, 0) 75%),
    linear-gradient(180deg, color-mix(in srgb, #0A0A0A 82%, #7C6BA6), color-mix(in srgb, #0A0A0A 74%, #7C6BA6));
  transform: translate3d(0, 0, 0);
}
html.mb5-live .mb5-pjg__f { will-change: transform; }
/* the 12-column grid: a line at every column's left edge (the rail's margin + n x pitch) and square cells down the field */
.mb5-pjg__grid {
  inset: 0; --pitch: calc((100vw - 2 * var(--pj-m) - 11 * var(--rl-g, 24px)) / 12 + var(--rl-g, 24px));
  background:
    linear-gradient(90deg, rgba(237, 231, 216, .045) 0 1px, transparent 1px) var(--pj-m) 0 / var(--pitch) 100% repeat-x,
    linear-gradient(180deg, rgba(237, 231, 216, .045) 0 1px, transparent 1px) 0 calc(var(--pj-in) - 1px) / 100% var(--pitch) repeat-y;
}

/* ── the title row: PROJECTS · the chips · the one door, on one centre line ── */
.mb5-pjf {
  position: relative; z-index: 1;
  --colw: clamp(380px, 34vw, 600px); --cg: 48px; --th: clamp(84px, 11.5vh, 136px);
}
.mb5-pjt {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px 40px;
  padding-inline: var(--pj-m); margin: 0 0 clamp(26px, 4.4vh, 56px);
}
.mb5-pjt__h { font-size: clamp(48px, min(6.2vw, 10vh), 112px); line-height: .92; margin: 0; }
.mb5-projects .mb5-pf { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mb5-pjt__cta { margin-left: auto; }

/* ── the sideways track — a native horizontal scroller, clipped at the section, faded over the gutter ── */
.mb5-pg {
  position: relative; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  padding-inline: var(--pj-m) 0; scroll-padding-inline: var(--pj-m);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--pj-m), #000 calc(100% - var(--pj-m)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--pj-m), #000 calc(100% - var(--pj-m)), transparent 100%);
}
.mb5-pg::-webkit-scrollbar { display: none; }
.mb5-pg:focus-visible { box-shadow: inset 0 0 0 2px var(--mb5-bone); }
.mb5-cols {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--pj-rows, 3), auto);   /* projects.js: 2 rows while <= 6 builds show, so the columns fill the width and the track still runs past it */
  grid-auto-columns: var(--colw); column-gap: var(--cg); width: max-content; padding-inline-end: var(--pj-m);   /* the track's end keeps the margin */
}
.mb5-pc[hidden], .mb5-pg[data-f=""] .mb5-pc[data-more] { display: none; }
.mb5-pc { border-top: 2px solid rgba(237, 231, 216, .86); padding: clamp(14px, 2.2vh, 26px) 0; }
/* 2026-11-12: two rows to a column (projects.js --pj-rows 2, <= 6 builds) leaves a third of the stop empty, so the
   row grows a third to fill it; three rows (and the phone, always 3) keep --th as is */
.mb5-cols { --thf: calc(1 + (3 - var(--pj-rows, 3)) * .32); }
.mb5-pc__a {
  display: grid; grid-template-columns: calc(var(--th) * var(--thf, 1)) minmax(0, 1fr); column-gap: clamp(18px, 1.7vw, 28px);
  align-items: stretch; height: 100%; color: var(--sf-fg, #FFFFFF); text-decoration: none;
}
.mb5-pc__a:focus-visible { outline: 2px solid var(--mb5-ember); outline-offset: 6px; }
/* the thumb's HEIGHT is the text's (the grid stretches it; the image is absolute, so it never sets the row) */
.mb5-pc__ph { position: relative; display: block; min-height: calc(var(--th) * var(--thf, 1)); overflow: hidden; background: rgba(10, 10, 10, .32); }
.mb5-pc__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* F5 — an admin's build with no photograph is MARKED, never given a stand-in (visitors never see one) */
.mb5-pc--ph .mb5-pc__ph {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(237, 231, 216, .08) 0 1px, transparent 1px 9px), rgba(10, 10, 10, .2);
  box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .16);
}
.mb5-pc__ph i { font: 700 9.5px/1.35 var(--mb5-disp); font-style: normal; letter-spacing: .2em; text-transform: uppercase; text-align: center; color: color-mix(in srgb, var(--sf-fg, #FFFFFF) 74%, transparent); max-width: 7em; }
.mb5-pc__tx { display: flex; flex-direction: column; min-width: 0; }
.mb5-pc__eb { margin: 0 0 8px; font: 600 10.5px/1.3 var(--mb5-disp); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--sf-fg, #FFFFFF) 74%, transparent); }
.mb5-pc__t { margin: 0 0 8px; font: 700 clamp(19px, 1.45vw, 27px)/1.14 var(--mb5-disp); letter-spacing: -.018em; text-wrap: balance; }
.mb5-pc__t > span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--mb5-ease);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: 2px; }
.mb5-pc__a:hover .mb5-pc__t > span, .mb5-pc__a:focus-visible .mb5-pc__t > span { background-size: 100% 2px; }
.mb5-pc__d { font: 400 clamp(14px, .92vw, 16px)/1.5 var(--mb5-body); color: color-mix(in srgb, var(--sf-fg, #FFFFFF) 80%, transparent); text-wrap: pretty; }
.mb5-pc__go { display: inline-flex; align-items: center; gap: .6em; margin-top: auto; padding-top: 10px; font: 700 10.5px/1 var(--mb5-disp); letter-spacing: .18em; text-transform: uppercase; color: var(--sf-fg, #FFFFFF); }
.mb5-pc__go .mb5-arrow { width: 1.6em; }

/* short desktop screens: the old compact stage rhythm */
@media (min-width: 900px) and (max-height: 860px) {
  .mb5-pjf { --th: clamp(64px, 9.4vh, 84px); }
  .mb5-pjt__h { font-size: clamp(40px, 7.4vh, 64px); }
  .mb5-pc { padding: clamp(8px, 1.4vh, 14px) 0; }
  .mb5-pc__t { font-size: clamp(17px, 2.3vh, 21px); margin-bottom: 4px; }
  .mb5-pc__d { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 2000px) {
  .mb5-pjf { --colw: clamp(600px, 30vw, 820px); --cg: 72px; --th: clamp(110px, min(12.5vh, 7vw), 184px); }
  .mb5-pjt__h { font-size: clamp(96px, min(5.6vw, 11vh), 168px); }
  .mb5-pc__t { font-size: clamp(27px, 1.35vw, 38px); }
  .mb5-pc__d { font-size: clamp(16px, .8vw, 21px); }
  .mb5-pc__eb, .mb5-pc__go { font-size: 12.5px; }
}
/* the phone: the same blocks in the same order — PROJECTS, the chips, the door, then the track (one column a screen,
   the next one showing at the edge so the sideways read is obvious) */
@media (max-width: 899px) {
  html .mb5-projects.mb2-sec { --pj-in: 116px; --pj-rt: 88px; --pj-out: 112px; --pj-rb: 88px; }   /* G7: three rows a column on the phone — the top gives back 24 px so the third row clears the screen foot */
  .mb5-pjf { --colw: calc(100vw - var(--pj-m) - 56px); --cg: 24px; --th: 88px; }
  .mb5-pjg__grid { --pitch: calc(((100vw - 2 * var(--pj-m) - 11 * var(--rl-g, 12px)) / 12 + var(--rl-g, 12px)) * 2); }   /* every other column: a 30 px mesh read as texture, not lines */
  .mb5-pjt { gap: 16px 12px; margin-bottom: 24px; }
  .mb5-pjt__h { font-size: clamp(44px, 13vw, 56px); flex: 1 0 100%; }
  .mb5-projects .mb5-pf { gap: 6px; flex: 1 0 100%; }
  .mb5-pjt__cta { margin-left: 0; }
  .mb5-pc { padding: 14px 0; }
  .mb5-pc__t { font-size: 18px; }
  .mb5-pc__d { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* G7: the one line (<= 90 chars, whole sentences) wraps to 3 in a phone column; 2 cut it mid-word */
}

/* 11-13 audit PR2 — a portrait tablet: PROJECTS on its own line, the chips and the door on the next (the door no longer
   orphaned on a third), three rows of larger builds in exactly two columns that fill the width (no sliver at the edge) */
@media (min-width: 900px) and (max-aspect-ratio: 9/10) {
  .mb5-pjf { --cg: 40px; --colw: calc((100vw - 2 * var(--pj-m) - var(--cg)) / 2); --th: clamp(120px, 10vh, 170px); }
  .mb5-pjt { gap: 24px 16px; }
  .mb5-pjt__h { flex: 1 0 100%; }
  .mb5-pc__t { font-size: clamp(22px, 2.3vw, 28px); }
  .mb5-pc__d { font-size: 16px; }
}

/* ── a full-screen stop: the section is at least one screen, its content centred in it ── */
html .mb5-projects.mb2-sec { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; box-sizing: border-box; }
.mb5-projects > .mb5-pjf { width: 100%; }

/* ── the arrival (src-demo3/projects.js mountPjRestored): once, on the DESIGN ease — the title, the chips, the door,
   then each build, column by column, 1.2 s end to end.  Hidden only once the script has armed it (no-JS / reduced
   motion: everything simply shows).  The rise is on the inner <a>, so native.js's filter FLIP on the <li> never fights it. */
html.mb5-pj-arm .mb5-projects :is(.mb5-pjt__h, .mb5-pf, .mb5-pjt__cta, .mb5-pc__a) {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity var(--pj-d, 640ms) var(--ease, cubic-bezier(.16, 1, .3, 1)) var(--pj-dl, 0ms), transform var(--pj-d, 640ms) var(--ease, cubic-bezier(.16, 1, .3, 1)) var(--pj-dl, 0ms);
}
html.mb5-pj-arm .mb5-projects .mb5-pjt__h { --pj-dl: 0ms; }
html.mb5-pj-arm .mb5-projects .mb5-pf { --pj-dl: 90ms; }
html.mb5-pj-arm .mb5-projects .mb5-pjt__cta { --pj-dl: 180ms; }
html.mb5-pj-arm .mb5-projects.is-in :is(.mb5-pjt__h, .mb5-pf, .mb5-pjt__cta, .mb5-pc__a) { opacity: 1; transform: none; }

/* 2026-11-13 audit PR1 / critic LOOP #1 — a landscape desktop shows THREE WHOLE COLUMNS (no word cut at the edge, faded or
   not): the track still scrolls sideways the moment there are more builds than fit (#19), and its edge fade is the
   short one again */
@media (min-width: 900px) and (min-aspect-ratio: 9/10) {
  .mb5-pjf { --cg: clamp(40px, 3vw, 72px); --colw: max(360px, calc((100vw - 2 * var(--pj-m) - 2 * var(--cg)) / 3)); }
}
/* critic LOOP #2 — the thumb is a square on the row's top line at every width, never stretched to the text's height
   (ragged at 1024 and at 1440) */
@media all {
  .mb5-pc__a { align-items: start; }
  .mb5-pc__ph { min-height: 0; height: auto; aspect-ratio: 1 / 1; }
}

/* 11-13 audit3 PR3 — the phone's next column peeked as a bare image sliver with rule stubs: it dissolves into the edge */
@media (max-width: 899px) {
  .mb5-pg { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 64px), transparent 100%); }
}

/* ══ 2026-11-22 COMBINE (ledger 2026-11-22-mobile-flow rows 7/8/9; Carter approved).  "These pages should cleanly be full
   height.  Projects is fighting what to anchor.  When I scroll left to right, it jumps up and down.  With the header
   overlay, the full width is off.  And often projects header is hiding under the overlay."
   The phone's Projects is ONE SCREEN: the header bar, the chips directly under it, the cards, the door — in plain flow
   (the sticky hold is gone, demo4-native.css).  The big PROJECTS word stays in the document for readers and search
   but not on screen: the header pill already says PROJECTS.  The cards are a native sideways scroller that snaps a
   whole column at a time and never chains into the page (overscroll-behavior-x: contain).  A column is exactly the
   content width, so the left and right gutters are equal; the next column shows as a soft sliver in the gutter only
   when one exists.  Three equal rows (1fr) fill the height, so every column is the same height. ══ */
@media (max-width: 899px) {
  html .mb5-projects.mb2-sec {
    --pj-hd: 92px;                                   /* the masthead band's depth at 390-899 (native.js .mb5-band) */
    --pj-in: calc(var(--pj-hd) + 8px); --pj-out: max(16px, env(safe-area-inset-bottom)); --pj-rt: 72px; --pj-rb: 64px;
    height: 100vh; height: 100svh; min-height: 0; justify-content: flex-start; overflow: clip;
  }
  html .mb5-projects > .mb5-pjf { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; --colw: calc(100vw - 2 * var(--pj-m)); --cg: 8px;
    --th: clamp(84px, calc(100svh / 6.6 - 8px), 124px); }   /* the thumb grows with the screen, so a row is filled, not padded */
  .mb5-projects .mb5-pjt { display: contents; }
  /* 2026-11-22 unfuck row 2 — Carter: "Where's the fucking header for projects?"  Hiding the word behind the pill read as
     missing.  The title is back, ON SCREEN, in the space between the header bar and the chips; the section stays one screen. */
  html.mb2 .mb5-projects.mb2-sec .mb5-pjt__h {
    order: 0; flex: none; position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible;
    margin: 0 var(--pj-m) 14px; font-size: clamp(40px, 11.5vw, 56px); line-height: .95; white-space: nowrap;
  }
  /* (0,4,1): outranks the shared filter-track rule (demo4-about.css FL1, html.mb2 :is(… .mb5-projects .mb5-pf)) */
  html.mb2 .mb5-projects.mb2-sec .mb5-pf { order: 1; flex: none; align-self: flex-start; max-width: calc(100% - 2 * var(--pj-m)); margin: 0 var(--pj-m) 12px; }
  .mb5-projects .mb5-pg { order: 2; flex: 1 1 auto; min-height: 0; }
  html.mb2 .mb5-projects.mb2-sec .mb5-pjt__cta { order: 3; flex: none; align-self: flex-start; margin: 12px var(--pj-m) 0; }
  .mb5-pg {
    padding-inline: var(--pj-m); scroll-padding-inline: var(--pj-m);
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    /* the left gutter is a hard edge: the column already passed never shows stubs of its rules (critic 11-22); the right
       keeps its fade — the next column's peek is the signal there is more */
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--pj-m) - 1px), #000 var(--pj-m), #000 calc(100% - var(--pj-m)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--pj-m) - 1px), #000 var(--pj-m), #000 calc(100% - var(--pj-m)), transparent 100%);
  }
  .mb5-cols { height: 100%; grid-template-rows: repeat(var(--pj-prow, 3), minmax(0, 1fr)); padding-inline-end: var(--pj-m); }
  .mb5-pc { min-height: 0; overflow: hidden; scroll-snap-align: start; padding: 12px 0; }
  .mb5-pc__a { height: auto; }
}
/* a tall phone (>= 780 px of layout height): 2026-11-22 — THREE builds a column again so every one-line description reads
   whole (four cut "Testing a BougeRV powered cooler…" mid-sentence at a 2-line clamp; gate CLIPPED) */
@media (max-width: 899px) and (min-height: 780px) {
  html .mb5-projects > .mb5-pjf { --th: clamp(84px, calc(100svh / 8 - 4px), 112px); }
}
/* a shorter phone screen (the toolbar up): the line gives way before anything clips */
@media (max-width: 899px) and (max-height: 780px) {
  .mb5-pc__d { -webkit-line-clamp: 2; }
}
@media (max-width: 899px) and (max-height: 690px) {
  .mb5-pc { padding: 10px 0; }
  .mb5-pc__eb { display: none; }
  .mb5-pc__d { -webkit-line-clamp: 1; }
  .mb5-pjf { --th: 72px; }
}

/* 2026-11-22 unfuck row 3 — Carter: "Why is work falling outside of its pill."  More chips than a phone is wide: they scroll
   INSIDE the track, the track's right edge fades as the sign there is more, and the end padding lets the last chip clear
   the fade when scrolled home.  Same for Recent's filter track. */
@media (max-width: 899px) {
  html.mb2 :is(.rc .rc-chips, .mb5-projects .mb5-pf) {
    padding-inline-end: 32px; scroll-padding-inline: 3px 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent 100%);
  }
}

/* 2026-11-22 unfuck (critic r1) — THE PHONE'S PROJECTS ENTRANCE.  The chips no longer travel (they slid down through the
   first card's rule: a strike-through for 100 px); the scroll-driven rise is off for the title/chips/door here.  The
   cards arrive SIDEWAYS — the direction the section is read in — row by row; the ground ends inside the section; both
   gutters are hard edges (no slivers of the next column at the screen edge). */
@media (max-width: 899px) {
  /* (2026-11-24: scoped to engines without view timelines — with them the seam below owns these parts on the phone too) */
  html.mb5-pj-arm .mb5-projects :is(.mb5-pjt__h, .mb5-pf, .mb5-pjt__cta) { transform: none !important; }
  html.mb5-pj-arm .mb5-projects:not(.is-in) .mb5-pc__a { opacity: 0; transform: translate3d(64px, 0, 0) !important; }
  html.mb5-pj-arm .mb5-projects.is-in .mb5-pc__a { opacity: 1; transform: none !important; transition: transform .9s var(--mb5-ease, cubic-bezier(.16, 1, .3, 1)) var(--pc-dl, 0s), opacity .5s linear var(--pc-dl, 0s); }
  .mb5-projects .mb5-pc:nth-child(2) { --pc-dl: .1s; } .mb5-projects .mb5-pc:nth-child(3) { --pc-dl: .2s; }
  .mb5-projects > .mb5-pjg { bottom: 0; }
  .mb5-pg {
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--pj-m) - 1px), #000 var(--pj-m), #000 calc(100% - var(--pj-m)), transparent calc(100% - var(--pj-m) + 1px));
    mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--pj-m) - 1px), #000 var(--pj-m), #000 calc(100% - var(--pj-m)), transparent calc(100% - var(--pj-m) + 1px));
  }
  html.mb2 :is(.rc .rc-chips, .mb5-projects .mb5-pf) {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 6px));
    mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent calc(100% - 6px));
  }
}
/* (2026-11-24 row 17: scoped to where the seam does not run — under it the seam owns the title's opacity, below) */
@supports not (animation-timeline: view()) { @media (max-width: 899px) { html .mb5-projects .mb5-pjt > *, html .mb5-projects .mb5-pc { animation: none !important; } } }
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { html .mb5-projects .mb5-pjt > *, html .mb5-projects .mb5-pc { animation: none !important; } }
@media (max-width: 899px) and (prefers-reduced-motion: reduce) { html.mb5-pj-arm .mb5-projects .mb5-pjt__h { opacity: 1 !important; } }
@supports not (animation-timeline: view()) { @media (max-width: 899px) { html.mb5-pj-arm .mb5-projects .mb5-pjt__h { opacity: 1 !important; } } }

/* ══ 2026-11-24 (ledger 2026-11-23-overnight-homepage row 17) — THE RECENT → PROJECTS SEAM, Projects' half.
   Recent's half and the why: demo4-recent.css.  The seam is the one screen of scroll in which Projects' top travels
   from the frame's foot to its top (`entry` of the section's own view timeline).  Every child of the section is
   counter-moved by exactly that travel, so Projects' frame is composed and still from the first pixel of the seam —
   nothing slides up from below.  The field arrives first (under 900 px its in-section field fades in over Recent's
   photograph; on a wide screen Recent's photograph dissolves to uncover the fixed one), then the parts land in order,
   rising the way the page travels: the title, the chips one by one, the door, then the builds column by column.  All
   have landed at 87 % of the seam; the rest is a still frame, and on a wide screen the existing in-flow hold
   (demo4-native.css mb4-hold) follows — the counter-move's tail is that hold's ease-in mirrored, so the frame never
   bobs.  The one-shot `.is-in` arrival (projects.js) and the per-element mb11 rise stand down for these parts here —
   the seam replaces them; the mb11 lift on the way out to Beta is kept on the wide screen, as it was.  Hidden parts are
   `visibility: hidden` before the seam (they sit over Recent's dock one screen early), so they never take a click. ══ */
/* 2026-11-24 (rows 18 + 19): the same seam, re-timed so the two sections overlap — Recent's strip is still leaving (to 58 %)
   while the builds land (from 30 %), the field crossing in the middle third — and Projects' own exit added (the Beta seam:
   the frame holds, the builds fall away through the floor, demo4-seams.css has the rest).  The in-flow hold is gone on the
   wide screen: the still tail of each seam IS the hold (landed by 67 %, still to 100 %, then still again until the exit
   starts at 4 % of the next screen — about 37 % of a screen of wheel with nothing moving, the phone included). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.mb2 #projects.mb2-sec { view-timeline: --pj-seam block; }
    html.mb2.mb2.mb2 #projects.mb2-sec { box-sizing: content-box; padding-bottom: var(--sm-hold); }
    html.mb2.mb2.mb2 #projects.mb2-sec > * { animation: sm-hin linear both, sm-hmid linear both, sm-hout linear forwards; animation-composition: replace, add, add;
      animation-timeline: --pj-seam, --pj-seam, --pj-seam; animation-range: entry 0% entry 100%, contain calc(100% - var(--sm-hold)) contain 100%, exit 0% exit 100%; }
    html.mb2.mb2.mb2 #projects.mb2-sec > :is(.mb5-pjg, .mb10-sw) { animation: sm-hin linear both, sm-fin cubic-bezier(.45, 0, .55, 1) both, sm-hmid linear both, sm-hout linear forwards;
      animation-composition: replace, replace, add, add; animation-timeline: --pj-seam, --pj-seam, --pj-seam, --pj-seam;
      animation-range: entry 0% entry 100%, entry 22% entry 58%, contain calc(100% - var(--sm-hold)) contain 100%, exit 0% exit 100%; }
    /* the one-shot arrival stands down: its parts simply show, the seam moves them */
    html.mb2.mb5-pj-arm #projects.mb2-sec :is(.mb5-pjt__h, .mb5-pf, .mb5-pjt__cta) { opacity: 1; transform: none; transition: none; }
    html.mb2.mb5-pj-arm #projects.mb2-sec .mb5-pc__a { opacity: 1 !important; transform: none !important; transition: none !important; }
    html.mb2.mb2.mb2 #projects.mb2-sec :is(.mb5-pjt__h, .mb5-pjt__cta, .mb5-pf, .mb5-pc) {
      --pj-k: 0;
      animation: pj-seam-in var(--sf-ease, cubic-bezier(.16, 1, .3, 1)) both, sm-fall cubic-bezier(.55, 0, .85, .35) forwards;
      animation-timeline: --pj-seam, --pj-seam;
      animation-range: entry calc(var(--pj-a, 30%) + var(--pj-k) * var(--pj-st, 0%)) entry calc(var(--pj-a, 30%) + var(--pj-k) * var(--pj-st, 0%) + var(--pj-d, 22%)),
        exit calc(var(--pj-o, 6%) + var(--pj-k) * 3.5%) exit calc(var(--pj-o, 6%) + 26% + var(--pj-k) * 3.5%);
    }
    html.mb2.mb2.mb2 #projects.mb2-sec .mb5-pf__b { animation: none; }   /* the chips ARE the tray: they arrive and leave with it */
    html.mb2 #projects.mb2-sec .mb5-pjt__cta { --pj-a: 46%; --pj-d: 20%; --pj-y: min(4vh, 40px); --pj-o: 0%; --sm-fy: 3vh; }
    html.mb2 #projects.mb2-sec .mb5-pjt__h { --pj-a: 36%; --pj-d: 22%; --pj-y: min(9vh, 96px); --pj-o: 2%; --sm-fy: 4vh; }
    html.mb2 #projects.mb2-sec .mb5-pf { --pj-a: 38%; --pj-d: 22%; --pj-y: min(4vh, 40px); --pj-o: 4%; --sm-fy: 4vh; }
    html.mb2 #projects.mb2-sec .mb5-pc { --pj-a: 42%; --pj-st: 3%; --pj-d: 20%; --pj-y: min(7vh, 72px); --pj-o: 6%; --sm-fy: 14vh; }
    html.mb2 #projects.mb2-sec .mb5-pc:nth-child(2) { --pj-k: 1; } html.mb2 #projects.mb2-sec .mb5-pc:nth-child(3) { --pj-k: 2; }
    html.mb2 #projects.mb2-sec .mb5-pc:nth-child(4) { --pj-k: 3; } html.mb2 #projects.mb2-sec .mb5-pc:nth-child(5) { --pj-k: 4; }
    html.mb2 #projects.mb2-sec .mb5-pc:nth-child(n+6) { --pj-k: 5; }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
    /* the phone's section clips (overflow: clip) — that would cut the counter-moved frame at the section's edge */
    html.mb2 #projects.mb2-sec { overflow: visible; overflow-x: clip; }
  }
}
@keyframes pj-seam-hold { from { translate: 0 -100dvh; visibility: hidden; } to { translate: 0 0; visibility: visible; } }
/* -100dvh at the seam's start, linear to -H/2 where the hold's ease-in begins (offset (1 - .075) / (1 + .075)), then the
   mirror of that ease-in (a quadratic ease-out) to 0 — section translate + this = 0 throughout */
@keyframes pj-seam-hold-vs {
  0% { translate: 0 -100dvh; visibility: hidden; animation-timing-function: linear; }
  0.01% { visibility: visible; }
  86.0465% { translate: 0 calc(-.5 * var(--mb4-hold, 0px)); animation-timing-function: cubic-bezier(.3333, .6667, .6667, 1); }
  100% { translate: 0 0; visibility: visible; }
}
@keyframes pj-seam-field { from { opacity: 0; } to { opacity: 1; } }
@keyframes pj-seam-in { from { opacity: 0; translate: 0 var(--pj-y, 48px); visibility: hidden; } to { opacity: 1; translate: 0 0; visibility: visible; } }
