/* ---------- a journal entry, over the feed ----------

   Anthony, 2026-09-17: "what if the card kind of popped out of the carousel and
   became a separate element on top of it, with an X to close it". It answers
   the dead end better than a page does — the feed is still there behind the
   words, so leaving the entry is a press rather than a journey.

   It still has its own address (/journal/<slug>/), so it can be linked to and
   indexed, and a direct visit opens the site with the panel already up. That is
   exactly how the project page works: an overlay with a URL.

   THE SECOND PASS (2026-09-17). The first build laid the panel out CENTRED at
   its final size and revealed it with a clip-path measured off the card. It
   grew, but only near the middle of the window: a clip is an inset into the
   panel's OWN box, so a card at the left or right edge of the screen gave a
   rectangle that had to be clamped to the panel's edge, and the growth then
   started from the panel rather than from the card. "It only works if the card
   is in the middle."

   So the box itself is the animation now. `.jr-card` IS the object: it is set
   to the pressed card's rectangle — anywhere on screen, no clamp, no centre —
   and its left/top/width/height ease to the reading box. The contents sit in
   `.jr-inner` at their final size and are counter-positioned by exactly the
   same curve, so they stay nailed to one spot on screen while the card's window
   opens over them. Nothing is ever scaled: no word is ever sheared, and the
   corner is the card's own 20px from the first frame to the last.

   All four of the animated properties are layout properties, which is
   deliberate and is the same choice `.slide` makes when a column enlarges: a
   transform is cheaper but cannot grow a box that something else is clipped by.
   The card is one empty rectangle with one absolutely-positioned child of fixed
   pixel size, so a width change re-clips and repaints but reflows nothing. */
.jr-panel{
  position:fixed;
  inset:0;
  z-index:50;
  pointer-events:none;
  visibility:hidden;
  /* the filter is the MENU's, not the entry's — see "WITH THE MENU OPEN" below.
     Both of these rules have to carry it: a transition declaration replaces the
     whole list, and the open state restates one. */
  transition:visibility 0s linear var(--jr-close),filter 520ms var(--ease);
}
body.journal-open .jr-panel{
  visibility:visible;
  transition:visibility 0s,filter 520ms var(--ease);
}

/* THE OBJECT, AND THE READING BOX IS 4:5 — THE CARD'S OWN PROPORTION, GROWN.

   Anthony, 2026-09-17: "the card originally was designed to be 4 by 5 and it
   just grows in size... I would just do 4 by 5 and fix that, and then you can
   just scroll within the card itself if the text becomes too long. If the text
   is too short then I would just keep it the same size, it's fine." So the box
   is a fixed rectangle in the card's own ratio and the story scrolls inside it,
   however long or short the entry is. A 400×500 card at 1400×948 grows to
   646×808, which is the same shape at 1.62×.

   It is the LARGEST 4:5 that fits, and the three things it has to fit inside
   are all in the min() below: the 720 column, the window less its margins, and
   the band between the header and footer lines. Whichever runs out first sets
   the width, and the height follows it at 1.25. Height-limited is the usual
   case on a laptop, so the box normally stands exactly between the two chrome
   lines; where it is not, it is centred in that band, which is what the `top`
   works out (the band is symmetric, so half the window less half the box).

   Nothing reads these but `journalRest()`, which measures them by standing the
   inline pixels down — so this stays the one place the reading box is
   described. Centred WITHOUT a transform and without auto margins: both would
   still be in force once openJournal writes `left` in pixels, and would shift
   the box out from under its own measurement. */
:root{
  --jr-w:min(720px, calc(100vw - var(--pad) * 2), calc((100vh - var(--header-h) * 2) * .8));
  --jr-h:calc(var(--jr-w) * 1.25);
}
.jr-card{
  position:absolute;
  top:calc(50% - var(--jr-h) / 2);
  height:var(--jr-h);
  left:calc(50% - var(--jr-w) / 2);
  width:var(--jr-w);
  border-radius:var(--radius);
  overflow:hidden;
  /* The base rule is the CLOSED state, so its durations are the ones a close
     runs on; `body.journal-open` below restates the list at --jr-open for the
     way in. Both have to carry the whole list — a transition declaration
     replaces it. */
  transition:left var(--jr-close) var(--glide),
             top var(--jr-close) var(--glide),
             width var(--jr-close) var(--glide),
             height var(--jr-close) var(--glide),
             transform var(--jr-close) var(--glide),
             background 420ms var(--ease);
}
body.journal-open .jr-card{
  transition:left var(--jr-open) var(--glide),
             top var(--jr-open) var(--glide),
             width var(--jr-open) var(--glide),
             height var(--jr-open) var(--glide),
             transform var(--jr-open) var(--glide),
             background 420ms var(--ease);
}
body.journal-open .jr-panel .jr-card{pointer-events:auto}

/* ---- the frosted surface --------------------------------------------------

   Anthony, 2026-09-17: "what if that card had the kind of blurriness effect
   that the plus icon when you hover over an image has — that kind of blurry
   thing that blurs out the items behind it". So it is frosted rather than
   opaque, and the feed shows through it softened.

   THE RECIPE IS THE MENU PANEL'S, NOT THE BADGE'S, and on purpose. The badge is
   30px of chip over whatever it happens to be passing — blur(10px) at .6 is
   plenty for a glyph. This is a page of 16px prose over photographs, which is
   the menu panel's job exactly, so it takes the menu's numbers: blur(28) with a
   little saturation, at .72 rather than .6, which is what keeps a story legible
   over a black-and-white product shot.

   ON ITS OWN LAYER, exactly as `.panel::before` is: a backdrop-filter element
   is a containing block and a stacking context, and putting it on .jr-card
   itself would make the scrolling column inside it one too. The card keeps the
   corner and the clip; the pseudo only paints.

   COMPARE WITH `/?jr=solid`, which paints the old opaque surface instead — the
   frost is the more expensive of the two by a long way (the card resamples its
   backdrop on every frame of the growth, and again on every frame of a drag),
   and this is Anthony's call on a real phone. */
