/* Devices: a kitchen, and its junk drawer pulled out toward you. Every supported iPhone and iPad lies in the drawer
   among the clutter, oldest first, labelled in marker on masking tape; the contents drift past (drawers.js lays them
   out and moves them).
   - The view is from high up and in front, lit from the upper left like the room: what lies flat (the counter, the
     drawer's insides, the floor) is seen from above at true size, and what stands upright (the backsplash, the
     counter's edge, the cabinet fronts) is seen face on, squashed to --fv of its height. Top to bottom: the tiled
     backsplash, the bare marble counter, its front edge, then the painted cabinets under it, their toe kick and the oak
     floor. The drawer comes out of the top row of the cabinets, over the floor. Nothing stands on the counter: a thing
     with height can't be drawn true to this fudged view.
   - The drawer's perspective is fudged to read as one drawer from above: the liner and the side walls' tops at true
     size, thin strips for the side walls' inner faces, and no inner face on the front, which the front board hides.
   - The drawer's materials are the schedule editor's: the bookshelf's walnut (wood-h/wood-v, tileable textures from
     its render's wood() recipe), the paper planner's speckle on the liner, Kalam for the marker. The kitchen's marble,
     tile and oak floor are tileable renders of their own (drawers/counter, subway, oak). Each is sized for the
     px per mm it's drawn at (1x and 2x), the marble cut to the strip the counter ever shows, and the kitchen's
     textures wait until the drawer is built as it nears the window (.is-live), so none is fetched or decoded far off
     screen; without a script they show at once.
   - Everything is laid out in millimetres; --s is CSS px per mm, set per width below. Models keep their true size
     against each other, and the kitchen keeps it with them. The tape's type stays a fixed px size at each width.
   - The track carries everything in the drawer and moves as one compositor layer: nothing on it has a CSS filter or a
     resting box-shadow (the clutter are small pictures with their shadows drawn in), and it contains its paint. Keep it
     that way: a filter or shadow on a moving thing splits the strip into hundreds of layers in Chromium.
   - The drawer slides out with the scroll, held still on the screen while the counter rises off it, and back in as the
     page scrolls back: a scroll-driven animation of .jd__slide's transform, and its shadow's and the counter's shade's
     opacity, below. Without scroll-driven animations, under ?edit and without a script it rests open and still; under
     reduced motion it still follows the scroll, and the drift waits for the play key. */

/* the lead's "any iPhone or iPad from 2018 on", in Plan Ahead's highlighter: pressed down, drawn across, lifted; each
   line it wraps onto gets its own stroke */
