/* Home page: deliberately asymmetric. One column, 55 cells wide, set at the golden section of the window
   (left margin : right margin = 1 : phi). Articles are the symmetric pages. */
body.home{--col-w:min(calc(55*var(--cell)),calc(100vw - 4*var(--cell)));--col-x:max(calc(2*var(--cell)),calc((100vw - 55*var(--cell))/2.618))}
.page{width:var(--col-w);margin-left:var(--col-x);padding:calc(3*var(--l)) 0 calc(5*var(--l));position:relative}
.intro .cn{display:block;font-size:calc(2*var(--b));line-height:calc(2*var(--l));font-weight:400}
.intro .role,.intro .loop,.legend,.contact{font-family:var(--mono)}
.intro .role{margin-top:var(--l)}
.intro .body{margin-top:var(--l)}
.intro .loop{margin-top:var(--l);font-weight:600;text-wrap:balance}
.legend{margin-top:var(--l);display:flex;flex-wrap:wrap;gap:0 calc(2*var(--cell))}
.legend span{white-space:nowrap}
.legend svg{width:calc(2*var(--cell));height:calc(2*var(--cell));vertical-align:-0.35em}
svg rect{fill:var(--ink)}svg .box{fill:none;stroke:var(--ink);stroke-width:1}
.sec{margin-top:calc(3*var(--l))}
.sechead{box-shadow:inset 0 -1px 0 var(--ink)}
.items{margin-top:var(--l);display:grid;grid-template-columns:minmax(0,1fr);row-gap:var(--l)}
summary,.sum{position:relative;display:block;padding-right:calc(3*var(--cell))}
summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
.items h3{display:inline}
/* a title that wraps hangs under its first letter, not under the + */
.items summary,.items .sum{padding-left:calc(2*var(--cell))}
.items summary .mk,.items .sum .mk-sp{margin-left:calc(-2*var(--cell))}
.st{position:absolute;right:0;top:calc((var(--l) - 2*var(--cell))/2);width:calc(2*var(--cell));height:calc(2*var(--cell))}
.mk,.mk-sp{display:inline-block;width:calc(2*var(--cell));height:var(--l);vertical-align:top;position:relative}
.mk svg{position:absolute;left:0;top:calc((var(--l) - var(--cell))/2);width:var(--cell);height:var(--cell);overflow:visible;
  transition:transform .45s cubic-bezier(.4,0,.2,1),filter .45s cubic-bezier(.4,0,.2,1),opacity .45s cubic-bezier(.4,0,.2,1)}