.jr-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:var(--jr-frost);
  backdrop-filter:blur(28px) saturate(140%);
  -webkit-backdrop-filter:blur(28px) saturate(140%);
  transition:background 420ms var(--ease);
}

/* THE FEED IS HELD STILL WHILE THE CLOSE RUNS (Anthony, 2026-09-18: "I would
   speed up the closing animation and I would almost lock it so nobody can
   actually move left or right until the card is back in its place").

   It is the answer to a real problem. Everything the close animates is pinned
   in VIEWPORT coordinates and aimed at a rectangle in the feed, measured once —
   so if the feed moves, the panel and the flying headline are left travelling
   to where the card used to be, and they hold still while everything scrolls
   under them. Cutting the animation short the instant anything moved was tried
   first and he was right to reject it: "it creates a very abrupt animation in a
   website that is full of very smooth, very considered animations."

   So nothing moves instead. `holdScroll` in app.js swallows wheel and touchmove
   for the duration, `isPageOpen()` keeps the carousel's own handler out, and
   `.stage` is still `inert` from the open. It lasts --jr-close, which is why
   the close is 420 rather than the open's 760: the shorter it is, the shorter
   anyone is held. */
body.jr-closing{touch-action:none}

/* AND IT IS TAKEN DOWN ONCE THE PANEL HAS GONE. `visibility:hidden` hides the
   panel but keeps it laid out — deliberately, because journalRest() measures
   the reading box off it while it is hidden — and a backdrop-filter that is
   merely hidden is still a live compositing layer. Safari keeps stale pictures
   of filtered layers (it is why the menu needs `blur-nudge` for a theme change),
   and a stale picture of THIS one is a rectangle of the entry left painted over
   the page, sitting still while the feed scrolls under it: "there are remnants
   of the card that kind of follow me while scrolling" (Anthony, 2026-09-17).

   `jr-gone` is set on the BODY by closeJournal once the close has finished, and
   cleared on open, so the filters only exist while the entry is actually on
   screen. The layout the measurement needs is untouched. NOT keyed on
   `body.journal-open`, which comes off at the START of the close — the frost
   and the scrim have to survive the whole shrink or the card goes flat and the
   background snaps sharp half way home. On the body rather than the panel
   because the scrim lives inside .blurwrap and the panel outside it. */