.dw-hl { padding: 0 .3em 0 .26em; margin: 0 -.27em 0 -.2em; font-weight: 800; color: var(--pc-ink); text-shadow: none;
  background:
    url("icons/highlighter-l.svg") 0 50% / .5em 92% no-repeat,
    url("icons/highlighter-r.svg") 100% 50% / .78em 92% no-repeat,
    url("icons/highlighter-m.svg") calc(.5em - 1px) 50% / calc(100% - 1.28em + 2px) 92% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.jd {
  --s: .74; --fv: .42; --rim: 8px; --fx: 6px; --tuck: 3px; --over: 5px; --seam: 3px;
  --inset: 0px; --ext: var(--gutter); --wall: 34px; --deep: 118;
  --tape-fs: 12.5px;
  /* how far the drawer slides: its liner and its front's top edge, in mm (drawers.js measures the same) */
  --travel: calc(379 * var(--s) * 1px);
  --wood: url("drawers/wood-h.webp");
  --wood-v: none; --subway: none; --marble: none; --oak: none; --speckle: none;
  /* the cabinets' paint: a sage green, lit from above */
  --paint: #9db195; --paint-hi: #b4c6ab; --paint-lo: #87a07f; --carcass: #3d4a39;
  /* upright things, in mm, squashed: the counter's edge, a drawer front, a door, the toe kick; a board's top edge */
  --edge: calc(40 * var(--s) * var(--fv) * 1px);
  --dfh: calc(150 * var(--s) * var(--fv) * 1px);
  --door: calc(540 * var(--s) * var(--fv) * 1px);
  --kick: calc(34 * var(--s) * 1px);
  --ftop: calc(19 * var(--s) * 1px);
  position: relative; margin-top: clamp(28px, 4vw, 52px);
}
.jd-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:is(html:not(.js) .jd, .jd.is-live) {
  --wood-v: url("drawers/wood-v.webp");
  --subway: url("drawers/subway.webp");
  --marble: image-set(url("drawers/counter@1x.webp") 1x, url("drawers/counter@2x.webp") 2x);
  --oak: image-set(url("drawers/oak@1x.webp") 1x, url("drawers/oak@2x.webp") 2x);
  --speckle: image-set(url("drawers/speckle@1x.webp") 1x, url("drawers/speckle@2x.webp") 2x);
}

/* ---------- the counter: the backsplash, the marble top, its front edge ---------- */
.jd__drawer { position: relative; isolation: isolate; }
.jd__counter { position: relative; z-index: 3; display: block; margin: 0 calc(-1 * var(--ext)); pointer-events: none; }
/* glossy cream subway tile, its rows squashed by the angle; it fades out upward, into the sky */
.jd__wall { display: block; height: var(--wall);
  background:
    linear-gradient(180deg, rgba(60, 46, 28, 0) 70%, rgba(60, 46, 28, .16) calc(100% - 2px), rgba(60, 46, 28, .4)),
    var(--subway) 0 100% / calc(600 * var(--s) * 1px) calc(63 * var(--s) * 1px), #efe9de;
  -webkit-mask-image: linear-gradient(0deg, #000 45%, transparent);
  mask-image: linear-gradient(0deg, #000 45%, transparent); }
/* the stone: white marble, its grey veins running corner to corner, a little shade where it meets the wall, brightest
   toward the light */
.jd__top { position: relative; display: block; height: calc(var(--deep) * var(--s) * 1px);
  background:
    linear-gradient(180deg, rgba(70, 56, 38, .22), rgba(70, 56, 38, .06) 5px, rgba(70, 56, 38, 0) 16px),
    radial-gradient(90% 140% at 22% 0%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, rgba(120, 104, 80, .06)),
    var(--marble) 0 0 / calc(1490 * var(--s) * 1px) auto, #f2efe9; }
/* the slab's front edge, face on: its eased top catches the light, its face is a shade darker, its underside dark */
.jd__edge { position: relative; display: block; height: var(--edge);
  background:
    linear-gradient(180deg, #fff 0, rgba(255, 255, 255, .75) 1.5px, rgba(255, 255, 255, 0) 4px, rgba(80, 66, 48, .1) 40%, rgba(80, 66, 48, .24) calc(100% - 2px), rgba(255, 255, 255, .3) calc(100% - 1.5px), rgba(50, 40, 28, .6) 100%),
    linear-gradient(rgba(236, 232, 225, .5), rgba(236, 232, 225, .5)),
    var(--marble) -300px 40% / calc(1490 * var(--s) * 1px) auto, #e9e5dd; }
/* its shadow on whatever is under it: the cabinets, the closed drawer, the open drawer's back */
.jd__edge::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 20, 12, .42), rgba(24, 20, 12, .14) 3px, rgba(24, 20, 12, 0)); }
/* past the content's edge the kitchen fades into the sky (wide screens; a phone's screen crops it) */
@media (min-width: 860px) {
  .jd__counter, .jd__cab {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 calc(var(--ext) + 40px), #000 calc(100% - var(--ext) - 40px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 calc(var(--ext) + 40px), #000 calc(100% - var(--ext) - 40px), transparent); }
}

/* ---------- the cabinets under it: drawer fronts in the top row, the junk drawer's opening among them, doors, the
   toe kick and the floor. They stand still; the drawer slides over them. ---------- */
.jd__cab { --side: calc(var(--inset) + var(--ext) - var(--over) - var(--seam));
  position: absolute; z-index: 0; top: 0; left: calc(-1 * (var(--inset) + var(--ext))); right: calc(-1 * (var(--inset) + var(--ext))); bottom: -56px;
  display: grid; gap: var(--seam);
  grid-template-columns: var(--side) 1fr 1fr var(--side);
  grid-template-rows: var(--dfh) var(--door) var(--kick) 1fr;
  background: linear-gradient(180deg, var(--carcass), var(--carcass) calc(var(--dfh) + var(--door) + var(--seam) * 2), transparent 0); pointer-events: none; }
.jd__cab > i { display: block; position: relative; }
/* a painted front: lit along its top, a shade darker toward its foot, its recessed panel's bevels catching and losing the light */
.jd__p { --rv: calc(62 * var(--s) * var(--fv) * 1px); --rh: calc(62 * var(--s) * 1px); border-radius: 1.5px;
  background: linear-gradient(180deg, var(--paint-hi), var(--paint) 28%, var(--paint-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 1px 0 0 rgba(255, 255, 255, .22), inset -1px 0 0 rgba(30, 44, 26, .14), inset 0 -1px 0 rgba(30, 44, 26, .3); }
.jd__p::before { content: ""; position: absolute; inset: var(--rv) var(--rh); border-radius: 1px;
  background: linear-gradient(180deg, rgba(40, 56, 34, .07), rgba(255, 255, 255, .05));
  box-shadow: inset 0 2px 2px -1px rgba(30, 44, 26, .42), inset 2px 0 2px -1px rgba(30, 44, 26, .24), inset 0 -1px 0 rgba(255, 255, 255, .42), inset -1px 0 0 rgba(255, 255, 255, .22); }
.jd__p--d { --rv: calc(36 * var(--s) * var(--fv) * 1px); --rh: calc(40 * var(--s) * 1px); }
/* The doors' brass knobs, where a kitchen has them: on the stile opposite the hinges, centred across it, a little
   below the door's top (70 mm down, seen squashed). A pair's knobs meet at their middle stiles; each neighbour's single
   door is hinged on its far side, so its knob is the one by the junk drawer's cabinet. A knob is round from any angle. */
.jd__p--l::after, .jd__p--r::after { --kd: calc(30 * var(--s) * 1px); content: ""; position: absolute; top: calc(70 * var(--s) * var(--fv) * 1px - var(--kd) / 2); width: var(--kd); height: var(--kd);
  border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff4cf, #e2bf72 22%, #b48a3e 55%, #7a5a22 90%);
  box-shadow: 1.5px 2.5px 2.5px rgba(30, 36, 20, .45), 0 0 0 .5px rgba(90, 64, 20, .6); }
.jd__p--r::after { right: calc(var(--rh) / 2 - var(--kd) / 2); }
.jd__p--l::after { left: calc(var(--rh) / 2 - var(--kd) / 2); }
/* the neighbouring cabinets run on out of view, their panels with them; a phone shows only a sliver of them, too
   narrow for their knobs */
.jd__p--ol::before { left: -4px; }
.jd__p--or::before { right: -4px; }
@media (max-width: 599.98px) { :is(.jd__p--ol, .jd__p--or)::after { display: none; } }
/* wide, the drawer's cabinet stands on two pairs of doors, so no door is wider than a real one */
.jd__cab > .jd__p--x { display: none; }
@media (min-width: 1180px) {
  .jd__cab { grid-template-columns: var(--side) 1fr 1fr 1fr 1fr var(--side); }
  .jd__cab > .jd__p--x { display: block; }
}
/* the junk drawer's opening: dark inside, behind the drawer whether it's in or out */
.jd__slot { grid-column: 2 / -2; background: linear-gradient(180deg, #171c14, #262e22); }
/* the toe kick: the recess under the cabinets, painted and in deep shade */
.jd__kick { grid-column: 1 / -1;
  background: linear-gradient(180deg, #161c13, #232b1f 40%, #36402f); }
/* the floor: 5-inch white oak boards running away from the counter, seen from above, each its own tone; the cabinets
   shade the strip along their foot and the floor fades out below. A board lies centred under the drawer. */
.jd__floor { grid-column: 1 / -1; margin-top: calc(-1 * var(--seam));
  background:
    linear-gradient(180deg, rgba(30, 20, 8, .55), rgba(30, 20, 8, .26) 3px, rgba(30, 20, 8, .1) calc(16 * var(--s) * 1px), rgba(30, 20, 8, 0) calc(48 * var(--s) * 1px)),
    var(--oak) calc(50% + 63.5 * var(--s) * 1px) 0 / calc(1016 * var(--s) * 1px) calc(300 * var(--s) * 1px), #dcc39f;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 84px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 84px), transparent); }

/* ---------- the drawer: its walls' top edges, the liner, the walls' inner faces ---------- */
/* the well starts at the counter's edge: a drawer pushed in is under the counter, so nothing shows above it */
.jd__well { position: relative; z-index: 1; display: flow-root; margin: calc(-1 * var(--tuck)) var(--inset) 0; }
/* the drawer's opening cuts it off at the counter's edge, with room beside and below for its shadow. It's an overflow
   clip: Safari on iPhone let the moving drawer out from under a clip-path here. The well, a flow root, keeps the
   room's negative margin inside it, so nothing around it moves. */
.jd__mouth { --room: calc(var(--inset) + var(--ext)); position: relative; z-index: 1; margin: 0 calc(-1 * var(--room)) -64px; padding: 0 var(--room) 64px;
  overflow: hidden; overflow: clip; pointer-events: none; }
.jd__slide { position: relative; z-index: 1; pointer-events: auto; }
.jd.is-armed .jd__slide { will-change: transform; }
/* the counter's shade on the drawer's inside, deepest at the counter's edge. It stays with the counter while the
   drawer slides under it, and fades in as the inside comes out (drawers.js); pushed in, the face gets only the edge's
   own thin shadow, like the fronts beside it. */
.jd__under { position: absolute; z-index: 2; top: 0; left: var(--room); right: var(--room); height: 34px; pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 12, 2, .5) 0, rgba(24, 12, 2, .3) 6px, rgba(24, 12, 2, .1) 18px, rgba(24, 12, 2, 0)); }
.jd.is-armed .jd__under { will-change: opacity; }
.jd__box { position: relative; padding: 0 var(--rim);
  background:
    linear-gradient(90deg, rgba(46, 20, 4, .55), rgba(255, 240, 220, 0) 1.5px, rgba(255, 240, 220, 0) calc(100% - 2px), rgba(255, 244, 226, .4) calc(100% - 1px), rgba(40, 18, 4, .5)) 0 0 / var(--rim) 100% no-repeat,
    linear-gradient(270deg, rgba(46, 20, 4, .6), rgba(255, 240, 220, 0) 1.5px, rgba(255, 240, 220, 0) calc(100% - 2px), rgba(255, 244, 226, .3) calc(100% - 1px), rgba(40, 18, 4, .5)) 100% 0 / var(--rim) 100% no-repeat,
    linear-gradient(180deg, rgba(255, 244, 226, .1), rgba(40, 18, 4, .08)),
    var(--wood-v) 0 -60px / 180px auto, #b4845f; }
/* the whole drawer's shadow on the doors and floor below, offset from the light, darkest right under the front's lip;
   it fades in as the drawer comes out. It follows the drawer's outline, the box and then the wider front, because a
   box-shadow paints only outside its own box: one box as wide as the front left the strip beside each wall unshaded,
   a hard line down the floor at the front's ends. The long soft shadow falls from the box's column, top to bottom; the
   tight ones from the walls (::before) and from the front (::after), so none of them doubles under the lip. */
.jd__shade { position: absolute; z-index: -1; inset: 0; pointer-events: none; box-shadow: 16px 26px 26px -6px rgba(36, 24, 8, .42); }
.jd__shade::before, .jd__shade::after { content: ""; position: absolute; left: 0; right: 0;
  box-shadow: 1px 3px 3px -1px rgba(30, 20, 6, .4), 5px 9px 10px -3px rgba(36, 24, 8, .32); }
.jd__shade::before { top: 0; bottom: calc(var(--ftop) + var(--dfh)); }
.jd__shade::after { bottom: 0; left: calc(-1 * var(--over)); right: calc(-1 * var(--over)); height: calc(var(--ftop) + var(--dfh)); border-radius: 2px 2px 1.5px 1.5px; }
.jd.is-armed .jd__shade { will-change: opacity; }

/* the liner: plain paper, a little speckled, brightest where the walls don't shade it */
.jd__in { position: relative; height: calc(360 * var(--s) * 1px); overflow: hidden; overflow: clip; touch-action: pan-y; -webkit-user-select: none; user-select: none;
  background:
    radial-gradient(120% 110% at 42% 34%, rgba(255, 253, 247, .6), rgba(255, 253, 247, 0) 62%),
    var(--speckle) 0 0 / 210px,
    #e9dec6; }
@media (pointer: fine) { .jd__in { cursor: grab; } }
.jd__in.is-held, .jd__in.is-held .jd-m { cursor: grabbing; }
/* the moving strip: as wide as everything it carries (drawers.js sets --len, in mm) and painting only inside itself,
   so Chromium keeps it one layer while the drift animates it */
.jd__track { position: absolute; left: 0; top: 0; width: calc(var(--len, 1) * var(--s) * 1px); height: 100%; contain: layout paint; will-change: transform; }
.jd__layer, .jd__list { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
/* the layers span the strip: only the models in them take a pointer */
.jd__layer, .jd__list { pointer-events: none; }
.jd-i { pointer-events: auto; }

/* the walls on the liner. Seen from above and in front, the front board stands between the eye and its own inner face,
   so the liner runs straight into the board's top edge, with only a little shade where it slips behind it. The left
   wall casts the light's shadow and the right one darkens its foot; then the two side walls' inner faces, darker than
   their rims because they stand upright, running down behind the front. */
.jd__walls { position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 4, 1, .42) 0, rgba(8, 4, 1, .32) calc(var(--fx) * 1.6), rgba(8, 4, 1, .1) calc(var(--fx) * 2.6), rgba(8, 4, 1, 0) calc(var(--fx) * 3.8)) 0 0 / calc(var(--fx) * 3.8) 100% no-repeat,
    linear-gradient(270deg, rgba(8, 4, 1, .32), rgba(8, 4, 1, .08) calc(var(--fx) + 2px), rgba(8, 4, 1, 0) calc(var(--fx) + 8px)) 100% 0 / calc(var(--fx) + 8px) 100% no-repeat,
    linear-gradient(0deg, rgba(8, 4, 1, .2), rgba(8, 4, 1, .06) 3px, rgba(8, 4, 1, 0) 9px) 0 100% / 100% 9px no-repeat; }
.jd__walls > i { position: absolute; top: 0; bottom: 0; display: block; width: var(--fx); }
/* left: faces right, away from the light */
.jd__walls > i:nth-child(1) { left: 0; background: linear-gradient(90deg, rgba(20, 9, 2, .42), rgba(14, 6, 1, .74)), var(--wood-v) -40px 0 / 180px auto, #8e6244; }
/* right: faces left, toward the light */
.jd__walls > i:nth-child(2) { right: 0; background: linear-gradient(270deg, rgba(40, 18, 4, .14), rgba(26, 11, 2, .5)), var(--wood-v) -120px 0 / 180px auto, #b4845f; }

/* ---------- the front: the painted board's top edge, seen from above, then its face with the brass cup pull. Pushed
   in, only the face shows, in line with the drawers beside it. ---------- */
.jd__front { position: relative; z-index: 3; height: calc(var(--ftop) + var(--dfh)); margin: 0 calc(-1 * var(--over)); padding-top: var(--ftop); border-radius: 2px 2px 1.5px 1.5px;
  background:
    linear-gradient(180deg, rgba(30, 40, 24, .55) 0, rgba(30, 40, 24, .12) 1.5px, rgba(255, 255, 255, 0) 3px, rgba(255, 255, 255, 0) calc(var(--ftop) - 4px), rgba(255, 255, 255, .55) calc(var(--ftop) - 1.5px), rgba(255, 255, 255, .2) var(--ftop), transparent 0),
    linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 40%, rgba(30, 44, 26, .06)),
    var(--paint-hi); }
.jd__face { position: relative; display: block; height: var(--dfh); border-radius: 0 0 1.5px 1.5px;
  background: linear-gradient(180deg, var(--paint), var(--paint) 30%, var(--paint-lo));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .2), inset -1px 0 0 rgba(30, 44, 26, .14), inset 0 -1px 0 rgba(30, 44, 26, .3); }
.jd__face::before { content: ""; position: absolute; inset: calc(36 * var(--s) * var(--fv) * 1px) calc(40 * var(--s) * 1px); border-radius: 1px;
  background: linear-gradient(180deg, rgba(40, 56, 34, .07), rgba(255, 255, 255, .05));
  box-shadow: inset 0 2px 2px -1px rgba(30, 44, 26, .42), inset 2px 0 2px -1px rgba(30, 44, 26, .24), inset 0 -1px 0 rgba(255, 255, 255, .42), inset -1px 0 0 rgba(255, 255, 255, .22); }
/* the cup pull, on the face, and its shadow under it */
.jd__pull { position: absolute; z-index: 1; top: calc(var(--ftop) + var(--dfh) * .3); left: 50%; width: 76px; max-width: none; height: auto; margin-left: -38px; overflow: visible; }
.jd__front::after { content: ""; position: absolute; top: calc(var(--ftop) + var(--dfh) * .3 + 6px); left: 50%; width: 78px; height: 14px; margin-left: -36px;
  border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(24, 34, 18, .42), rgba(24, 34, 18, 0)); }

/* ---------- what lies in it ---------- */
/* the clutter: drawn once (drawers.js), placed in mm; each carries its own shadow, drawn in, away from the light.
   Nothing that moves has a CSS filter or box-shadow: those would split the strip into many layers. */
.jd-c { position: absolute; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none;
  width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px);
  transform: translate(calc(var(--x) * var(--s) * 1px), calc(var(--y) * var(--s) * 1px)) rotate(calc(var(--r) * 1deg)); }

/* a model: its box is its turned outline's bounds; the device and its lift shadow turn inside it, the tape on top */
.jd-i { position: absolute; left: 0; top: 0; width: calc(var(--bw) * var(--s) * 1px); height: calc(var(--bh) * var(--s) * 1px);
  transform: translate(calc(var(--x) * var(--s) * 1px), calc(var(--y) * var(--s) * 1px)); }
.jd-i.is-picked { z-index: 3; }
.jd-m { position: absolute; inset: 0; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .3s cubic-bezier(.3, 1.35, .5, 1); }
.jd-m:focus-visible { outline: none; }
.jd-m__dev, .jd-m__lift { position: absolute; left: 50%; top: 50%; width: calc(var(--dw) * var(--s) * 1px); height: calc(var(--dh) * var(--s) * 1px);
  border-radius: calc(var(--rr) * var(--s) * 1px); transform: translate(-50%, -50%) rotate(calc(var(--dr) * 1deg)); }
/* the drawing and its shadow overhang the model by their clear margins (drawers.js sets --dm and --sm, in mm) */
.jd-m__dev > svg, .jd-m__sh { --m: calc(var(--dm) * var(--s) * 1px); position: absolute; left: calc(-1 * var(--m)); top: calc(-1 * var(--m)); display: block;
  width: calc(100% + 2 * var(--m)); height: calc(100% + 2 * var(--m)); max-width: none; pointer-events: none; }
.jd-m__sh { --m: calc(var(--sm) * var(--s) * 1px); }
/* lifted (picked, or under the mouse, when the drawer is still anyway), a longer shadow fades in; the fade keeps no
   fill, so once it's done the browser stops compositing the model apart from the drawer */
.jd-m__lift { display: none; box-shadow: calc(var(--cx) * 11px) calc(var(--cy) * 11px) 16px rgba(30, 18, 6, .42); }
@keyframes jd-lift { from { opacity: 0; } }
.jd-m:focus-visible .jd-m__dev { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--pc-scope); }
@media (hover: hover) {
  .jd-m:hover { transform: translate(-1px, -2px) scale(1.02); }
  .jd-m:hover .jd-m__lift { display: block; opacity: .45; animation: jd-lift .3s ease; }
}
.jd-i.is-picked .jd-m { transform: translate(-2px, -5px) scale(1.07); }
.jd-i.is-picked .jd-m__lift { display: block; opacity: 1; animation: jd-lift .3s ease; }

/* the masking tape: cream crepe paper, torn at both ends, the name in black marker. Its 2px of clear padding keep the
   torn edges inside its own box, so they're drawn smooth however a browser composites it. */
.jd-tape { --torn: polygon(0 6%, 2.5px 0, calc(100% - 1.5px) 0, 100% 9%, calc(100% - 2.5px) 24%, 100% 38%, calc(100% - 1.5px) 53%, 100% 69%, calc(100% - 2.5px) 85%, 100% 100%,
    2px 100%, 0 91%, 2.5px 76%, .5px 60%, 2px 43%, 0 27%, 2px 13%);
  position: absolute; left: calc(50% + var(--tx) * var(--s) * 1px); top: calc(50% + var(--ty) * var(--s) * 1px); width: max-content;
  max-width: calc(var(--tw) * var(--s) * 1px + 4px); padding: 2px; transform: translate(-50%, -50%) rotate(calc(var(--tr) * 1deg)); pointer-events: none; }
/* the tape's thin shadow: the same torn strip, dark, a hair below */
.jd-tape::before { content: ""; position: absolute; z-index: -1; inset: 2px; clip-path: var(--torn); background: rgba(10, 6, 2, .42); transform: translate(.3px, .9px); }
.jd-tape__p { position: relative; display: block; padding: .3em .62em .22em; text-align: center; text-wrap: balance;
  font: 700 var(--tape-fs) / 1.04 var(--hand); letter-spacing: .01em; color: #1d1813;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 42%, rgba(110, 82, 36, .1)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 .6px, rgba(255, 255, 255, 0) .6px 2.3px, rgba(104, 76, 30, .06) 2.3px 2.9px, rgba(104, 76, 30, 0) 2.9px 4.1px),
    #e7d8ad;
  clip-path: var(--torn); }
.jd-tape__yr { display: inline-block; margin-left: .2em; font-size: .84em; color: #3f3426; }

/* ---------- the pause key, on the counter above the drawer's far corner, clear of what's in it ---------- */
.jd__hold { --k: 30px; position: absolute; z-index: 5; top: calc(var(--wall) + var(--deep) * var(--s) * 1px - var(--k) - 12px); right: calc(var(--inset) + var(--rim) + 4px);
  width: var(--k); height: var(--k); padding: 0; border: 0; background: none; color: var(--pc-body); display: grid; place-items: center; transition: opacity .3s ease; }
.jd__hold[hidden] { display: none; }
.jd__hold::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--k) * -.35); pointer-events: none; background: var(--pc-key-round) center / 100% 100% no-repeat; filter: var(--pc-key-drop); }
.jd__hold svg { width: 13px; height: 13px; fill: currentColor; }
.jd__hold .jd__hold-play, .jd__hold[aria-pressed="true"] .jd__hold-pause { display: none; }
.jd__hold[aria-pressed="true"] .jd__hold-play { display: block; }
.jd__hold:focus-visible { outline: 3px solid var(--pc-scope); outline-offset: 2px; border-radius: 50%; }

/* ---------- opening: the drawer comes out with the scroll; the key shows once it's all the way out ---------- */
/* drawers.js arms it where the browser runs scroll-driven animations and the page isn't in ?edit. Under Reduce Motion
   too: it moves only as far as the visitor scrolls and stops when they stop, so nothing moves on its own (Michael,
   2026-11-04: he missed it on his phone, which has Reduce Motion on).
   It starts once the counter's edge is a fifth of the way up the screen and takes exactly its own depth of scroll, so
   it holds still on the screen while the counter rises off it. Its shadow and the counter's shade on its inside come
   in over its first stretch.
   The inset puts the timeline's foot 80vh down from the top of the screen, where the toolbar can't move it: Safari on
   iPhone moves the screen's own foot by 40px as its toolbar grows and shrinks with the scroll, and a start measured
   from there jerked the drawer by as much. */
@supports (animation-timeline: view()) {
  .jd__well { view-timeline: --jd-well block; view-timeline-inset: 0px calc(100% - 80vh); }
  .jd.is-armed :is(.jd__slide, .jd__shade, .jd__under) { animation: jd-out linear both; animation-timeline: --jd-well;
    animation-range: cover 0px cover var(--travel); }
  .jd.is-armed :is(.jd__shade, .jd__under) { animation-name: jd-fade; animation-range-end: cover calc(var(--travel) * .4); }
  .jd.is-armed .jd__under { animation-range-end: cover calc(var(--travel) * .2); }
}
@keyframes jd-out { from { transform: translate3d(0, calc(var(--travel) * -1), 0); } }
@keyframes jd-fade { from { opacity: 0; } }
.jd.is-armed:not(.is-open) .jd__hold { opacity: 0; pointer-events: none; }

/* ---------- under the drawer: older, the chosen model, newer ---------- */
.jd-ctl { position: relative; z-index: 2; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 14px; margin-top: 30px; padding: 0 2px; }
.jd-key { position: relative; isolation: isolate; display: grid; place-items: center; width: var(--pc-tap); height: var(--pc-tap); margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--pc-body); transition: transform .14s var(--ease); }
.jd-key::before { content: ""; position: absolute; z-index: -1; inset: -12px; pointer-events: none; background: var(--pc-key-round) center / 100% 100% no-repeat; filter: var(--pc-key-drop); }
.jd-key svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .jd-key:hover { transform: translateY(-1px); color: var(--pc-ink); } }
.jd-key:active { transform: translateY(1px); }
.jd-say { margin: 0; min-height: 3.2em; display: flex; flex-direction: column; justify-content: center; text-align: center; text-wrap: balance;
  font-family: var(--read); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--pc-mute); }
.jd-say b { font-weight: 800; color: var(--pc-ink); }
.jd-say span { color: var(--pc-body); }
.jd-say small { display: block; margin-top: 2px; font-family: var(--print); font-weight: 600; font-size: 13px; letter-spacing: .03em; color: var(--pc-mute); }

/* ---------- the full list: a link in the line under the drawer opens it in place ---------- */
.jd-more { align-self: center; min-height: var(--pc-tap); margin: 0; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 700; color: var(--pc-ink); text-align: center; text-wrap: balance; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(19, 33, 61, .4); }
@media (hover: hover) { .jd-more:hover { text-decoration-color: currentColor; } }
/* a sheet of the page's paper; the field inside keeps a corner concentric with the sheet's */
.jd-all { --in: 14px; position: relative; z-index: 2; width: min(100%, 540px); margin: 18px auto 0; padding: var(--in); border-radius: var(--r-card); background: #fbf8f2;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(26, 40, 68, .08), 0 6px 16px -4px rgba(34, 56, 98, .16), 0 18px 34px -18px rgba(34, 56, 98, .2); }
.jd-all[hidden] { display: none; }
.jd-all__find { position: relative; display: block; }
.jd-all__find svg { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--pc-mute); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.jd-all__q { display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px 0 44px; border: 0; -webkit-appearance: none; appearance: none;
  border-radius: calc(var(--r-card) - var(--in)); background: #fff;
  box-shadow: inset 0 2px 6px rgba(15, 26, 51, .12), inset 0 0 0 1px rgba(156, 174, 204, .28), 0 1px 0 rgba(255, 255, 255, .9);
  font-family: var(--read); font-weight: 600; font-size: 17px; color: var(--pc-ink); }
.jd-all__q::placeholder { color: #5f6b85; }
.jd-all__q::-webkit-search-decoration { -webkit-appearance: none; }
.jd-all__list { max-height: min(380px, 52vh); margin: 8px 0 0; padding: 0 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; border-radius: 8px; }
.jd-all__list[hidden] { display: none; }
.jd-all__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 4px; border-bottom: 1px solid rgba(54, 68, 97, .1); }
.jd-all__list li.is-end { border-bottom: 0; }
.jd-all__list li[hidden] { display: none; }
.jd-all__nm { font-family: var(--read); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--pc-ink); }
.jd-all__yr { flex: none; font-family: var(--print); font-weight: 600; font-size: 14px; letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--pc-mute); }
.jd-all__none { margin: 0; }
.jd-all__none span { display: block; padding: 14px 6px 4px; font-family: var(--read); font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--pc-body); text-wrap: pretty; }
.jd-all__none span[hidden] { display: none; }

/* ---------- without the script: the labels alone, on the liner ---------- */
.jd:not(.is-live) .jd__in { height: auto; min-height: calc(360 * var(--s) * 1px); }
.jd:not(.is-live) .jd__track, .jd:not(.is-live) .jd__list { position: static; width: auto; height: auto; }
.jd:not(.is-live) .jd__list { display: flex; flex-wrap: wrap; gap: 12px 10px; padding: 34px 22px 22px; }
.jd:not(.is-live) .jd-i, .jd:not(.is-live) .jd-m { position: static; width: auto; height: auto; max-width: none; transform: none; }
.jd:not(.is-live) .jd-tape { position: relative; z-index: 0; left: auto; top: auto; max-width: none; transform: rotate(-1deg); }
.jd:not(.is-live) .jd-ctl, .jd:not(.is-live) .jd__hold { display: none; }
/* with scripts the drawer builds as it nears the window; until then it keeps its built height and its controls' room,
   so the page below never shifts mid-scroll (the sky reads the page's length) */
.js .jd:not(.is-live) .jd__in { height: calc(360 * var(--s) * 1px); }
.js .jd:not(.is-live) .jd-ctl { display: grid; visibility: hidden; }

/* ---------- sizes ---------- */
@media (min-width: 380px) { .jd { --s: .8; --tape-fs: 13px; } }
@media (min-width: 600px) { .jd { --s: .82; --rim: 10px; --fx: 8px; --over: 6px; --inset: 36px; --wall: 44px; --deep: 140; } }
@media (min-width: 860px) {
  .jd { --s: .86; --rim: 12px; --fx: 9px; --tuck: 4px; --over: 7px; --inset: 72px; --wall: 56px; --deep: 165; --tape-fs: 14px; }
  .jd__pull { width: 84px; margin-left: -42px; }
  .jd__front::after { width: 86px; margin-left: -40px; }
  .jd__hold { --k: 34px; }
  .jd-ctl { margin-top: 40px; }
}
@media (min-width: 1100px) { .jd { --inset: 110px; --wall: 64px; --deep: 175; --tape-fs: 14.5px; } }

/* reduced motion, until the visitor presses play (drawers.js marks the drawer .is-played) */
@media (prefers-reduced-motion: reduce) {
  .jd:not(.is-played) :is(.jd-m, .jd__hold) { transition: none !important; }
  .jd:not(.is-played) .jd-m__lift { animation: none !important; }
}