.mk line{stroke:var(--ink);stroke-width:1.6;transition:transform .3s;transform-origin:50% 50%}
details[open]>summary .mk .v{transform:scaleY(0)}
/* pointing at a title: its cross turns a quarter and sinks behind the glass; the underline grows from the middle */
summary:hover .mk svg,summary:focus-visible .mk svg{transform:rotate(90deg) scale(.25);filter:blur(2.5px);opacity:0}
summary:focus-visible{outline:none}
summary h3{position:relative}
summary h3::after{content:"";position:absolute;left:0;right:0;bottom:-3px;border-bottom:1px solid var(--ink);transform:scaleX(0);transform-origin:50% 50%;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
summary:hover h3::after,summary:focus-visible h3::after{transform:scaleX(1)}
.more{margin:var(--l) 0 0 calc(2*var(--cell))}
.meta{display:grid;grid-template-columns:calc(8*var(--cell)) minmax(0,1fr);column-gap:calc(2*var(--cell))}
.contact{margin-top:var(--l)}
.colophon{margin-top:calc(3*var(--l))}
.colophon ul{margin:var(--l) 0 0 calc(2*var(--cell))}
.colophon ul li+li{margin-top:var(--l)}
.colophon p{margin-top:var(--l);font-family:var(--mono)}
.gridview{position:absolute;top:0;bottom:0;pointer-events:none;z-index:5;display:none;
  background-image:linear-gradient(to right,rgba(26,127,72,.18) 1px,transparent 1px),linear-gradient(to bottom,rgba(26,127,72,.25) 1px,transparent 1px);background-size:var(--cell) var(--l)}
.gridview .g{position:absolute;top:0;bottom:0;width:0;border-left:1px dashed var(--core)}
body.showgrid .gridview{display:block}
@media (prefers-reduced-motion:reduce){.mk svg,.mk line,summary h3::after{transition:none}summary:hover .mk svg,summary:focus-visible .mk svg{transform:none;filter:none;opacity:1}}
@media (max-width:37.5em){h1{font-size:calc(2*var(--b))}.page{padding-top:calc(2*var(--l))}}
@media print{.items details>div{display:block}.mk{display:none}summary p{margin-left:0}}

/* ---------- peek: on a computer, pointing at a Research row slides a pane of frosted glass out into the right margin
   with a sketch of the project. Clicking the row opens it and keeps the pane out; the row and the pane then share
   one frame and one height, so they read as a single entry. The pane is always the height the opened row will have,
   so nothing moves when it opens. On touch screens and narrow windows the sketch is shown inside the opened row instead. */
.peekfig{margin:0 0 var(--l)}
.peekfig svg{display:block;width:100%;max-width:calc(36*var(--cell));height:auto;overflow:visible}
.peekfig figcaption{font-family:var(--mono);font-weight:300;font-size:.85em;line-height:calc(.85*var(--l));margin-top:calc(.5*var(--l));max-width:calc(40*var(--cell))}
.d .draw{fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:square}
.d .thin{stroke-width:1}
.d .dash{stroke-dasharray:3 3}
.d .fill{fill:var(--ink)}
.d .lb{font:400 11px/1 "IBM Plex Mono",ui-monospace,monospace;fill:var(--ink)}
.d .b{font-weight:600}
body.peek-on .more .peekfig{display:none}

body.peek-on li[data-peek]{position:relative;--pad:calc(.5*var(--l));--gap:calc(3*var(--cell))}
/* opened: the row is as tall as its pane */
body.peek-on li[data-peek].pinned>details{min-height:calc(var(--peek-h) - 2*var(--pad))}
.peek{position:absolute;left:calc(100% + var(--gap));top:calc(-1*var(--pad));width:var(--peek-w);height:var(--peek-h);
  padding:var(--pad) calc(1.5*var(--cell));border:1px solid var(--ink);background:rgba(var(--paper-rgb),.62);
  -webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px);pointer-events:none;z-index:4;overflow:hidden;
  opacity:0;transform:translateX(calc(-2*var(--cell)));filter:blur(4px);visibility:hidden;
  transition:opacity .16s ease,transform .2s cubic-bezier(.2,.7,.2,1),filter .2s cubic-bezier(.2,.7,.2,1),visibility 0s .2s}
.peek::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23n)'/%3E%3C/svg%3E")}
.peek>*{position:relative}
.peek .peekfig{margin:0}
li.show>.peek,li.pinned>.peek{opacity:1;transform:none;filter:none;visibility:visible;transition-delay:0s}
li.pinned>.peek{pointer-events:auto;z-index:3}
li.show:not(.pinned)>.peek{z-index:5}
/* one frame round the opened row and its pane: it grows out from the pane to take in the row */
body.peek-on li[data-peek]::after{content:"";position:absolute;pointer-events:none;
  left:calc(-1.5*var(--cell));top:calc(-1*var(--pad));height:var(--peek-h);right:calc(-1*(var(--gap) + var(--peek-w)));
  border:1px solid var(--ink);clip-path:inset(0 0 0 100%);transition:clip-path .24s cubic-bezier(.2,.7,.2,1)}
body.peek-on li[data-peek].pinned::after{clip-path:inset(0 0 0 0)}
/* an opened row steps back while another row is pointed at */
li.pinned.yield>.peek{opacity:0;transform:translateX(calc(-2*var(--cell)));filter:blur(4px);visibility:hidden;transition:opacity .16s ease,transform .2s cubic-bezier(.2,.7,.2,1),filter .2s cubic-bezier(.2,.7,.2,1),visibility 0s .2s}
body.peek-on li[data-peek].pinned.yield::after{clip-path:inset(0 0 0 100%)}
/* the sketch draws itself when the pane arrives */
.peek .draw{stroke-dasharray:var(--len,600);stroke-dashoffset:var(--len,600)}
.peek .dash{stroke-dasharray:3 3;stroke-dashoffset:0}
li.drawn>.peek .draw:not(.dash){stroke-dashoffset:0;transition:stroke-dashoffset .42s cubic-bezier(.4,0,.2,1) .08s}
.peek .fill,.peek .lb,.peek .dash,.peek figcaption{opacity:0;transition:opacity .18s ease}
li.drawn>.peek .fill,li.drawn>.peek .lb,li.drawn>.peek .dash,li.drawn>.peek figcaption{opacity:1;transition-delay:.26s}
li.show>details>summary h3::after,li.pinned>details>summary h3::after{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){
  .peek,.peek .draw,.peek .fill,.peek .lb,.peek figcaption,body.peek-on li[data-peek]::after{transition:none!important}
  .peek{filter:none;transform:none}.peek .draw{stroke-dasharray:none}}