body.jr-gone .jr-card::before{
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
/* hidden THIS frame, not at the end of a transition it may no longer be
   running: a close cut short by the reader scrolling has to leave nothing
   behind on the very next paint */
body.jr-gone .jr-panel{filter:none;visibility:hidden;transition:none}
html.jr-solid .jr-card::before{
  background:var(--surface);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
/* held, it answers the hand and nothing else: no curve between the pointer and
   the object it is carrying */
/* `body.journal-open` in the selector, or the open state's own transition
   list (0,2,1) out-ranks this one (0,2,0) and the card chases the hand on the
   880ms --glide curve — held still while the mouse moved, then drifting after
   it on release (Anthony, 2026-09-21: "I grab it, move, nothing happens"). */
.jr-card.is-held,
body.journal-open .jr-card.is-held{transition:background 420ms var(--ease);user-select:none}

/* ---- the headline, travelling ----------------------------------------------

   Anthony, 2026-09-17: the card's line and the entry's title are the same
   words, so he wanted them to be the same words on screen too — "I'm wondering
   if that headline can animate with the pop-out animation just so there's some
   kind of consistency" — and, on the way back, so that the card is never "just
   kind of like a blank rectangle card for a little bit and then the text pops
   up".

   ONE COPY OF THE LINE, MOVED. It is not a cross-fade between two headlines and
   it is not scaled: both are 20px and both sit one --pad in from their box's
   top-left, so the whole move is a translate and a change of measure. The real
   title underneath is faded up on its own clock and the flier is taken away the
   instant it is fully there, so the two are never both visible at half opacity —
   identical text cross-faded against itself goes momentarily light.

   `width` animates with the translate because the two measures differ (360 on
   the card, 640 in the panel, which is the reading box less the padding and the
   X's 40). A headline that fits on one line in both — which is what a card
   headline is — never reflows, and that is the case worth optimising for; a
   long one rewraps on the way, which is the truthful thing for it to do.

   ABOVE .jr-card, not inside it: inside, the card's own overflow would clip the
   line to the growing box, which is exactly the wipe the contents are pinned to
   avoid. */
.jr-fly{
  position:absolute;
  left:0;
  top:0;
  font-size:20px;
  line-height:1.3;
  color:var(--ink);
  z-index:2;
  visibility:hidden;
  pointer-events:none;
  transition:transform var(--jr-close) var(--glide),
             width var(--jr-close) var(--glide);
}
body.journal-open .jr-fly{transition:transform var(--jr-open) var(--glide),
             width var(--jr-open) var(--glide)}
.jr-fly.is-flying{visibility:visible}

/* THE CONTENTS, AT FINAL SIZE, PINNED IN PLACE. Width and height are written in
   pixels alongside the card's, so the type is laid out once, at its final
   measure, and never reflows on the way; left/top carry the counter-move on the
   card's own curve. */
/* THE WORDS WAIT FOR THE SHAPE TO LAND — they do not arrive during it.

   They used to start at 400ms of a 760ms growth, so the type came up while the
   box was still moving under it (Anthony, 2026-09-17: "it animates as the box
   itself is still animating, which is not good. Ideally it's very smooth and it
   feels seamless"). The delay is now the growth's own duration, so the sequence
   is one thing at a time: the card grows, the card settles, the card fills. And
   the fill is slower — `--jr-fill` 460ms against the old 340 — because nothing
   else is moving by then and there is no reason to hurry it.

   THE HEADLINE IS NOT PART OF THIS. It is already on screen, carried out of the
   card by `.jr-fly`, and it stays solid straight through: the flier is held
   until the title underneath has finished rising and only then steps away (see
   `jrOpenMs() + jrFillMs()` in app.js). Without that the one word that WAS
   continuous would blink out at the moment the shape landed. */
.jr-inner{
  position:absolute;
  left:0;
  top:0;
  opacity:0;
  transition:left var(--jr-close) var(--glide),
             top var(--jr-close) var(--glide),
             opacity 200ms var(--glide);
}
/* THE WORDS COME IN WHEN THE BOX HAS LANDED — MEASURED, NOT TIMED (2026-09-26,
   his note: "the text sometimes appears a bit quicker than the animation… it
   appears, and then the animation kind of finishes right after"). The fill used
   to start at a fixed 70% of the growth, when --glide has the box 94% there —
   but 6% of a long trip is still 29px (the intro card, measured: words at 673ms,
   box still moving until 872), so the words came up under a box that was still
   settling, more so the further the card had to travel. Now app.js adds
   `jr-filled` on the first frame the box is within a pixel of its resting place
   (`jrFillWhenLanded`), and the fill runs from there. To keep the words as
   quick as before, the growth is faster (--jr-open 880 → 800, his offer, then
   720 when he asked for snappier) and the fill shorter (400 → 360 → 280). The contents are
   counter-moved, so they never move either way. */
body.journal-open .jr-inner{transition:left var(--jr-open) var(--glide),
             top var(--jr-open) var(--glide),
             opacity var(--jr-fill) var(--ease)}
body.journal-open.jr-filled .jr-inner{opacity:1}
.jr-card.is-held .jr-inner{transition:opacity 340ms var(--ease)}

.jr-scroll{
  position:absolute;
  inset:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.jr-scroll::-webkit-scrollbar{display:none}

/* AND THE FEED BEHIND IT BLURS, AS IT DOES BEHIND THE MENU.

   THIS IS A REVERSAL, AND A DELIBERATE ONE — don't undo it on the strength of
   the older note. The first build had a 24px blur here; Anthony took it out on
   2026-09-17 ("no blur at all. Remove it. The card should simply be in front of
   everything") because at the time it was hiding a compression that could not
   be read through it. With the compression gone, the zoom gone and the entry
   frosted, he asked for it back the same day on different grounds: "perhaps
   frosting or like blurring out the background once the journal card is open...
   I'm just considering that maybe that's going to be necessary for actual use.
   Like readability."

   IT IS A SCREEN-SIZED `backdrop-filter`, NOT A `filter` ON .blurwrap, and that
   distinction is what makes it work on a phone (2026-09-18). The menu blurs
   .blurwrap and gets away with it because on a laptop .blurwrap is fixed and
   screen-sized; on a phone it is `static`, in the page flow, and as tall as the
   whole feed — twenty thousand pixels of column. iOS simply declines to blur
   that, so the background came out sharp. A scrim blurs only what is on screen,
   costs one layer whatever the feed's length, and leaves .blurwrap untouched —
   which also means it never turns into the containing block for the fixed views
   inside it, the trap that once collapsed the project page to nothing.

   The entry itself sits above it and the footer is outside the panel entirely,
   which is why both stay sharp; the header's controls do too, because unlike
   under the menu they are all still live. */
.jr-scrim{
  /* FIXED, not absolute: it lives inside .blurwrap, which on a phone is a
     static box as tall as the feed — an inset:0 absolute child would inherit
     that height and blur the whole column again. Fixed pins it to the screen
     whatever the page is doing, and .blurwrap carries no filter or transform
     now, so there is nothing to resolve it against but the viewport. */
  position:fixed;
  inset:0;
  opacity:0;
  pointer-events:none;
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  transition:opacity var(--jr-close) var(--ease);
}
body.journal-open .jr-scrim{opacity:1;transition:opacity 520ms var(--ease)}
/* under the menu the page is already blurred by .blurwrap, and a backdrop-filter
   keeps its own edge crisp under a `filter` — the same trap the header controls
   and the card's own frost are taken out of */
/* The filter comes off once the blur has FINISHED fading out, not when the
   close starts — `body.jr-gone` is set after the animation, the same flag the
   panel's own frost uses. Keyed on the body because the scrim lives inside
   .blurwrap and the panel outside it: there is no selector that reaches from
   one to the other. */
body.menu-open .jr-scrim,
body.jr-gone .jr-scrim{
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* NOTHING BEHIND THE ENTRY IS SCALED, AND NOTHING BEHIND IT IS LIVE.

   Two shapes of a "settle back" were built and both were wrong, so this is
   written down rather than tried a third time. The first scaled `.stage`, which
   is the WINDOW the strip is clipped to, so the clip pulled in with it and the
   page's ground showed as hard bars down the left and right. The second scaled
   an unclipped box inside that window, which fixed the bars — until Anthony
   opened a few project columns first, where the images run the full height of
   the screen: scaled, they stop short of the top and bottom edges and the
   result is "a big gap on the top and the bottom just a big line there like a
   hard cut on the project images". Any scale of a full-bleed surface has an
   edge somewhere, and the strip is full-bleed on purpose.

   So THERE IS NO ZOOM (his call: "I don't think that needs to happen"). The
   only thing the feed does is close the hole the entry left and open it again
   — see .slide.jr-near below. Nothing else moves, nothing is blurred, and the
   entry is simply in front. */

/* AND IT IS IN FRONT OF A BACKDROP, NOT OF A LIVE PAGE. `.stage` goes `inert`
   for the visit, which is what the 404 and every other full view does: without
   it the strip underneath still answered the pointer, so a project card lit its
   plus badge and started its hover swell behind the open entry — "I see the
   plus icon and I also get the zoom-in effect, but not in a good way". `inert`
   takes the hover, the focus and the tab order together; `tipFor()` is told
   separately, because the badge is carried on the pointer and is not inside the
   element that went inert. The arrows go with it: a control that only closes
   the thing in front of it should not be sitting there offering to scroll. */
body.journal-open .arrows{opacity:0;pointer-events:none;transition-delay:0s}
/* AND WITH THE MENU (2026-10-05, his report): they are outside .blurwrap and
   above it, and nothing told them the menu was open, so they stayed sharp and
   pressable until the menu card had faded in over them — then vanished. They
   go at once now, like they do for a page or an entry, and come back with the
   strip when the menu closes. Nothing behind the panel is live. */
body.menu-open .arrows{opacity:0;pointer-events:none;transition-delay:0s}

/* WITH THE MENU OPEN THE ENTRY BLURS WITH THE PAGE. The panel sits outside
   .blurwrap — it has to, so the header still paints over it — so the menu's
   blur does not reach it, and an open entry stayed perfectly sharp over a
   blurred site. Same filter, same 520ms curve as .blurwrap's own; the
   transition itself is declared up on .jr-panel, with the rest of its list.

   AND ITS FROST STANDS DOWN WHILE THE MENU IS UP. A backdrop-filter keeps its
   own edge crisp under a `filter`, which is the same trap the header's controls
   fell into: the words would blur out and the frosted surface would stay sharp
   behind them. Painting the flat surface for those few seconds is what the
   header does too, and it is the only moment on the site when an entry is not
   the thing being looked at. */
body.menu-open .jr-panel{filter:blur(24px)}
body.menu-open .jr-card::before{
  background:var(--surface);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

/* ---- the hole the entry leaves, closing (Anthony, 2026-09-17, third ask) ----

   "I would like the project cards next to the popped-out journal card to
   collapse or to be next to each other basically, when the journal card is
   selected and it comes off of the carousel." So the cards on each side of the
   entry's own card slide in over its footprint: everything to its left moves
   right by half a STEP, everything to its right moves left by half a STEP, and
   the 420px the card occupied closes to the same 20px gutter every other pair
   of cards has. Half each side rather than all from one, so the closure happens
   where the hole is instead of dragging the whole strip sideways.

   IT IS A TRANSFORM, AND NOT THE OBVIOUS LAYOUT COLLAPSE. The first build ran
   the slide's own `width` to 0 with a negative margin to eat the gutter, which
   is the natural way to close a flex row — and it made the open visibly rough:
   every frame re-laid-out a 105-item row, which measured four to eight frames
   over 33ms scattered through the animation against one for the compression
   alone (Safari, three runs each). Containment did not help. Translating the
   neighbours instead touches no layout at all: same closure, same curve, one
   frame. The card's own slide is deliberately left alone, so it keeps its place
   in the row and the panel still shrinks back onto exactly the rectangle it
   grew out of.

   ONLY THE SLIDES THAT CAN BE SEEN MOVE — eight each way, which is more than
   three screens. The rest of the row stays where it is and is never looked at,
   because the strip cannot move while an entry is open: the wheel, the drag and
   the arrows all resolve to "close the entry".

   TWO CLASSES, NOT ONE. `jr-near` carries the transition and stays on for the
   whole cycle; `jr-in-l` / `jr-in-r` carry the values. One class would be gone
   at the moment it is removed, so the way back would not animate.

   IT RESTATES `width` FROM `--slide-w` RATHER THAN DROPPING IT. A `transition`
   declaration replaces the whole list, so the first version — transform only —
   silently took the width transition off whatever column it landed on, and was
   in turn beaten outright by `.slide.is-open.is-zoomed` at (0,3,0), which left
   an enlarged neighbour with no transform transition and made it snap into
   place. The timing now lives in `--slide-w` (see .slide), so this rule names
   both properties and cannot collide with any state's clock. */
.slide.jr-near{transition:width var(--slide-w),transform var(--jr-close) var(--glide)}
body.journal-open .slide.jr-near{transition:width var(--slide-w),transform var(--jr-open) var(--glide)}

/* A COVER VIDEO KEEPS ITS OWN LAYER, ALWAYS.

   Anthony, 2026-09-17 and again 2026-09-18 with a recording: after closing an
   entry, "there are remnants of the card that kind of follow me while
   scrolling". The frames show an open project column whose COVER VIDEO is
   painting nothing — a white rectangle where the clip should be, travelling
   with the strip as it scrolls — while its caption and case study draw
   normally. Measured through the whole cycle, that video's state is perfect:
   src set, playing, readyState 4, poster present, opacity 1, visible. So it is
   not a state bug, it is a paint one.

   What is new around it is the hole closing: sixteen neighbouring slides are
   given a `transform` for the entry's 760ms and have it taken away again, which
   promotes each of them to its own compositor layer and then folds it back.
   Safari does not reliably re-paint a playing <video> that was folded into a
   parent layer and then released, and a lost video layer is a transparent hole
   — the page's own white ground showing through.

   Promoting the videos themselves, permanently, takes them out of that: a
   layer that is never folded in cannot be dropped when it is folded back out.
   It is the same reasoning as `.cursor-tip`'s own layer and the header
   controls' permanent `will-change:filter`, and it costs nothing that playing
   video was not already costing. NOT verifiable from here — the DOM says the
   video is fine either way, and only the GPU knows — so it is written down as
   a diagnosis. `app.js` also nudges these back to life after a close. */
.slide video{will-change:transform}
.slide.jr-near.jr-in-l{transform:translateX(calc((var(--card-w) + var(--strip-gap)) / 2))}
.slide.jr-near.jr-in-r{transform:translateX(calc((var(--card-w) + var(--strip-gap)) / -2))}

/* AND THE CARD'S OWN FACE COMES BACK GRADUALLY (his words: "I prefer ... the
   original text in the journal card appeared gradually"). The card is hidden
   under the panel for the whole shrink; at the moment the panel lands on it and
   goes, the card takes its place with the same surface at the same rect, so
   nothing about the shape changes — only the words rise. An animation rather
   than a transition on purpose: a transition would have to be declared on the
   resting state of every card's children to animate on class REMOVAL, and
   restating a transition on .surface-card's children is how two earlier bugs
   got in. This touches nothing that is not returning. */
@keyframes jrFaceIn{from{opacity:0}to{opacity:1}}
/* THE EXCERPT AND THE BUTTON RISE; THE HEADLINE DOES NOT. The headline never
   left the screen — the flier carried it home — so it is simply there the
   moment the card is revealed, and the flier steps away in the same tick. That
   is what lets the whole close finish when the shrink does: nothing aimed at a
   position in the feed is left in the air afterwards, so the hold on the feed
   can be lifted as soon as the card is back. Before this the flier had to stay
   out for --jr-face past the reveal, holding a line over a card that could
   scroll away underneath it. */
.surface-card.is-returning .b,
.surface-card.is-returning .btn{animation:jrFaceIn var(--jr-face) var(--ease) both}
/* AND THE HEADLINE RISES WITH THEM WHEN NOTHING IS CARRYING IT. It is left out
   above because the flier normally delivers it solid — but the flier only runs
   when the entry's own title is on screen to fly FROM, and it is not once the
   reader has scrolled down (see `carry` in app.js). With no flier there is no
   handover to protect, so the line comes back the way the rest of the face
   does.

   A FLAG OF ITS OWN, not `:not(.jr-line-off)`. That class is removed in the
   same tick the card is revealed — `journalFlyEnd` takes it off as the flier
   goes — so the negation was already true by the time styles resolved, and the
   headline faded up from zero underneath a flier that had just delivered it
   solid. Which is the soft spot the whole handover exists to avoid. */
.surface-card.is-returning.jr-line-in .h{animation:jrFaceIn var(--jr-face) var(--ease) both}

/* EXCEPT THE HEADLINE, WHICH THE FLIER IS STILL HOLDING. It is the one line
   that never left the screen, so it must not fade in with the rest — and it
   must not be painted twice either: two copies a fraction of a pixel apart
   thicken rather than cancel, which is the "title almost gets bold at one
   moment" Anthony saw. Held at zero under the flier and released in the same
   tick the flier goes (see journalFlyEnd), so the swap shows nothing. */
.surface-card.jr-line-off .h{opacity:0}

/* ---- the select's chevron, in the panel ------------------------------------

   The chevron is a BACKGROUND IMAGE with its stroke baked into the file, so it
   cannot inherit `color` — the same trap `arrow.svg` fell into on the dark
   theme's chip. There are two files and the theme picks between them, but the
   theme picks for the CONTACT BLOCK, which runs counter to the page: on the
   light theme that card is dark, so `--chevron` is the light glyph. In this
   panel the form sits on the page's own surface instead, so the counter choice
   is exactly backwards and the glyph came out white on near-white, and black on
   near-black (Anthony, 2026-09-17: "it's really hard to see"). This takes the
   other one of the pair. */
.jr-form .field select{background-image:var(--chevron-on-surface)}

/* the X rides in the panel's own top-right corner and stays there while the
   words scroll under it — the only control the entry has */
.jr-x{
  position:absolute;
  /* LEVEL WITH THE HEADLINE, NOT WITH THE BOX'S CORNER. Both used to sit at
     --pad from the top, which is right for two boxes and wrong for what you
     see: the title is cap-trimmed, so its box is 15px tall at 20px and its
     middle lands 7px above the middle of a 30px control starting at the same
     line. The headline read as sitting higher (Anthony, 2026-09-17). Centred
     on the cap box instead, the two are level — the title still starts exactly
     at --pad, and only the circle moves. --jr-cap is Inter Tight's cap height
     at the title's 20px, measured. */
  --jr-cap:15px;
  /* rounded to a whole pixel (the icon pass, 2026-09-19): the exact middle is
     12.5, and half a pixel softens the X on a 1x screen */
  /* IN THE CORNER, EVEN ON BOTH SIDES (Anthony, 2026-09-21: "I don't want
     there to be more space on the right than on the top"). Centring the X on
     the headline had put it 12 from the top against 20 from the right (9
     against 20 at 36px). Then --pad from both edges, with the headline
     brought down to its middle — which made the headline drop as a card
     opened. 2026-09-24: the headline keeps the card's 20, and the X moves INTO
     the corner, 10 from the top AND the right (the spacing scale's step), which
     centres a 32 circle within 2px of the headline's capitals (26 against 27.5;
     a phone's 30 circle, 25). Equal on both sides, level with the headline, and
     the headline never moves. At --pad with the tops shared, it read as too low
     (Anthony). */
  top:10px;
  right:10px;
  z-index:1;
}
/* The glyph is drawn as an X and the site rotates it 45deg to READ as a plus;
   this one is only ever a close, so it is turned back — the same rotation an
   open card's caption uses. */
.jr-x .plus{transform:rotate(90deg)}

.jr-doc{
  display:flex;
  flex-direction:column;
  gap:var(--syn-gap);
  padding:var(--pad);
  /* THE FOOT SITS ON THE CARD'S BOTTOM EDGE (Anthony, 2026-09-18: "align the
     bottom information, the 13px text, to the bottom of the card"). The doc is
     at least the card's height and its last block takes the slack above it, so
     Related Projects and the date land --pad from the bottom — the same inset as
     the title from the top and the X from the side. A story longer than the card
     simply scrolls and ends on the foot at that same inset. (It used to end
     3 x --pad under the last line wherever that fell.) Start a project uses the
     same box: there the slack goes to the message field instead — see .jr-form. */
  min-height:100%;
}
.jr-doc > :last-child{margin-top:auto}
/* The card the entry grew out of holds its place but stops painting: the panel
   is standing in for it, and two of the same card — one under the other — is
   what gives a growth away. */
.surface-card.is-grown{visibility:hidden}

/* the headline clears the X, which sits in the same corner. The TITLE, not the
   whole head: the line under Start a project's headline starts below the X and
   runs the full width (Anthony's Figma, 2026-09-18). */
/* level with the X: the cap box centred on the chip, rounded down to a whole
   pixel (10 on a laptop, 7 on a phone); the right padding keeps a long title
   clear of it */
/* THE HEADLINE HOLDS ITS PLACE (Anthony, 2026-09-24). It used to come down to
   the X's middle, 8 below the card's 20, and so dropped as a card opened;
   pushing the closed cards' headlines down to match read as a mistake ("way
   too low, doesn't match the side margin"). So the headline keeps the card's
   20 top and side, the X keeps 20 from the top and the right, and the two
   share their TOP edge instead of a centre line. */
.jr-panel .jr-title{padding-right:calc(var(--chip-h) + 10px);margin-top:0}
.jr-top{display:flex;flex-direction:column;gap:30px;align-self:stretch}   /* 30, a journal entry's paragraph gap (2026-10-30): the line and the form read as the next paragraph */

/* AN ENTRY'S TYPE — Anthony's frame `Desktop_Journal Page` 843:3900, measured
   off 843:3948, now set inside the panel above rather than on a page of its
   own. His: the title row (headline left, date right), the 40px between the
   blocks, and the way out at the foot. */
.jr-head{align-self:stretch}
/* margin:0 — it is an h1, and the browser's own 0.67em would break the 40px */
.jr-title{margin:0;font-size:20px;font-weight:400;color:var(--ink)}
/* the panel's own title is held back while the travelling copy is on its way,
   and comes up under it — see .jr-fly above */
.jr-fly.is-flying ~ .jr-card .jr-title{opacity:0}
/* THE DATE IS THE LAST LINE OF THE ENTRY, HARD RIGHT. Out of the title row
   (Anthony, 2026-09-17): on a phone that put it right beside the X, where it
   read as a second control. 13px to match Related Projects, and full --ink with
   no fade — "we don't use gray anywhere in the website". */
.jr-date{
  align-self:flex-end;
  flex:0 0 auto;
  font-size:var(--fs-s);
  color:var(--ink);
  text-align:right;
}
.jr-body{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  /* THE TYPE IS 13 / 16 / 20 AND THE SPACING 10 / 20 / 30 / 40 (Anthony,
     2026-09-18). A story is 13 on a laptop and on a phone (a phone had 16 until
     his next pass the same day), paragraphs 30 apart — his last pass had 14
     with 30 and 16 with 34. */
  gap:30px;
  font-size:var(--fs-s);
}
/* the press list's rhythm: the label, then the names 10px under it */
.jr-related{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:var(--fs-s);
}
/* THE LINKS AND THE DATE SHARE A ROW, so the date sits on the baseline of the
   last project's name — "aligned to the ruler with icons text, meaning that
   that would be the bottom line in the card" (Anthony, 2026-09-17). On a phone
   it was a line of its own under the list, which read as a stray. `flex-end`
   aligns their BOTTOM edges, and both are 13px cap-trimmed, so the baselines
   land together. */
.jr-foot{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}
.jr-links{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
/* THE UNDERLINE IS DRAWN (2026-11-16, his note: on a phone "Ruler with icons" had
   none). The link is trimmed to its letters, so a text underline sits outside its
   box and iOS barely paints it — the project page's Press link had the same, and
   the same fix (05-project.css .press). */
.jr-links a{
  position:relative;
  text-decoration:none;
  transition:opacity 200ms var(--ease);
}
.jr-links a::after{content:'';position:absolute;left:0;right:0;top:calc(100% + 3px);height:1px;background:currentColor}
@media (hover:hover){.jr-links a:hover{opacity:.55}}.jr-links a.is-pressed{opacity:.55}

/* ---- the contact form, inside the panel -----------------------------------

   Start a project grows the intro card into the same panel a journal entry
   uses, and what is inside it is the menu's own form — a clone of the markup,
   wired by the same `wireContactForm` (Anthony, 2026-09-17: "I don't want to
   recreate a whole different kind of Start a project thing").

   The fields keep every one of their own rules; this only gives them the
   panel's rhythm instead of the pill's. `.contact-fields` is laid out inside a
   card that is 360 wide in the menu — here it stretches to the reading box, so
   the width is released and the fields fill the column. */
/* THE FIELDS TAKE THE PAGE'S PALETTE HERE, NOT THE CONTACT BLOCK'S. Everywhere
   else the form runs COUNTER to the page — a dark shape on the light theme, a
   light one on the dark — because it is the one high-contrast thing in a menu
   full of tonal rows, and it has to read as the primary action. In this panel
   it is not competing with anything: it IS the card, on the card's own surface,
   and the counter palette put near-white pills on a dark entry and vice versa.
   Every field rule is token-driven, so redefining the tokens here is the whole
   of it — no field rule is touched, and the two instances cannot drift apart.
   `--btn` is what a card's own button already uses, which is exactly the right
   weight for a control sitting on `--surface`. */
.jr-form{
  align-self:stretch;
  --contact-field:var(--btn);
  --contact-field-focus:var(--btn-hover);
  --contact-ink:var(--ink);
  --contact-ph:var(--jr-ph);
  --contact-ph-soft:var(--jr-ph);
  --contact-note:var(--jr-note);
  --contact-ring:var(--chip-hover);
  /* Send has to be a step ABOVE the fields, not the same tone. --btn would put
     it at exactly the fields' colour and it would read as a fifth field; in
     the menu the same gap is --contact-field #2a2a2a against --contact-send
     #565656. --contact-ink is the field text too, so the pair is set together. */
  --contact-send:var(--jr-send);
  --contact-send-hover:var(--jr-send-hover);
  --contact-send-ink:var(--jr-send-ink);
}
/* THE CARD ENDS ON A WAY TO WRITE TO US DIRECTLY (Anthony, 2026-09-18). For a
   day the message field grew to fill the card so Send sat on its bottom edge; a
   box that size reads as "write a lot" and put Send a long way from where
   typing ends, so it went back to its own height (it grows as you type — see
   wireContactForm) with Send straight under it. The card's bottom edge carries
   the studio's address instead, 13px, --pad up, exactly where a journal
   entry's foot sits — for the people who would rather use their own mail. */
.jr-alt{font-size:var(--fs-s);color:var(--ink)}
/* WHAT TO DO, SAID ONCE, under the headline (Anthony, 2026-09-18) — the card's
   own sub-line was left out of the panel as a repeat; this is an instruction
   instead. The card's type: 13px, 20px under the title. */
.jr-lede{margin:var(--syn-gap) 0 0;font-size:var(--fs-s);color:var(--ink)}   /* 40 under the title, the same as a journal entry's headline to its text (2026-10-30); 14 — the site's type is 14 / 16 / 20 */
.jr-alt a{text-decoration:underline;text-underline-offset:3px;transition:opacity 200ms var(--ease)}
@media (hover:hover){.jr-alt a:hover{opacity:.55}}.jr-alt a.is-pressed{opacity:.55}
.jr-form .contact-fields{
  /* VISIBLE BY DEFAULT. In the menu the fields are held at opacity 0 until
     `.contact.is-open` raises them — there is no `.contact` around this clone
     and nothing to open, because the panel IS the open state. */
  opacity:1;
  /* the panel's own --pad already surrounds it; the pill's 20 would double it */
  padding:0;
  width:auto;
  max-width:none;
}

/* THE LEGAL PAGES ARE ONE SIZE ALL THE WAY DOWN (Anthony, 2026-09-17). About
   sets its labels and lists at 13 against a 16px intro, because there the small
   type IS the index — a press list, a row of links. A page of terms is prose
   from top to bottom, so it reads at one size, with one rhythm: paragraphs a
   blank line apart (27px, the intro's own), label to content 20, block to block
   40. Nothing on these two pages is smaller than anything else. */
.docpage .about-block{font-size:16px}
.docpage .about-paras{gap:30px}
.docpage .doc-updated{font-size:16px}

.about-kit{
  display:flex;
  flex-direction:column;
  gap:var(--gap);
  align-self:stretch;
}

.about-lines{line-height:normal}
.about-lines a{
  text-decoration:underline;
  text-underline-offset:3px;
  transition:opacity 200ms var(--ease);
}
@media (hover:hover){.about-lines a:hover{opacity:.55}}.about-lines a.is-pressed{opacity:.55}

/* Figma 794:1503/794:1514. Rows 10px apart, and within a row the year, the
   publication and the project sit 10px apart TOO — they flow, they are not
   columns, so nothing lines up between rows. That is the design: an index, not
   a table. */
.press-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.press-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  white-space:nowrap;
}
/* the publication is underlined only when it goes somewhere — that, and not a
   mark of any kind, is how a linked entry reads as linked */
.press-row a{
  text-decoration:underline;
  text-underline-offset:3px;
  transition:opacity 200ms var(--ease);
}
@media (hover:hover){.press-row a:hover{opacity:.55}}.press-row a.is-pressed{opacity:.55}

/* ---------- reading in the strip (2026-11-14, his call) ----------
   On a laptop a journal card or Start a project grows where it stands to the
   reading box (--jr-w × --jr-h, the panel's own size), standing between the
   header and footer lines, and the slide widens with it so the cards after it
   move along (panel.js "reading in the strip"). The slide keeps its 500 height
   and the card rises out of it by half the difference, so it stays centred on
   the strip's line. Open on the panel's clock, closed on its close clock. */
.surface-card{
  position:relative;
  top:0;   /* a number to rise from and come back to (auto doesn't animate) */
  transition:background 420ms var(--ease),
             width var(--jr-close) var(--jr-shut, var(--glide)),
             height var(--jr-close) var(--jr-shut, var(--glide)),
             top var(--jr-close) var(--jr-shut, var(--glide));
}
/* ONLY UP AND DOWN (2026-11-14, his call: "no need for them to expand to the right…
   a cleaner design"). The card keeps its width, so nothing beside it moves; it grows
   to the band between the header and footer lines, centred on the strip's line. */
:root{--read-h:calc(100vh - var(--header-h) * 2)}
.slide:has(> .surface-card){--slide-w:var(--jr-close) var(--jr-shut, var(--glide))}
.surface-card.is-reading{
  height:var(--read-h);
  /* ONE TRACK FOR THE RISE AND THE GROWTH (2026-11-14, his recording: "I still see
     it"). The rise was a transform, which the browser moves on its own track, while
     the height is drawn with the page; whenever the page was busy for a frame the
     top went on rising and the bottom waited, then caught up — the step. As `top`
     the two are drawn together, so they can never come apart. */
  top:calc((var(--card-h) - var(--read-h)) / 2);
  transition:background 420ms var(--ease),
             width var(--card-rise) var(--card-rise-ease),
             height var(--card-rise) var(--card-rise-ease),
             top var(--card-rise) var(--card-rise-ease);
}
/* A LAPTOP DRAWS THE GROWTH (2026-11-15; panel.js "the growth is drawn"). The open
   card is laid out at its full size at once and goes clear; two halves of its
   background slide apart from where the closed card's edges were. No height or top
   is animated here — those re-laid the page out every frame (his "step"). */
.read-bg{display:none}
@media (min-width:769px){
  .surface-card.is-reading{background:transparent;isolation:isolate;transition:none}
  .surface-card.is-reading > .read-bg{
    display:block;position:absolute;left:0;right:0;z-index:-1;
    height:calc(50% + 20px);   /* the halves overlap, so no seam shows where they meet */
    background:var(--surface);
    transition:background 420ms var(--ease);
  }
  .read-bg.is-top{top:0;border-radius:var(--radius) var(--radius) 0 0}
  .read-bg.is-bot{bottom:0;border-radius:0 0 var(--radius) var(--radius)}
  .surface-card.is-reading > .jr-inline{overflow:hidden}   /* the frame the words are clipped to */
}
/* ON THE PROJECT CARDS' CLOCK (2026-11-14, his note: "expanding too fast"): the
   growth takes an open project column's rise — its 850ms and its softer curve —
   rather than the panel's quicker 720. */
/* THE HEADLINE RIDES THE GROWTH (2026-11-14). The excerpt and the button fade
   as the card starts to grow; the headline stays, riding up with the card's
   top. Once it has landed (.is-filled) the contents fade in under it with their
   own title held back, and then (.is-settled) the two identical lines swap. */
.surface-card > .copy .b,
.surface-card > .btn{transition:opacity 240ms var(--ease) 200ms}
/* the button stays and becomes Close (panel.js "the card's own button closes it") */
.surface-card > .btn{position:relative;z-index:2;white-space:nowrap}
.surface-card > .btn.is-morphing{overflow:hidden;justify-content:flex-start}
.surface-card > .btn .lbl-old{position:absolute;top:0;bottom:0;display:flex;align-items:center;pointer-events:none}
@keyframes lblIn{from{opacity:0}to{opacity:1}}
@keyframes lblOut{to{opacity:0}}
/* the card's headline AND its words stay (2026-11-14): only the button goes, and
   both lines hand over to the open card's copies of them in the same spot */
.surface-card.is-settled > .copy{visibility:hidden}
/* the words widen with the card as it grows (his call: "the text should expand
   out too"), so at the handover they already run the open card's full measure */
.jr-inline{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 240ms var(--ease);   /* closing: the words go over the close's first third, not at once (was 120) */
}
.surface-card.is-filled .jr-inline{opacity:1;transition:opacity 320ms cubic-bezier(.4,0,.6,1)}
.jr-inline .jr-title,
.jr-inline .jr-carry{opacity:0}
.surface-card.is-settled .jr-inline .jr-title,
.surface-card.is-settled .jr-inline .jr-carry{opacity:1}
/* the carried words: the card's size, its 20 under the headline, its measure */
.jr-carry{margin:20px 0 0;font-size:var(--fs-s);color:var(--ink)}
/* and in an entry it reads as the story's first paragraph: the story's own 30
   under it, not the 40 that separates blocks (his note: it should feel part of it) */
.jr-head:has(.jr-carry) + .jr-body{margin-top:calc(30px - var(--syn-gap))}
.jr-inline-scroll{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.jr-inline-scroll::-webkit-scrollbar{display:none}
.jr-inline .jr-title{margin-top:0}
/* THE FOOT IS THE BUTTON'S ROW (2026-11-14): Close on the left (the card's own
   button), and on the right what was the entry's foot — Related Projects, or how
   to write to us — set right and sitting on the button's bottom line */
.jr-inline .jr-doc > .jr-alt:last-child{align-self:flex-end;text-align:right;min-height:var(--ctl-h);display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end}
.jr-inline .jr-foot-room{min-height:var(--ctl-h);margin-top:auto}

/* ---------- Start a project, one short form (steps.js, 2026-11-16) ----------
   Name, then email, then the message, one per line; then
   the studio's address; Send is on the bottom row, opposite Close. Fields are the
   menu's own (.field), on the card's tokens (.jr-form). */
.jr-form{display:flex;flex-direction:column;gap:20px}
.start-form{display:flex;flex-direction:column;gap:10px}
.start-form .field textarea{height:120px}
.start-form [aria-invalid="true"]{border-color:var(--contact-error)}
.start-note{font-size:var(--fs-s);color:var(--contact-error)}
.start-note:empty{display:none}
/* sent: the three fields grey out as a whole, box and words, so the message reads
   as locked in place (his call, 2026-11-17). All three are always filled here, so
   nothing fades twice the way the menu form's empty fields would. */
.start-form .field{transition:opacity 400ms var(--ease)}
.start-form.is-sent .field{opacity:.45}
.start-form.is-sent .field input,
.start-form.is-sent .field textarea{cursor:default}
.start-direct{font-size:var(--fs-s);color:var(--ink)}
.start-direct a{text-decoration:underline;text-underline-offset:3px;transition:opacity 200ms var(--ease)}
@media (hover:hover){.start-direct a:hover{opacity:.55}}.start-direct a.is-pressed{opacity:.55}
/* Send wears the card's Send tones (see .jr-form), sized like the Close beside it */
.start-foot{
  --contact-send:var(--jr-send);
  --contact-send-hover:var(--jr-send-hover);
  --contact-send-ink:var(--jr-send-ink);
}
.start-foot .send{display:inline-flex;align-items:center;justify-content:center;height:var(--ctl-h);padding:0 20px;width:auto}   /* word-sized like Close, so its padding stays symmetric */
.start-foot .send[hidden]{display:none}
/* Send and Sent share one cell, so the button stays Send's own width (2026-11-17) */
.start-foot .send.rolls{display:inline-grid;justify-items:center}
/* on a phone Close takes the rows' word inset (a full-width card button there), so Send matches it */
@media (max-width:768px){.start-foot .send{padding:0 var(--word-x);height:40px;border-radius:20px}}

/* the strip's arrows stand where the grown card's foot is; they step aside while
   a card is reading, as they do for the panel */
body:has(.slide.is-reading) .arrows{opacity:0;pointer-events:none;transition-delay:0s}

/* ---------- reading in place on a phone (2026-11-14) ----------
   The card keeps its width and grows down to its contents (panel.js growTo):
   the contents are in the flow, and the card's own line is lifted out of it at
   exactly its padding (--cp), so it holds still while the words come in under
   it and then hands over to the title in the same spot. */
@media (max-width:768px){
  .surface-card.is-reading,
  .slide:not(.is-brief) > .surface-card.is-reading{
    width:100%;
    height:auto;
    min-height:0;   /* out-ranks the closed card's 300 floor (14-checkout.css) */
    top:0;
    padding:0;
    transition:background 420ms var(--ease);
  }
  /* A PHONE'S OWN CLOCK (2026-11-14, his note: the laptop's 850 felt slow here):
     520 on --ease, what the phone's caption rows and closing columns use */
  :root{--read-grow:520ms}
  /* out-ranks the open card's own `transition` below, or the height jumped (measured) */
  .surface-card.is-sizing,
  .slide:not(.is-brief) > .surface-card.is-sizing{transition:height var(--read-grow) var(--card-rise-ease)}
  /* the words are laid out at the open card's size, so while the card grows to it
     they are clipped to its edge rather than spilling below (his recording: Reach
     out to us directly hung under the card mid-growth) */
  .surface-card.is-reading.is-sizing{overflow:hidden}   /* the soft curve: --ease front-loads (his note: harsh) */
  .surface-card.is-reading > .copy{position:absolute;top:var(--cp, 20px);left:var(--cp, 20px);right:var(--cp, 20px);width:auto}
  .surface-card.is-reading > .btn{position:absolute;left:var(--cp, 20px);bottom:var(--cp, 20px);width:auto;align-self:auto;z-index:2}
  .jr-inline{position:relative;inset:auto}
  .jr-inline-scroll{height:auto;overflow:visible}
  /* THE CARD HUGS ITS QUESTIONS (2026-11-14, his note): no floor under it — the
     closed card's 300 left empty ground beneath the email, and a 4:5 floor hid
     the growth, so answering read as no progress. It ends one block under the
     last question, and grows (steps.js → growTo) as each new one comes in. */
  .jr-inline .jr-doc{min-height:0}
}
