/* ==========================================================================
   Gaurav's space — style.css

   The look: black hand-drawn lines on white paper, borrowed from the game
   Hidden Folks. Nothing here is a picture of a wobbly line. Straight CSS
   borders are pushed around by SVG "wobble" filters (see js/app.js), so
   every box, rule and doodle looks drawn by hand.

   Sections:  tokens · primitives · beach layout · home menu · bottom bar ·
              hidden stories · dialog · zine · sky · hand-written · postcard ·
              settings
   ========================================================================== */

/* ---------- tokens ---------- */
:root{
  --paper:#ffffff;
  --ink:#111111;
  --ink-2:#5a5a5a;
  --blue:#2540d0;                 /* ballpoint blue, for the hand-written page */
  --ui:'Roboto Slab', Georgia, 'Times New Roman', serif;
  --hand:'Kalam', 'Bradley Hand', 'Segoe Print', cursive;
  --title:'Londrina Outline', var(--ui);
  --sans:-apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --stroke:2px;
  --scale:1;                      /* interface size, changed in Settings */
  --col:30rem;                    /* the narrow centre column, like the game menu */
}
html[data-mode="dark"]{ --paper:#111111; --ink:#f4f4f4; --ink-2:#b5b5b5; --blue:#9aa9ff; }
html[lang="mr"]{ --ui:'Tiro Devanagari Marathi', 'Kalam', serif; }

html{ font-size:calc(16px * var(--scale)); }
*,*::before,*::after{ box-sizing:border-box; }
body{
  margin:0; min-height:100vh;
  background:var(--paper); color:var(--ink);
  font-family:var(--ui); font-size:1rem; line-height:1.4;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a{ color:inherit; }
button{ font:inherit; color:inherit; }
img{ max-width:100%; display:block; }
[hidden]{ display:none !important; }
.defs{ position:absolute; width:0; height:0; overflow:hidden; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{ outline:3px solid var(--ink); outline-offset:3px; }

/* ---------- hand-drawn primitives ---------- */
/* colour is inherited, so a story can tint its own drawing */
.doodle{ display:inline-block; width:var(--w,3.5rem); height:var(--w,3.5rem); color:inherit; line-height:0; flex:none; }
.doodle svg{
  width:100%; height:100%; overflow:visible; display:block;
  fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
  filter:url(#wob-a);
}
.doodle svg .fill{ fill:currentColor; stroke:none; }
.doodle svg .cut{ fill:var(--paper-2, var(--paper)); stroke:none; }
.tags{ display:flex; align-items:center; gap:.4rem; }
.tags .doodle{ --w:1.05rem; }
.tags .doodle svg{ filter:none; }
.tags .tname{ font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; opacity:.8; margin-right:.5rem; }
.doodle.ghost svg{ stroke-dasharray:2.5 3.2; opacity:.5; }

.rule{ height:var(--stroke); background:var(--ink); border:0; margin:0; filter:url(#wob-line); }

.badge{ display:inline-block; filter:url(#wob-a); }
.badge > span{
  display:inline-block; background:var(--ink); color:var(--paper);
  font-size:.98rem; line-height:1; padding:.46rem 1.15rem .4rem; white-space:nowrap;
  clip-path:polygon(0 0,100% 0,calc(100% - .4rem) 50%,100% 100%,0 100%,.4rem 50%);
}
/* Outlined name-plate, as on the game's main menu. The four drop-shadows
   trace a 1px outline around the clipped shape, so the notched ends keep
   their stroke — a plain border would be cut open by the clip. */
.badge.line{
  filter:url(#wob-a)
    drop-shadow(1.4px 0 0 var(--ink)) drop-shadow(-1.4px 0 0 var(--ink))
    drop-shadow(0 1.4px 0 var(--ink)) drop-shadow(0 -1.4px 0 var(--ink));
}
.badge.line > span{ background:var(--paper); color:var(--ink); }
.rule-badge{ position:relative; display:flex; justify-content:center; align-items:center; min-height:2.2rem; }
.rule-badge::before{
  content:""; position:absolute; left:0; right:0; top:50%; height:var(--stroke);
  margin-top:calc(var(--stroke) / -2); background:var(--ink); filter:url(#wob-line);
}
.rule-badge .badge{ position:relative; z-index:1; }

.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; text-align:center;
  min-width:8.75rem; min-height:4.5rem; padding:.7rem 1.1rem;
  background:var(--paper); color:var(--ink); font-size:1.05rem; line-height:1.25;
  text-decoration:none; cursor:pointer; border:0; appearance:none; -webkit-appearance:none; user-select:none;
}
.btn::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
.btn:hover::before{ filter:url(#wob-b); }
.btn:active{ transform:translate(0,1px); }
.btn.is-on{ background:var(--ink); color:var(--paper); }
.btn.small{ min-height:3rem; min-width:0; padding:.4rem .9rem; font-size:.95rem; }
/* Two-line button: a short title, then what pressing it does. Neither line
   is allowed to wrap, so every button in a row breaks in the same place. */
.btn.stack{ flex-direction:column; gap:.2rem; padding:.7rem .6rem; }
.btn.stack > *{ white-space:nowrap; }
.btn.stack small{ font-size:.82em; }
.btn-row{ display:flex; flex-wrap:wrap; gap:.9rem; justify-content:center; margin-top:1.4rem; }

/* lines "boil" when you touch a drawing, like a hand-drawn animation */
@media (prefers-reduced-motion:no-preference){
  html[data-motion="1"] .boil:hover .doodle svg,
  html[data-motion="1"] .doodle.boil:hover svg{ animation:boil .36s steps(1) infinite; }
}
@keyframes boil{ 0%{filter:url(#wob-a)} 33%{filter:url(#wob-b)} 66%{filter:url(#wob-c)} 100%{filter:url(#wob-a)} }

/* ---------- the centred page (the "Beach pack" layout) ---------- */
/* "safe center" centres the content while there is room, then falls back to
   starting at the top once there is not, so a short window scrolls instead of
   sliding the bottom of the page underneath the fixed bar. */
.page{
  min-height:100vh; display:flex; flex-direction:column; align-items:center;
  justify-content:center; justify-content:safe center;
  text-align:center; padding:4rem 1.25rem 8rem; position:relative;
}
/* the ants: a trail from under the last line of words to the foot of the
   first screen on Roots, where the walk begins. Drawn and moved by js/ants.js
   into this box, which covers the whole first screen and lets clicks through
   to the hunt icons under it. Plain ink, like everything that isn't a story. */
/* the ant, wherever it walks: shared by the trail (.ants) and the colony
   (.colony) so it is drawn once, not twice. No wobble filter on the trail —
   it covers a whole screen and keeps moving, and a displacement filter over
   that much continuously-redrawn area is a real cost for little gain on
   figures this small; the colony is about-scene-sized, so it gets the
   filter the rest of the site's drawings wear. */
.antscene .body{ fill:currentColor; }
/* the paper standing between one ant and the next where they overlap; on its
   own it is paper on paper and you never see it (see ants-shared.js) */
.antscene .halo{ fill:var(--paper); stroke:var(--paper); stroke-width:2; }
.antscene .leg{ fill:none; stroke:currentColor; stroke-width:.9; stroke-linecap:round; }
.ants{ position:absolute; inset:0; pointer-events:none; color:var(--ink); }
.ants svg{ width:100%; height:100%; display:block; overflow:visible; }
/* the hill the trail leads into: an outline mound, a scatter of turned-up
   grains, and the hole itself as a solid mark — the one filled shape among
   outlines, same device the doodles already use for a small solid accent */
.ants .hill{ fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.ants .grain{ fill:currentColor; opacity:.55; }
.ants .hole{ fill:currentColor; }
.objects-row{ display:flex; align-items:flex-end; justify-content:center; gap:1.4rem; margin-bottom:.4rem; }
.story-slot{ position:relative; padding:0; border:0; background:none; cursor:pointer; color:var(--ink); line-height:0; }
.objects-row{ align-items:center; }
.lead{ max-width:22rem; margin:1rem auto 0; font-size:1.1rem; line-height:1.35; }
.lead + .lead{ margin-top:.8rem; }
.lead.small{ font-size:.95rem; color:var(--ink-2); }
.page .rule-badge{ width:min(100%, 26rem); }
.page h1.plain{ font-size:1.6rem; font-weight:700; margin:0 0 .1rem; }
.version{ font-size:.72rem; color:var(--ink-2); margin:0 0 1rem; }

/* ---------- home: the main menu ---------- */
.menu{
  min-height:100vh; display:flex; flex-direction:column; align-items:center;
  justify-content:center; justify-content:safe center;
  padding:3rem 1.25rem 4rem; overflow-x:hidden;
}
/* The column is also the query container, so the name can be sized against
   the measure it is supposed to fill rather than against the viewport. Tied
   to vw it filled 97% of the column on a laptop and 74% on a phone, because
   below about 500px the clamp's floor took over while the column kept
   shrinking. Nothing inside here uses cqw for anything else (every other
   cqw on this site is inside .device, on the case studies). */
.menu-col{ width:min(100%, var(--col)); position:relative; container-type:inline-size; }
/* The name is the only thing on this page that has to be read before
   anything else, and it used to be the faintest mark on it. Three numbers
   were wrong. It stopped at 79% of the column, so the rule underneath ran a
   hundred pixels past the end of the word and the mark looked like it had
   run out of steam. It is sized against the COLUMN now, not the viewport, so
   it fills 96% of the measure on one line at every width, phone included.
   line-height:.95 on upper case put the cap height ABOVE the box, so the
   name and the line under it overlapped by five pixels — there was no gap to
   speak of, whatever the margin said. And the one sentence that says what
   Gaurav does was .72rem, smaller than body text, on a page where the
   drawings are far darker than either. An outline face is hollow by
   definition, so weight can only come from size and from the ribbon itself:
   half a pixel of stroke doubles a hairline without making the letters look
   like a different font. */
.title{
  font-family:var(--title); font-weight:400; text-transform:uppercase;
  font-size:clamp(2rem, 13.6cqw, 4.1rem); line-height:1; letter-spacing:.01em; margin:0 0 .5rem;
}
/* On both languages: a name is not translated, so the Marathi page carries
   the same Latin word in the same hollow face and wants the same half pixel.
   Scoping this to English left one of the two mastheads pale. */
.title{ -webkit-text-stroke:.5px currentColor; }
/* two sentences, so let the browser even the lines rather than break after
   "nobody" and leave "asked for." on its own */
.title-line{ font-size:.9rem; color:var(--ink-2); margin:0 0 .5rem; letter-spacing:.02em; text-wrap:balance; }

.strip{
  position:relative; margin:1.2rem 0 1.1rem; margin-right:calc(50% - 50vw);
  overflow-x:auto; overflow-y:hidden; scrollbar-width:none; cursor:grab; -webkit-overflow-scrolling:touch;
}
.strip::-webkit-scrollbar{ display:none; }
.strip.is-dragging{ cursor:grabbing; }
.areas{ display:flex; align-items:flex-end; gap:2.2rem; list-style:none; margin:0; padding:0 12vw 0 0; width:max-content; }
.area{ display:block; text-decoration:none; color:inherit; min-width:15rem; }
.area .objects{ display:flex; align-items:flex-end; justify-content:center; gap:1rem; height:7.2rem; padding:0 .8rem; }
.object{ display:flex; flex-direction:column; align-items:center; gap:.5rem; }
.dot{ width:.38rem; height:.38rem; border-radius:50%; border:1.5px solid var(--ink); background:transparent; }
.area.is-visited .dot{ background:var(--ink); }
.area .rule-badge{ margin-top:.35rem; }
.menu .btn-row{ margin-top:1.4rem; flex-wrap:nowrap; }
.menu .btn-row .btn{ flex:1; min-width:0; }
@media (max-width:480px){ .menu .btn-row{ flex-wrap:wrap; } .menu .btn-row .btn{ flex:1 1 40%; } }

/* ---------- bottom bar: the things to find ---------- */
/* Three columns, the outer two equal, so the row of things to find sits on
   the true centre of the page no matter how wide the button or hint get. */
.bar{
  position:fixed; left:0; right:0; bottom:0; height:4.5rem; z-index:45;
  background:var(--paper); color:var(--ink);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  gap:1.25rem; padding:0 1.25rem;
}
.bar::before{ content:""; position:absolute; left:0; right:0; top:0; height:var(--stroke); background:var(--ink); filter:url(#wob-line); }
/* The columns either side of the drawings are equal, so the row of drawings
   sits at the exact middle of the bar whatever the button and the sentence
   measure. */
.bar .btn{ justify-self:start; min-height:3rem; width:10rem; }
/* The three stories to find, like the empty slots of a stamp album: drawn
   faint until found, and a found one comes up in full colour and keeps the
   ink ring that was drawn round it where it was found (the same ring the
   hidden stories wear on their pages). No caption over the row and no tick
   under it: the row says what it is by how it is drawn. */
.targets{ display:flex; justify-content:center; align-items:center; gap:1.9rem; }
.target{
  position:relative; display:flex; align-items:center; justify-content:center;
  padding:0; border:0; background:none; cursor:pointer; color:var(--ink);
  opacity:.5; transition:opacity .25s ease;
}
.target:hover, .target:focus-visible, .target.is-found{ opacity:1; }
.target .doodle{ --w:2.4rem; }
/* --k is measured and set by fitRow() in app.js, so drawings of different
   proportions end up the same size with even gaps between them. */
.fit .doodle svg{ transform:translate(var(--dx, 0), var(--dy, 0)) scale(var(--k, 1)); }
/* the drawing can be narrow, so widen what you can actually click */
.target::after{ content:""; position:absolute; inset:-.5rem -.7rem; }
.target .ring{ position:absolute; left:-34%; top:-34%; width:168%; height:168%; pointer-events:none; overflow:visible; }
.target .ring path{ fill:none; stroke:var(--ink); stroke-width:2.6; stroke-linecap:round; stroke-dasharray:330; stroke-dashoffset:330; filter:url(#wob-a); }
.target.is-found .ring path{ stroke-dashoffset:0; }
/* the ring draws itself only for the story found a moment ago */
.target.is-found.is-new .ring path{ stroke-dashoffset:330; animation:draw .6s ease-out .15s forwards; }
@media (prefers-reduced-motion:reduce){ .target.is-found.is-new .ring path{ animation:none; stroke-dashoffset:0; } }
/* Right-aligned so the text block sits flush to the right edge, the way the
   button sits flush to the left. */
.bar .hint{ justify-self:end; max-width:15rem; margin:0; font-size:.9rem; line-height:1.3; text-align:right; color:var(--ink-2); }
@media (max-width:640px){
  /* two groups, not three: the button at the left, the stories at the right,
     and the room between them is what makes the strip calm */
  .bar{ height:3.5rem; grid-template-columns:auto 1fr; gap:.9rem; padding:0 .9rem; }
  .bar .hint{ display:none; }
  .targets{ justify-self:stretch; justify-content:flex-end; gap:1.15rem; padding-right:.35rem; }
  .target .doodle{ --w:1.9rem; }
  .bar .btn{ width:auto; min-width:0; min-height:2.5rem; padding:.5rem .8rem; }
}

/* ---------- hidden stories, tucked into corners ---------- */
.hidden-story{
  position:absolute; width:var(--w,2.6rem); height:var(--w,2.6rem); z-index:5;
  padding:0; border:0; background:none; cursor:pointer; color:var(--ink);
  opacity:.82; transition:opacity .2s;
}
.hidden-story .doodle{ --w:100%; width:100%; height:100%; }
.hidden-story:hover, .hidden-story.is-found{ opacity:1; }
.hidden-story .ring{ position:absolute; left:-35%; top:-35%; width:170%; height:170%; pointer-events:none; overflow:visible; }
.hidden-story .ring path{ fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-dasharray:330; stroke-dashoffset:330; filter:url(#wob-a); }
.hidden-story.is-found .ring path{ animation:draw .6s ease-out forwards; }
@keyframes draw{ to{ stroke-dashoffset:0; } }

/* ---------- dialog card ---------- */
/* No position here. A modal dialog is position:fixed by the browser, which is
   what centres it in the window; setting position:relative would drop it back
   into the page and leave it wherever you happened to be scrolled. Fixed
   already makes it the containing block for the border below. */
dialog.card{
  border:0; padding:0; background:var(--paper); color:var(--ink);
  width:min(92vw, 34rem); max-height:min(86vh, 100%); text-align:center; overflow:hidden;
}
/* only when open, or the closed dialog would stop being display:none */
dialog.card[open]{ display:flex; flex-direction:column; }
dialog.card .cbody{ padding:2.6rem 2rem .4rem; overflow-y:auto; overscroll-behavior:contain; }
dialog.card.scrolls .cbody{
  -webkit-mask-image:linear-gradient(#000 calc(100% - 1.8rem), transparent);
  mask-image:linear-gradient(#000 calc(100% - 1.8rem), transparent);
}
dialog.card .cfoot{ flex:none; padding:0 2rem 2.2rem; }
.card-pic{ display:block; width:100%; max-width:26rem; margin:0 auto .4rem; }

/* A story card is a postcard from Chandrapur, kept light: the site's own
   white card, the title written by hand in ballpoint, a small postmark in
   the corner, and a real photo laid on it the moment there is one.
   From the Sierra Designs mail art on the mood board. */
dialog.card.post .cbody{ padding:1.5rem 1.7rem .4rem; text-align:left; }
.pc-top{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1rem; align-items:start; }
.pc-hand{ font-family:var(--hand); color:var(--blue); font-size:1.55rem; line-height:1.15; margin:0; }
.pc-from{ font-family:var(--hand); color:var(--blue); font-size:.9rem; margin:.2rem 0 0; opacity:.8; }
/* the postmark: a wobbly ring with the town and the year in it */
/* ---- the postmark ----------------------------------------------------
   The whole mark is one SVG on a 100-unit grid (app.js postmark()), so the
   rings, the curved names and the date all scale together and the text can
   never run out past the circle the way flat centred text did. */
.pc-mark{
  position:relative; width:5rem; height:5rem; flex:none; display:grid; place-items:center;
  transform:rotate(-8deg); opacity:.6;
}
.pc-mark .pm{ width:100%; height:100%; display:block; overflow:visible; }
.pc-mark .pm-ring circle{ fill:none; stroke:currentColor; stroke-width:2.2; filter:url(#wob-a); }
.pc-mark .pm-ring circle + circle{ stroke-width:1.2; filter:url(#wob-b); }
.pc-mark .pm-bar path{ fill:none; stroke:currentColor; stroke-width:1.1; filter:url(#wob-b); opacity:.8; }
.pc-mark .pm-ink{ fill:currentColor; font-family:var(--sans); text-transform:uppercase; }
.pc-mark .pm-town{ font-size:10px; font-weight:700; letter-spacing:.06em; }
.pc-mark .pm-state{ font-size:6px; font-weight:500; letter-spacing:.08em; }
.pc-mark .pm-date{ font-size:10.5px; font-weight:600; letter-spacing:.04em; }
/* Devanagari is taller and has no capitals to shout with, so it is set a
   little smaller and not stretched */
html[lang="mr"] .pc-mark .pm-ink{ font-family:var(--ui); text-transform:none; }
html[lang="mr"] .pc-mark .pm-town{ font-size:9px; letter-spacing:.01em; }
html[lang="mr"] .pc-mark .pm-state{ font-size:5.4px; letter-spacing:.02em; }
/* the creature, in its real colour, until there is a photo */
.pc-fig{ display:flex; justify-content:center; margin:1.1rem 0 .1rem; }
.pc-fig .doodle{ --w:5.4rem; }
/* a photo lies on the card like a print: rounded corners, a slight tilt */
.pc-photo{ margin:1.1rem .3rem .5rem; aspect-ratio:3/2; overflow:hidden; border-radius:.55rem; transform:rotate(-1.4deg); box-shadow:0 12px 26px -16px rgba(0,0,0,.55); }
.pc-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
dialog.card.post .lead{ max-width:none; text-align:left; font-size:1rem; margin:.9rem 0 0; }
dialog.card.post .lead.small{ font-family:var(--hand); color:var(--blue); font-size:.95rem; opacity:.9; }
@media (max-width:420px){ .pc-mark{ width:4.3rem; height:4.3rem; } .pc-hand{ font-size:1.3rem; } }
dialog.card .cfoot .btn-row{ margin-top:1.2rem; }
dialog.card::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
dialog.card::backdrop{ background:rgba(255,255,255,.84); }
html[data-mode="dark"] dialog.card::backdrop{ background:rgba(0,0,0,.82); }
dialog.card .objects-row .doodle{ --w:5rem; }
dialog.card .lead{ max-width:24rem; }
dialog.card .lead.left{ text-align:left; }

/* ---------- celebration: the sparkler ----------
   The ground is the warm grey of the photograph, so the white paper reads.
   Pieces fly out from the light (--fx/--fy point back to it), the stick slides
   in from the bottom right, and the whole thing fades before the card. */
.burst{
  position:fixed; inset:0; z-index:50; pointer-events:none; display:grid; place-items:center;
  background:radial-gradient(120% 90% at 18% 8%, #aaa39b 0%, #8e867e 45%, #6c645d 100%);
  animation:ground-in .25s ease-out both;
}
.burst.is-out{ animation:ground-out .6s ease-in both; }
.burst svg{ width:min(96vw, 96vh, 64rem); height:auto; overflow:visible; }
.burst .stick{ animation:stick-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay:.12s; }
.burst .paper{ fill:#f6f5f2; }
.burst .boom{ transform-box:fill-box; transform-origin:center; animation:boom .5s cubic-bezier(.2,.9,.25,1.08) both; animation-delay:.42s; }
.burst .fly{ transform-box:fill-box; transform-origin:center; animation:fly .62s cubic-bezier(.15,.7,.2,1) both; }
@keyframes ground-in{ from{ opacity:0 } to{ opacity:1 } }
@keyframes ground-out{ from{ opacity:1 } to{ opacity:0 } }
@keyframes stick-in{ from{ transform:translate(140px, 320px); opacity:0 } to{ transform:none; opacity:1 } }
@keyframes boom{ from{ transform:scale(0) rotate(-8deg); opacity:0 } 55%{ opacity:1 } to{ transform:scale(1) rotate(0deg); opacity:1 } }
@keyframes fly{
  from{ transform:translate(var(--fx), var(--fy)) scale(.1) rotate(calc(var(--rot) * -1)); opacity:0 }
  25%{ opacity:1 }
  to{ transform:translate(0, 0) scale(1) rotate(var(--rot)); opacity:1 }
}
@media (prefers-reduced-motion:reduce){
  .burst, .burst .stick, .burst .boom, .burst .fly{ animation-duration:.01ms !important; animation-delay:0s !important; }
}

/* ---------- work: papers on a desk ----------
   Two references folded together. The pink zine (image 31): one ink on one
   paper, hand-drawn window frames. The Xerox 6085 desktop (image 213):
   overlapping windows, a black title bar on the front one, a column of
   document icons down the right. Each project is a window you can raise,
   drag, and open. */
.deskpage{ min-height:100vh; display:flex; flex-direction:column; padding:1.4rem 1.5rem 7.5rem; position:relative; }
.deskpage .hidden-story{ z-index:44; }
/* the menu bar across the top, like a classic Mac or the Xerox screen:
   the app name, the menus that belong to this view, and a plain count */
.menubar{
  display:flex; align-items:center; gap:1.5rem; padding:.4rem .2rem .55rem;
  border-bottom:var(--stroke) solid currentColor; position:relative; z-index:60;
}
.menubar::after{ content:""; position:absolute; left:0; right:0; bottom:-4px; border-bottom:1px solid currentColor; opacity:.5; }
.menubar h1{ font-size:.95rem; font-weight:700; margin:0; letter-spacing:.04em; }
.mb-menu{ display:flex; gap:.2rem; }
.mb-drop{ position:relative; }
.mb-item{
  font:inherit; font-size:.86rem; background:none; border:0; color:inherit; padding:.15rem .55rem; cursor:pointer;
}
.mb-item:hover, .mb-item:focus-visible, .mb-item[aria-expanded="true"]{ background:var(--ink); color:var(--paper); outline:0; }
.mb-item .caret{ font-size:.7em; opacity:.8; }
/* a menu that falls open under its name, drawn like everything else */
.mb-list{
  position:absolute; top:100%; left:0; z-index:70; min-width:13rem; margin:.35rem 0 0; padding:.3rem 0;
  list-style:none; background:var(--paper); color:var(--ink); box-shadow:0 18px 34px -22px rgba(0,0,0,.5);
}
.mb-list::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid currentColor; filter:url(#wob-b); pointer-events:none; }
.mb-list li.rule{ height:0; margin:.3rem .55rem; border-top:1px solid currentColor; opacity:.35; }
.mb-list button{
  display:flex; align-items:center; gap:.5rem; width:100%; padding:.32rem .7rem .32rem .5rem;
  font:inherit; font-size:.88rem; text-align:left; background:none; border:0; color:inherit; cursor:pointer;
}
.mb-list button:hover:not([disabled]), .mb-list button:focus-visible{ background:var(--ink); color:var(--paper); outline:0; }
.mb-list button[disabled]{ opacity:.35; cursor:default; }
.mb-list .tick{ width:.9rem; flex:none; }
.mb-list .doodle{ --w:.95rem; }
.mb-list .mt{ text-transform:capitalize; }
.mb-stat{ margin:0 .1rem 0 auto; font-size:.82rem; white-space:nowrap; opacity:.75; }
/* the fast way out, sat with the count rather than shouted over the desk */
.mb-cv{ font-size:.82rem; opacity:.75; color:inherit; text-decoration:none; white-space:nowrap; }
.mb-cv::before{ content:'·'; margin:0 .5rem; opacity:.55; }
.mb-cv:hover, .mb-cv:focus-visible{ opacity:1; text-decoration:underline; }

/* the same work as a plain list, for anyone who would rather scan than look */
/* ---------- the work, filed ----------
   The desk is the papers spread out on a table; this is the same work as an
   index. The year hangs in the margin, the name and its one line sit in the
   measure, the kind of work and its marks stand at the right, and the rules
   between rows are drawn rather than ruled. The whole page is as wide as the
   screen, but a list read edge to edge on a wide monitor is a mile of travel
   between a name and its arrow, so the index keeps a measure of its own. */
.worklist{ width:min(100%, 62rem); margin:1.6rem auto 0; padding:0; list-style:none; align-self:center; }
.worklist li{ position:relative; }
.worklist li::before, .worklist::after{
  content:""; position:absolute; left:0; right:0; top:0; height:1.5px;
  background:currentColor; opacity:.45; filter:url(#wob-line); pointer-events:none;
}
.worklist{ position:relative; }
.worklist::after{ top:auto; bottom:0; }
.wrow{
  display:grid; grid-template-columns:7.5rem minmax(0,1fr) 9.5rem 3.4rem 1.6rem;
  grid-template-areas:"y t k m a" ". s . . .";
  align-items:baseline; column-gap:1.4rem; row-gap:.15rem;
  padding:1.15rem .5rem 1.3rem; color:inherit; text-decoration:none;
  transition:background .18s ease;
}
.wy{ grid-area:y; font-size:.8rem; letter-spacing:.06em; white-space:nowrap; color:var(--ink-2); }
.wt{ grid-area:t; font-size:1.3rem; line-height:1.2; }
.ws{ grid-area:s; font-family:var(--hand); font-size:1.05rem; line-height:1.35; color:var(--ink-2); max-width:38rem; }
.wk{ grid-area:k; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); }
.wm{ grid-area:m; }
.wm .tags{ margin:0; gap:.4rem; }
.wa{ grid-area:a; justify-self:end; font-size:1.05rem; color:var(--ink-2); transition:transform .18s ease, color .18s ease; }
/* The old row turned solid ink on hover — a black bar the height of four
   lines. Here the paper takes a tint, the name picks up the project's own
   colour (the one its window wears on the desk) and the arrow steps right. */
.wrow:hover, .wrow:focus-visible{ background:color-mix(in srgb, currentColor 5%, transparent); outline:0; }
.wrow:focus-visible{ outline:3px solid currentColor; outline-offset:-3px; }
.wrow:hover .wt, .wrow:focus-visible .wt{ color:var(--acc, var(--ink)); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.wrow:hover .wa, .wrow:focus-visible .wa{ color:var(--acc, var(--ink)); transform:translateX(5px); }
@media (prefers-reduced-motion:reduce){ .wa{ transition:none; } .wrow:hover .wa{ transform:none; } }
.worklist .nowt{ padding:1.4rem .5rem; }
.nowt{ padding:3rem 0; text-align:center; }

/* the desk: the windows on the left, a column of document icons on the right */
.desk{ flex:1; margin-top:1.2rem; display:grid; grid-template-columns:minmax(0,1fr) 7rem; gap:1.2rem; align-items:start; }
.field{ position:relative; min-height:36rem; }

/* the icon column: one labelled document per project, so nothing is ever
   out of reach. Solid when its window is open, dashed once you put it
   away, filled black when it is the window in front. */
.dock{ display:flex; flex-direction:column; gap:.55rem; padding:.2rem 0; position:sticky; top:1rem; }
.icon{
  display:flex; flex-direction:column; align-items:center; gap:.3rem; padding:.45rem .2rem .4rem;
  background:none; border:0; color:inherit; font:inherit; font-size:.62rem; letter-spacing:.06em; text-transform:uppercase;
  text-align:center; cursor:pointer; opacity:.55;
}
.icon.is-open{ opacity:1; }
.icon .pg{ position:relative; width:2.7rem; height:3.3rem; display:grid; place-items:center; }
.icon .pg::before{ content:""; position:absolute; inset:0; z-index:0; border:var(--stroke) dashed currentColor; filter:url(#wob-b); }
.icon.is-open .pg::before{ border-style:solid; }
/* The two things that STAND on the page ride above it. Named, not `> *`:
   a blanket rule here also caught the count badge, which positions itself
   absolutely at the corner — `position:relative` put it back in the grid and
   it stacked under the tiles, on top of the icon's own label. */
.icon .pg .mark, .icon .pg .doodle{ position:relative; z-index:1; }
.icon .pg .doodle{ --w:1.35rem; }
/* The frontmost icon's page is filled with ink. The fill belongs to the SAME
   drawn shape as the line, not to the box behind it: a hard-edged rectangle
   under a wobbling border is two edges that disagree, and where the border
   wandered inward it cut a thin crescent of ink off the body — a stray line
   floating beside the icon. Filled and outlined together, they can only ever
   move as one. */
.icon.is-front .pg{ color:var(--paper); }
.icon.is-front .pg::before{ background:var(--ink); }
.icon .name{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-width:6.6rem; line-height:1.3; }
.icon:hover .pg, .icon:focus-visible .pg{ transform:translateY(-1px); }
.icon:focus-visible{ outline:3px solid currentColor; outline-offset:2px; }
.icon.is-trash{ margin-top:auto; padding-top:1rem; opacity:.7; }
.icon.is-trash .pg::before{ border:0; }
.icon.is-trash .pg .doodle{ --w:2.2rem; }
.icon.is-trash .pg.full .doodle{ --w:2.4rem; }

/* a note pinned to the desk, in handwriting; you can drag it about */
.note{
  position:absolute; width:11rem; padding:.9rem 1rem 1rem; background:var(--paper);
  font-family:var(--hand); color:var(--blue); font-size:1.08rem; line-height:1.3;
  cursor:grab; user-select:none; -webkit-user-select:none; touch-action:none; transform:rotate(1.6deg);
  box-shadow:0 12px 26px -20px rgba(0,0,0,.6); z-index:1; opacity:0;
}
.note.is-in{ opacity:1; }
@media (prefers-reduced-motion:no-preference){ .note{ transition:opacity .38s ease; } }
.note::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-c); pointer-events:none; }
.note.is-dragging{ cursor:grabbing; }
.note.raise{ z-index:2; }

/* the trash, opened: a short window of things that did not survive */
.docwin.trash{ width:min(92vw, 30rem); }
.docwin.trash ul{ list-style:none; padding:0; margin:0; }
/* two lines per entry now — what it was, and what it was — so the × keeps its
   own column instead of sitting in a row with a paragraph */
.docwin.trash li{ display:grid; grid-template-columns:1.1rem 1fr; gap:.15rem .6rem; align-items:baseline; padding:.55rem 0; border-bottom:1px dashed currentColor; }
.docwin.trash li::before{ content:"×"; font-weight:700; grid-column:1; grid-row:1; }
.docwin.trash li:last-child{ border-bottom:0; }
.tr-lead{ margin:0 0 .9rem; font-size:.88rem; opacity:.75; line-height:1.5; }
.tr-what{ grid-column:2; }
.tr-what a{ color:inherit; }
/* the ones that still run get their own mark, because a × in front of a
   working thing is only half true */
.docwin.trash li.lives::before{ content:"↗"; font-weight:400; }
.tr-what em{ font-style:normal; font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; opacity:.6; margin-left:.35rem; }
.tr-why{ grid-column:2; font-size:.85rem; opacity:.7; line-height:1.45; }

/* one project = one window */
.pwin{
  position:absolute; width:var(--w, 34%); min-width:15rem; max-width:30rem;
  background:var(--paper-2, var(--paper)); color:var(--ink-3, var(--ink));
  box-shadow:0 18px 34px -26px rgba(0,0,0,.55);
  opacity:0; transform:translateY(12px);
}
.pwin.is-in{ opacity:1; transform:none; }
/* z-index lifts the drawn line above the cover: the cover is positioned too,
   and a full-bleed picture in it was painting over every stretch where the
   wobble pushed the line inward, leaving dashes down both sides */
.pwin::before{ content:""; position:absolute; inset:0; z-index:2; border:var(--stroke) solid currentColor; filter:url(#wob-a); pointer-events:none; }
.pwin:focus-visible{ outline:3px solid currentColor; outline-offset:4px; }
.pwin.is-front{ box-shadow:0 26px 44px -26px rgba(0,0,0,.6); }
.pwin.is-dragging{ transition:none !important; box-shadow:0 34px 56px -28px rgba(0,0,0,.65); }
@media (prefers-reduced-motion:no-preference){
  .pwin{ transition:opacity .38s ease, transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease; }
  .pwin.raise{ animation:raise .16s ease-out; }
}
@keyframes raise{ 0%{ transform:scale(1) } 45%{ transform:scale(1.012) } 100%{ transform:scale(1) } }
.pwin .titlebar{
  display:flex; align-items:center; justify-content:space-between; gap:.6rem;
  padding:.45rem .7rem; border-bottom:var(--stroke) solid currentColor;
  font-size:.74rem; letter-spacing:.09em; text-transform:uppercase;
  cursor:grab; user-select:none; -webkit-user-select:none; touch-action:none;
}
.pwin.is-dragging .titlebar{ cursor:grabbing; }
/* the front window gets the black title bar, like the Xerox desktop — or the
   project's own colour, when it has one and is not a print (see work.html) */
.pwin.is-front .titlebar{ background:var(--acc, var(--ink-3, var(--ink))); color:var(--acc-ink, var(--paper-2, var(--paper))); }
.pwin .ttl{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pwin .boxes{ display:flex; align-items:center; gap:.35rem; flex:none; }
.pwin .box{
  width:1.05rem; height:1.05rem; flex:none; padding:0; background:none;
  border:var(--stroke) solid currentColor; color:inherit; display:grid; place-items:center;
  font-size:.8rem; line-height:1; cursor:pointer;
}
.pwin .cover{ position:relative; aspect-ratio:4/3; display:grid; place-items:center; overflow:hidden; border-bottom:var(--stroke) solid currentColor; cursor:pointer; }
.pwin .cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.pwin .cover .doodle{ --w:40%; color:inherit; }
.pwin .foot{ padding:.6rem .8rem .75rem; cursor:pointer; }
.pwin .foot .row{ display:flex; justify-content:space-between; align-items:center; gap:.6rem; margin-top:.55rem; }
/* the card is the button, and it says so */
.pwin .go{ font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; border-bottom:var(--stroke) solid currentColor; padding-bottom:.05rem; }
.pwin:hover .go{ opacity:.7; }
.pwin .meta{ margin:0 0 .2rem; font-size:.72rem; letter-spacing:.07em; text-transform:uppercase; opacity:.85; }
.pwin .line{ margin:0; font-family:var(--hand); font-size:1.05rem; line-height:1.25; }
/* risograph grain on coloured paper, as in the blue table-tennis print */
.pwin.has-paper::after{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.14; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the opened case study: one big document window */
.docwin{ border:0; padding:0; width:min(92vw, 56rem); max-height:84vh; background:var(--paper-2, var(--paper)); color:var(--ink-3, var(--ink)); overflow:hidden; }
.docwin::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid currentColor; filter:url(#wob-a); pointer-events:none; }
.docwin::backdrop{ background:rgba(255,255,255,.72); }
html[data-mode="dark"] .docwin::backdrop{ background:rgba(0,0,0,.76); }
.docwin .titlebar{
  display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.55rem .9rem;
  background:var(--ink-3, var(--ink)); color:var(--paper-2, var(--paper));
  font-size:.78rem; letter-spacing:.09em; text-transform:uppercase;
}
.docwin .x{ width:1.3rem; height:1.3rem; flex:none; padding:0; background:none; border:var(--stroke) solid currentColor; color:inherit; display:grid; place-items:center; font-size:.9rem; line-height:1; cursor:pointer; }
.docwin .body{ padding:1.4rem 1.7rem 1.9rem; overflow:auto; overscroll-behavior:contain; max-height:calc(84vh - 3rem); font-size:1.05rem; line-height:1.55; }
.docwin .gal{ position:relative; aspect-ratio:16/9; background:#0b1a3d; overflow:hidden; margin:0 -1.7rem 1.3rem; }
.docwin .gal img{ width:100%; height:100%; object-fit:cover; display:block; }
.docwin .garr{
  position:absolute; top:50%; width:3rem; height:3rem; margin-top:-1.5rem; border-radius:50%;
  border:1px solid #fff; background:rgba(255,255,255,.14); color:#fff; display:grid; place-items:center;
  cursor:pointer; font-size:1.5rem; line-height:1; padding:0;
}
.docwin .garr.prev{ left:1rem; } .docwin .garr.next{ right:1rem; }
.docwin .gcount{ position:absolute; right:1.1rem; bottom:.8rem; color:#fff; font-size:.74rem; letter-spacing:.08em; }
.docwin .tags{ margin:0 0 1rem; flex-wrap:wrap; }
.docwin .lede{ font-family:var(--hand); font-size:1.3rem; line-height:1.3; margin:0 0 1rem; }
.docwin .toc{ list-style:none; padding:0; margin:0 0 .6rem; display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; font-size:.9rem; }
.docwin .toc a{ color:inherit; text-decoration:none; border-bottom:var(--stroke) solid currentColor; }
.docwin h2{ font-size:1.3rem; margin:1.4rem 0 .4rem; }
.docwin p{ margin:.3rem 0; }

@media (max-width:900px){
  .desk{ display:flex; flex-direction:column-reverse; gap:1rem; }
  .dock{ flex-direction:row; flex-wrap:wrap; justify-content:center; position:static; }
  .icon.is-trash{ margin-top:0; padding-top:.45rem; }
  /* relative, not static, for the same reason as the cards: the note's ink
     line is a ::before with inset:0, and a static note hands that job to the
     field, drawing the note's border around the whole column */
  .note{ position:relative; transform:none; width:auto; margin:0 0 1.2rem; }
  .menubar{ gap:.7rem; }
  .mb-item{ padding:.15rem .4rem; }
  .mb-stat{ font-size:.74rem; }
  /* On a phone the index used to drop the kind of work, the marks and the
     arrow, because five columns will not fit. They are not dropped now: the
     year and the kind share one small line above the name, with the marks
     at its right, and the arrow sits beside the name. */
  .wrow{
    grid-template-columns:auto auto minmax(0,1fr) auto;
    grid-template-areas:"y k . m" "t t t a" "s s s s";
    column-gap:.5rem; row-gap:.3rem; padding:1rem .2rem 1.15rem;
  }
  .wk::before{ content:"\00b7"; margin-right:.5rem; opacity:.5; }
  .wt{ font-size:1.25rem; align-self:center; }
  .ws{ font-size:1rem; max-width:none; }
  .wa{ align-self:center; }
  /* the desk lays its columns out with align-items:start, so on a phone the
     field has to be told to fill the width — otherwise it is as wide as its
     widest card and any inset pushes the whole column off the page */
  .field{ min-height:0 !important; display:flex; flex-direction:column; gap:2.2rem; align-self:stretch; }
  /* relative, NOT static: the card's drawn border is a ::before with inset:0,
     and absolute insets resolve against the nearest positioned ancestor. A
     static card handed that job to .field, so every card drew its ink line
     around the whole column instead of around itself — five identical
     rectangles stacked on the field, which is why the stack looked like one
     framed table and no card had an edge of its own. Relative keeps each
     card the containing block for its own line. (The desktop's inline
     left/top are cleared by layout() whenever the desk is not wide.) */
  .pwin{ position:relative !important; width:auto !important; max-width:none; min-width:0; }
  .pwin.is-in{ transform:none; }
  .pwin .titlebar{ cursor:default; touch-action:auto; }
  /* Stacked, the cards ran the full width of the page with 19px between
     them, so the ink of one met the ink of the next and the five read as
     rows of one table rather than five cards. On a wide screen every window
     is an object with air on all four sides. So here: air on all four sides
     too. Each card is inset from both edges of the page, by the same amount,
     so none of them touches the side of the screen; the space between them
     is wider than the space beside them, so the eye groups each card with
     itself and not with its neighbour; and the shadow is close enough to see
     (the one on a wide screen is a 34px blur pulled back by a 26px spread,
     which on paper this small is nothing at all). */
  .field .pwin{ margin:0 .7rem; box-shadow:0 10px 18px -12px rgba(0,0,0,.45); }
  .field .pwin.is-front{ box-shadow:0 12px 22px -12px rgba(0,0,0,.5); }
}

/* ---------- a case study: the project's document, opened full screen ----------
   The same window as on the desk, maximised: title bar on top, a rail down
   the left with the other projects and the contents, and the document
   printed on this project's paper. Label in the margin, words beside it. */
.casepage{
  min-height:100vh; display:flex; flex-direction:column;
  background:var(--paper-2, var(--paper)); color:var(--ink-3, var(--ink));
}
.casepage.has-paper::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.13; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the window's title bar, filled like the front window on the desk.
   --acc-ink is the fixed white that goes with a project's own --acc (set
   alongside it in case.html), so the two can never fall out of step the
   way --acc and the site's own mode-aware --paper once did in dark mode;
   with no --acc at all, the bar and its text fall back together to the
   site's real ink/paper pair, which already inverts correctly as one. */
.casebar{
  position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:.55rem 1rem; background:var(--acc, var(--ink-3, var(--ink))); color:var(--acc-ink, var(--paper-2, var(--paper)));
  font-size:.78rem; letter-spacing:.09em; text-transform:uppercase;
}
/* the project's second colour as a thin printed edge under the title bar */
.casepage .casebar::after{ content:""; position:absolute; left:0; right:0; bottom:-3px; height:3px; background:var(--acc, transparent); opacity:.35; }
.casebar .ttl{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.casebar .x{
  width:1.4rem; height:1.4rem; flex:none; display:grid; place-items:center; text-decoration:none;
  border:var(--stroke) solid currentColor; color:inherit; font-size:1rem; line-height:1;
}
/* the same reasoning in reverse: an accent colour is chosen to work as a
   background with white text, not the other way round, so hover swaps to a
   fixed white behind it rather than the site's own (possibly dark) paper */
.casebar .x:hover{ background:var(--acc-ink, var(--paper-2, var(--paper))); color:var(--acc, var(--ink-3, var(--ink))); }
.casewrap{ position:relative; z-index:1; flex:1; display:grid; grid-template-columns:15rem minmax(0,1fr); gap:2.5rem; padding:2.2rem 2.5rem 8rem; }
/* a project with one chapter has no contents list; the document takes the width */
.casewrap.bare{ grid-template-columns:minmax(0,1fr); }
.casewrap.bare .rail{ display:none; }

/* the rail: where else you can go, and where you are */
.rail{ position:sticky; top:4rem; align-self:start; max-height:calc(100vh - 6rem); overflow:auto; padding-bottom:1rem; }
.railblock + .railblock{ margin-top:2rem; }
.rail ul{ list-style:none; margin:.5rem 0 0; padding:0; }
.rail li{ margin:0 0 .3rem; }
.rail a{ color:inherit; text-decoration:none; display:inline-block; }
.rail .projlist a{ font-size:1.15rem; opacity:.55; }
.rail .projlist a:hover{ opacity:1; }
.rail .projlist a.is-on{ opacity:1; border-bottom:var(--stroke) solid currentColor; }
.rail .chaplist a{ font-size:1rem; opacity:.55; }
.rail .chaplist a:hover, .rail .chaplist a.is-on{ opacity:1; }
.rail .chaplist a.is-on::before{ content:"→ "; }

/* the small label that names each row, in the margin */
.doc .lab, .rail .lab{ font-size:.62rem; font-weight:400; letter-spacing:.18em; text-transform:uppercase; opacity:.6; margin:0; }

/* the document */
.doc{ max-width:56rem; }
.doc .block{ opacity:0; transform:translateY(10px); }
.doc .block.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:no-preference){ .doc .block{ transition:opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); } }
.dochead{ margin:0 0 2.6rem; }
.dochead .meta{ margin:0 0 .6rem; font-size:.72rem; letter-spacing:.09em; text-transform:uppercase; opacity:.7; }
.dochead h1{ font-size:clamp(2.2rem, 5vw, 3.2rem); line-height:1.05; margin:0 0 .5rem; font-weight:700; }
.dochead .sub{ margin:0; font-size:1.35rem; line-height:1.35; opacity:.72; max-width:34rem; }

/* label in the margin, words beside it */
.doc .rows{ border-top:1px solid currentColor; }
.doc .row{ display:grid; grid-template-columns:9rem minmax(0,1fr); gap:1.5rem; padding:1.1rem 0; border-bottom:1px solid currentColor; align-items:start; }
.doc .row .lab{ padding-top:.25rem; }
.doc .val{ margin:0; font-size:1.02rem; line-height:1.6; max-width:40rem; }
.doc .val.big{ font-size:1.15rem; }
.doc .credits{ margin:0; display:grid; grid-template-columns:13rem minmax(0,1fr); gap:.1rem 1.5rem; font-size:.95rem; }
.doc .credits dt{ font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; opacity:.6; padding-top:.35rem; }
.doc .credits dd{ margin:0 0 .45rem; opacity:.85; }
.doc .credits a{ color:inherit; text-decoration:none; border-bottom:var(--stroke) solid currentColor; }
.doc .credits .arrow{ display:inline-block; width:.8rem; height:.8rem; }
.doc .credits .arrow svg{ width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.doc .credits .quiet{ opacity:.5; }

/* one chapter of the work */
.doc .chapter{ margin:3.4rem 0 0; }
.doc .chh{ font-size:1.7rem; line-height:1.15; margin:0 0 .5rem; font-weight:700; }
.doc .chlead{ margin:0 0 1.6rem; font-size:1.15rem; line-height:1.6; max-width:40rem; opacity:.85; }
/* paragraphs inside one chapter's opening text sit closer together than the
   gap that separates that text from the pictures under it */
.doc .chlead + .chlead{ margin-top:-.7rem; }
/* the line in the margin: his own words about this part, hand-written */
.doc .chaside{ margin:-.6rem 0 1.8rem; max-width:34rem; font:300 1.25rem/1.4 var(--hand); color:var(--blue); }
.doc .psr{ margin-top:1.8rem; }
.doc .psr.psr-top{ margin:1.2rem 0 1.5rem; }

/* the pictures, each one named and explained, the way a designer would */
/* max-width is what two 26rem columns and the gap between them come to:
   without it a three-column row (and any full-width picture inside one)
   runs 42px wider than every other full-width picture on the page, and the
   right edge of the pictures stops being a line. */
.doc .shots{ display:grid; grid-template-columns:repeat(auto-fill, minmax(17rem, 26rem)); gap:1.6rem 1.4rem; margin:0 0 1rem; max-width:53.4rem; }
.doc .shot{ margin:0; }
.shot .frame{ position:relative; aspect-ratio:4/3; overflow:hidden; display:grid; place-items:center; gap:.4rem; align-content:center; }
.shot .frame::before{ content:""; position:absolute; inset:0; z-index:2; border:var(--stroke) solid currentColor; filter:url(#wob-a); pointer-events:none; }
.shot .frame img{ width:100%; height:100%; object-fit:cover; display:block; }
.shot .frame.empty{ opacity:.45; }
/* every picture opens large (see the lightbox below) */
.shot .frame img{ cursor:zoom-in; }
/* a stack: two or three screens laid over each other like windows, on the
   same cream mat and inside the same ink line as every other picture, so the
   set stays one kind of object. The mat is the plate tool's paper colour;
   the pile inside takes the height it needs (layoutStack in case.html). */
:root{ --plate-paper:#f5f1e8; }
.shot .frame.stack{ aspect-ratio:auto; display:block; padding:5%; background:var(--plate-paper); }
.frame.stack .pile{ position:relative; width:100%; }
.frame.stack img{
  position:absolute; width:78%; height:auto; left:0; top:0; z-index:1; cursor:pointer;
  transform:scale(.92); transform-origin:top left; filter:brightness(.8) saturate(.85) blur(.3px);
  transition:transform .35s ease, filter .35s ease;
}
.frame.stack img.is-front{ z-index:2; transform:none; filter:none; cursor:zoom-in; }
.frame.stack img:hover:not(.is-front){ filter:brightness(.92) saturate(.94) blur(0); transform:scale(.945); }
/* live pictures: the page draws the device (a phone, a browser window)
   around a raw screenshot, on the same cream mat and inside the same ink
   line as every other picture. .device is only the box and the measuring
   container; the .shell inside wears the bezel, the bar and the corners in
   cqw — hundredths of the DEVICE's width — so they scale with it exactly.
   (On .device itself those units measure the viewport, not the device: the
   first version's phones came out as capsules.) */
.shot .frame.live{ aspect-ratio:auto; display:block; padding:6%; background:var(--plate-paper); container-type:inline-size; }
.frame.live .track{ display:flex; justify-content:center; align-items:flex-start; gap:6%; width:100%; justify-self:stretch; align-self:start; }
.device{ container-type:inline-size; position:relative; flex:0 0 auto; }
/* One phone size, everywhere. A lone phone sits in a half-width cell at 60%
   of it; a row of phones takes the whole column at 29% of that. Both come out
   at about 218 px, so a screen is the same size wherever it appears and its
   size never implies an importance nobody meant. */
.frame.live .device.phone{ width:29%; }
.frame.live[data-n="1"] .device.phone{ width:60%; }
.shot.wide .frame.live[data-n="1"] .device.phone{ width:29%; }
.frame.live[data-n="2"] .device.phone{ width:29%; }
.frame.live[data-n="3"] .device.phone{ width:29%; }
/* Four and five phones do not shrink to fit one row: they wrap into rows of
   three, every phone the same size as in a row of three. Three at 29% with
   the 6% gap fills the width exactly, so the fourth has nowhere to go but
   the next line.
   The gap BETWEEN those rows is in cqw, not per cent. A percentage row-gap
   is measured against the flex container's height, and the height here is
   whatever the phones add up to — indefinite — so the browser resolves it
   to nothing and the second row sits flush against the first. cqw is a
   hundredth of the frame's own width (the frame is the query container),
   which is what the 6% column gap measures against too, so the space
   across and the space down come out the same. */
.frame.live[data-n="4"] .track, .frame.live[data-n="5"] .track{ flex-wrap:wrap; row-gap:6cqw; }
.frame.live[data-n="4"] .device.phone, .frame.live[data-n="5"] .device.phone{ width:29%; }
/* flat pictures wrap the same way — five rarity cards come out as three and
   two, centred, instead of five full-width slabs down the page. Three across
   with the 6% gap is 29.3% each, not 31: three thirty-ones and two sixes is
   105% of the track, which is why five cards were coming out two at a time. */
.frame.live[data-n="4"] .device.flat, .frame.live[data-n="5"] .device.flat{ width:29.3%; }
/* unless the four are a ladder. Wellim's membership tiers go blue, silver,
   gold, platinum, and a ladder wrapped three-and-one reads as a mistake
   rather than as four rungs. Four across at 22% with a 4% gap is exactly the
   track: four twenty-twos and three fours is 100. */
.frame.live[data-kind="flat"][data-n="4"] .track{ flex-wrap:nowrap; gap:4%; }
.frame.live[data-kind="flat"][data-n="4"] .device.flat{ width:22%; }
.frame.live .device.window, .frame.live .device.flat{ width:100%; }
.frame.live[data-n="2"] .track{ gap:5%; } .frame.live[data-n="2"] .device.window, .frame.live[data-n="2"] .device.flat{ width:47.5%; }
.frame.live[data-n="3"] .device.window, .frame.live[data-n="3"] .device.flat{ width:29.3%; }
.device.phone .shell{ padding:3cqw; background:#141414; border-radius:15cqw; box-shadow:inset 0 0 0 .5cqw #2c2c2c, 0 3cqw 8cqw -3cqw rgba(0,0,0,.5); position:relative; }
.device.phone .shell::before{ content:""; position:absolute; z-index:2; left:50%; top:5.2cqw; width:25cqw; height:6.6cqw; margin-left:-12.5cqw; border-radius:4cqw; background:#111; }
.device.phone .screen{ aspect-ratio:375/812; border-radius:12cqw; }
/* a status bar the phone owns, for a screen that was exported without one.
   44 of 375 points tall, which is 11.7cqw, so the island already sits on it
   at its usual height. The screen below keeps only its bottom corners. */
.device.phone .statusbar{ height:11.7cqw; background:#fff; border-radius:12cqw 12cqw 0 0; }
.device.phone.hasbar .screen{ border-radius:0 0 12cqw 12cqw; }
.device.window .shell{ background:#f2f2f2; border-radius:1.6cqw; border:.12cqw solid rgba(0,0,0,.14); box-shadow:0 1.6cqw 4cqw -1.6cqw rgba(0,0,0,.45); }
.device.window .bar{ height:4.4cqw; display:flex; align-items:center; gap:1.2cqw; padding-left:2cqw; }
.device.window .bar i{ width:1.6cqw; height:1.6cqw; border-radius:50%; background:#ff5f57; }
.device.window .bar i:nth-child(2){ background:#febc2e; } .device.window .bar i:nth-child(3){ background:#28c840; }
.device.window .screen{ aspect-ratio:1280/832; border-radius:0 0 1.4cqw 1.4cqw; }
.device.window.dark .shell{ background:#1c1c1c; border-color:rgba(255,255,255,.14); }
.device.flat .shell{ border-radius:1.4cqw; overflow:hidden; box-shadow:0 1.6cqw 4cqw -1.6cqw rgba(0,0,0,.4); border:.12cqw solid rgba(0,0,0,.12); }
.device.flat .screen{ background:transparent; }
.device .screen{ position:relative; overflow:hidden; background:#000; }
.device .screen img{ display:block; width:100%; height:auto; cursor:zoom-in; }
/* a screen taller than the device: the picture is shown from the top and
   rides up through the device on hover, then settles back. --shift and --dur
   are set per device by fitDevice() in case.html. */
.device.tall .screen img{ transition:transform var(--dur, 2s) cubic-bezier(.45,.05,.35,1); }
.device.tall:hover .screen img{ transform:translateY(var(--shift, 0)); transition-timing-function:cubic-bezier(.35,.1,.25,1); }
@media (prefers-reduced-motion:reduce){ .device.tall:hover .screen img{ transform:none; } }
@media (hover:none){ .device.tall:hover .screen img{ transform:none; } }
/* a picture that is only PART of what the screen holds looks identical, at
   rest, to one showing everything — nothing before the click told a reader
   which they were about to get. This small mark is the difference: it says
   so before they commit, and gets out of the way once hovering already
   proves the point (mouse) or stays put where hovering is not a thing
   (touch — see the hover:none override). Sized in cqw, like the rest of
   the device, so it holds its place whether the phone is one of five in a
   row or the only picture on the page. */
.device.tall .screen::after{
  content:"\21D5\0020more"; position:absolute; right:max(.35rem, 2cqw); bottom:max(.35rem, 2cqw); z-index:3;
  background:rgba(0,0,0,.62); color:#fff; font:500 3cqw/1 var(--sans); font-size:max(.68rem, 3cqw);
  letter-spacing:.02em; padding:max(.2rem, 1cqw) max(.4rem, 2cqw); border-radius:999px; pointer-events:none;
  transition:opacity .25s ease;
}
.device.tall:hover .screen::after{ opacity:0; }
@media (hover:none){ .device.tall .screen::after{ opacity:1; } }
/* the chooser between the kinds of screen a project was made for; chapters
   of the kinds not chosen are simply not there */
/* set off from the chapter above it like a chapter (3.4rem); the chapter
   below brings its own top margin, so the gap under it is the same */
/* the chooser lives in the sticky rail (chooserHTML() in case.html), above
   the contents: stacked full-width in the narrow column so it reads as one
   small control. On screen from the first moment, and still there however
   far down the reader is — switching never means scrolling back up. */
/* A visible caption over the screen chooser. The only thing that said what
   these four buttons were was an aria-label, and a designer reading the site
   never noticed them: the eye lands on the title and the hero and starts
   scrolling. Now the buttons are introduced before they are met. */
.rail .pick{ margin:0 0 .45rem; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); }
.rail .surfaces.compact{ display:flex; flex-direction:column; gap:.4rem; margin:0 0 1.6rem; }
/* Short or whole. The same case study read two ways: the short one keeps
   every chapter's heading, its problem and its solution and ONE picture, and
   drops the rest. A reader with two minutes gets the argument; a reader with
   fifteen gets everything. Each button carries how long it actually takes,
   counted from the words on the page. */
.rail .length{ display:flex; gap:.4rem; margin:0 0 1.2rem; }
.rail .length .btn.small{ flex:1; min-width:0; flex-direction:column; gap:.05rem; padding:.45rem .5rem; font-size:.88rem; line-height:1.15; }
.rail .length .btn.small small{ font-size:.68rem; opacity:.65; letter-spacing:.03em; }
.rail .length .btn.small.is-on small{ opacity:.8; }
/* the same switch, met where the reader's eye actually is: under the summary */
.doc .shortline{ margin:.9rem 0 0; font-size:.95rem; }
.doc .shortline button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer;
  border-bottom:var(--stroke) solid currentColor; }
.doc .shortline button:hover{ opacity:.7; }
.doc.is-short .chlead, .doc.is-short .chaside, .doc.is-short .row.is-result, .doc.is-short .shot:not(:first-child){ display:none; }
.doc.is-short .shots{ grid-template-columns:minmax(0, 28rem); }
.doc.is-short .shots .shot.wide{ grid-column:auto; }
/* a chapter with nothing written as problem/solution keeps its opening line,
   or it would be a bare heading */
.doc.is-short .chapter.no-psr .chlead:first-of-type{ display:block; }
.rail .surfaces.compact .btn.small{ width:100%; justify-content:flex-start; font-size:.9rem; min-height:2.4rem; }
@media (max-width:900px){
  /* the strip under the title bar is a row already (the chapters travel
     sideways under a thumb); the chooser is a second, shorter row above it.
     It WRAPS: the chapters strip below it already travels sideways, and a
     second sideways strip stacked on the first hides half the choices behind
     a scroll nobody would guess was there. Wellim has four of them, which is
     wider than a phone. Two short lines, all four in sight. */
  .rail .pick{ margin:.2rem 0 .35rem; }
  /* two buttons sharing one row, each free to shrink and the row free to
     wrap. `flex:none` with the minutes beside the label ran the second
     button 41px past the edge of a 390px screen. */
  .rail .length{ margin:0 0 .6rem; flex-wrap:wrap; }
  .rail .length .btn.small{ flex:1 1 8.5rem; min-width:0; }
  .rail .surfaces.compact{ flex-direction:row; flex-wrap:wrap; gap:.4rem .5rem; margin:0 0 .4rem; padding-bottom:.4rem; border-bottom:1px dashed currentColor; }
  .rail .surfaces.compact .btn.small{ width:auto; flex:none; }
}
.doc .chapter[data-surface]:not(.is-on){ display:none; }
/* the hero: the one picture above the credits, full width of the pictures
   below it (the same right edge they keep), its own proportions kept.
   Something to look at before the reading starts. It is built by the same
   shotHTML() as any other picture, so it can be a flat plate (Dialog) or a
   live device — a phone, a browser window (Wellim). */
.doc .hero{ margin:0 0 2.6rem; max-width:53.4rem; }
.doc .hero .shot{ margin:0; }
.doc .hero .frame:not(.live){ aspect-ratio:auto; }
.doc .hero .frame:not(.live) img{ width:100%; height:auto; object-fit:contain; }
/* a chapter can ask for three across (chapters: cols: 3), so a sequence of
   three beats reads as one row instead of breaking over two */
.doc .shots.cols-3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
@media (max-width:700px){ .doc .shots.cols-3{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
/* a wide shot spans the row and keeps the picture's own proportions */
.doc .shot.wide{ grid-column:1 / -1; }
.shot.wide .frame{ aspect-ratio:auto; }
.shot.wide .frame img{ height:auto; object-fit:contain; }
.shot .frame .doodle{ --w:2.4rem; }
.shot .frame .soon{ font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; }
.shot figcaption{ padding:.55rem .1rem 0; display:flex; flex-direction:column; gap:.1rem; font-size:.86rem; }
.shot .nm{ font-weight:500; }
.shot .kind{ opacity:.55; font-size:.78rem; }
.shot .said{ font-family:var(--hand); color:var(--blue); font-size:1rem; margin-top:.15rem; }

/* the way on */
.doc .docfoot{ display:flex; flex-wrap:wrap; align-items:stretch; gap:.8rem; margin:3.5rem 0 0; padding-top:2rem; border-top:1px solid currentColor; }
.doc .docfoot .btn.stack{ align-items:flex-start; text-align:left; max-width:16rem; }
.doc .docfoot .btn.stack b{ display:block; font-size:.6rem; font-weight:400; letter-spacing:.16em; text-transform:uppercase; opacity:.6; margin-bottom:.15rem; }
.doc .docfoot .btn.stack span{ display:block; font-size:.95rem; line-height:1.25; white-space:normal; }

@media (max-width:900px){
  .casewrap{ grid-template-columns:minmax(0,1fr); gap:1.4rem; padding:1.2rem 1.2rem 8rem; }
  /* on a phone the contents travels with you: a strip pinned under the
     title bar, on frosted paper so the words pass behind it */
  .rail{
    position:sticky; top:var(--barh, 2.4rem); z-index:4; align-self:start;
    max-height:none; overflow:visible; min-width:0;
    margin:-1.2rem -1.2rem 0; padding:.5rem 1.2rem;
    background:color-mix(in srgb, var(--paper-2, var(--paper)) 74%, transparent);
    -webkit-backdrop-filter:blur(14px) saturate(1.3);
    backdrop-filter:blur(14px) saturate(1.3);
    border-bottom:1px solid currentColor;
  }
  @supports not (backdrop-filter: blur(2px)){ .rail{ background:var(--paper-2, var(--paper)); } }
  .railblock{ display:flex; align-items:baseline; gap:.7rem; min-width:0; max-width:100%; }
  .railblock + .railblock{ margin-top:0; }
  .rail .lab{ flex:none; }
  /* the chapters sit in a row you can push along with your thumb */
  .rail .chaplist{ display:flex; gap:1.1rem; margin:0; padding:.1rem 0; min-width:0; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .rail .chaplist::-webkit-scrollbar{ display:none; }
  .rail li{ margin:0; flex:none; }
  .rail .chaplist a{ font-size:.95rem; white-space:nowrap; }
  /* a chapter jumped to must clear the title bar and the strip */
  .doc .chapter{ scroll-margin-top:calc(var(--barh, 2.4rem) + 3.2rem); }
  .casewrap.bare .rail{ display:none; }
  /* the title bar slides away while reading down and the strip takes the
     top; body.chrome-away is set by case.html from the scroll direction */
  .casebar{ transition:transform .28s ease; }
  .chrome-away .casebar{ transform:translateY(-100%); }
  .rail{ transition:top .28s ease; }
  .chrome-away .rail{ top:0; }
  .doc .row{ grid-template-columns:1fr; gap:.4rem; }
  .doc .credits{ grid-template-columns:1fr; }
  .doc .credits dd{ margin-bottom:.7rem; }
  .dochead .sub{ font-size:1.15rem; }
}

/* ---------- sky: the whiteboard in the sky ---------- */
/* The sky and the clouds are two pictures from the mood board, laid one over
   the other. The flat colour shows while the picture is still loading. */
.sky{
  position:relative; min-height:100vh; color:#0d1b3d; font-family:var(--sans); overflow:hidden;
  background:#88B5E4 url('../img/sky.webp') center / cover no-repeat;
}
.clouds{
  position:absolute; inset:0; pointer-events:none;
  background:url('../img/clouds.webp') center / cover no-repeat;
}
.sky-frame{ position:absolute; inset:2.2rem 3rem; border:1px solid rgba(0,0,0,.6); pointer-events:none; }
.sky-frame::before,.sky-frame::after{ content:""; position:absolute; left:-3rem; right:-3rem; border-top:1px solid rgba(0,0,0,.6); }
.sky-frame::before{ top:0; } .sky-frame::after{ bottom:0; }
.tabs{
  position:relative; z-index:2; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr);
  margin:2.2rem 3rem 0; border:1px solid #111; background:rgba(255,255,255,.08);  /* sits on the frame's top line */
}
.tab{
  position:relative; display:block; text-align:left; padding:.8rem .8rem 1.4rem; min-height:6.4rem;
  border:0; border-right:1px solid #111; background:transparent; color:inherit; font:inherit;
  font-size:.92rem; line-height:1.25; text-decoration:none; cursor:pointer;
}
.tab:last-child{ border-right:0; }
.tab .n{ display:block; margin-bottom:1rem; }
.tab.is-on{ background:#fff; }
.tab.brand{ display:grid; place-items:center; font-weight:700; text-align:center; }
.tab.brand .doodle{ --w:3rem; color:#0d1b3d; }
.slide{
  position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center; gap:2rem; padding:5rem 9rem 9rem; min-height:60vh;
}
.sketch svg{
  width:100%; max-width:26rem; height:auto; overflow:visible;
  fill:none; stroke:#111; stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; filter:url(#wob-a);
}
.sketch .hw{ font:600 .95rem var(--hand); fill:#111; stroke:none; letter-spacing:.14em; text-transform:uppercase; }
.thought{ font-size:clamp(1.15rem, 2vw, 1.6rem); line-height:1.35; margin:0; max-width:24rem; }
.sky-arrow{
  position:absolute; top:50%; z-index:3; width:4.2rem; height:4.2rem; margin-top:-2.1rem; border-radius:50%;
  border:1px solid #111; background:transparent; display:grid; place-items:center; cursor:pointer; color:#111;
}
.sky-arrow.prev{ left:4.5rem; } .sky-arrow.next{ right:4.5rem; }
.sky-arrow svg{ width:2rem; height:2rem; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.sky .bar-space{ height:6rem; }
@media (max-width:820px){
  .slide{ grid-template-columns:1fr; padding:3rem 1.5rem 11rem; min-height:0; }
  .sky-arrow{ top:auto; bottom:7rem; margin-top:0; width:3.4rem; height:3.4rem; }
  .sky-arrow.prev{ left:1.5rem; } .sky-arrow.next{ right:1.5rem; }
  .tabs{ display:flex; overflow-x:auto; scrollbar-width:none; margin:3rem 1rem 0; }
  .tabs::-webkit-scrollbar{ display:none; }
  .tab{ flex:none; min-width:8.5rem; min-height:5.5rem; }
  .sky-frame{ display:none; }
}

/* the sky at night, when the site is in dark mode */
html[data-mode="dark"] .sky{ color:#e8eefc; }
html[data-mode="dark"] .sky::after{ content:""; position:absolute; inset:0; background:rgba(9,20,62,.66); mix-blend-mode:multiply; pointer-events:none; }
html[data-mode="dark"] .clouds{ opacity:.6; filter:blur(3px) brightness(1.3); }
html[data-mode="dark"] .sky-frame, html[data-mode="dark"] .sky-frame::before, html[data-mode="dark"] .sky-frame::after{ border-color:rgba(232,238,252,.45); }
html[data-mode="dark"] .tabs{ border-color:#c9d4f5; background:rgba(9,20,62,.25); }
html[data-mode="dark"] .tab{ border-color:#c9d4f5; }
html[data-mode="dark"] .tab.is-on{ background:#e8eefc; color:#0d1b3d; }
html[data-mode="dark"] .tab.brand .doodle{ color:#e8eefc; }
html[data-mode="dark"] .sketch svg{ stroke:#e8eefc; }
html[data-mode="dark"] .sketch .hw{ fill:#e8eefc; }
html[data-mode="dark"] .sky-arrow{ border-color:#e8eefc; color:#e8eefc; }

/* ---------- hand-written page ---------- */
.hand{
  min-height:100vh; padding:5rem 1.25rem 9rem; display:flex; flex-direction:column; align-items:center;
  text-align:center; font-family:var(--hand); font-weight:300; color:var(--blue); font-size:1.5rem; line-height:1.3; position:relative;
}
.hand > *{ max-width:30rem; }
.hand .name{ font-size:1.9rem; font-weight:300; margin:0 0 .4rem; }
/* no two lines of handwriting sit quite level */
.hand .block:nth-of-type(odd){ transform:rotate(-.5deg); }
.hand .block:nth-of-type(even){ transform:rotate(.4deg); }
.hand .who{ margin:0 0 2.2rem; }
/* the note: a few short paragraphs, then a few lines that change */
.hand .story{ max-width:28rem; margin:0 0 .6rem; }
.hand .story p{ margin:0 0 1.1rem; font-size:1.35rem; line-height:1.4; text-wrap:balance; }
.hand .story p:nth-child(odd){ transform:rotate(-.3deg); }
.hand .story p:nth-child(even){ transform:rotate(.25deg); }
.hand .now{ display:grid; grid-template-columns:auto auto; gap:.15rem 1rem; margin:0; font-size:1.25rem; text-align:left; justify-content:center; }
.hand .now dt{ opacity:.7; }
.hand .now dt::after{ content:":"; }
.hand .now dd{ margin:0; }
.hand .photo{
  margin:0 0 1.6rem; width:min(100%, 22rem); aspect-ratio:3/2; position:relative;
  display:grid; place-items:center; color:var(--ink); background:#e9e9e6;
}
html[data-mode="dark"] .hand .photo{ background:#222; }
.hand .photo img{ width:100%; height:100%; object-fit:cover; }
.hand .photo .doodle{ --w:35%; opacity:.5; }
/* five names on one line, with the site's own dot between them. They wrap
   as a group rather than one per line, because a column of five links reads
   as a menu and this is a note. */
.hand .ab-links{ display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:.15rem .55rem; }
.hand .ab-links i{ font-style:normal; opacity:.45; }
.hw-rule{ width:min(100%, 28rem); height:1.2rem; margin:1.4rem auto; display:block; overflow:visible; }
.hw-rule path{ fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; }
.hand a{ text-decoration:none; display:inline-block; transition:transform .15s; }
.hand a:hover{ transform:rotate(-1.5deg); }
.hand .arrow{ display:block; width:1.4rem; height:1.4rem; margin:.15rem auto; }
.hand .arrow svg{ width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; overflow:visible; }
.hand .wide{ display:inline-flex; align-items:center; gap:.7rem; }
.hand .arrow.inline{ display:inline-block; width:1.1rem; height:1.1rem; margin:0 0 -.15rem .1rem; }
.hand .wide .arrow{ width:1.6rem; height:1.6rem; margin:0; }
.hand .block{ margin:.2rem 0; }
.hand .big{ font-size:2.2rem; letter-spacing:.06em; font-weight:300; }
.hand .small{ font-size:1.15rem; }

/* Something at the foot of the note: the Sailor Song picture, redrawn plate
   by plate in the site's own hand — bold black shapes with the same thick
   hand-wobbled line as the marker sketches on the sky page (.sketch svg).
   A square picture with its edge drawn, because the edge is part of the
   composition: the near arm is cut off by it. Explicit ink colour, because
   .hand writes everything else in ballpoint blue and this should read as
   drawn, not written. overflow:hidden is what lets the edge do the cutting. */
.about-scene{
  position:relative; width:100%; max-width:28rem; margin:2.6rem auto 0; color:var(--ink-3, var(--ink));
  /* pan-y, not none: the drawing wants a pointer, but a scene in the middle of
     a page that swallows every touch is a scene you cannot scroll past. The
     page keeps the up-and-down; the tap that shoves an arm and the sideways
     drag still arrive here. */
  touch-action:pan-y; cursor:crosshair;
}
/* a soft warmth behind the drawing, so a pointer merely nearby has a reason
   to come closer, rather than the drawing waking only once it is already
   touched. Off by default; tentacles.js turns .is-near on and off as the
   pointer comes and goes, at a wider radius than the interaction itself. */
.about-scene::before{
  content:''; position:absolute; inset:-8%; border-radius:50%;
  background:currentColor; filter:blur(28px); opacity:0; pointer-events:none;
  transition:opacity .5s ease;
}
.about-scene.is-near::before{ opacity:.05; }
/* the glow reads as an odd golden halo against a dark, near-black drawing,
   so it stays a light-mode-only hint; dark mode gets none, by Gaurav's call */
html[data-mode="dark"] .about-scene.is-near::before{ opacity:0; }
.about-scene svg{ position:relative; width:100%; height:auto; display:block; overflow:hidden; filter:url(#wob-a); }
.about-scene .body, .about-scene .solid, .about-scene .dot{ fill:currentColor; }
.about-scene .sucker{ fill:var(--paper-2, var(--paper)); stroke:currentColor; stroke-width:3; }
.about-scene .ring{ fill:none; stroke:currentColor; stroke-width:2.4; }
.about-scene .line{ fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.about-scene .frame{ fill:none; stroke:currentColor; stroke-width:4; }
.about-scene .splash{ animation:splash-fade .85s ease-out forwards; }
@keyframes splash-fade{ from{ opacity:1 } to{ opacity:0 } }
@media (max-width:640px){ .about-scene{ max-width:20rem; } }

/* ---------- the colony: Roots' own closing scene ----------
   Dug while you watch — see js/colony.js for the whole idea. Plain ink on
   paper and nothing else: no labels, no captions, no room names. The last
   version needed three pieces of text to be understood, which was the
   sign it was a diagram; this one is a drawing that explains itself by
   happening. Below ground is a stipple (soil), roots, a few stones, and
   then the dug-out space laid over the top in two passes — ink, then paper
   slightly smaller — so every pocket of dug cells merges into one outlined
   shape. The stipple and roots are under the paper, so digging erases
   them. Ants are unfiltered, as on the trail: they redraw every frame. */
.colony{
  position:relative; width:100%; max-width:30rem; margin:3rem auto 0; color:var(--ink);
  /* NO touch-action:none. This scene has no gesture — it digs on its own and
     the only thing a pointer does is bring a faint warmth up behind it. Saying
     `none` told the browser to hand every touch to a page that does nothing
     with it, so a finger anywhere on the colony could not scroll past it. */
}
.colony::before{
  content:''; position:absolute; inset:-8%; border-radius:50%;
  background:currentColor; filter:blur(28px); opacity:0; pointer-events:none;
  transition:opacity .5s ease;
}
.colony.is-near::before{ opacity:.05; }
html[data-mode="dark"] .colony.is-near::before{ opacity:0; }   /* same call as About's glow: a golden halo on dark, so dark gets none */
.colony-plate{ position:relative; }
.colony svg{ position:relative; width:100%; height:auto; display:block; overflow:visible; }
.colony .nest{ filter:url(#wob-a); }
/* The earth has a tone of its own, so a dug tunnel is a void in something
   rather than an outline on nothing — the tunnels are painted in paper over
   the top of this, and that difference is what makes the nest read at all.
   Both tones are currentColor, so they invert with the site: faint grey on
   white paper, faintly lighter than the page on black. */
.colony .earth{ fill:currentColor; opacity:.1; }
.colony .topsoil{ fill:currentColor; opacity:.12; }   /* doubles up near the surface: darker earth under the grass */
.colony .soil{ fill:currentColor; opacity:.3; }
/* Filled and tapering, not a hairline of even width all the way down — and
   pale, because a root is seen THROUGH earth. There is a hierarchy up here
   and it matters: the ground line is the strongest mark, the grass on it a
   shade lighter, the roots under it lighter again. Given equal weight they
   all fight, which is how this looked before. */
.colony .root{ fill:currentColor; stroke:none; opacity:.36; }
/* solid, not outlined: an outlined lump reads as another hole */
.colony .stone{ fill:currentColor; opacity:.5; }
/* A drawn line, not a painted bar. At 2.6 (and thickened again by the
   site's wobble) this became a solid black stripe with grass spiking out of
   it; the earth's own tone is what should say "ground starts here", leaving
   this to be just the edge and the grass to be the character up top. */
.colony .surface{ fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; }
/* blades are shapes with a silhouette, so they carry the same weight as the
   nest below them; as 1.4-wide strokes they read as stubble */
.colony .grass path{ fill:currentColor; stroke:none; opacity:.88; }
/* the heaps are earth that came out of the hole, so they are earth-coloured —
   over an opaque base, so they hide the ground line they are piled on */
.colony .mound-base{ fill:var(--paper); stroke:none; }
.colony .mound{ fill:currentColor; fill-opacity:.16; stroke:currentColor; stroke-width:2; stroke-linejoin:round; }
.colony .cav-ink{ fill:currentColor; }
.colony .cav-paper{ fill:var(--paper); }
.colony .grain{ fill:currentColor; opacity:.6; }
.colony .egg{ fill:currentColor; opacity:.5; }
.colony .seedm{ fill:currentColor; opacity:.75; }
.colony .load{ fill:currentColor; opacity:.85; }
.colony .load.seed{ opacity:1; }
/* one quiet hand-written line, if content.js has one; nothing else */
/* hand-written, so it is written the way everything hand-written on this
   site is: the light weight of the hand face, in ballpoint blue. It was the
   one hand-written line on the site set in ink at the regular weight, and
   the audit caught it. */
.colony-note{ margin:1rem auto 0; max-width:22rem; text-align:center; font:300 1.15rem/1.35 var(--hand); color:var(--blue); opacity:.9; }
.colony-note{ transition:opacity .26s ease; }
.colony-note.is-out{ opacity:0; }
@media (prefers-reduced-motion:reduce){ .colony-note{ transition:none; } }
@media (max-width:640px){ .colony{ max-width:21rem; } .colony-note{ font-size:1.05rem; } }

/* ---------- Say hi: a letterhead ----------
   From the three men on the old letterhead: something dark along the top
   edge with figures coming out of it, then a great deal of air, then one
   small line at the very bottom. The tick-box card is printed on the sheet.

   The cream paper is the mood board's own choice (picture B), kept on
   purpose in light mode. Dark mode doesn't invert it to the site's flat
   black-and-white, which would lose the letter feeling; it gets its own
   paper instead — a warm, near-black tone with a warm, near-white ink, so
   it still reads as a letter lying on a dark table rather than a page that
   forgot to notice the mode. Every colour on the sheet is one of these five
   local variables, so nothing here is hardcoded to only one mode. */
.letter{ justify-content:flex-start; padding:1.5rem 1rem 8rem; }
/* The letterhead's own paper and the ink printed on it. In the bare
   version there is no letterhead, so the same palette moves onto the
   postcard itself: it is still a different piece of paper from the page
   it lies on, just without a second piece of paper underneath. Anything
   outside the card — the button, the footline — then belongs to the page
   and takes the site's own black on white. */
.letter:not(.bare) .sheet, .letter.bare .sh-card{
  --paper:#fbf8f1; --ink:#1a1a1a; --ink-2:#6a665f; --hair:rgba(0,0,0,.32); --blue:#2540d0;
}
html[data-mode="dark"] .letter:not(.bare) .sheet,
html[data-mode="dark"] .letter.bare .sh-card{
  --paper:#211f1a; --ink:#f2ece0; --ink-2:#a89e8f; --hair:rgba(255,255,255,.16); --blue:#9aa9ff;
}
.sheet{
  position:relative; width:min(100%, 46rem); min-height:calc(100vh - 11rem);
  background:var(--paper); color:var(--ink); padding:0 2.2rem 1.6rem;
  box-shadow:0 34px 70px -44px rgba(0,0,0,.5); display:flex; flex-direction:column;
}
/* the band is already dark in light mode; in dark mode the paper below it
   is dark too now, so a hairline keeps the masthead from just melting into
   the page under it */
.band{ position:relative; height:5rem; margin:0 -2.2rem; background:#1b1b1b; }
html[data-mode="dark"] .band{ border-bottom:1px solid rgba(255,255,255,.1); }
.band .figures{ position:absolute; inset:0; display:flex; justify-content:center; align-items:center; }
.band .figures .doodle{ --w:2.6rem; color:#f4f1ea; opacity:.45; }
.band img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; }
.band.has-photo{ height:13rem; }
.sheet .air{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:5rem 0 3rem; }
.sheet .postcard{ background:transparent; box-shadow:none; color:inherit; }
.footline{ margin:auto 0 0; text-align:center; font-size:.68rem; letter-spacing:.08em; color:var(--ink-2); }
@media (max-width:640px){ .sheet{ padding:0 1.2rem 1.4rem; } .band{ margin:0 -1.2rem; } .sheet .air{ padding:3.5rem 0 2rem; } }

/* ---------- Say hi, without the letterhead ----------
   Put `bare` on the <main> in contact.html and the sheet stops being a
   thing you can see. The reason: as built, the page is a white page
   holding a cream sheet holding a postcard — three sheets of paper
   stacked, when only one of them is the point. A visitor's eye has to get
   past two of them to reach the card. Bare keeps the sheet element,
   because the card reads its colours off it, and takes away everything
   about it you can look at: the tint, the shadow, the black band, the
   full-page height. What is left is one postcard lying on the page, with
   its own paper and its own shadow, which it already had.
   Flip the word out of contact.html to go back. Whichever wins, delete
   the other; this is here to be compared, not kept. */
.letter.bare{ justify-content:center; padding:3rem 1rem 8rem; }
.letter.bare .sheet{
  background:none; box-shadow:none; min-height:0; padding:0;
  width:min(100%, 42rem);
}
.letter.bare .band{ display:none; }
.letter.bare .air{ padding:0; }
.letter.bare .footline{ margin:2.4rem 0 0; }

/* ---------- Say hi: the back of a postcard ----------
   Printed words in the site's type, the visitor's part in ballpoint blue.
   Left half: the message, with words to circle. Right half: a stamp you
   can change, a postmark, and the address already printed. Reads its
   colours off the sheet it lies on, so it carries the same dark-mode
   paper rather than staying a flat white card on it. */
.sh-card{
  position:relative; width:min(100%, 42rem); margin:0 auto; display:grid; grid-template-columns:1.4fr 1fr;
  background:var(--paper); color:var(--ink); text-align:left; font-size:.95rem; line-height:1.6;
  box-shadow:0 22px 44px -30px rgba(0,0,0,.5);
}
.sh-card::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid currentColor; filter:url(#wob-a); pointer-events:none; }
/* the line down the middle */
.sh-card::after{ content:""; position:absolute; top:1.1rem; bottom:1.1rem; left:58.3%; border-left:var(--stroke) solid currentColor; filter:url(#wob-b); pointer-events:none; opacity:.9; }
.sh-msg{ padding:1.2rem 1.5rem 1.2rem 1.5rem; min-width:0; font-size:.92rem; }
/* the small print a real card carries, doing the explaining */
.sh-print{ margin:0 0 .9rem; font-size:.6rem; letter-spacing:.14em; text-transform:uppercase; opacity:.62; }
/* labels in a narrow column, the words to circle beside them */
.sh-grid{ display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:.7rem; row-gap:.45rem; align-items:baseline; }
.sh-word{ font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; }
.sh-opts{ min-width:0; }
.sep{ opacity:.45; margin:0 .1em; }
.comma{ margin-left:-.3em; }
/* a word you can circle: the input is there for the keyboard, the ring is the pen */
.opt{ position:relative; display:inline-block; cursor:pointer; white-space:nowrap; }
.opt input{ position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
.opt span{ position:relative; display:inline-block; padding:0 .25em; }
/* the ring is drawn by a pen: it appears faintly when you hover, and is drawn
   all the way round when you click */
.opt .ring{
  position:absolute; left:-.4em; top:-.14em; width:calc(100% + .8em); height:calc(100% + .22em);
  overflow:visible; pointer-events:none; transform:rotate(-2.5deg); filter:url(#wob-c);
}
.opt .ring ellipse{
  fill:none; stroke:var(--blue); stroke-width:2.1; vector-effect:non-scaling-stroke; stroke-linecap:round;
  stroke-dasharray:100; stroke-dashoffset:100; stroke-opacity:0;
}
.opt:hover .ring ellipse{ stroke-dashoffset:0; stroke-opacity:.3; }
.opt input:checked + span .ring ellipse{ stroke-dashoffset:0; stroke-opacity:1; }
.opt input:focus-visible + span{ outline:2px dashed var(--blue); outline-offset:3px; }
@media (prefers-reduced-motion:no-preference){
  .opt .ring ellipse{ transition:stroke-dashoffset .38s cubic-bezier(.3,.7,.3,1), stroke-opacity .2s ease; }
}
/* the visitor's handwriting: on ruled lines, no boxes */
.sh-note, .sh-from input{
  font-family:var(--hand); font-weight:300; color:var(--blue); background:transparent; border:0; border-radius:0;
  font-size:1.2rem; line-height:1.7rem; padding:0 .2rem; outline:0;
}
.sh-note{
  display:block; width:100%; margin:.8rem 0 .2rem; resize:none; overflow:hidden; min-height:3.4rem;
  background-image:repeating-linear-gradient(to bottom, transparent 0 calc(1.7rem - 1px), var(--hair) calc(1.7rem - 1px) 1.7rem);
}
.sh-note::placeholder, .sh-from input::placeholder{ color:var(--ink-2); opacity:.8; }
/* writing on the card: the caret is the pen, and the line you are on turns
   a little blue; no box, no tint */
.sh-note, .sh-from input{ caret-color:var(--blue); }
/* The card answers in its own language, not the site's. Everywhere else a
   focused thing gets the site-wide black ring (see the :focus-visible rule
   near the top of this file) — right for a button or a link, wrong here:
   a hard black box round the writing space turns a postcard back into a
   form, which is the one thing this page is trying not to be. The card
   already has a better way of saying where you are, and it is the same
   idea the whole card is built on — the visitor writes in ballpoint, so
   the line under the pen goes blue.
   These three fields therefore opt out of the ring. Which means the blue
   is now the ONLY thing telling somebody tabbing through where they have
   got to, so it is at full strength here rather than the tint it was when
   it was only a second opinion. The underline thickens with a shadow
   rather than a wider border, so nothing shifts by a pixel when you click
   into it. */
.sh-note:focus-visible, .sh-from input:focus-visible{ outline:0; }
.sh-note:focus{ background-image:repeating-linear-gradient(to bottom, transparent 0 calc(1.7rem - 1px), var(--blue) calc(1.7rem - 1px) 1.7rem); }
.sh-from input:focus{ border-bottom-color:var(--blue); box-shadow:0 1px 0 var(--blue); }
.sh-from{ display:flex; align-items:baseline; gap:.6rem; margin:.7rem 0 0; }
.sh-from input{ flex:1; min-width:0; border-bottom:1px solid var(--hair); }
.sh-from input[type=email]{ flex:1.4; }
/* the address side */
.sh-addr{ position:relative; padding:1.3rem 1.3rem 1.2rem 1.5rem; display:flex; flex-direction:column; min-width:0; }
.stamp{
  position:absolute; top:.9rem; right:.9rem; width:4rem; height:4.7rem; padding:0; background:var(--paper); border:0; color:var(--ink);
  display:grid; place-items:center; cursor:pointer; font:inherit;
}
/* The edge is a drawn, PERFORATED outline (app.js stampEdge) — round bites
   out of the paper rather than a dashed border, which is the one thing that
   makes a rectangle read as a stamp. The paper is filled by that same path,
   so the fill and the perforation are one shape and the wobble cannot tear a
   sliver off the corner. */
.stamp{ background:transparent; }
.stamp .st-edge-holder{ position:absolute; inset:0; display:block; pointer-events:none; }
.stamp .st-edge{ width:100%; height:100%; display:block; overflow:visible; filter:url(#wob-b); }
.stamp .st-paper{ fill:var(--paper); stroke:currentColor; stroke-width:1.6; }
.stamp .st-frame{ fill:none; stroke:currentColor; stroke-width:.8; opacity:.5; }
.stamp > *:not(.st-edge-holder){ position:relative; z-index:1; }
.stamp .doodle{ --w:2.2rem; }
.stamp .val{ position:absolute; left:.42rem; top:.3rem; font-size:.6rem; font-weight:700; letter-spacing:.02em; }
/* the country along the foot, the way every stamp carries it */
.stamp .st-country{
  position:absolute; left:0; right:0; bottom:.42rem; font-size:.4rem; font-weight:600;
  letter-spacing:.08em; text-align:center; opacity:.75;
}
.stamp:hover .doodle, .stamp:focus-visible .doodle{ transform:rotate(-4deg); }
.stamp:focus-visible{ outline:3px solid currentColor; outline-offset:3px; }
/* struck ON the stamp, which is what a cancellation is. It was landing
   underneath, so the stamp's paper covered half the ring. */
.sh-addr .pc-mark{ position:absolute; top:2.4rem; right:3.9rem; z-index:2; opacity:.55; }
.sh-to{ margin-top:6.2rem; display:flex; flex-direction:column; }
.sh-to .sh-word{ margin-bottom:.15rem; }
.addr-line{ display:block; border-bottom:1px solid var(--hair); padding:.2rem .1rem .05rem; line-height:1.35; min-height:1.75rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.addr-line.name{ font-weight:500; }
.sh-actions{ display:flex; flex-direction:column; align-items:center; gap:.45rem; margin-top:1.5rem; }
.linkish{ background:none; border:0; font:inherit; font-size:.9rem; color:inherit; padding:.25rem .5rem; cursor:pointer; text-decoration:underline; text-underline-offset:.2em; text-decoration-thickness:1px; }
.linkish:hover{ color:var(--blue); }
.sh-after{ margin:.6rem 0 0; font-size:.85rem; line-height:1.5; color:var(--ink-2); text-align:center; max-width:27rem; }
@media (max-width:640px){
  .sh-card{ grid-template-columns:1fr; font-size:.92rem; }
  .sh-card::after{ display:none; }
  .sh-msg{ padding-bottom:.4rem; }
  .sh-addr{ border-top:var(--stroke) dashed currentColor; margin:0 1.2rem; padding:1rem 0 1.1rem; }
  .stamp{ top:1rem; right:0; }
  .sh-addr .pc-mark{ right:3rem; top:2.6rem; }
}

/* ---------- Writing: a contents page with figures dancing round it ----------
   From the Russian children's book: the list in the middle, dotted leaders
   out to the page numbers, and a ring of characters holding hands round it. */
/* The ring SPINS, and a spinning square's bounding box is bigger than the
   square — up to half as big again at 45° — so the page grew a sideways
   scrollbar on a phone. What sticks out is the empty corner of that box and
   never the drawings: the characters orbit at 42vw and are 3.1rem across, so
   their ink stops about six pixels inside a 390px screen. Clipping the box is
   therefore free — but the clip margin has to be MEASURED, not generous: the
   margin is itself scrollable overflow, so a big one just moves the problem.
   The drawings overhang the ring box by about ten pixels at the narrowest
   useful width, and .85rem covers that and still lands inside the screen. */
.ring{ --r:min(42vw, 15.5rem); position:relative; width:min(92vw, 36rem); aspect-ratio:1; display:grid; place-items:center;
  overflow:clip; overflow-clip-margin:.85rem; }
.orbit{ position:absolute; inset:0; }
.orb{ position:absolute; left:50%; top:50%; width:0; height:0; transform:rotate(var(--a)) translateY(calc(-1 * var(--r))); }
.orb .up{ position:absolute; left:0; top:0; transform:translate(-50%, -50%) rotate(calc(-1 * var(--a))); }
.orb .doodle{ --w:3.1rem; display:block; }
@media (prefers-reduced-motion:no-preference){
  .orbit{ animation:turn 120s linear infinite; }
  .orb .doodle{ animation:unturn 120s linear infinite; }
}
@keyframes turn{ to{ transform:rotate(360deg); } }
@keyframes unturn{ to{ transform:rotate(-360deg); } }
.toc{ width:min(62%, 20rem); text-align:center; }
.toc-title{ font-size:1rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; margin:0 0 1rem; }
.toc-list{ list-style:none; padding:0; margin:0; text-align:left; }
.toc-list li{ display:flex; align-items:baseline; gap:.45rem; font-size:.95rem; margin:.4rem 0; }
.toc-list a{ text-decoration:none; }
.toc-list .dots{ flex:1; border-bottom:2px dotted var(--ink); margin-bottom:.32em; min-width:1.5rem; }
.toc-list .num{ font-variant-numeric:tabular-nums; }
.toc-list .quiet{ color:var(--ink-2); }

/* ---------- settings ---------- */
/* Sliders sit shoulder to shoulder, like one instrument panel. */
.settings .sliders{ display:flex; flex-wrap:wrap; gap:.4rem .6rem; justify-content:center; margin:.5rem 0 1.1rem; }
.slider{ display:flex; flex-direction:column; align-items:center; gap:.15rem; }
.slider label{ font-size:1rem; }

/* The track runs thin up to the thumb and thick black after it, as in the
   game. --pct is written by settings.html on input. */
input[type=range]{ --pct:50%; -webkit-appearance:none; appearance:none; width:13rem; height:1.7rem; background:transparent; margin:0; cursor:pointer; }
input[type=range]::-webkit-slider-runnable-track{
  height:.45rem; filter:url(#wob-line);
  background:
    linear-gradient(var(--ink),var(--ink)) left center / var(--pct) var(--stroke) no-repeat,
    linear-gradient(var(--ink),var(--ink)) right center / calc(100% - var(--pct)) .45rem no-repeat;
}
input[type=range]::-moz-range-track{
  height:.45rem;
  background:
    linear-gradient(var(--ink),var(--ink)) left center / var(--pct) var(--stroke) no-repeat,
    linear-gradient(var(--ink),var(--ink)) right center / calc(100% - var(--pct)) .45rem no-repeat;
}
input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:1.5rem; height:1.5rem; margin-top:-.53rem; border-radius:50%; background:var(--paper); border:var(--stroke) solid var(--ink); }
input[type=range]::-moz-range-thumb{ width:1.5rem; height:1.5rem; border-radius:50%; background:var(--paper); border:var(--stroke) solid var(--ink); box-sizing:border-box; }
.settings .grid{ display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:.9rem; width:min(100%, 58rem); }
.settings .grid.three{ grid-template-columns:repeat(3, minmax(0,1fr)); width:min(100%, 38rem); }
.settings .grid .btn{ min-width:0; }
.settings .btn-row .btn{ font-weight:700; }
@media (max-width:1000px){ .settings .grid, .settings .grid.three{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:560px){ .settings .grid, .settings .grid.three{ grid-template-columns:1fr; } }

/* ---------- about: a walk ----------
   Posts down the middle like messages on a phone, in the plain sans a phone
   uses, with the distance walked where a phone would print the time. The
   route lies over the page in red, as in the reference. */
.walk{
  --bubble:#ececec; --edge:rgba(0,0,0,.12);
  position:relative; z-index:1; min-height:100vh; padding:6rem 1.25rem 9rem;
  display:flex; flex-direction:column; align-items:center; font-family:var(--sans);
}
html[data-mode="dark"] .walk{ --bubble:#242424; --edge:rgba(255,255,255,.14); }
.walk-intro{ max-width:30rem; margin:0 0 .4rem; text-align:center; font-size:1rem; line-height:1.4; color:var(--ink); opacity:.88; }
/* The column used to sit a little left of centre on a wide screen, with
   extra padding down the right, copying the reference — the idea being to
   leave the red trace room to stand beside it.
   Taken out 8 Sep 2026. It was a fair composition while the walk was the
   only thing on the About page, with no other centre line to be judged
   against. On Roots it is judged against one: the whole top of the page —
   the icons, the badge, the town line, the count — is dead centred, and
   then everything from "Come for a walk" down sat forty-five pixels to
   the left of it. What read as composition on its own page reads as a
   mistake on this one, and Gaurav spotted it straight away.
   It was not even buying what it was meant to buy: the trace is a fixed
   overlay across the whole window and crosses the column anyway, which is
   exactly why it is blended into the page rather than drawn on top of it,
   so the words underneath stay readable. The padding was keeping nothing
   clear. One centre line for the page now. */
.feed{ width:min(100%, 20rem); }
.feed .mark{ margin:1.15rem 0 .6rem; text-align:center; font-size:.6rem; letter-spacing:.02em; color:var(--ink-2); opacity:.8; }
.feed .post{ margin:0; }
.feed .bubble{
  display:block; width:fit-content; max-width:100%; margin:0 0 .7rem; padding:.6rem .8rem .68rem;
  background:var(--bubble); border-radius:14px; font-size:.94rem; line-height:1.45; text-align:left; color:var(--ink);
}
.feed .bubble a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
.feed .bubble b{ font-weight:600; }
.feed .shot{ width:13.9rem; margin:.75rem auto; border-radius:8px; border:1px solid var(--edge); overflow:hidden; background:var(--bubble); }
.feed .shot img, .feed .shot video{ width:100%; height:auto; display:block; }
.feed .shot.empty{ height:10.3rem; display:grid; place-items:center; }
.feed .shot.empty .doodle{ --w:1.6rem; opacity:.35; }
.feed .shot.empty .doodle svg{ filter:none; }
.walk .about-scene{ margin-top:4.5rem; }
/* The trace is blended into the page rather than laid on top of it: multiplied
   in light mode, screened in dark, so the words under the line stay their own
   colour and readable, the way a route printed on a map leaves the names
   legible. Thin line, small fixes, one solid dot for the reader. */
/* transition lives on .ready, not here — see the note by .trail.ready below;
   a fresh page load must never animate into its first, correct state */
.trail{ position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:6; color:var(--trail); opacity:.82; mix-blend-mode:multiply; }
.trail.ready{ transition:opacity .45s; }
/* :not(.is-away) so this never outranks the fade-out below: an attribute
   selector on html carries more weight than a second class does, and
   without the guard this rule quietly won in dark mode and the trail never
   faded there, even though .is-away was correctly present the whole time */
html[data-mode="dark"] .trail:not(.is-away){ mix-blend-mode:screen; opacity:.78; }
/* the one red on the site: the walk's trace, red as in the reference, at
   Gaurav's request. The stories keep their three colours; this is not one. */
.walk, .trail, .km-live{ --trail:#f0201c; }
html[data-mode="dark"] .walk, html[data-mode="dark"] .trail, html[data-mode="dark"] .km-live{ --trail:#ff5f52; }
.trail.is-away{ opacity:0; }
.trail .line{ fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.trail .ping{ fill:var(--paper); stroke:currentColor; stroke-width:1.3; }
.trail .walker{ fill:currentColor; }
/* A soft pulse behind the reader's dot, so its own small motion (following
   your scroll) reads as a live position rather than a fixed mark, the way a
   map app draws where you are. transform, not the drawn radius, so one rule
   covers every screen size; off outright with reduced motion or the site's
   own motion setting. */
.trail .walker-halo{ fill:currentColor; opacity:0; transform-box:fill-box; transform-origin:center; }
html[data-motion="1"] .trail .walker-halo{ animation:walker-pulse 2.2s ease-out infinite; }
@keyframes walker-pulse{
  0%{ transform:scale(1); opacity:.45; }
  70%{ transform:scale(2.4); opacity:0; }
  100%{ transform:scale(2.4); opacity:0; }
}
@media (prefers-reduced-motion:reduce){ .trail .walker-halo{ animation:none; opacity:0; } }
/* The distance so far against the whole walk, riding beside the dot. A plain
   element outside the trace's own svg, so it is never blended or thinned —
   the one thing on the overlay meant to be read stays fully legible. */
.km-live{
  position:fixed; z-index:7; pointer-events:none;
  background:var(--paper); color:var(--trail); font:700 .72rem/1 var(--sans);
  padding:.3rem .55rem; border-radius:999px; border:1px solid rgba(0,0,0,.12);
  white-space:nowrap;
}
.km-live.ready{ transition:opacity .3s; }
html[data-mode="dark"] .km-live{ border-color:rgba(255,255,255,.14); }
.km-live.is-away{ opacity:0; }
/* Same layout as the wide screen — the trace over the page, blended in — just
   smaller: a narrower line, smaller fixes and dot, so it reads well at phone
   size rather than looking like a scaled-down desktop drawing. */
@media (max-width:640px){
  .trail{ opacity:.86; }
  html[data-mode="dark"] .trail:not(.is-away){ opacity:.8; }
  .trail .line{ stroke-width:1.7; }
  .trail .ping{ r:3.2px; stroke-width:1.1px; }
  .trail .walker, .trail .walker-halo{ r:7px; }
  .km-live{ font-size:.64rem; padding:.24rem .45rem; }
}

/* the way out of the desk, for someone who only wanted the short version */
/* ---------- CV: the plain page ----------
   Deliberately the quietest thing on the site. No drawings, no colour, no
   motion, nothing that rewards looking closely — this is the page for
   someone who has ninety seconds. The only thing it borrows from the rest
   of the site is the rule-and-badge over each section, so it still reads
   as the same person's work.
   Two columns: when on the left, what on the right, which is the shape a
   CV has had since long before websites and is the fastest thing to scan.
   Stacks on a phone. Prints on paper (see the print rules at the foot). */
.cv{ align-items:stretch; text-align:left; max-width:44rem; margin:0 auto; padding:3rem 1.25rem 8rem; }
.cv-head{ margin:0 0 1.6rem; }
.cv-name{ margin:0; font-size:2rem; line-height:1.1; font-weight:700; }
.cv-does{ margin:.35rem 0 0; font-size:1.05rem; text-wrap:balance; }
/* Two rows in the head, each one fact. The separator is a ::after belonging
   to the piece BEFORE it, so a wrap leaves the dot at the end of the line it
   finished instead of starting the next one with a bullet and nothing before
   it. Narrow enough that a row cannot hold both, they stack and the separator
   goes entirely — a dangling dot at the end of a line is the same fault in a
   politer disguise. */
.cv-meta{ margin:.7rem 0 0; font-size:.9rem; color:var(--ink-2);
  display:flex; flex-wrap:wrap; justify-content:center; column-gap:.55em; row-gap:.1rem; }
.cv-meta a, .cv-meta span{ color:inherit; }
.cv-meta > *:not(:last-child)::after{ content:"\00b7"; margin-left:.55em; opacity:.5; display:inline-block; text-decoration:none; }
@media (max-width:560px){
  .cv-meta{ flex-direction:column; align-items:center; }
  /* must match the specificity of the rule it is turning off: that one is
     `> *:not(:last-child)` and `:not()` counts, so a bare `> *` loses. */
  .cv-meta > *:not(:last-child)::after{ content:none; }
}
.cv-dot{ margin:0 .5em; opacity:.5; }
/* Where else to find him: its own line, and each name carries its own
   separator so a wrap never leaves a dot stranded at the start of a row. */
.cv-links{ margin:.28rem 0 0; font-size:.9rem; color:var(--ink-2);
  display:flex; flex-wrap:wrap; justify-content:center; column-gap:.55em; row-gap:.1rem; }
.cv-links a{ color:inherit; }
.cv-links a:not(:last-child)::after{ content:"\00b7"; margin-left:.55em; opacity:.5; text-decoration:none; display:inline-block; }
.cv-links[hidden]{ display:none; }
.cv-avail{ margin:.5rem 0 0; font-size:.9rem; }
.cv-summary{ margin:0 0 .5rem; font-size:1.05rem; line-height:1.5; max-width:36rem; }
.cv-sec{ margin:2.2rem 0 0; }
/* the badge sits on its rule the same way it does on every other page */
/* every other page caps its rules at 26rem, because there they sit under a
   centred column of drawings; here the rule heads a full-width section and
   a short one would just look broken off */
.cv .rule-badge{ width:100%; }
.cv-sec .rule-badge{ margin:0 0 1rem; }
.cv-note{ margin:-.4rem 0 1rem; font-size:.82rem; color:var(--ink-2); }
.cv-list{ list-style:none; margin:0; padding:0; }
.cv-item{
  display:grid; grid-template-columns:7.5rem minmax(0,1fr); column-gap:1.4rem;
  padding:.75rem 0; border-top:1px solid rgba(128,128,128,.22);
}
.cv-item:first-child{ border-top:0; padding-top:0; }
.cv-when{ font-size:.85rem; color:var(--ink-2); padding-top:.15rem; white-space:nowrap; }
.cv-what{ display:block; min-width:0; }
.cv-what b{ font-weight:700; font-size:1rem; }
.cv-what a{ color:inherit; text-decoration:none; border-bottom:1px solid currentColor; }
.cv-what a:hover{ border-bottom-width:2px; }
.cv-sub{ display:block; font-size:.9rem; color:var(--ink-2); margin-top:.1rem; }
.cv-line{ display:block; font-size:.92rem; line-height:1.45; margin-top:.35rem; max-width:34rem; }
.cv-skills{ margin:0; font-size:.95rem; line-height:1.7; }
.cv-foot{ margin:2.6rem 0 0; }
/* while it is still all placeholders, the page says so quietly rather than
   pretending a CV of square brackets is a CV */
.cv.is-draft .cv-summary{ color:var(--ink-2); font-style:italic; }
@media (max-width:640px){
  .cv{ padding:2rem 1.1rem 8rem; }
  .cv-name{ font-size:1.6rem; }
  .cv-item{ grid-template-columns:1fr; row-gap:.15rem; }
  .cv-when{ padding-top:0; }
}
/* On paper: no bar, no button, black on white whatever the screen was set
   to, and never a section split across two sheets. */
@media print{
  html, body{ background:#fff !important; color:#000 !important; }
  .bar, .cv-foot, .hidden-story, .cv-note{ display:none !important; }
  /* the page is a flex column on screen; on paper it is a document, and
     normal flow is what lets two short sections share a row */
  .cv{ display:block; max-width:none; padding:0; font-size:9.6pt; }
  .cv-item{ break-inside:avoid; }
  .cv-what a{ border:0; }
  .cv-meta, .cv-links, .cv-when, .cv-sub, .cv-note{ color:#444 !important; }

  /* Paper is a different object from the page, so it is set differently.
     The screen version can afford two lines about every project; a sheet
     somebody is holding in a meeting cannot, and does not need them — the
     Experience notes underneath already name the same work, and nobody can
     click a case study on paper anyway. So Selected work prints as one line
     each, Skills and Education share a row, and everything closes up. The
     whole thing lands on one sheet, which is the promise this page makes. */
  .cv-head{ margin-bottom:.8rem; }
  .cv-name{ font-size:17pt; }
  .cv-does{ font-size:10pt; margin-top:.15rem; }
  /* on paper the name sits at the left margin, so the two lines under it do
     too — centred contact details beneath a left-aligned name read as two
     documents stacked on each other */
  .cv-meta{ margin-top:.35rem; font-size:8.4pt; justify-content:flex-start; }
  .cv-links{ margin-top:.15rem; font-size:8.4pt; justify-content:flex-start; }
  .cv-summary{ font-size:9.8pt; line-height:1.4; max-width:none; margin-bottom:.2rem; }
  .cv-sec{ margin-top:.95rem; }
  .cv-sec .rule-badge{ margin-bottom:.45rem; min-height:0; }
  .cv-item{ padding:.3rem 0; gap:.05rem .9rem; }
  .cv-what b{ font-size:9.8pt; }
  .cv-sub{ font-size:8.6pt; }
  .cv-line{ font-size:8.8pt; line-height:1.35; }
  .cv-when{ font-size:8.2pt; }
  /* Selected work: the line about each project is for the screen */
  #sec-work .cv-line{ display:none; }
  #sec-work .cv-item{ padding:.16rem 0; }
  /* Skills and Education sit side by side rather than one under the other */
  #sec-skills, #sec-edu{ display:inline-block; vertical-align:top; width:48%; }
  #sec-edu{ margin-left:3%; }
}
}

/* ---------- plate: a screenshot, a margin, a note in the margin ----------
   The one experiment that is a tool (plate.html, js/plate.js). The canvas is
   drawn at export size and only scaled here, so the preview is the picture.
   Controls are the site's own buttons and sliders, in rows, each row one
   decision: picture, look, ground, frame, arrangement, size, note, out. */
.page.plate{ justify-content:flex-start; padding-top:3rem; }
.plate .lead{ margin-bottom:1.2rem; }
.pl-stage{ position:relative; width:min(100%, 64rem); margin:0 auto; }
.pl-stage canvas{ display:block; width:100%; height:auto; border:var(--stroke) solid var(--ink); cursor:default; }
.pl-stage canvas.is-dragging{ cursor:grabbing; }
.plate.is-over .pl-stage canvas{ outline:3px dashed var(--blue); outline-offset:6px; }
.pl-thumbs{ display:flex; gap:.6rem; justify-content:center; margin:.8rem 0 0; min-height:0; }
.pl-thumb{
  position:relative; width:5.2rem; height:3.4rem; padding:0; border:var(--stroke) solid var(--ink-2); background:var(--paper);
  cursor:pointer; overflow:hidden; display:grid; place-items:center; color:var(--ink);
}
.pl-thumb img{ width:100%; height:100%; object-fit:cover; }
.pl-thumb.is-on{ border-color:var(--ink); box-shadow:0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.pl-thumb .x{ position:absolute; top:0; right:0; width:1.3rem; height:1.3rem; background:var(--ink); color:var(--paper); font-size:.95rem; line-height:1.3rem; }
.pl-thumb.add{ border-style:dashed; font-size:1.6rem; }
.pl-thumb.add:hover{ border-color:var(--ink); }
.pl-say{ position:absolute; left:50%; top:-2.2rem; transform:translateX(-50%); margin:0; font-family:var(--hand); color:var(--blue); font-size:1.05rem; white-space:nowrap; opacity:0; transition:opacity .25s; pointer-events:none; }
.pl-say.is-on{ opacity:1; }

.pl-panel{ width:min(100%, 64rem); margin:1.6rem auto 0; display:flex; flex-direction:column; gap:.7rem; text-align:left; }
.pl-group{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .55rem; }
.pl-lab{ width:5.6rem; flex:none; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); }
.pl-group .btn.small{ min-height:2.5rem; padding:.3rem .8rem; font-size:.9rem; }
.pl-group .btn.small:disabled{ opacity:.35; cursor:default; }
.pl-group .btn.small:disabled::before{ filter:url(#wob-a); }
.pl-text{ position:relative; display:inline-flex; }
.pl-text.grow{ flex:1 1 16rem; }
.pl-text input, .pl-text textarea{
  width:100%; min-width:14rem; font:inherit; font-size:.95rem; color:var(--ink); background:var(--paper);
  border:var(--stroke) solid var(--ink); padding:.45rem .7rem; resize:vertical;
}
.pl-text textarea{ font-family:var(--hand); font-size:1.1rem; line-height:1.3; color:var(--blue); }
.pl-text input:focus-visible, .pl-text textarea:focus-visible{ outline:3px solid var(--blue); outline-offset:2px; }
.pl-group.sliders .slider label, .pl-notes .slider label{ font-size:.9rem; white-space:nowrap; }
.pl-group.sliders input[type=range], .pl-notes input[type=range]{ width:9rem; }
.pl-notes .slider{ flex-direction:row; align-items:center; gap:.5rem; }
.pl-out{ margin-top:.6rem; justify-content:center; }
.pl-out .btn{ min-height:3.4rem; }
.pl-hint{ margin-top:1.4rem; max-width:34rem; }
@media (max-width:640px){
  .pl-lab{ width:100%; }
  .pl-group.sliders .slider{ width:100%; }
  .pl-group.sliders input[type=range]{ flex:1; }
}
/* an experiment that is a tool gets a way in under its thought */
.thought-col{ display:flex; flex-direction:column; align-items:flex-start; gap:1.2rem; }
.sky .sky-btn{ background:transparent; color:inherit; font-family:var(--sans); }
.sky .sky-btn::before{ border-color:currentColor; }
html[data-mode="dark"] .sky .sky-btn{ color:#e8eefc; }

/* ---------- the large view of a picture (case.html) ---------- */
/* A hand-drawn border 11px from the edge of a 390px phone reads as a frame
   running off the screen. The document gives its own frames 19px of paper;
   this is the same measure, and it is the ONLY place the width is set. */
dialog.lightbox{ --lb-room:min(94vw, 100vw - 2.4rem);
  border:0; padding:0; margin:0; width:100vw; height:100vh; max-width:none; max-height:none; background:transparent; color:var(--ink); }
dialog.lightbox[open]{ display:grid; place-items:center; }
dialog.lightbox::backdrop{ background:rgba(255,255,255,.9); }
html[data-mode="dark"] dialog.lightbox::backdrop{ background:rgba(0,0,0,.88); }
.lightbox figure{ margin:0; display:flex; flex-direction:column; align-items:center; gap:.7rem; max-width:var(--lb-room); }
.lightbox .pic{ position:relative; line-height:0; }
/* contain on BOTH axes. It was contain/auto, so a vertical drag on a picture
   that cannot scroll vertically handed itself straight to the page — which is
   the background moving under an open card. */
.lightbox .scroller{ max-height:74vh; overflow:auto; scrollbar-width:thin; overflow-anchor:none; overscroll-behavior:contain; }
/* a tall picture: full width of its box, scrolling inside it */
.lightbox .pic.tall{ width:var(--lbw, 60vw); max-width:var(--lb-room); }
.lightbox .pic.tall .scroller{ overscroll-behavior:contain; }
.lightbox .pic.tall img{ max-height:none; width:100%; }
/* a wide picture on a narrow screen: twice the screen's width, scrolling
   sideways in its box (set by sizeIt() in case.html, phones only) */
.lightbox .pic.wide{ width:var(--lb-room); }
.lightbox .pic.wide .scroller{ overflow-x:auto; overflow-y:hidden; overscroll-behavior:contain; }
.lightbox .pic.wide img{ width:var(--lbw2, 200vw); max-width:none; max-height:none; }
/* A picture that was drawn inside a phone or a browser window opens inside
   the same one, standing on the paper a plate uses — so a live picture and a
   made plate arrive as the same kind of object. case.html sets the device's
   width so the whole of it, bezel and all, stands in the window. */
.lightbox .pic.dev{ background:var(--plate-paper); padding:max(1.5rem, 3.2%); line-height:0; }
.lightbox .pic.dev .device{ margin:0 auto; }
.lightbox .pic.dev .screen img{ width:100%; height:auto; max-width:none; max-height:none; cursor:default; }
/* a screen longer than the device keeps the device's shape and scrolls in it */
.lightbox .pic.dev.scrolls .screen{ overflow-y:auto; overscroll-behavior:contain; overflow-anchor:none; }
.lightbox .pic.dev.scrolls::after{
  content:"\21D5\0020more"; position:absolute; right:.6rem; bottom:.6rem; z-index:3;
  background:rgba(0,0,0,.62); color:#fff; font:500 .72rem/1 var(--sans); letter-spacing:.02em;
  padding:.32rem .6rem; border-radius:999px; pointer-events:none; transition:opacity .25s ease;
}
.lightbox .pic.dev.is-scrolled::after{ opacity:0; }

/* the mark that says a picture scrolls, gone once it has been scrolled */
.lightbox .pic.tall::after, .lightbox .pic.wide::after{
  content:"\21D5\0020more"; position:absolute; right:.6rem; bottom:.6rem; z-index:3;
  background:rgba(0,0,0,.62); color:#fff; font:500 .72rem/1 var(--sans); letter-spacing:.02em;
  padding:.32rem .6rem; border-radius:999px; pointer-events:none; transition:opacity .25s ease;
}
.lightbox .pic.wide::after{ content:"\21D4\0020more"; }
.lightbox .pic.is-scrolled::after{ opacity:0; }
@media (hover:hover){ .lightbox .pic.tall::after{ display:none; } }
.lightbox .pic::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
.lightbox img{ display:block; max-width:var(--lb-room); max-height:74vh; width:auto; height:auto; }
.lightbox figcaption{ display:flex; flex-direction:column; align-items:center; gap:.1rem; text-align:center; max-width:40rem; font-size:.9rem; }
.lightbox figcaption .nm{ font-weight:500; }
.lightbox figcaption .said{ font-family:var(--hand); color:var(--blue); font-size:1.05rem; }
.lightbox figcaption .kind{ opacity:.55; font-size:.78rem; }
.lightbox figcaption .pos{ opacity:.45; font-size:.7rem; letter-spacing:.14em; margin-top:.35rem; }
.lightbox .btn{ position:absolute; min-width:0; min-height:0; width:3rem; height:3rem; padding:0; border-radius:50%; font-size:1.3rem; line-height:1; }
/* drawn, not typed: an arrow CHARACTER carries its own bearings and sat low
   and left of the circle it was meant to be in the middle of */
.lightbox .btn .gl{ display:block; width:1.15rem; height:1.15rem; fill:none;
  stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.lightbox .btn::before{ border-radius:50%; }
.lightbox .lb-x{ top:1rem; right:1rem; }
.lightbox .lb-prev{ left:1rem; top:50%; margin-top:-1.5rem; }
.lightbox .lb-next{ right:1rem; top:50%; margin-top:-1.5rem; }
@media (max-width:640px){
  .lightbox img{ max-height:66vh; }
  /* fixed, not absolute: these were pinned to the bottom of the DIALOG, and a
     dialog holding a long picture is taller than the screen — so the arrows
     sat below the fold and had to be scrolled to. Fixed inside a top-layer
     dialog measures the window, which is what "bottom" was always meant to
     mean here. */
  .lightbox .lb-prev, .lightbox .lb-next, .lightbox .lb-x{ position:fixed; }
  .lightbox .lb-prev, .lightbox .lb-next{ top:auto; bottom:1rem; margin-top:0; }
  .lightbox .lb-x{ top:1rem; right:1rem; }
}

/* ---------- the dials (js/dial.js): a DialKit in the site's own hand ----------
   A paper panel with an ink line, every number a slider with its value shown
   beside it, folded by what it belongs to. On Plate it floats at the right
   of the picture when there is room, and sits under it when there is not. */
.dials{ position:relative; background:var(--paper); color:var(--ink); font-family:var(--sans); font-size:.8rem; width:17rem; max-width:100%; }
.dials::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
.dials-head{ display:flex; align-items:center; justify-content:space-between; padding:.55rem .8rem .5rem; border-bottom:1px solid var(--ink); cursor:default; user-select:none; }
.dials-name{ font-family:var(--ui); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; }
.dials-fold{ width:1.6rem; height:1.6rem; padding:0; border:var(--stroke) solid var(--ink); background:var(--paper); color:var(--ink); font-size:1rem; line-height:1; cursor:pointer; }
.dials-body{ padding:.4rem .8rem .7rem; }
.dials:not(.is-open) .dials-body{ display:none; }
.dials-folder{ margin:.35rem 0 .1rem; }
.dials-folder > summary{ list-style:none; cursor:pointer; font-family:var(--ui); font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); padding:.3rem 0 .2rem; }
.dials-folder > summary::-webkit-details-marker{ display:none; }
.dials-folder > summary::before{ content:"\25B8\0020"; display:inline-block; width:1em; }
.dials-folder[open] > summary::before{ content:"\25BE\0020"; }
.dial{ display:grid; grid-template-columns:5.2rem minmax(0,1fr) 3.1rem; align-items:center; gap:.5rem; padding:.22rem 0; }
.dial-k{ color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dial-v{ font-variant-numeric:tabular-nums; text-align:right; color:var(--ink); font-size:.76rem; }
.dials input[type=range]{ width:100%; height:1.3rem; }
.dials input[type=range]::-webkit-slider-thumb{ width:1.05rem; height:1.05rem; margin-top:-.32rem; }
.dials input[type=range]::-moz-range-thumb{ width:1.05rem; height:1.05rem; }
.dials select, .dials input[type=text]{ font:inherit; color:var(--ink); background:var(--paper); border:1px solid var(--ink); padding:.15rem .3rem; min-width:0; }
.dial-colour{ position:relative; display:block; height:1.4rem; }
.dial-colour::before{ content:""; position:absolute; inset:0; border:1px solid var(--ink); pointer-events:none; }
.dial-colour input[type=color]{ width:100%; height:100%; padding:.1rem; border:0; background:transparent; cursor:pointer; }
.dial-toggle{ display:flex; align-items:center; gap:.5rem; grid-column:1 / -1; cursor:pointer; }
.dial-actions{ grid-template-columns:1fr; }
.dial-act{ min-height:2rem; }
/* on Plate: at the right of the picture, pinned, when the window is wide */
.pl-dials{ width:100%; margin:.6rem 0 0; }
@media (max-width:640px){ .dial{ grid-template-columns:4.6rem minmax(0,1fr) 3rem; } }

/* ---------- the phone: things that were too small to tap or to see ----------
   Measured at 375px: the desk's +/× boxes were 17px, the menubar's View/Show
   24px tall, the case study's contents strip 21px tall, its close 22px, and
   a row of five phones came out 51px each. */
@media (max-width:640px){
  /* the contents strip: room under a thumb */
  .rail .chaplist a{ padding:.4rem 0; display:inline-block; }
  .dials input[type=range]{ height:2rem; }
  .casebar .x{ min-width:2.4rem; min-height:2.4rem; display:grid; place-items:center; }
  /* the desk: the window boxes and the menubar */
  .pwin .box{ width:2rem; height:2rem; font-size:1.05rem; }
  .pwin .boxes{ gap:.55rem; }
  .mb-item{ padding:.5rem .55rem; min-height:2.4rem; }
  .mb-list button{ min-height:2.4rem; }
  .mb-cv{ display:inline-flex; align-items:center; min-height:2.4rem; padding:.5rem .3rem; }
}

/* ---------- the phone, second pass (10 Sep 2026 audit) ----------
   Measured at 375px: a row of three phones is three 86px thumbnails, three
   windows are 92px each, a detail grid puts desktop screens in 157px cells,
   and the small-caps labels fall to 9.6–9.9px. */
@media (max-width:640px){
  /* rows of phones become a strip you swipe: one phone at 58% of the width,
     the next one peeking in from the right to say there is more. The strip
     is the .track inside the frame, so the frame's ink line stays put. */
  .frame.live[data-kind="phone"]:not([data-n="1"]) .track{
    justify-content:flex-start; gap:5%; width:calc(100% + 12%); margin:0 -6%; padding:0 0 6%;
    overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain;
    flex-wrap:nowrap; row-gap:0;
    scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch;
  }
  .frame.live[data-kind="phone"]:not([data-n="1"]) .track::-webkit-scrollbar{ display:none; }
  .frame.live[data-kind="phone"]:not([data-n="1"]) .track::before,
  .frame.live[data-kind="phone"]:not([data-n="1"]) .track::after{ content:""; flex:0 0 21%; }
  .frame.live[data-kind="phone"]:not([data-n="1"]) .device.phone{ flex:0 0 58%; width:58%; scroll-snap-align:center; }
  .frame.live[data-n="1"] .device.phone{ width:58%; }   /* a phone on its own: the same size as one in a strip */
  /* windows side by side become windows one under the other */
  .frame.live[data-kind="window"]:not([data-n="1"]) .track,
  .frame.live[data-kind="flat"]:not([data-n="1"]) .track{ flex-direction:column; align-items:stretch; gap:1rem; }
  .frame.live[data-kind="window"]:not([data-n="1"]) .device.window,
  .frame.live[data-kind="flat"]:not([data-n="1"]) .device.flat{ width:100%; }
  /* a detail grid is one column: a desktop screen in a 157px cell is a thumbnail */
  .doc .shots.cols-3{ grid-template-columns:1fr; }
  /* nothing set in small caps goes under 11px on a phone */
  .doc .lab, .rail .lab, .doc .credits dt{ font-size:.7rem; }
  .feed .mark, .km-live{ font-size:.7rem; }
  .sh-print{ font-size:.7rem; } .sh-word{ font-size:.74rem; } .footline{ font-size:.74rem; }
  .title-line{ font-size:.82rem; }
  .dials-folder > summary{ font-size:.7rem; }
  .doc .docfoot .btn.stack b{ font-size:.7rem; }
  /* the postcard: words to circle and the two lines to write on, thumb-sized */
  .opt{ display:inline-block; padding:.25rem 0; }
  .sh-from input{ min-height:2.2rem; }
  /* the desk: every window is already open and in a row, so the dock that
     opens them is a second copy of the same five; and with no dock there is
     nowhere to put a window away to. BUT the dock also holds Everything else,
     which is not a second copy of anything — it is the only way in, and
     hiding the whole dock hid it completely on a phone. So the dock stays and
     drops only the part that repeats: the five project icons. */
  /* align-self, because the desk is align-items:start and a flex item that
     does not stretch shrinks to its content — the row came out three
     quarters as wide as the windows it sits under */
  .dock{ display:flex; flex-direction:row; justify-content:center; position:static;
         align-self:stretch; margin:1.8rem 0 .4rem; }
  /* and it belongs AFTER the work, not before it: at 900px the desk is
     column-reverse so the dock rides above the windows, which on a phone put
     a door to the other work ahead of the four case studies themselves */
  .desk{ flex-direction:column; }
  .dock .icon:not(.is-app){ display:none; }
  .dock-split{ display:none; }
  /* laid on its side as a row, so give the name the room it needs — the
     two-line clamp and 6.6rem measure are for a narrow sidebar, and here
     they cut "EVERYTHING ELSE" in half */
  /* and it is drawn as a row in the stack rather than a loose icon adrift in
     white paper: same ink line, same ground and the same closing arrow as the
     four windows above it, so it reads as the fifth thing on the desk and not
     as something left over. */
  .dock .icon.is-app{
    position:relative; width:100%; box-sizing:border-box;
    flex-direction:row; align-items:center; justify-content:flex-start; gap:.9rem;
    /* extra room on the right: one of this page's declared hiding places is
       `right:1.2rem;bottom:8.2rem`, which is exactly where this row now
       lands on a phone, and a hidden fruit sitting ON the arrow reads as a
       fault rather than as something tucked in a corner */
    opacity:1; padding:1rem 3.4rem 1rem 1.1rem; text-align:left; background:var(--plate-paper);
  }
  .dock .icon.is-app::before{
    content:""; position:absolute; inset:0;
    border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none;
  }
  .dock .icon.is-app .name{ display:block; max-width:none; -webkit-line-clamp:none; font-size:.8rem; }
  .dock .icon.is-app::after{
    content:"\2192"; margin-left:auto; font-size:1rem; text-transform:none; letter-spacing:0;
  }
  .pwin .box[data-act="shut"]{ display:none; }
}

/* the settings sliders say their value, the way the dials on Plate do */
.slider output{ display:block; min-width:3.2ch; margin:0; font-size:.85rem; font-variant-numeric:tabular-nums; color:var(--ink-2); text-align:center; }

/* ---------- Rain (rain.html): a page of words with weather over it ----------
   The stage is the site's paper with the drawn ink line round it, like every
   other picture. The cloud is SVG so the wobble filter roughens it; it rides
   along under the pointer, which is hidden over the stage because the cloud
   is the pointer now. The canvas below holds the words, the rain and the
   pool (js/rain.js). */
.rain #rn-scene{ width:min(100%, 40rem); margin:1.4rem auto 0; }
/* pan-y: the cloud only ever moves sideways (rain.js reads clientX and nothing
   else), so the page can keep the up-and-down and lose nothing */
.rn-stage{ position:relative; background:var(--paper-2, var(--paper)); cursor:none; touch-action:pan-y; user-select:none; -webkit-user-select:none; outline:0; }
.rn-stage::before{ content:""; position:absolute; inset:0; z-index:3; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
.rn-stage:focus-visible::before{ border-width:3px; }
.rn-stage canvas{ display:block; width:100%; }
.rn-cloud{ position:absolute; left:0; top:.3rem; width:var(--cw, 120px); transform:translateX(var(--cx, 0px)); pointer-events:none; z-index:2; transition:transform .12s ease-out; }
.rn-cloud svg{ display:block; width:100%; height:auto; overflow:visible; }
.rn-cloud svg path{ fill:var(--paper); stroke:var(--ink); stroke-width:3; stroke-linejoin:round; filter:url(#wob-a); }
.rn-stage.is-pouring .rn-cloud{ transform:translateX(var(--cx, 0px)) translateY(2px); }
.rn-row{ display:flex; justify-content:center; gap:.7rem; margin:1.1rem 0 0; }
.rn-hint{ margin-top:1rem; }
@media (prefers-reduced-motion:reduce){ .rn-cloud{ transition:none; } }
@media (hover:none){ .rn-stage{ cursor:auto; } }

/* ---------- Copier (copier.html): a picture screened into dots ----------
   Laid out like Plate, because it is the same kind of thing: a stage with
   the picture on it, rows of choices under it, the dials with the numbers. */
.co-stage{ position:relative; width:min(100%, 40rem); margin:1.4rem auto 0; display:flex; flex-direction:column; align-items:center; }
.co-plate{ position:relative; line-height:0; max-width:100%; }
.co-plate::before{ content:""; position:absolute; inset:0; z-index:2; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
.co-plate canvas{ display:block; max-width:100%; max-height:min(56vh, 26rem); width:auto; height:auto; background:var(--paper); image-rendering:pixelated; }
.copier.is-over .co-plate canvas{ outline:3px dashed var(--blue); outline-offset:6px; }
.co-say{ margin:.9rem 0 0; text-align:center; font-size:.9rem; color:var(--ink-2); min-height:1.2em; }
.co-panel{ width:min(100%, 40rem); margin:2.6rem auto 0; display:flex; flex-direction:column; gap:.7rem; text-align:left; }
.co-group{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; }
.co-group .pl-lab{ flex:none; }
.co-file{ position:relative; cursor:pointer; }
.co-out{ justify-content:center; gap:.7rem; margin-top:.6rem; }
.co-dials{ width:100%; margin:.4rem 0 0; }
.co-hint{ margin-top:1.2rem; }
@media (min-width:1360px){
  .co-dials{ position:fixed; right:1.2rem; top:5.5rem; width:17rem; margin:0; z-index:5; max-height:calc(100vh - 12rem); overflow:auto; }
  .page.copier{ padding-right:20rem; }
}

/* ---------- Screenshots: keep the picture in front of you ----------
   The controls used to run down the page under the picture, so changing
   anything meant scrolling back up to find out what it did. Now the two sit
   side by side and the picture sticks: on a wide screen it holds its place
   in the left column while the choices scroll on the right, and on a phone
   it pins to the top of the screen with the choices running underneath. You
   never stop seeing the thing you are editing. */
.page.plate{ justify-content:flex-start; padding-top:2.2rem; }
.pl-work{
  width:min(100%, 74rem); margin:1.2rem auto 0; display:grid;
  grid-template-columns:minmax(0,1fr) 21rem; gap:1.4rem 2rem; align-items:start;
}
.pl-work .pl-stage{ position:sticky; top:1.5rem; width:auto; margin:0; }
.pl-work .pl-panel{ width:auto; margin:0; }
/* letterboxed, so a tall ratio does not run off the bottom of the window */
.pl-stage canvas{ max-width:100%; max-height:66vh; width:auto; height:auto; margin:0 auto; }
/* in a narrow column the label takes its own line and the buttons get the
   width, and everything is a shade tighter so more of the choices are in
   front of you at once */
.pl-panel .pl-lab{ width:100%; }
.pl-work .pl-panel{ gap:.55rem; }
.pl-work .pl-group{ gap:.35rem .4rem; }
.pl-work .pl-group .btn.small{ min-height:2.3rem; padding:.28rem .62rem; font-size:.86rem; }
.pl-work .pl-text input, .pl-work .pl-text textarea{ min-width:0; }
.pl-work .pl-out{ margin-top:.4rem; }
@media (max-width:900px){
  .pl-work{ grid-template-columns:minmax(0,1fr); gap:.8rem; }
  .pl-work .pl-stage{
    top:0; z-index:6; margin:0 -1.25rem; padding:.5rem 1.25rem .6rem;
    background:var(--paper); box-shadow:0 10px 14px -12px rgba(0,0,0,.4);
  }
  .pl-stage canvas{ max-height:34vh; }
  .pl-thumbs{ margin-top:.5rem; }
  .pl-thumb{ width:4rem; height:2.7rem; }
  /* the little blue message sits over the picture on a wide screen; pinned
     to the top of a phone there is nothing above it, so it moves below */
  .pl-say{ position:static; transform:none; margin:.35rem 0 0; white-space:normal; }
}

/* ---------- Draw a face (faces.html): strangers in marker ----------
   Shares Show a screen's .pl-work layout — the sheet on the left and
   sticky, the choices on the right. The sheet is square, so on a phone it
   gets a little more of the screen than a wide picture would. */
.faces .pl-stage canvas{ touch-action:none; -webkit-user-select:none; user-select:none; }
.faces .fc-deal{ gap:.5rem; }
.faces .fc-deal .btn{ min-height:3rem; }
.faces .fc-deal .btn.small:disabled{ opacity:.35; cursor:default; }
.faces .fc-deal .btn.small:disabled::before{ filter:url(#wob-a); }
@media (max-width:900px){
  .faces .pl-stage canvas{ max-height:42vh; }
}

/* ---- the one application on the desk ---------------------------------
   Every other icon in this dock is a sheet of paper: a portrait box with a
   drawn edge and a little drawing inside it, dimmed when its window is put
   away. This one is not paper and does not have a window to put away, so it
   is square, solid, never dimmed, and sits under a divider the way a
   launcher does. It is the only dark object in a column of line drawings,
   which is the whole of its claim on the eye — no colour was needed and
   none would have been honest. The count is the argument: fourteen things
   in here says more than any adjective would. */
.dock-split{ height:1px; background:currentColor; opacity:.2; margin:.5rem 1rem .15rem; }
/* the app's row in the list view: the same row as a project, with the tile
   where a project's tag marks would be, so it reads as a different kind of
   thing without needing a label saying so */
.pg-mini{ display:inline-grid; place-items:center; }
.pg-mini .doodle{ --w:1.35rem; }
.icon.is-app{ opacity:1; text-decoration:none; position:relative; }
.icon.is-app .pg{ width:3rem; height:3rem; }
.icon.is-app .pg::before{ content:none; }
.icon.is-app .pg .doodle{ --w:3rem; }
.icon.is-app:hover .pg, .icon.is-app:focus-visible .pg{ transform:translateY(-2px); }
.tally{
  position:absolute; z-index:2; top:-.42rem; right:-.5rem; min-width:1.25rem; height:1.25rem; padding:0 .25rem;
  display:grid; place-items:center; border-radius:999px; background:var(--paper); color:var(--ink);
  font:600 .64rem/1 var(--sans); letter-spacing:0; box-shadow:0 0 0 var(--stroke) var(--ink);
}


/* ===== Everything else — the drafting table ===============================
   A composed table, not a scatter. Named zones with headers big enough to
   read from across it, dashed boxes with their measure in the corner,
   projects as small piles that unfold in place. Three bands of zoom decide
   how much of each thing is drawn: [data-zoom] on the stage is the only
   switch, so changing band costs nothing but a repaint. */
.el{ height:100vh; padding:1.1rem 1.4rem calc(4.5rem + .8rem); display:flex; flex-direction:column; position:relative; overflow:hidden; }
.el .menubar{ flex:0 0 auto; row-gap:.5rem; }
@media (max-width:900px){ .el .menubar{ flex-wrap:wrap; } .el .el-kinds{ order:5; width:100%; } }

.el-kinds{ display:flex; flex-wrap:wrap; gap:.3rem; align-items:center; }
.el-kind{ position:relative; font:inherit; font-size:.84rem; line-height:1; color:inherit; background:none; border:0; padding:.42rem .6rem; cursor:pointer; }
.el-kind::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid transparent; filter:url(#wob-a); pointer-events:none; }
.el-kind:hover::before{ border-color:var(--ink); }
.el-kind.is-on{ background:var(--ink); color:var(--paper); }

.el-zoom{ display:flex; align-items:center; gap:.3rem; padding-left:.6rem; margin-left:.2rem; border-left:1px dashed currentColor; }
.el-zoom button{ position:relative; font:inherit; font-size:1rem; line-height:1; color:inherit; background:none; border:0; width:2rem; height:2rem; cursor:pointer; }
.el-zoom button::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
.el-zoom button:hover::before{ filter:url(#wob-b); }
#zpct{ font-size:.74rem; color:var(--ink-2); min-width:2.6rem; text-align:center; }
.el-fit{ width:auto !important; padding:0 .6rem; font-size:.8rem !important; white-space:nowrap; }
@media (max-width:820px){ #zin,#zout,#zpct{ display:none; } .el-zoom{ border-left:0; padding-left:0; margin-left:0; } }
/* under 768 there is no table to zoom, so the whole group goes: a Fit
   button for a canvas that is not on screen is a control for nothing */
@media (max-width:767px){ .el-zoom{ display:none; } }

/* ---- the window onto the table ---------------------------------------
   The wobble lives on a ::before overlay rather than on the stage itself:
   a filter on the stage would run over every card on the table on every
   frame of a zoom. */
.el-stage{
  position:relative; flex:1 1 auto; min-height:0; margin-top:.8rem;
  background:var(--plate-paper); overflow:hidden; cursor:grab; touch-action:none;
}
.el-stage[hidden]{ display:none; }
.el-stage::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; z-index:8; }
.el-stage.is-panning{ cursor:grabbing; }
.el-world{ position:absolute; left:0; top:0; width:1px; height:1px; transform-origin:0 0; will-change:transform; }

/* ---- the title block: what this is, in the face the site titles with -- */
.el-title{ position:absolute; }
.el-title h2{ font-family:var(--title); text-transform:uppercase; font-size:176px; line-height:.86; letter-spacing:.01em; margin:.12em 0 0; -webkit-text-stroke:1.2px var(--ink); }
.el-title .lab{ font-size:19px; letter-spacing:.2em; }
.el-lead-in{ font-family:var(--hand); color:var(--blue); font-size:35px; line-height:1.32; margin:.5em 0 0; max-width:17em; }
.el-title .el-soon{ font-size:19px; font-style:italic; color:var(--ink-2); margin:1em 0 0; }

/* ---- a zone: the landmark, its line, and its box ---------------------- */
.el-zone{ position:absolute; display:flex; flex-direction:column; justify-content:flex-end; }
.el-zone h3{ font-family:var(--title); text-transform:uppercase; font-size:132px; line-height:.9; margin:0; letter-spacing:.01em; -webkit-text-stroke:1px var(--ink); }
.el-zone-note{ margin:.35em 0 0; font-size:23px; color:var(--ink-2); max-width:30em; }
.el-box{ position:absolute; border:2px dashed #c0392b; pointer-events:none; }

/* ---- a piece on the table --------------------------------------------- */
.el-item{
  position:absolute; display:block; padding:0; border:0; background:none; text-align:left;
  font:inherit; color:inherit; cursor:zoom-in;
}
.el-item.is-pile{ cursor:pointer; }
.el-card{ position:relative; display:block; background:var(--paper); overflow:hidden; box-shadow:0 8px 20px -10px rgba(0,0,0,.4); }
.el-card::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; z-index:3; }
.el-card img{ display:block; width:100%; height:100%; object-fit:cover; object-position:top center; }
.el-blank{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center;
  background:repeating-linear-gradient(135deg, rgba(17,17,17,.07) 0 7px, transparent 7px 16px), var(--plate-paper); }
.el-shape{ font-size:15px; color:var(--ink-2); opacity:.75; padding:8px; }
.el-pile{ position:relative; display:block; }
.el-back{ position:absolute; left:0; top:0; display:block; background:#fbf8f1; }
.el-back::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); }
.el-n{
  position:absolute; right:-11px; top:-11px; z-index:5; min-width:30px; height:30px; padding:0 7px;
  display:grid; place-items:center; border-radius:999px; background:var(--paper); color:var(--ink);
  font:600 16px/1 var(--sans); box-shadow:0 0 0 2px var(--ink);
}
.el-cap{ display:block; margin-top:13px; }
.el-cap b{ display:block; font-weight:500; font-size:20px; line-height:1.15; }
.el-cap i{ display:block; font-style:normal; font-size:15px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); margin-top:3px; }
.el-item:hover .el-card{ transform:translateY(-3px); }
.el-item .el-card{ transition:transform .18s ease; }
.el-item:hover .el-card::before, .el-item:focus-visible .el-card::before{ filter:url(#wob-b); }
.el-item.is-dim, .el-zone.is-dim, .el-box.is-dim, .el-title.is-dim{ opacity:.1; pointer-events:none; }
.el-item, .el-zone, .el-box, .el-title{ transition:opacity .3s ease; }

/* ---- the three bands of zoom -----------------------------------------
   Far out, the headers do all the work and every card is a plain shape.
   In the middle, covers and titles come back. Close up, the chips say what
   each screen actually is. Detail is traded for labels, never just lost. */
/* The rule is simple and it is about legibility, not taste: at each band,
   anything that would render smaller than about twelve pixels on screen is
   not drawn, and something larger is already carrying the meaning. Far out
   that leaves the two display faces — the title and the zone names — doing
   all the work, which is the definition of a landmark. */
/* Far away, a card's own name has to stay. It is the landmark — the thing
   that says WHICH pile you are looking at — and hiding it left the opening
   view as eight unlabelled rectangles. The line under it (year, count) is
   detail and still goes. Same reasoning as the run headings inside a pile. */
.el-stage[data-zoom="far"] .el-cap i,
.el-stage[data-zoom="far"] .el-n,
.el-stage[data-zoom="far"] .el-shape,
.el-stage[data-zoom="far"] .el-zone-note,
.el-stage[data-zoom="far"] .el-title .lab{ opacity:0; }
.el-stage[data-zoom="far"] .el-blank{ background:var(--plate-paper); }
.el-stage[data-zoom="mid"] /* the chip and the placeholder's own words are two answers to the same
   question — where the chip is drawn, it is the better one */
.el-stage[data-zoom="near"] .el-shape{ opacity:0; }

/* ---- a pile, unfolded over the table ---------------------------------- */
.el-out-wrap{ position:absolute; left:0; top:0; width:1px; height:1px; z-index:6; }
/* the unfolded pile is a sheet laid ON the table: its own ground, so the
   dimmed work underneath never shows through the middle of it, and the same
   dashed annotation the zones wear so it reads as part of the same file */
.el-box.is-out{ background:var(--plate-paper); }
.el-out-head{ position:absolute; z-index:1; }
.el-out-head b{ display:block; font-size:36px; font-weight:500; line-height:1.1; }
.el-out-head .lab{ font-size:16px; margin-top:6px; letter-spacing:.14em; white-space:nowrap; }
.el-foldbtn{ font:inherit; font-size:inherit; letter-spacing:inherit; text-transform:inherit; color:var(--blue); background:none; border:0; padding:0; cursor:pointer; text-decoration:underline; }
.el-item.el-out{ animation:el-deal .34s cubic-bezier(.2,.8,.25,1) backwards; animation-delay:var(--in,0ms); }
@keyframes el-deal{ from{ opacity:0; transform:translateY(14px) scale(.96); } }
html[data-motion="0"] .el-item.el-out, .el-stage[data-zoom] .el-item.el-out{ }
@media (prefers-reduced-motion:reduce){ .el-item.el-out{ animation:none; } }

/* ---- residue: a tab on the edge for every zone that is off screen ----- */
.el-edges{ position:absolute; inset:0; pointer-events:none; z-index:7; }
.el-edge{
  position:absolute; pointer-events:auto; font:inherit; font-size:.78rem; line-height:1; color:var(--paper);
  background:var(--ink); border:0; padding:.45rem .7rem; cursor:pointer; white-space:nowrap; letter-spacing:.03em;
}
.el-edge.is-l{ left:0; border-radius:0 999px 999px 0; padding-left:.5rem; }
.el-edge.is-r{ right:0; border-radius:999px 0 0 999px; padding-right:.5rem; }
.el-edge.is-t{ top:0; transform:translateX(-50%); border-radius:0 0 999px 999px; }
.el-edge.is-b{ bottom:0; transform:translateX(-50%); border-radius:999px 999px 0 0; }
.el-edge:hover{ background:var(--blue); }

/* ---- the hint and the empty note -------------------------------------- */
.el-hint{
  position:absolute; left:1rem; bottom:.9rem; margin:0; z-index:7; max-width:min(70%, 36rem);
  font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); pointer-events:none;
}
/* it stays until you have used the table, so it has to survive sitting over
   whatever is under it — a line of instructions half-legible across a row of
   screenshots is worse than no line at all */
.el-hint{ background:var(--plate-paper); padding:.45rem .7rem; border-radius:2px; max-width:34rem; }

.el-none{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); margin:0; color:var(--ink-2); z-index:6; }

/* ---- the navigator ---------------------------------------------------- */
.el-nav{ position:absolute; right:.8rem; bottom:.8rem; width:15.5rem; background:var(--paper); padding:.5rem .55rem .55rem; z-index:9;
  transition:opacity .28s ease, transform .28s ease; }
.el-nav.is-away{ opacity:0; transform:translateY(10px); pointer-events:none; }
.el-nav::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
.el-nav .lab{ font-size:.6rem; margin:0 0 .4rem; letter-spacing:.14em; }
.el-nav .lab b{ color:var(--ink); opacity:1; font-weight:500; }
.el-nav-map{ position:relative; height:128px; background:var(--plate-paper); cursor:pointer; overflow:hidden; }
/* a zone: the dashed measure it has on the table, drawn small */
.el-nav-block{
  position:absolute; border:1px dashed color-mix(in srgb, #c0392b 55%, transparent);
  background:color-mix(in srgb, var(--ink) 3%, transparent);
}
.el-nav-block.is-here{ border-color:#c0392b; background:color-mix(in srgb, var(--ink) 7%, transparent); }
/* the title block is the one solid thing on the table, and stays so here */
.el-nav-block.is-title{ border:0; background:var(--ink); opacity:.16; }
/* every piece, as the small mark it is */
.el-nav-mark{ position:absolute; background:var(--ink); opacity:.5; border-radius:.5px; }
/* the window you are looking through */
.el-nav-view{
  position:absolute; pointer-events:none; z-index:2;
  border:var(--stroke) solid var(--ink);
  background:color-mix(in srgb, var(--paper) 42%, transparent);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--paper) 70%, transparent);
}
@media (max-width:900px){ .el-nav{ width:11rem; } .el-nav-map{ height:88px; } }

/* ---- the phone: a viewer over a list ---------------------------------- */
.el-phone{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; margin-top:.7rem; }
.el-phone[hidden]{ display:none; }
.el-phone-list{ flex:1 1 auto; min-height:0; overflow:auto; -webkit-overflow-scrolling:touch; margin-top:1rem; padding-bottom:1rem; }
.el-phone-list h3{ font-family:var(--title); text-transform:uppercase; font-size:2.2rem; line-height:1; margin:1.2rem 0 .5rem; -webkit-text-stroke:.5px var(--ink); }
.el-phone-list h3:first-child{ margin-top:0; }
.el-row{ display:flex; align-items:center; gap:.75rem; width:100%; padding:.6rem 0; background:none; border:0; border-bottom:1px dashed rgba(17,17,17,.45); font:inherit; color:inherit; text-align:left; cursor:pointer; }
.el-row-pic{ position:relative; width:4.2rem; height:2.9rem; flex:none; background:var(--plate-paper); overflow:hidden; }
.el-row-pic::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); }
.el-row-pic img{ display:block; width:100%; height:100%; object-fit:cover; object-position:top center; }
.el-row-txt{ flex:1; min-width:0; }
.el-row-txt b{ display:block; font-size:.95rem; font-weight:500; }
.el-row-txt i{ display:block; font-style:normal; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); margin-top:.15rem; }
.el-row-go{ font-size:1.1rem; opacity:.55; flex:none; }
.el-row.is-on .el-row-pic::before{ border-width:3px; }
.el-row.is-on .el-row-txt b{ text-decoration:underline; }

/* ---- one screen, large ------------------------------------------------ */
body.is-viewing{ overflow:hidden; }
.el-view{
  position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--paper) 94%, transparent); padding:3.4rem 4.4rem;
}
/* On a phone those side rules ate 36% of the width — 140px of padding on a
   390px screen — and left a desktop UI to be read at 249px. The picture gets
   the screen; the close and step buttons keep their own room top and bottom. */
@media (max-width: 767px){
  .el-view{ padding:3.2rem .4rem 4.4rem; }
  .el-shot > div{ max-height:calc(100vh - 8rem); }
  .el-shot img{ max-height:100%; }
}
.el-view[hidden]{ display:none; }
.el-shot{ margin:0; max-width:100%; max-height:100%; display:flex; flex-direction:column; align-items:center; gap:.9rem; }
/* The frame the picture sits in. It SCROLLS, which is the whole point: a
   viewer that only ever fits the picture to the window shows a 1440x5387
   page at 211px wide — fifteen percent of itself, and unreadable. Anything
   much taller than the window is shown at the width instead and read by
   scrolling, the way you would read the real page. */
.el-shot > div{
  /* SAFE centre, not centre. A centred flex box that overflows starts scrolled
     to the middle of its contents, and the overflow on the leading side cannot
     always be reached at all — which is a picture that opens half-way across
     itself and will not scroll back. `safe` centres while it fits and falls to
     the start the moment it does not. */
  display:flex; align-items:safe center; justify-content:safe center; min-height:0;
  max-width:100%; max-height:calc(100vh - 9rem); overflow:auto; scrollbar-width:thin;
  /* NOT -webkit-overflow-scrolling:touch. It has done nothing since iOS 13 —
     Safari scrolls with momentum on its own — and what it still does is put
     the box on its own scrolling layer, where setting scrollLeft from script
     is unreliable. That is a picture that opens wherever the phone felt like,
     on a phone, while every desktop measurement says it opens at zero. */
  /* and scroll anchoring, which exists to HOLD a position when something above
     changes size, is the wrong instinct in a box whose whole content is one
     picture that changes size the moment it loads */
  overflow-anchor:none;
}
.el-shot img{ display:block; max-width:100%; max-height:100%; object-fit:contain; }
.el-view.can-whole .el-shot img{ cursor:zoom-in; }
.el-view.can-whole.is-detail .el-shot img{ cursor:zoom-out; }
/* The detail view: the width the picture needs to be read, scrolled. A page
   too TALL to be read whole is given the frame's full width and scrolled
   down; a screen too WIDE — a 1440px desktop UI on a phone — is drawn at
   twice the frame's width and scrolled across. Fitted whole it would be
   eighteen percent of itself, a picture of an interface rather than the
   interface. Both widths are measured in everything.html, never typed. */
/* Pin only the axis that actually overflows. Pinning both put a wide picture
   that fits the height at the TOP of a tall frame, floating above a pool of
   empty paper, while the next picture filled the frame — so the picture
   seemed to land somewhere different every time. `safe center` holds it in
   the middle of the axis it fits and falls to the start of the axis it does
   not, which is the behaviour that was wanted on both. */
.el-view.is-detail .el-shot > div{ align-items:safe center; justify-content:flex-start; }
.el-view.is-detail[data-size="tall"] .el-shot img{ width:var(--elw, 100%); max-width:none; max-height:none; height:auto; }
.el-view.is-detail[data-size="wide"] .el-shot img{ width:var(--elw2, 200%); max-width:none; max-height:none; height:auto; }
.el-view.is-detail .el-shot{ max-width:100%; }
.el-shot figcaption{ display:flex; align-items:baseline; gap:.6rem; flex-wrap:wrap; justify-content:center; text-align:center; }
.el-shot figcaption b{ font-weight:500; }
.el-shot figcaption i{ font-style:normal; color:var(--ink-2); font-size:.85rem; }
.el-shot figcaption span{ width:100%; color:var(--ink-2); font-size:.9rem; }
.el-blank.is-big{ position:relative; inset:auto; border:var(--stroke) solid var(--ink); filter:url(#wob-a); }
.el-where{ width:100%; font-size:.75rem; letter-spacing:.06em; color:var(--ink-2); }
.el-x, .el-prev, .el-next{
  /* a grid, not a line-height guess: an arrow glyph carries its own bearings
     and sat low and left of the circle it was meant to be in the middle of */
  position:absolute; display:grid; place-items:center;
  font:inherit; font-size:1.3rem; line-height:1; color:inherit;
  background:var(--paper); border:0; cursor:pointer; width:2.6rem; height:2.6rem; border-radius:50%;
  padding:0; text-align:center;
}
.el-x::before, .el-prev::before, .el-next::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); border-radius:50%; filter:url(#wob-a); }
.el-x .gl, .el-prev .gl, .el-next .gl{ display:block; width:1.15rem; height:1.15rem; fill:none;
  stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.el-x{ top:1rem; right:1rem; } .el-prev{ left:1rem; top:50%; margin-top:-1.3rem; } .el-next{ right:1rem; top:50%; margin-top:-1.3rem; }
@media (max-width:640px){
  /* the picture now takes the width, so arrows parked over its left and
     right edges sit on the interface you came to look at. They go to the
     bottom corners, out of the picture and still under the thumb. */
  .el-view{ padding:3.2rem .4rem 4.6rem; }
  .el-prev{ left:.6rem; top:auto; bottom:.7rem; margin-top:0; width:3rem; height:3rem; }
  .el-next{ right:.6rem; top:auto; bottom:.7rem; margin-top:0; width:3rem; height:3rem; }
}

/* A run's heading inside an unfolded project group: the name of one part of
   a piece of work, sitting on the paper above its own screens. Absolutely
   positioned in world coordinates like everything else on the table, so it
   pans and zooms with the rest. */
.el-out-run{
  position:absolute; z-index:7; display:flex; align-items:baseline; gap:.6rem;
  font:700 30px/1.1 var(--ui); color:var(--ink); letter-spacing:-.01em;
  border-bottom:var(--stroke) solid var(--ink); padding-bottom:.35rem;
}
.el-out-run i{ font:400 15px/1 var(--ui); font-style:normal; color:var(--ink-2); letter-spacing:.06em; text-transform:uppercase; }
/* A run's heading stays legible at every zoom, deliberately. Captions on
   individual cards fade out far away because they are detail; these are
   LANDMARKS — the thing that tells you which part of a project you are
   looking at from across the table — and hiding them is exactly backwards.
   They grow a little as you pull back so they hold up at a distance. */
.el-stage[data-zoom="far"] .el-out-run{ font-size:44px; }
.el-stage[data-zoom="far"] .el-out-run i{ font-size:20px; }

/* ---- the phone's run strip -------------------------------------------
   The parts of whatever is open, as a row you can thumb along. A project
   group of eighty-four screens behind two arrows is not navigation; this
   is how you get from the landing page to the platform in one tap. Scrolls
   sideways rather than wrapping, so it never pushes the list off screen. */


/* ---- the phone, tightened ---------------------------------------------
   On a 390px screen the kind chooser wrapped onto a second line and pushed
   the picture down with it. It thumbs sideways instead, which costs one
   line and reads the same. */
@media (max-width: 767px){
  .el-kinds{
    display:flex; flex-wrap:nowrap; gap:.4rem; overflow-x:auto; overflow-y:hidden;
    -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:.2rem;
  }
  .el-kinds::-webkit-scrollbar{ display:none; }
  .el-kinds .el-kind{ flex:none; white-space:nowrap; }
  /* an empty frame in the list should read as a frame with nothing in it,
     not as a picture that failed to arrive */
  .el-row-pic .el-blank{ position:absolute; inset:0; }
}


/* ---- an empty frame, and the way to ask again -------------------------
   A frame is drawn and labelled but not offered: no pointer, no hover lift,
   nothing to press. The label tells you what it is waiting for. */
.el-item.is-frame{ cursor:default; }
.el-item.is-frame .el-card{ transform:none; }
.el-item.is-frame .el-cap b{ opacity:.55; }
.el-item.is-frame .el-cap i{ font-style:italic; text-transform:none; letter-spacing:0; }

/* the ? that brings the instructions back */
.el-howto{
  position:relative; width:2rem; height:2rem; flex:none; margin-left:.1rem;
  font:inherit; font-size:.85rem; line-height:1; color:inherit; background:var(--paper);
  border:0; border-radius:50%; cursor:pointer;
}
.el-howto::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); border-radius:50%; filter:url(#wob-a); }
/* left outlined in both states. Filled, it became the heaviest mark in the
   toolbar — heavier than "Fit it all", which is the control that actually
   rescues a lost visitor — and the hint sitting on the table is its own
   feedback anyway. */
.el-howto:hover, .el-howto:focus-visible{ background:var(--ink); color:var(--paper); }

@media (max-width: 767px){
  /* thumbs, not cursors: the kind chips were 27px tall and the run chips 29 */
  .el-kinds .el-kind{ min-height:44px; display:inline-flex; align-items:center; }
    /* nothing for it to explain here: the phone is a viewer over a list, and
     the hint it would show is desktop advice — drag, ⌘+scroll, esc — none of
     which exists on a phone */
  .el-howto{ display:none; }
}

/* an empty frame in the phone list: shown, labelled, not offered */
.el-row.is-frame{ cursor:default; }
.el-row.is-frame .el-row-txt b{ opacity:.55; }
.el-row.is-frame .el-row-txt i{ font-style:italic; text-transform:none; letter-spacing:0; }

/* the one line that says the picture can be opened up */
.el-how{
  position:relative; margin:0; padding:.45rem 1rem; min-height:44px;
  font:inherit; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:inherit; background:var(--paper); border:0; cursor:pointer;
}
.el-how::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); }
.el-how:hover, .el-how:focus-visible{ background:var(--ink); color:var(--paper); }
.el-how[hidden]{ display:none; }
/* the same control in the case-study lightbox, under the caption */
.lightbox .lb-how{ margin-top:.2rem; }


/* ---- the phone: one index, and the viewer does the viewing -------------
   A piece's name, then the runs inside it, then a row for every screen.
   The whole height goes to the work; pressing a row opens it full screen. */
.el-phone{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; margin-top:.7rem; }
.el-phone[hidden]{ display:none; }
.el-phone-list{ flex:1 1 auto; min-height:0; overflow:auto; -webkit-overflow-scrolling:touch; padding-bottom:1.4rem; }

/* the piece this run of screens belongs to */
.el-piece{ display:flex; align-items:baseline; gap:.6rem; margin:1.1rem 0 .2rem; }
.el-piece b{ font-size:1.15rem; font-weight:500; }
.el-piece i{ font-style:normal; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); }

/* a run's name: what the chip strip used to say, said by scrolling past it */
.el-runhead{
  position:sticky; top:0; z-index:2; display:flex; align-items:baseline; gap:.5rem;
  margin:1.1rem 0 .35rem; padding:.35rem 0 .3rem;
  background:var(--paper); border-bottom:var(--stroke) solid var(--ink);
}
.el-runhead b{ font-size:.95rem; font-weight:700; }
.el-runhead i{ font-style:normal; font-size:.58rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); }

/* ---- the index, folded -------------------------------------------------
   A piece is one line until you ask for it; so is a run inside it. With one
   project the open state is most of the page; with five it is a short menu
   with one thing open, which is the point. */
.el-piece-row, .el-runrow{
  display:flex; align-items:center; gap:.75rem; width:100%;
  background:none; border:0; font:inherit; color:inherit; text-align:left; cursor:pointer;
}
.el-piece-row{ padding:.7rem 0; border-bottom:var(--stroke) solid var(--ink); margin-top:.4rem; }
.el-piece-row .el-row-txt b{ display:block; font-size:1.1rem; font-weight:500; }
.el-piece-row .el-row-txt i{ display:block; font-style:normal; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); margin-top:.15rem; }

.el-runrow{ padding:.62rem 0 .62rem .2rem; border-bottom:1px dashed rgba(17,17,17,.45); }
.el-runrow b{ flex:1; font-size:.95rem; font-weight:500; }
.el-runrow i{ font-style:normal; font-size:.58rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-2); }
.el-runrow.is-open{ border-bottom-color:var(--ink); }

/* the fold mark: a plus that loses its upright when the thing is open */
.el-fold{ position:relative; width:.85rem; height:.85rem; flex:none; margin-left:.3rem; }
.el-fold::before, .el-fold::after{
  content:""; position:absolute; left:0; top:50%; width:100%; height:var(--stroke);
  background:currentColor; transform:translateY(-50%);
}
.el-fold::after{ transform:translateY(-50%) rotate(90deg); transition:transform .18s ease; }
[aria-expanded="true"] .el-fold::after{ transform:translateY(-50%) rotate(0deg); }

/* screens inside an open run are indented, so the depth is visible */
.el-phone-list .el-row{ padding-left:.9rem; }

/* a piece that is one screen sits at the piece's own level, not indented */
.el-phone-list .el-row.is-one{ padding-left:0; border-bottom:var(--stroke) solid var(--ink); padding-top:.7rem; padding-bottom:.7rem; }
.el-phone-list .el-row.is-one .el-row-txt b{ font-size:1.1rem; }

/* ---- a project's own mark, on the case study ---------------------------
   These arrive white on transparency, invisible on this site's cream. A solid
   black plaque fixed that and became the one machine-cut rectangle on a page
   of drawn objects. So they stand on the same cream mat every cover uses,
   inside the same drawn line — and a mark that is one light colour is
   repainted in ink rather than given a dark ground to sit on. Only a mark
   carrying its own colours (logoKeep in content.js) is left alone. */
.dochead .cs-mark{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  height:3.1rem; padding:0 1rem; margin:0 0 .9rem; background:var(--plate-paper);
}
.dochead .cs-mark::before{ content:""; position:absolute; inset:0; border:var(--stroke) solid var(--ink); filter:url(#wob-a); pointer-events:none; }
.dochead .cs-mark img{ display:block; height:1.75rem; width:auto; }
/* brightness(0) keeps the shape and drops the colour: white becomes ink */
.dochead .cs-mark.is-ink img{ filter:brightness(0); }
@media (max-width:640px){
  .dochead .cs-mark{ height:2.7rem; padding:0 .85rem; }
  .dochead .cs-mark img{ height:1.35rem; }
}

/* a project's mark inside a dock icon. Every mark stands straight on the
   page, with nothing behind it — a tile under one of the four and not the
   others made that one read as a different kind of object, which is the thing
   the black plaques were removed for in the first place. A mark that is one
   light colour is repainted in ink; a mark that carries its own colours keeps
   them. The frame around it is still free to say open or put away. */
.icon .pg .mark{
  display:grid; place-items:center; width:1.95rem; height:1.95rem; overflow:hidden;
}
.icon .pg .mark.is-ink img{ filter:brightness(0); }
.icon .pg .mark img{ display:block; max-width:82%; max-height:74%; width:auto; height:auto; }
/* the frontmost icon's page is an ink box, so an ink mark would vanish into it */
.icon.is-front .pg .mark.is-ink img{ filter:brightness(0) invert(1); }
html[data-mode="dark"] .icon .pg .mark.is-ink img{ filter:brightness(0) invert(1); }
html[data-mode="dark"] .icon.is-front .pg .mark.is-ink img{ filter:brightness(0); }

/* ---- what a touch screen asked for, 14 Sep 2026 -----------------------
   Six things, all found by Gaurav on a phone. Three of them are here. */

/* No blue flash on tap. Browsers paint it because a link needs to answer for
   itself; everything here that can be pressed already lifts, fills or moves,
   so the flash was a second, louder answer in a colour this site does not
   own. */
html{ -webkit-tap-highlight-color:transparent; }

/* No scrollbars, anywhere. They were being hidden one place at a time — the
   strip, the chapter rail, the tabs — because a bar of chrome down the side
   of a sheet of paper is not what this is. Now it is the rule, which is only
   honest once the thing below is in place: take the bar away and you owe the
   reader the word. */
*{ scrollbar-width:none; }
*::-webkit-scrollbar{ width:0; height:0; display:none; }

/* the page behind the large view holds still */
/* ---- hold the page still while something is open over it ----------------
   `body { overflow:hidden }` locked nothing, because on this site the element
   that scrolls is the documentElement and not the body — so a finger on the
   backdrop carried the page along underneath the card, which is exactly what
   a modal is for stopping.
   Written against `dialog[open]` rather than against a class, so it covers
   every card, postcard, lightbox and window on the site, including any added
   later that nobody remembers to tell about it. .el-view is a div and not a
   dialog, so it keeps its own name. */
html:has(dialog[open]),
html:has(.el-view:not([hidden])),
body:has(dialog[open]),
body.is-lightbox, body.is-viewing{ overflow:hidden; }
/* and stop a scroll that starts inside the card from handing itself to the
   page when it reaches the end */
dialog, .el-view{ overscroll-behavior:contain; }

/* the word the hidden scrollbar owes you, in the large view */
.el-shot{ position:relative; }
.el-view[data-more="down"] .el-shot::after,
.el-view[data-more="across"] .el-shot::after,
.el-view[data-more="both"] .el-shot::after{
  position:absolute; right:.7rem; bottom:4.6rem; z-index:4;
  background:rgba(0,0,0,.62); color:#fff; font:500 .72rem/1 var(--ui);
  letter-spacing:.02em; padding:.34rem .62rem; border-radius:999px;
  pointer-events:none; transition:opacity .25s ease;
}
.el-view[data-more="down"]   .el-shot::after{ content:"\2195\0020more"; }
.el-view[data-more="across"] .el-shot::after{ content:"\2194\0020more"; }
.el-view[data-more="both"]   .el-shot::after{ content:"\2921\0020more"; }
.el-view.is-scrolled .el-shot::after{ opacity:0; }
/* scrolling the picture must not drag the page behind it along */
.el-shot > div{ overscroll-behavior:contain; }