@media print{.peek,body.peek-on li[data-peek]::after{display:none}body.peek-on .more .peekfig{display:block}}
body:not(.peek-on) .peek,body:not(.peek-on) li[data-peek]::after{display:none}

.sechead{display:flex;align-items:baseline;justify-content:space-between;gap:calc(2*var(--cell))}
.seccount{font-family:var(--mono);white-space:nowrap}
/* a section's own page */
.section-page .crumb{font-family:var(--mono);margin-bottom:var(--l)}
.section-page .sec{margin-top:calc(2*var(--l))}

/* ---------- keywords ----------
   Research rows carry keywords, shown when a row is opened, as dotted links (the system's mark for "sets the state
   of something on this page"): on the Research page a keyword keeps only the rows that carry it; from the home page
   it opens the Research page already filtered. */
.kws{margin:0 0 var(--l);font-family:var(--mono);font-size:.9em;line-height:var(--l)}
.kwlabel{font-family:var(--mono);font-weight:300}
.kws .kwlabel{margin-right:var(--cell)}
a.kw{white-space:nowrap;margin-right:var(--cell)}
a.kw.state::after{content:none}
a.kw[aria-pressed="true"]{background:var(--ink);color:var(--paper);text-decoration:none}
.items>li.kwout{display:none}
.items>li.kwhit .kws a.kw[aria-pressed="true"]{background:var(--ink);color:var(--paper)}

/* ---------- a section page's index: keywords and status key, out of the reading column ----------
   Wide screens: it stands in the empty left margin, level with the list, and stays in view while the list scrolls.
   Narrow screens: it folds into one line, "+ index", above the list. */
.section-page .intro h1 .count{font-size:var(--b);font-weight:400;margin-left:calc(2*var(--cell));letter-spacing:0}
.sideindex{margin-top:var(--l);font-family:var(--mono);font-size:.9em;line-height:calc(.9*var(--l))}
.sideindex .fold>summary{list-style:none;cursor:pointer;font-family:var(--mono)}
.sideindex .fold>summary::-webkit-details-marker{display:none}
.sideindex .sibody{margin-top:calc(.5*var(--l))}
.kwhead{display:flex;align-items:baseline;gap:var(--cell)}
.kwclear{margin-left:auto;font-family:var(--mono)}
.kwstate:empty{display:none}
.kwstate{margin:calc(.25*var(--l)) 0}
.kwlist{list-style:none;margin:calc(.25*var(--l)) 0 0;padding:0}
.kwlist li{display:flex;justify-content:space-between;gap:var(--cell)}
.kwlist .n{font-variant-numeric:tabular-nums;font-weight:300}
.kwlist a.kw{margin:0;white-space:normal}
.kwrest{margin-top:calc(.25*var(--l))}
.kwrest>summary{list-style:none;cursor:pointer;position:relative}
.kwrest>summary::-webkit-details-marker{display:none}
.kwrest>summary .mk{width:calc(1.5*var(--cell))}
.sideindex .lg{margin-top:var(--l)}
.legend2{list-style:none;margin:calc(.25*var(--l)) 0 0;padding:0}
.legend2 svg{width:calc(1.4*var(--cell));height:calc(1.4*var(--cell));vertical-align:-.2em;margin-right:calc(.5*var(--cell))}
body.side-on .sideindex{position:absolute;right:calc(100% + 4*var(--cell));width:var(--side-w);top:var(--side-top);margin:0}
body.side-on .sideindex .fold>summary{display:none}
body.side-on .sideindex .sibody{position:sticky;top:calc(var(--nav-h) + var(--l));margin:0}
body.side-on .sideindex{bottom:0}

/* ---------- the road ----------
   At the very foot of the home page, a strip as wide as the window (not the column), with no line drawn.
   A line of pixel travellers (the traveler-parade widget, assets/parade/) runs across it while it is on screen,
   one pass after another, each pass in a new set of outfits. Pixels are drawn at a whole-number scale, never smoothed.
   Under reduced motion the strip is removed. Decoration only: hidden from assistive technology and from print. */
.road{position:relative;margin-top:calc(3*var(--l));height:calc(5*var(--l));overflow:hidden}
.road traveler-parade{position:absolute;left:0;right:0;bottom:0}
body.home .page:has(.road){padding-bottom:0}
@media print{.road{display:none}}
.colophon summary h3{display:inline}
