/* Mobile first: phones (390 wide) before desks. Colors and sizes come from tokens.css. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
       font-size: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
p { margin: 0; }
a { color: inherit; }

/* Touch (UI_STANDARDS.md): no grey flash or double-tap wait on a tap, focus rings only
   from the keyboard, and a press that shows while the finger is down and always lets go,
   so nothing stays lit after a tap (Zach, Oct 30) */
html { -webkit-tap-highlight-color: transparent; }
/* Pictures can't be dragged off or long-pressed to save (Zach, Oct 30; js/site.js keeps the
   right-click menu off them) */
img, canvas { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
a, button, summary { touch-action: manipulation; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--harvest); outline-offset: 3px; }
.wcard, .member, .next-person, .project .back, .person .back, .lost-top .back, .post .back, .privacy-page .back, .missing-page .back, .project .on-map, .land-map .open,
.ways .way, .find-it .chip
  { transition: transform .12s ease-out, border-color .2s, color .2s; }
.wcard:active, .member:active, .project .on-map:active, .land-map .open:active,
.project .back:active, .person .back:active, .lost-top .back:active, .post .back:active, .privacy-page .back:active, .missing-page .back:active, .next-person:active,
.ways .way:active, .find-it .chip:active
  { transform: scale(.98); }
/* A card's pictures are a strip to swipe, as in Google Maps: a finger on them leaves the
   card as it is: the card pressing in under it is thought to make an iPhone drop the swipe (Zach, Nov 3) */
.wcard:active:has(.slides:active) { transform: none; }
/* The cards that press in, the one list of them (Zach, Nov 14): on a touch screen a card's
   press waits a moment before it shows, so a finger that starts a scroll on it moves on
   first, the phone takes the press away, and nothing presses in; a finger held still still
   presses it, and a quick tap, lifted sooner, presses it as it lifts (js/site.js finds the
   card by its --tap-press). A mouse presses at once. A new card that presses joins here. */
@media (hover: none) {
  .card, a.row, #rows .row, .wcard, .member, .resume .rs-card, .ways .way, a.who-led,
  .next-person, .project .on-map, .land-map .open, .find-it .chip, .post a.byline, .writing li a, :is(.books, .rs-books) .book
    { --tap-press: 1; }
  .pressed { transform: scale(.98); }
}

/* A page change (UI_STANDARDS.md): the next page fades in over this one, and when it
   takes more than a moment (js/site.js adds .leaving) a line runs along the top and this
   page dims, so a tap always answers at once (Zach, Oct 30) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
@keyframes leaving { from { transform: scaleX(.08); } to { transform: scaleX(.9); } }
html.leaving::after { content: ""; position: fixed; z-index: 9999; top: 0; left: 0; right: 0; height: 2px;
                      background: var(--harvest); transform-origin: left;
                      animation: leaving 1.6s cubic-bezier(.2, .7, .3, 1) forwards; }
html.leaving:not(.outlined) body { opacity: .55; transition: opacity .2s; }
/* The next page's outline, at once on a tap (Zach, Oct 30), in the page's own shapes
   (Zach, Oct 31; outline.clj, js/outlines.js): the page's own elements and classes, so it
   sits, sizes and cuts off as the page does on a phone, a desk and in the card; its words
   grey bars as long as the page's words, its pictures and maps grey, slate for earlier
   work, and a light running over it until the page arrives. Under the header bar (js/site.js
   measures it when the page tapped from has one). A page without an outline shows lines. */
/* The header stays over the outline, a closing Menu's too (it keeps [open] as it slides out) */
html.outlined body > header, html.outlined header:has(.menu[open]) { z-index: 91; }
#outline { position: fixed; inset: 0; z-index: 90; background: var(--paper); overflow: hidden;
           animation: outline-in .12s ease-out; pointer-events: none; padding-top: var(--o-top, var(--header-bar)); }
#outline::after, .ppop-body.loading::after { content: ""; position: absolute; inset: 0; z-index: 100; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, var(--outline-light) 50%, transparent 65%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite; }
.ppop-body.loading { position: relative; }
.outline { --o-bar: var(--outline); pointer-events: none; }
.outline.prior, .outline .prior { --o-bar: var(--outline-slate); }
.outline, .outline * { color: transparent !important; text-decoration: none !important; text-shadow: none !important; }
/* An outline stands still: the team's sheet takes its resting place at once (Zach, Nov 3) */
.outline .team-over { transition: none !important; }
.outline .o-w { background: linear-gradient(transparent 18%, var(--o-bar) 18%, var(--o-bar) 82%, transparent 82%);
                -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 3px; }
.outline :is(.hero, .portrait, img, .slide, .tile, .to-come, .bar i, .o-land) { background: var(--o-bar) !important; }
.outline .tile > *, .outline .portrait::before, .outline .portrait::after { visibility: hidden; }
/* An article's hero melts into the page as the page's glass melts it (.fade); Learn's
   question pictures don't */
.outline .lead .hero { -webkit-mask-image: linear-gradient(#000 34%, transparent); mask-image: linear-gradient(#000 34%, transparent); }
.o-plain { max-width: 1296px; margin: 40px auto 0; padding: 0 var(--gutter); }
.o-plain i { display: block; border-radius: 8px; background: var(--outline); }
.o-plain .o-kick { width: 34%; height: 14px; }
.o-plain .o-title { width: 78%; height: 40px; margin-top: 14px; }
.o-plain .o-line { width: 100%; height: 16px; margin-top: 18px; }
.o-plain .o-line.short { width: 62%; margin-top: 10px; }
.o-plain .o-facts { height: 132px; margin-top: 30px; border-radius: 14px; }
/* The scenes: the land as a grey wash under a soft line of hills, and on the map its title
   and quick nav as explorer.css draws them (the map's stylesheet loads only there) */
.o-land { position: fixed; inset: 0;
  --land-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.18' stop-opacity='.15'/%3E%3Cstop offset='.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 30 C20 22 35 30 55 26 S85 19 100 28 V100 H0 Z' fill='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask: var(--land-mask) 0 0 / 100% 100% no-repeat; mask: var(--land-mask) 0 0 / 100% 100% no-repeat; }
.o-intro { position: fixed; left: 10px; top: calc(96px + env(safe-area-inset-top)); padding: 10px 18px 16px; border-radius: 18px;
           background: var(--glass-thin); border: 1px solid var(--glass-edge); }
/* The map's heading, and its outline the same (BRIEF.md decision 52,
   docs/mockups/map-heading-chosen.png): DWELL WILD in the logo's light spaced capitals, a
   thin line, then the subtitle in small spaced capitals split by amber dots, a space each
   side of a dot making up most of the gap. A heading on the map's page, plain words where
   the map is a backdrop: they look the same */
:is(.intro, .o-intro) :is(h1, .heading) { font-family: var(--sans); font-weight: 300; text-transform: uppercase; letter-spacing: .3em;
                                          font-size: 44px; line-height: 1.1; margin: 0; }
:is(.intro, .o-intro) .subtitle { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--line); font-family: var(--sans); font-weight: 400;
                                text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
:is(.intro, .o-intro) .dot { font-style: normal; color: var(--harvest); padding: 0 .09em; }
.o-dock { position: fixed; left: max(20px, calc(50% - 648px)); right: max(20px, calc(50% - 648px)); bottom: calc(16px + env(safe-area-inset-bottom));
          border-radius: 22px; background: var(--glass); border: 1px solid var(--line); padding: 10px 14px 14px; }
.o-handle { position: relative; height: 30px; margin: -10px -14px 0; }
.o-handle::after { content: ""; position: absolute; left: calc(50% - 24px); width: 48px; top: 13px; height: 4px; border-radius: 2px; background: var(--line); }
.o-frow { display: flex; gap: 8px; align-items: center; padding-bottom: 2px; }
.o-search { flex: 1; min-width: 0; display: flex; align-items: center; height: 40px; padding: 0 14px 0 38px; border-radius: 999px;
            border: 1px solid var(--line); font-size: 14px; white-space: nowrap; overflow: hidden; }
.o-fbutton { flex: none; width: 42px; height: 40px; border-radius: 999px; border: 1px solid var(--line); }
.o-meta { margin: 10px 4px 8px; font-size: 14px; }
.o-carousel { display: flex; gap: 12px; overflow: hidden; padding: 2px; }
.o-carousel .card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; flex: none; width: 224px; height: 236px;
                    border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 13px 12px; }
.o-carousel .card.prior { border-style: dashed; }
.o-carousel img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.o-carousel .card > :not(img) { position: relative; }
.o-carousel .r1 { display: flex; justify-content: space-between; font-size: 12.5px; }
.o-carousel .t { font-family: var(--serif); font-size: 17.5px; margin: 3px 0 0; white-space: nowrap; overflow: hidden; }
.o-carousel .p { font-size: 13px; margin: 2px 0 0; white-space: nowrap; overflow: hidden; }
/* The map with a piece of work open on it: its card and the quick nav as a strip */
.o-panel { position: fixed; left: 10px; top: calc(100px + env(safe-area-inset-top)); width: min(420px, calc(100vw - 56px));
           padding: 14px 18px 16px; border-radius: 18px; background: var(--frost); }
.o-panel p { margin: 0; }
.o-panel .no { font-size: 14px; }
.o-panel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; margin: 8px 0 0; }
.o-panel .sum { font-family: var(--serif); font-size: 18px; line-height: 1.55; margin-top: 14px; }
.o-panel .credit { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.o-panel .where { margin-top: 6px; font-size: var(--small); }
.o-panel .credit-lines { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--slate-line); }
.o-panel .credit-lines p { margin: 0; font-size: var(--text); line-height: 1.4; }
.o-panel .their-part { margin-top: 10px; padding: 8px 12px 9px 13px; border-left: 3px solid var(--o-bar); }
.o-panel .their-part .part-title { font-size: 12px; margin-bottom: 2px; }
.o-panel .acts { display: flex; gap: 10px; margin-top: 18px; }
.o-panel .btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--o-bar); font-size: 14px; }
.o-panel .hint { margin-top: 16px; font-size: 13px; }
.o-srow { display: flex; align-items: center; gap: 10px; }
.o-pill { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px;
          border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.o-thumbs { flex: 1; display: flex; gap: 8px; overflow: hidden; }
.o-thumb { flex: none; width: 92px; height: 60px; border-radius: 9px; background: var(--o-bar); }
@media (max-width: 760px) {
  .o-intro { top: calc(64px + env(safe-area-inset-top)); padding: 10px 14px 12px; }
  :is(.intro, .o-intro) :is(h1, .heading) { font-size: 27px; }
  :is(.intro, .o-intro) .subtitle { font-size: 10.5px; }
  .o-panel { top: calc(62px + env(safe-area-inset-top)); width: calc(100vw - 20px); padding: 10px 14px 12px; }
  /* The open project's top as on the map: its summary in at most three lines, its credit
     waiting for the page (Zach chose A's top, Nov 3) */
  .o-panel h2 { font-size: 26px; }
  .o-panel .sum { font-size: 15px; margin-top: 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .o-panel:not(.prior) > .credit { display: none; }
  .o-panel .acts { margin-top: 10px; }
  .o-panel .btn { height: 44px; padding: 0 14px; font-size: 13px; }
  .o-panel .hint { display: none; }
  .o-dock { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px 10px 10px; border-radius: 24px; }
  .o-handle { margin: -6px -10px 0; }
  .o-search { font-size: 16px; }
  .o-carousel .card { width: 170px; }
}
/* On a desk the person who'll open beside the team's list (js/site.js), its box the team page's own */
.o-beside { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .o-beside { display: block; position: fixed; overflow: hidden;
              background: var(--paper); border-radius: 24px; box-shadow: 0 24px 60px var(--shadow-deep); }
  .o-beside article > :is(.back, .share-top) { display: none !important; }
}
/* In an outline the way back sits where the page puts it: the outline doesn't scroll, and its
   own padding would count toward where a sticking one stays */
.outline:is(.project, .person) > :is(.back, .share-top) { position: relative; top: auto; }
/* The card over a page leaves out the page's back link (card.js), so its outline does */
.ppop-body article.outline > :is(.back, .share-top) { display: none !important; }
@keyframes outline-in { from { opacity: 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.leaving::after { animation: none; transform: scaleX(.5); }
  #outline, #outline::after, .ppop-body.loading::after { animation: none; }
  #outline::after, .ppop-body.loading::after { opacity: 0; }
}

/* The header: full logo on the left, links on the right (decision 13) */
/* It stays at the top while the page scrolls under it (Zach, Oct 30) */
header { position: sticky; top: 0; z-index: 20; background: var(--paper); display: flex; align-items: center;
         justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
header .logo img { display: block; height: var(--logo-phone); width: auto; }
header nav a { color: var(--ink); text-decoration: none; letter-spacing: .06em; }
header .links { display: none; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 999px;
                padding: 8px 16px; font-size: var(--small); letter-spacing: .06em; }
.menu summary::-webkit-details-marker { display: none; }

/* Let's talk: the amber button in every header, where Contact was, and wherever the site
   invites the visitor to talk (Zach, Oct 30) */
.talk { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
        padding: 0 22px; border-radius: 999px; background: var(--harvest); color: var(--paper-2); font-size: 16px;
        letter-spacing: .04em; text-decoration: none; white-space: nowrap; transition: transform .12s ease-out; }
.talk:active, .round:active, .share-top:active, .sheet .close:active { transform: scale(.96); }
.sheet nav a:active { opacity: .55; }
header .talk { margin: 0 8px 0 auto; min-height: 36px; padding: 0 16px; font-size: var(--small); letter-spacing: .06em;
               box-shadow: 0 4px 14px var(--harvest-line); }
/* A thumb's reach around the slimmer header button (UI_STANDARDS.md 9), and around the
   logo, the Menu button and a tablet's header links, short of it (the nightly check, Nov 19) */
header .talk::after { content: ""; position: absolute; inset: -4px -2px; }
header .logo, .menu summary, header .links a { position: relative; }
header .logo::after, .menu summary::after, header .links a::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(calc(100% + 4px), 44px); height: max(calc(100% + 8px), 44px); }
/* A phone as small as an iPhone SE: a smaller logo and snugger buttons, so the header fits
   whole and no page scrolls sideways (Zach, Nov 1) */
@media (max-width: 359px) {
  header .logo img { height: 22px; }
  header .talk { margin-right: 6px; padding: 0 12px; }
  header .menu summary { padding: 8px 12px; }
}
.round { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px;
         border-radius: 50%; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink);
         transition: transform .12s ease-out, border-color .2s; }

/* On a phone the Menu is a sheet from the bottom, like the map's quick nav, holding the
   pages and the firm's details in place of a footer (Zach, Oct 30). It slides up, the
   page dimming behind it; a drag down follows the finger and closes it (js/site.js). */
.menu .sheet { display: none; }
/* While it's open the header rises above every other layer: the map's sheets, the team
   list and a page opened as a card */
header:has(.menu[open]) { z-index: 70; }
.menu[open] .sheet { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 2;
                     display: block; padding: 0 22px 22px; border-radius: 28px; background: var(--glass-strong);
                     border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(16px) saturate(150%);
                     backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 -8px 40px var(--shadow);
                     touch-action: none; transition: transform .2s ease-out; animation: sheet-in .26s cubic-bezier(.2, .8, .2, 1); }
.menu.closing .sheet { animation: sheet-out .2s ease-in forwards; }
.menu[open]::before { content: ""; position: fixed; inset: 0; z-index: 1; background: var(--dim); animation: dim-in .2s ease-out; }
.menu.closing::before { animation: dim-out .2s ease-in forwards; }
@keyframes sheet-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(105%); } }
@keyframes dim-in { from { opacity: 0; } }
@keyframes dim-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .menu[open] .sheet, .menu.closing .sheet, .menu[open]::before, .menu.closing::before { animation: none; }
  .menu[open] .sheet { transition: none; }
}
.sheet .grab { position: relative; display: block; height: 30px; margin: 0 -22px; cursor: grab; }
/* A sheet's grab bar, the Menu's and Let's talk's alike */
.sheet .grab::before, .contact-over .grab { content: ""; position: absolute; left: 50%; top: 10px; width: 44px; height: 5px; margin-left: -22px;
                                            border-radius: 3px; background: var(--ink-faint); }
.sheet .close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
                background: var(--ink-wash); color: var(--ink-2); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
/* The sheet is Zach's E2 (docs/mockups/menu/options-3.png, Nov 1): the pages in light
   spaced capitals like ARCHITECTS in the logo, each with its count in a small amber ring,
   and the lower half the land in the map's dots, rising out of the white, with the firm's
   details on it. js/site.js draws the land and its pin at the town. */
.menu[open] .sheet { overflow: hidden; }
.sheet nav { display: flex; flex-direction: column; margin-top: 6px; }
.sheet nav a { display: flex; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line);
               font-family: var(--sans); font-weight: 300; font-size: 21px; line-height: 1; letter-spacing: .32em;
               text-transform: uppercase; }
.sheet nav a:last-child { border-bottom: 0; }
/* The count comes before the name (Zach, Nov 1), every ring as wide, so the names line up */
.sheet nav a[data-count]::before { content: attr(data-count); flex: none; box-sizing: border-box; min-width: 36px;
                                   margin-right: 16px; padding: 3px 8px 2px; text-align: center;
                                   border: 1px solid var(--harvest-line); border-radius: 999px; color: var(--harvest);
                                   font-weight: 400; font-size: 12px; letter-spacing: .1em; line-height: 1.2; }
.sheet nav a::after { content: "\203A"; margin-left: auto; font-size: 26px; letter-spacing: 0; color: var(--ink-2); }
.sheet .firm { position: relative; display: flex; flex-direction: column; min-height: 296px; margin: 0 -22px -22px; padding: 18px 22px 18px; }
.sheet .firm .land { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
/* The white of the sheet runs down over the land's top, and a little back over its foot,
   so the words read and the copyright sits clear */
.sheet .firm::before, .sheet .firm::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.sheet .firm::before { top: 0; height: 96px; background: linear-gradient(var(--paper-2), var(--paper-clear)); }
.sheet .firm::after { bottom: 0; height: 64px; background: linear-gradient(var(--paper-clear), var(--shine-bright)); }
.sheet .firm > :not(.land) { position: relative; z-index: 2; }
.sheet .firm .tagline { font-weight: 300; font-size: 12.5px; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; text-wrap: balance; }
/* The town is the pin's label on the land */
.sheet .firm .town { align-self: flex-end; margin-top: 70px; padding: 3px 10px; border: 1px solid var(--harvest-line);
              border-radius: 999px; background: var(--paper-2); color: var(--harvest); font-size: 12px;
              letter-spacing: .06em; line-height: 1.4; }
.sheet .firm .go, .closing-card .go { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.sheet .firm .go { margin-top: auto; }
.sheet .firm .go .talk { flex: 1; }
.sheet .firm .go .round { background: var(--glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet .firm .legal { margin-top: 16px; font-size: 12.5px; text-align: center; color: var(--ink); }

/* The privacy page's link, small beside the copyright, under the card that ends a long
   page and at the foot of Let's talk (Zach, Nov 11). Its tap reaches 44 high without
   making its line taller (UI_STANDARDS.md 9). */
:is(.legal, .wz-privacy) a { display: inline-block; padding: 14px 8px; margin: -14px -8px; color: inherit;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.sheet .firm .legal a { margin-left: 6px; }
/* A phone as short as an iPhone SE keeps the whole sheet on screen */
@media (max-height: 640px) {
  .sheet nav a { padding: 16px 0; }
  .sheet .firm { min-height: 248px; }
}

/* The card that ends a project's or a person's page, inviting the visitor to talk, where
   a footer would be (Zach, Oct 30) */
/* No box, just a line across the page above it (Zach chose 3, Oct 31); on a desk its words
   on the left and its buttons on the right */
.closing-card { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.closing-card h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.closing-card p { font-size: 16px; color: var(--ink-2); }
.closing-card .go { flex-wrap: wrap; margin-top: 18px; }
.closing-card .gap { display: none; }
.closing-card .legal { margin: 18px 0 0; font-size: 13px; }
@media (min-width: 900px) {
  .closing-card { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: center; }
  .closing-card h2, .closing-card p { grid-column: 1; }
  .closing-card p { margin: 0; }
  .closing-card .go { grid-column: 2; grid-row: 1 / 3; margin: 0; flex-wrap: nowrap; }
}

main, .o-page { padding: var(--page-top) var(--gutter) 64px; max-width: calc(var(--measure) + 2 * var(--gutter-desk)); }

/* Project and team pages */
/* Every back link is a small glass pill with its arrow, easy for a thumb (Zach chose A, Oct 30) */
.project .back, .person .back, .lost-top .back, .post .back, .privacy-page .back, .missing-page .back, .ppop-back { display: inline-flex; align-items: center; gap: 8px; min-height: var(--back-h); margin-bottom: 20px;
  padding: 0 16px 0 12px; border-radius: 999px; font-size: 15px; color: var(--ink); text-decoration: none; }
/* The way back's glass, which Share across from it shares (UI_STANDARDS 48) */
.project .back, .person .back, .lost-top .back, .post .back, .privacy-page .back, .missing-page .back, .ppop-back, .share-top {
  background: var(--glass-thin); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(6px) saturate(160%); backdrop-filter: blur(6px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--shine), 0 2px 10px var(--shadow-soft); }
.project .back::before, .person .back::before, .lost-top .back::before, .post .back::before, .privacy-page .back::before, .missing-page .back::before, .ppop-back::before { content: "\2190"; font-size: 18px; line-height: 1; }
/* A phone turned sideways has too little height for anything to stay over the page: the
   way back, Share and a person's work bar are hidden there (Zach, Nov 18; UI_STANDARDS 15) */
@media (orientation: landscape) and (max-height: 540px) and (hover: none) {
  .project .back, .person .back, .lost-top .back, .post .back, .privacy-page .back, .missing-page .back, .share-top, .person > .worknav { display: none !important; }
}
.kicker { font-size: var(--small); letter-spacing: .12em; text-transform: uppercase; color: var(--harvest); }
h1 { font-family: var(--serif); font-weight: 400; font-size: var(--title); line-height: 1.05; margin: 10px 0 14px; }
.facts, .role { color: var(--ink-2); }
.summary, .bio { margin-top: 20px; }

/* A project's page (Zach chose D, Oct 30): the hero photo, or the model until there's
   one, runs edge to edge and blurs and fades into the page at its bottom, the number and
   title sitting over that edge; then the summary, the facts, the problem, the numbered
   photos and the next project */
:is(.project, .person) .lead.over { position: relative; padding-top: min(44vh, 360px); }
:is(.project, .person) .lead .hero { position: absolute; top: calc(-1 * var(--page-top)); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); bottom: -20px;
                       overflow: hidden; background: var(--paper); }
:is(.project, .person) .lead.over > .head, .project .lead.over > .summary { position: relative; z-index: 2; }
/* From the title down the hero is the page's: a swipe there, between the words too,
   scrolls the page (UI_STANDARDS 2, 22) */
:is(.project, .person) .lead.over::after { content: ""; position: absolute; z-index: 1; top: min(44vh, 360px); bottom: -20px;
                                          left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
.person .bio { position: relative; z-index: 2; }
/* The way back sits at the top left over the hero, across from Drag to turn (Zach, Oct 30), and
   stays there, just under the header, as the page scrolls (Zach, Nov 14; UI_STANDARDS 15): it
   leads the page and takes no room, so the opening starts where it did */
:is(.project, .person) > :is(.back, .share-top) { position: sticky; top: calc(var(--back-top) + var(--back-lift)); z-index: 15; box-sizing: border-box; height: var(--back-h); }
:is(.project, .person) > .back { display: flex; width: max-content; margin: var(--back-lift) 0 calc(-1 * var(--back-h) - var(--back-lift)); }
/* Share across from the way back, in its glass, a circle as tall as it, at the top right
   and staying there as the page scrolls (Zach chose A, Nov 14; docs/mockups/share/) */
.share-top { display: grid; place-items: center; box-sizing: border-box; width: var(--back-h); height: var(--back-h);
             border-radius: 50%; color: var(--ink); transition: transform .12s ease-out, border-color .2s; }
/* Its top margin meets the way back's own below it, and two margins that meet take the
   deeper, so minus --back-h lands it level with the way back for any lift */
:is(.project, .person) > .share-top { margin: calc(-1 * var(--back-h)) 0 calc(-1 * var(--back-h) - var(--back-lift)) auto; }
/* Share is a button among links: it draws as they do */
button.round, button.share-top { padding: 0; font: inherit; cursor: pointer; }
/* What a computer says when it has copied a page's address: a small glass note low on the
   screen, fading away after a moment. At rest it's clear rather than gone, so a screen
   reader hears it the first time it speaks */
.share-note { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; margin: 0; padding: 10px 18px;
              border-radius: 999px; font-size: var(--small); color: var(--ink); background: var(--glass-strong);
              border: 1px solid var(--glass-edge); box-shadow: 0 6px 20px var(--shadow);
              transform: translateX(-50%); opacity: 0; pointer-events: none; }
/* Empty, before it first speaks, it takes no room at all, so nothing waits on a blank box */
.share-note:empty { padding: 0; border: 0; }
.share-note.shown { opacity: 1; animation: share-note-in .2s ease-out; }
.share-note.going { animation: share-note-out .3s ease-in forwards; }
@keyframes share-note-in { from { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes share-note-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .share-note.shown, .share-note.going { animation: none; } }
:is(.project, .person) .hero img, :is(.project, .person) .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Glass in layers over the hero's lower part, each blurrier toward the bottom, then a
   tint that deepens to the page's paper, so it melts away under the words (Zach, Oct 30) */
:is(.project, .person) .hero .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 66%; z-index: 1; pointer-events: none; }
:is(.project, .person) .hero .fade i { position: absolute; inset: 0; }
:is(.project, .person) .hero .fade i:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 12%, #000 25%, transparent 38%); mask-image: linear-gradient(transparent 0%, #000 12%, #000 25%, transparent 38%); }
:is(.project, .person) .hero .fade i:nth-child(2) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(transparent 12%, #000 25%, #000 38%, transparent 50%); mask-image: linear-gradient(transparent 12%, #000 25%, #000 38%, transparent 50%); }
:is(.project, .person) .hero .fade i:nth-child(3) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(transparent 25%, #000 38%, #000 50%, transparent 62%); mask-image: linear-gradient(transparent 25%, #000 38%, #000 50%, transparent 62%); }
:is(.project, .person) .hero .fade i:nth-child(4) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(transparent 38%, #000 50%, #000 62%, transparent 75%); mask-image: linear-gradient(transparent 38%, #000 50%, #000 62%, transparent 75%); }
:is(.project, .person) .hero .fade i:nth-child(5) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(transparent 50%, #000 70%); mask-image: linear-gradient(transparent 50%, #000 70%); }
/* Blur dissolves the model's sparse dots, so over the model the glass is lighter */
:is(.project .hero.model, .person .hero.aerial) .fade i:nth-child(1) { -webkit-backdrop-filter: blur(.4px); backdrop-filter: blur(.4px); }
:is(.project .hero.model, .person .hero.aerial) .fade i:nth-child(2) { -webkit-backdrop-filter: blur(.7px); backdrop-filter: blur(.7px); }
:is(.project .hero.model, .person .hero.aerial) .fade i:nth-child(3) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
:is(.project .hero.model, .person .hero.aerial) .fade i:nth-child(4) { -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
:is(.project .hero.model, .person .hero.aerial) .fade i:nth-child(5) { -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); }
:is(.project, .person) .hero .fade::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--paper-clear) 0%, var(--paper-wash) 35%, var(--frost-thin) 72%, var(--frost-strong) 92%, var(--paper) 100%); }
/* Every drag on the model turns it; the page scrolls from outside it (Zach, Oct 30) */
.project .hero.model { cursor: grab; touch-action: none; }
.project .hero.model.turning { cursor: grabbing; }
/* The model is grabbed only above the title; below it the words are the page's */
.project .hero.model.under { cursor: auto; }
.project .hero.model canvas { opacity: 0; transition: opacity .5s; }
.project .hero.model.live canvas { opacity: 1; }
/* The pill on a model hero: Drag to turn */
.project .hero .turn { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-size: 12px;
                                  background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); pointer-events: none; }
/* A project's photo hero (Zach chose D2, BRIEF.md decision 31; docs/mockups/project-hero-d2/):
   it fills the screen under the header, sharp, darkened toward its foot, where the number
   and title sit in white; the summary and the page follow on a paper sheet with round top
   corners whose edge shows at the screen's bottom. Phones get its portrait crop. The
   offsets follow the page's own padding: phone, desk and the card over the map */
.project { --hero-h: calc(100svh - var(--header-bar)); --hero-top: var(--page-top); --hero-side: var(--gutter); --sheet-lap: 28px; --title-lift: 52px; }
.project .lead.over.photo { padding-top: 0; }
.project .lead.over.photo::after { display: none; }
.project .lead.over.photo .hero { position: relative; top: calc(-1 * var(--hero-top)); left: auto; right: auto; bottom: auto; z-index: 0;
                                   margin: 0 calc(-1 * var(--hero-side)); height: var(--hero-h); }
.project .lead.over.photo .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--photo-foot); pointer-events: none; }
.project .lead.over.photo::before { content: ""; position: absolute; z-index: 1; bottom: -20px;
                                    top: calc(var(--hero-h) - var(--hero-top) - var(--sheet-lap));
                                    left: calc(-1 * var(--hero-side)); right: calc(-1 * var(--hero-side));
                                    background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: var(--sheet-shadow);
                                    clip-path: inset(-60px 0 0 0); pointer-events: none; }
.project .lead.over.photo > .head { position: absolute; left: 0; right: 0; z-index: 3; margin: 0;
                                    top: calc(var(--hero-h) - var(--hero-top) - var(--title-lift)); transform: translateY(-100%); }
.project .lead.over.photo > .head .kicker { color: var(--kicker-on-photo); }
.project .lead.over.photo > .head h1 { color: var(--on-photo); font-size: 44px; text-shadow: var(--title-shadow); }
.project .lead.over.photo > .summary { margin-top: -18px; }
@media (min-width: 720px) {
  .project { --hero-side: var(--gutter-desk); --sheet-lap: 40px; --title-lift: 72px; }
  .project .lead.over.photo::before { border-radius: 28px 28px 0 0; }
  /* From a tablet up the photo opening takes the desk's layout (Zach, Nov 2): the title
     and summary centered, the way back at the top left over the photo. Keyed to the
     screen, as its photo crop is, not to the page's width as the rest of the desk layout
     is, so the opening and its photo change together at 720 px */
  .project .lead.over.photo > :is(.head, .summary) { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
  .project .lead.over.photo > .join { text-align: center; }
  .project .lead.over.photo > .head h1 { font-size: 66px; }
  .project .lead.over.photo > .summary { margin-top: -2px; font-size: 22px; }
}
.ppop-body .project { --hero-h: min(72vh, 720px); --hero-top: 36px; --hero-side: 48px; }
.project .head h1 { margin-bottom: 0; }
.project .summary { font-family: var(--serif); font-size: 19px; line-height: 1.45; margin-top: 16px; }
.facts-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0 0; background: var(--line);
               border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
/* Each fact centered in its cell, across and down, as the figures under them are (Zach, Nov 3) */
.facts-table > div { display: flex; flex-direction: column; align-items: center; justify-content: center;
                     background: var(--paper-2); padding: 10px 12px; text-align: center; }
.facts-table > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts-table dt { font-size: 12px; letter-spacing: .03em; color: var(--ink-2); }
.facts-table dd { margin: 0; font-size: 15px; }
.facts-table a { color: inherit; text-underline-offset: 3px; }
/* The plan a building is part of: its whole cell is the link, a full finger's target
   (UI_STANDARDS 9; Zach, Nov 3) */
.facts-table > div.part-of { position: relative; }
.facts-table .part-of a::after { content: ""; position: absolute; inset: 0; }
.facts-table .part-of:active a { color: var(--harvest); }
/* Who led the work, as a little profile to tap: portrait, name and role (Zach chose B,
   Nov 3). Not .leader, which the map's stylesheet keeps for its floating labels */
.facts-table > div.led { grid-column: 1 / -1; }
/* A fact left alone on its row (as when a project shows no place) has who led it beside
   it, so no empty cell shows (Zach, Nov 3) */
.facts-table > div:nth-child(odd) + div.led { grid-column: auto; }
/* The portrait always sits left of the name (Zach, Nov 3); in half a row of the two-column
   facts it and the words are a little smaller, so the name and role each stay on a line */
@container project (max-width: 999.98px) {
  .facts-table > div:nth-child(odd) + div.led { padding-left: 8px; padding-right: 8px; }
  .facts-table > div:nth-child(odd) + div.led .who-led { gap: 8px; }
  .facts-table > div:nth-child(odd) + div.led .who-led .portrait { width: 32px; }
  .facts-table > div:nth-child(odd) + div.led .who-led .name { font-size: 14px; white-space: nowrap; }
  .facts-table > div:nth-child(odd) + div.led .who-led .role { font-size: 11.5px; white-space: nowrap; }
}
.facts-table .led dd { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 4px; }
.who-led { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; transition: transform .12s ease-out; }
a.who-led:active { transform: scale(.98); }
.who-led .portrait { flex: none; width: 40px; aspect-ratio: 1; border-radius: 50%; }
.who-led .who { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.who-led .name { font-size: 15px; color: var(--ink); }
.who-led .role { font-size: 12.5px; color: var(--ink-2); }
/* The record's measures in a band of larger figures under the facts, each centered in
   its cell, every row filling the band (Zach chose B, Nov 3) */
.facts-table:has(+ .facts-figures) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.facts-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line);
           border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; }
.facts-figures > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
               padding: 12px; text-align: center; background: var(--paper); }
.facts-figures > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts-figures dt { font-size: 12px; letter-spacing: .03em; color: var(--ink-2); }
.facts-figures dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.problem { margin: 28px 0 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--harvest); }
.problem p:first-child { font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.problem p:first-child::before { content: "\201C"; }
.problem p:first-child::after { content: "\201D"; }
.plates { margin-top: 32px; }
/* The collage waiting its turn (Zach, Nov 14): hidden over the grid the plates lay out in */
.project .plate-turns > .plates[hidden] { display: none; }
.plate { margin: 0 0 26px; }
.plate img, .plate .to-come { display: block; width: 100%; height: auto; border-radius: 14px; }
.plate .to-come { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px solid var(--line); color: var(--ink-2); font-size: var(--small);
                  background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, var(--ink-wash) 10px 11px, var(--paper-2) 11px 20px); }
.plate figcaption { margin-top: 8px; font-size: 15px; }
/* A video plays over its still frame, silent and looping, like a photo that moves; a tap
   reaches the still frame under it and opens it full screen (BRIEF.md decision 35;
   js/photos.js places it) */
.plate[data-video] { position: relative; }
.plate video.moving { position: absolute; display: block; object-fit: cover; border-radius: 14px; pointer-events: none; }
.plate figcaption b { font-family: var(--serif); font-weight: 400; color: var(--harvest); margin-right: 8px; }
.plate figcaption .t { color: var(--ink); }
.plate figcaption { color: var(--ink-2); }
.project .story { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin-top: 28px; }

/* A project's or earlier work's page as a card over the page the visitor is on, on a desk
   (Zach, Oct 30; js/site.js): rounded corners, an ×, a light scrim that closes it */
@keyframes ppop-in{from{opacity:0;transform:translate(-50%,-48%) scale(.98)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes ppop-fade{from{opacity:0}to{opacity:1}}
.ppop-scrim{position:fixed;inset:0;z-index:60;background:var(--shadow-deep);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:ppop-fade .18s ease-out}
/* With a card open the header stays above the dimmed page, below the card itself, so
   its links answer the first click (Zach, Oct 30) */
html.carded header{z-index:61}
.ppop{position:fixed;left:50%;top:50%;z-index:61;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 96px));max-height:calc(100vh - 96px);overflow:auto;overscroll-behavior:contain;scrollbar-width:none;background:var(--paper);border-radius:24px;box-shadow:0 24px 60px var(--shadow-deep);animation:ppop-in .22s cubic-bezier(.2,.7,.15,1)}
.ppop::-webkit-scrollbar{display:none}
/* On a wide screen the card grows to show the page's own desk layout, with the map still
   around it, as wide as the page's text (1200 px and its margins), and it scrolls without a bar that would square off its corners (Zach, Oct 30) */
@media (min-width:1280px){.ppop{width:min(1296px,calc(100vw - 160px));height:calc(100vh - 64px);max-height:none}}
/* Above a person's map and its pins (.apins, z-index 2), which would take the tap (the nightly check, Nov 20) */
.ppop-x{position:sticky;top:14px;display:block;margin:14px 14px -54px auto;z-index:3;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--paper-2);font-size:22px;line-height:1;color:var(--ink);cursor:pointer}
@media (hover:hover){.ppop-x:hover{border-color:var(--ink-faint);background:var(--paper)}}
/* Back to the person a project was opened from, at the card's top left, staying in sight
   as the card scrolls, as its \00d7 does (Zach, Oct 31) */
.ppop-back{position:sticky;top:14px;z-index:3;width:max-content;margin:14px 0 -58px 14px;font:inherit;font-size:15px;cursor:pointer}
.ppop-back[hidden]{display:none}
.ppop-body{padding:36px 48px 44px}
.ppop-body.loading{min-height:240px}
.ppop-body > article{margin:0;padding:0;max-width:none}
@media (prefers-reduced-motion:reduce){.ppop,.ppop-scrim{animation:none}}
/* The project's hero runs to the card's edges in the pop-up */
.ppop-body :is(.project, .person) .lead .hero{top:-36px;left:-48px;right:-48px}
.ppop-body :is(.project, .person) .lead.over::after{left:-48px;right:-48px}
.ppop-body .person{--stick:0px}
.ppop-body .project .hero .turn{right:auto;left:14px}

/* A project's photos as a collage (BRIEF.md decision 32): a tall one at the left with the
   next two wide ones beside it, the other wide ones one across, then two side by side, on
   a phone too (Zach, Nov 2). The build marks each plate's place. Earlier work keeps one
   wide, then two side by side */
.project:not(.prior) .plates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 8px; }
.project:not(.prior) .plate { margin: 0; }
.plate.across { grid-column: 1 / -1; }
.plate.pair img, .plate.pair .to-come { aspect-ratio: 4 / 3; object-fit: cover; }
.plate.tall { grid-column: 1; grid-row: span 2; display: flex; flex-direction: column; }
.plate.tall img { flex: 1 1 0; min-height: 0; object-fit: cover; }
.plate.beside { grid-column: 2; }
.plate.beside img { aspect-ratio: 4 / 3; object-fit: cover; }
.plate.tall figcaption, .plate.beside figcaption, .plate.pair figcaption { font-size: 14px; line-height: 1.3; }
/* One note after the last photo names those edited with AI (Zach, Nov 1) */
.project .ai-photos { margin: 22px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* A photo full screen (decision 32): on solid dark, the photo as big as the screen
   allows, its count and × above, its number, caption and description under it; turned
   sideways, the photo alone with its ×. Arrows only with a mouse */
.project .plate img, .project .hero img { cursor: zoom-in; }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
/* While a photo is open the page behind is dark to its edges, and the viewer's dark
   reaches far past the screen's, so a turn of the phone never shows white (Zach, Nov 2) */
html.viewing, html.viewing body { background: var(--night-solid); }
/* What a turn to landscape uncovers the browser fills before the page paints it, in its
   own color for the page's scheme: dark while a photo is open, not white (Zach, Nov 3) */
html.viewing { color-scheme: dark; }
.viewer { position: fixed; inset: 0; z-index: 9000; overflow: hidden; background: var(--night-solid); color: var(--paper);
          box-shadow: 0 0 0 150vmax var(--night-solid);
          touch-action: none; -webkit-user-select: none; user-select: none; animation: viewer-in .2s ease-out; }
.viewer .track { display: flex; height: 100%; will-change: transform; }
.viewer .track.sliding { transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.viewer .slide { --top: 72px; flex: 0 0 100%; height: 100%; margin: 0; display: flex; flex-direction: column; justify-content: center;
                 padding: var(--top) 0 calc(24px + env(safe-area-inset-bottom)); }
.viewer .frame { display: flex; justify-content: center; align-items: center; min-height: 0; flex: 0 1 auto; }
.viewer .slide img, .viewer .slide video { display: block; max-width: 100%; max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px);
                     object-fit: contain; transform-origin: center; will-change: transform; }
.viewer .slide img.sliding { transition: transform .22s ease-out; }
.viewer figcaption { padding: 16px 22px 0; max-width: 720px; width: 100%; margin: 0 auto; }
.viewer .said { margin: 0; font-size: 17px; line-height: 1.35; }
.viewer .said b { font-family: var(--serif); font-weight: 400; color: var(--kicker-on-photo); margin-right: 8px; }
.viewer .description { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--paper-dim); }
/* On a phone or tablet held upright (a finger, not a mouse: the desk's viewer below takes a
   mouse), a tall photo fills the screen's width under its count and ×, as much of the
   screen as it can, its number and caption over its foot on a shade (Zach chose, Nov 15).
   A screen too short for that narrows it, so it's never cut off. */
@media (orientation: portrait) and (hover: none), (orientation: portrait) and (pointer: coarse) {
  .viewer .slide.tall { --shade-room: 96px; display: grid; justify-content: center; align-content: center; padding: var(--top) 0 0; }
  .viewer .slide.tall .frame, .viewer .slide.tall figcaption { grid-area: 1 / 1; }
  .viewer .slide.tall img { width: min(100vw, calc((100vh - var(--top)) * var(--shape)));
                            width: min(100vw, calc((100dvh - var(--top)) * var(--shape))); height: auto; max-width: none; max-height: none; }
  /* As wide as the photo, however long its words; the shade fades in above them and is
     full behind every line; a tap there is the photo's, so a double tap still zooms. Lifted
     over the photo, which its zoom (will-change) otherwise draws on top */
  .viewer .slide.tall figcaption { position: relative; z-index: 1; align-self: end; width: 0; min-width: 100%; max-width: none; pointer-events: none;
                                   padding: var(--shade-room) 22px calc(22px + env(safe-area-inset-bottom));
                                   background: linear-gradient(transparent, var(--photo-shade) var(--shade-room)); }
}
.viewer .count { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 22px; margin: 0; font-size: 15px;
                 letter-spacing: .06em; color: var(--paper-soft); }
.viewer button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
                 border: 1px solid var(--shine-soft); background: var(--night-veil); color: var(--paper); font-size: 22px;
                 -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
                 transition: transform .12s ease-out, background-color .2s, border-color .2s; }
/* A press shows while the finger is down (UI_STANDARDS 10); a mouse gets a hover look (11) */
.viewer .close-photo:active { transform: scale(.92); }
.viewer .prev-photo:active, .viewer .next-photo:active { transform: translateY(-50%) scale(.92); }
@media (hover: hover) {
  .viewer button:hover { background: var(--shine-soft); border-color: var(--paper); }
}
.viewer .close-photo { top: calc(10px + env(safe-area-inset-top)); right: 12px; border-color: transparent; background: none; font-size: 28px; }
.viewer .prev-photo, .viewer .next-photo { display: none; top: 50%; transform: translateY(-50%); }
.viewer .prev-photo { left: 16px; }
.viewer .next-photo { right: 16px; }
/* On a desk (Zach chose A, Nov 3; docs/mockups/photo-viewer-desk-options.png): the photo
   as big as the screen allows but for a band under it; in the band its number, caption
   and description start at the photo's left edge, and its count and both arrows sit
   together under the right edge of the narrowest landscape photo in the set (js/photos.js
   sets its shape, --landscape), never past one, below the tallest photo the screen holds,
   in the same place for every photo so the mouse stays put (Zach, Nov 14); the × keeps
   the screen's top right corner */
@media (hover: hover) and (pointer: fine) {
  /* The band under the photo, the margin at the screen's edges, the arrows' size and the
     gaps beside and above them: every place below is worked out from these */
  .viewer { --band: 120px; --edge: 24px; --button: 48px; --gap: 14px; --below: 16px;
            --controls-top: calc(100vh - var(--band) + var(--edge) + var(--below));
            /* A set with no landscape photo lines its arrows up under where a 3 by 2 one
               would end, the shape a photo not yet measured is drawn at */
            --unknown-shape: 1.5;
            --landscape-width: min(calc(100vw - 2 * var(--edge)), calc((100vh - var(--band)) * var(--landscape, var(--unknown-shape))));
            --controls-right: calc((100vw - var(--landscape-width)) / 2);
            /* The count's room beside the arrows, and all of it with them */
            --count-room: 96px;
            --controls-span: calc(2 * (var(--button) + var(--gap)) + var(--count-room)); }
  .viewer .slide { --photo-width: min(calc(100vw - 2 * var(--edge)), calc((100vh - var(--band)) * var(--shape, var(--unknown-shape))));
                   display: grid; grid-template-columns: auto; justify-content: center; align-content: start; padding: var(--edge) var(--edge) 0; }
  .viewer .frame { display: block; }
  .viewer .slide img, .viewer .slide video { width: var(--photo-width); height: auto; max-width: none; max-height: calc(100vh - var(--band)); }
  /* The caption stops short of the count and arrows wherever this photo reaches past them */
  .viewer figcaption { width: 0; min-width: 100%; max-width: none; margin: 0; text-align: left;
                       padding: 18px max(0px, calc(var(--controls-right) + var(--controls-span) - (100vw - var(--photo-width)) / 2)) 0 0; }
  .viewer .count { top: var(--controls-top); left: auto; right: calc(var(--controls-right) + 2 * (var(--button) + var(--gap))); line-height: var(--button); }
  .viewer .prev-photo, .viewer .next-photo { display: grid; top: var(--controls-top); left: auto; transform: none; }
  .viewer .next-photo { right: var(--controls-right); }
  .viewer .prev-photo { right: calc(var(--controls-right) + var(--button) + var(--gap)); }
  .viewer .prev-photo:active, .viewer .next-photo:active { transform: scale(.92); }
}
/* Zoomed in, the photo has the screen to itself */
.viewer.zoomed .count, .viewer.zoomed figcaption, .viewer.zoomed .prev-photo, .viewer.zoomed .next-photo { opacity: 0; pointer-events: none; }
/* A phone turned sideways: the photo fills the screen's height, with only its × */
@media (orientation: landscape) and (max-height: 540px) {
  .viewer .slide { padding: 0; }
  .viewer .slide img, .viewer .slide video { max-height: 100vh; max-height: 100dvh; }
  .viewer .count, .viewer figcaption, .viewer .prev-photo, .viewer .next-photo { display: none; }
  .viewer .close-photo { top: 12px; right: calc(12px + env(safe-area-inset-right)); background: var(--night-veil); border-color: var(--shine-soft); }
}
@media (prefers-reduced-motion: reduce) { .viewer { animation: none; } }

/* Earlier work's photos one wide, two side by side, one wide wherever the page is wider
   than a phone, so the card beside the team list shows them as the card over the map
   does (Zach, Oct 31); a project's photos pair up there too (decision 32) */
@container project (min-width: 640px) {
  .project .plates { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .project .plate { margin: 0; }
  .project.prior .plate:nth-child(3n+1) { grid-column: 1 / -1; }
  .project.prior .plate img, .project.prior .plate .to-come { aspect-ratio: 4 / 3; object-fit: cover; }
  .project.prior .plate:nth-child(3n+1) img, .project.prior .plate:nth-child(3n+1) .to-come { aspect-ratio: 2 / 1; }
  /* A photo left alone at the end runs the full width rather than half, beside nothing */
  .project.prior .plate:nth-child(3n+2):last-child { grid-column: 1 / -1; }
  .project.prior .plate:nth-child(3n+2):last-child img, .project.prior .plate:nth-child(3n+2):last-child .to-come { aspect-ratio: 2 / 1; }
  .plate.across img, .plate.across .to-come { aspect-ratio: 2 / 1; object-fit: cover; }
  .plate.tall figcaption, .plate.beside figcaption, .plate.pair figcaption { font-size: 15px; }
}
/* A project's page on a desk (Zach, Oct 30; C2 with C3's top in
   docs/mockups/project-desktop-c-options.png): the hero the full width with the words
   centered over its fade, the facts in one row, the story beside the problem it solved,
   and the photos one wide, two side by side, one wide. Keyed to the page's own width, so
   the pop-up over the map keeps the phone's single column */
:is(main, .o-page):has(> .project) { max-width: none; }
.project { container: project / inline-size; }
@container project (min-width: 1000px) {
  :is(.project, .person) .lead.over { padding-top: 420px; }
  :is(.project, .person) .lead.over::after { top: 420px; }
  .project .lead > .head, .project .lead > .summary { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
  .project .lead > .join { text-align: center; }
  .project .lead > .head h1 { font-size: 66px; }
  .project .lead > .summary { font-size: 22px; }
  .project .facts-table { max-width: 1200px; margin: 44px auto 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .project .facts-table > div:last-child:nth-child(odd) { grid-column: auto; }
  /* One row each on a desk, however many: the facts with who led it widest, then the figures */
  .project .facts-table { display: flex; }
  .project .facts-table > div { flex: 1 1 0; min-width: 0; }
  .project .facts-table > div.led { flex: 1.6 1 0; }
  .project .facts-figures { display: flex; max-width: 1200px; margin: 0 auto; }
  .project .facts-figures > div { flex: 1 1 0; min-width: 0; padding: 16px 12px; }
  .project .facts-figures dd { font-size: 24px; }
  .project .words { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1200px; margin: 64px auto 0; }
  .project .words > * { margin: 0; }
  .project .words > :only-child { grid-column: 1 / -1; max-width: 760px; justify-self: center; }
  .project .story { font-size: 22px; line-height: 1.45; }
  .project .plates { gap: 40px 28px; max-width: 1200px; margin: 64px auto 0; }
  .project .ai-photos { max-width: 1200px; margin: 28px auto 0; }
  .project .related, .project .next { max-width: 1200px; margin: 48px auto 0; }
  .project .closing-card { max-width: 1200px; margin: 48px auto 0; }
}
.project .next { display: block; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--serif);
                 font-size: 21px; text-decoration: none; }
.project .next::after { content: "\00a0\2192"; }
/* The Learn posts its record relates, under Read more (search audit, Nov 15, item 11) */
.project .related { margin-top: 36px; }
.project .related h2 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: var(--heading); }
.project .related ul { list-style: none; margin: 0; padding: 0; }
.project .related a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line);
                      font-size: 17px; line-height: 1.3; color: var(--ink); text-decoration: none; transition: color .2s; }
@media (hover: hover) { .project .related a:hover { color: var(--harvest); } }
/* A master plan's buildings, each a card to its own page (Zach, Nov 3). One picture
   each, so the whole card is the link to its page */
.project .in-plan { margin-top: 40px; }
.project .in-plan h2 { font-family: var(--serif); font-weight: 400; font-size: var(--heading); margin: 0 0 12px; }
.project .in-plan .cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.project .in-plan .slides { z-index: 0; overflow: hidden; pointer-events: none; }
.project .in-plan .wcard .in { position: static; }
@container project (min-width: 640px) { .project .in-plan .cards { grid-template-columns: 1fr 1fr; } }
@container project (min-width: 1000px) {
  .project .in-plan { max-width: 1200px; margin: 64px auto 0; }
  .project .in-plan .cards { grid-template-columns: repeat(3, 1fr); }
  /* Two buildings share the row, so none of it stands empty (UI_STANDARDS 17) */
  .project .in-plan .cards:has(> :last-child:nth-child(2)) { grid-template-columns: 1fr 1fr; }
}

/* The team (BRIEF.md decision 14): portraits first, then each person's work */
.portrait { position: relative; overflow: hidden; background: var(--portrait); border-radius: 14px; aspect-ratio: 4 / 5; }
/* A cropped portrait keeps its upper part, where a face sits, so a circle never cuts off a
   head (Zach, Nov 2); a record's :portrait-focus moves it for a photo that differs */
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* Until the shoot: a plain head and shoulders, never a made-up face */
/* The map's stylesheet has an .empty of its own (the cards' "nothing shown"): a portrait
   stand-in, on a page with the map, never takes its padding (Zach, Nov 3) */
.portrait.empty { padding: 0; }
.portrait.empty::before { content: ""; position: absolute; left: 50%; bottom: -14%; width: 70%; aspect-ratio: 1.2;
                          transform: translateX(-50%); border-radius: 50% 50% 0 0; background: var(--portrait-2); }
.portrait.empty::after { content: ""; position: absolute; left: 50%; top: 22%; width: 34%; aspect-ratio: 1;
                         transform: translateX(-50%); border-radius: 50%; background: var(--portrait-2); }
/* The way on to the next person, so a person's page is never a dead end (Zach, Oct 30) */
.next-person { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding: 14px 18px 14px 14px; border: 1px solid var(--line);
               border-radius: 16px; background: var(--paper-2); text-decoration: none; color: var(--ink); }
.next-person .portrait { flex: none; width: 64px; max-width: none; margin: 0; border-radius: 50%; aspect-ratio: 1; }
.next-person .who { flex: 1; display: grid; }
.next-person .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.next-person .name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.next-person .role { font-size: var(--small); color: var(--ink-2); }
.next-person::after { content: "\2192"; font-size: 22px; color: var(--ink-2); }
.creds { margin-top: 6px; font-size: var(--small); color: var(--ink-2); }
.land-map { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px;
            background: var(--paper-2); color: var(--ink); text-decoration: none; }
.land-map svg { display: block; width: 100%; height: auto; }
.land-map .dot { fill: var(--ink); opacity: .32; }
.land-map .mark circle { fill: var(--paper-2); stroke: var(--harvest); stroke-width: 1.1; }
.land-map .mark text { font: 500 5.4px var(--sans); fill: var(--harvest); }
.land-map .mark.prior circle { stroke: var(--slate); stroke-dasharray: 2 1.5; }
.land-map .mark.prior text { fill: var(--slate); }
.land-map .open { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border: 1px solid var(--line);
                  border-radius: 999px; background: var(--glass); font-size: var(--small); }
.land-map .open::after { content: "\00a0\2192"; }
/* The person's map over the still one (Zach chose B, Oct 30): it turns on its own and a
   tap on a building brings its card into view; the page scrolls over it */
.aerial { position: relative; }
.aerial canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border-radius: 14px; opacity: 0; transition: opacity .5s; }
.aerial.live canvas { opacity: 1; }
.aerial .land-map .open { z-index: 3; }
.aerial .apins { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: 14px; pointer-events: none; }
/* Each piece of work wears the main map's name tag (Zach, Nov 18: names, not only
   numbers): "No." and its number, then its name, on a stem down to its building */
.apin { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; white-space: nowrap;
        color: var(--ink); text-decoration: none; pointer-events: auto; transition: opacity .2s; }
.apin .tag { display: flex; align-items: baseline; gap: 8px; padding: 5px 11px; border-radius: 999px; background: var(--glass);
             border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
             box-shadow: 0 3px 10px var(--shadow); transition: border-color .2s, padding .2s; position: relative; }
.apin .no { display: flex; gap: .3em; font-size: 12px; color: var(--harvest); font-variant-numeric: tabular-nums; }
.apin .nm { font-family: var(--serif); font-size: 15px; }
.apin .stem { width: 1px; height: 16px; background: var(--harvest); }
.apin.prior .tag { border-style: dashed; border-color: var(--slate); }
.apin.prior .no { color: var(--slate); }
.apin.prior .stem { background: var(--slate); }
/* Earlier work's tag says so in words; its "E" shows only in its circle */
.apin.prior .num { display: none; }
/* A tag whose name would run past the map's side folds to its number in a circle, as
   the main map's do at its edges (Zach, Oct 29) */
.apin.circle .tag { width: 32px; height: 32px; padding: 0; justify-content: center; align-items: center; border-radius: 50%;
                    border-width: 1.5px; border-color: var(--harvest); }
.apin.prior.circle .tag { border-color: var(--slate); }
.apin.circle :is(.pre, .nm) { display: none; }
.apin.circle .num { display: block; line-height: 1; }
/* Small controls reach 44px to a finger beyond their drawn edge (UI_STANDARDS 9) */
.wfilters .chip::after, .wcard .arr::after, .row .arr::after { content: ""; position: absolute; inset: -4px; }
/* A tag's touch, and its 32px circle's, reaches 44px each way (UI_STANDARDS 9) */
.apin .tag::before { content: ""; position: absolute; inset: -7px; }
/* The team page, over the map (Zach chose C on a phone and A on a desk, Oct 30): the
   land turns on its own behind and shows only the work of the person in focus */
.team-map .intro, .team-map .legend, .team-map #dock, .team-map #finder, .team-map #panel, .team-map #notes { display: none !important; }
.team-map #labels, .team-map #labels .pin { pointer-events: none !important; }
.team-over { position: fixed; left: 10px; right: 10px; bottom: 10px; top: 52vh; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
             padding: 0 16px 16px; border-radius: 22px; background: var(--frost-panel); border: 1px solid var(--glass-edge);
             box-shadow: inset 0 1px 0 var(--shine), 0 10px 30px var(--shadow-soft);
             -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
             scrollbar-width: none; transition: top .3s cubic-bezier(.2, .7, .15, 1); }
.team-over::-webkit-scrollbar, .team-over .people::-webkit-scrollbar { display: none; }
.team-over.up { top: calc(84px + env(safe-area-inset-top)); }
.team-over .grab-bar { position: relative; display: block; width: 100%; height: 26px; border: 0; padding: 0; background: none; cursor: grab; }
.team-over .grab-bar::before { content: ""; display: block; width: 44px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--ink-faint); }
/* A finger's 44px on the bar, which shows 26 (UI_STANDARDS 9; the nightly check, Nov 19) */
.team-over .grab-bar::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.team-over h1 { margin: 0 0 12px; font-size: 30px; }
.team-over .people { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
@media not ((min-width: 900px) and (hover: hover)) {
  /* A phone: a sheet in two stages that follows the finger as the map's does; its bar and
     title stay put and the team scrolls under them (Zach, Oct 30) */
  .team-over { top: var(--rest, 52vh); overflow: hidden; padding: 0; transition: top .45s cubic-bezier(.2, .7, .15, 1); }
  .team-over.dragging { transition: none; }
  .team-over .grab-bar, .team-over h1 { position: absolute; left: 0; right: 0; touch-action: none; cursor: grab; }
  .team-over .grab-bar { top: 0; z-index: 3; }
  .team-over h1 { top: 0; z-index: 2; margin: 0; padding: 24px 16px 10px; border-radius: 22px 22px 0 0;
                  background: var(--frost-strong); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); }
  .team-over .people { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
                       padding: 82px 16px 18px; align-content: start; }
  /* At rest the list doesn't scroll: a swipe on it raises the sheet first (site.js) */
  .team-over:not(.up) .people { overflow-y: hidden; touch-action: none; }
  /* Raised, it stays up, so the bar goes (Zach, Nov 3); at rest its bar pulls it down to
     let it go, one or two people or more (Zach, Nov 18) */
  .team-over.up .grab-bar { display: none; }
  .team-over.few .people { overflow-y: auto; touch-action: pan-y; }
}
.member { display: grid; gap: 1px; align-content: start; text-decoration: none; }
.member .portrait { margin-bottom: 8px; border-radius: 12px; }
.member.on .portrait { outline: 2px solid var(--harvest); outline-offset: 3px; }
.member .name { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.member .role { font-size: 13px; color: var(--ink-2); }
.member .count { font-size: 13px; color: var(--harvest); }
@media (min-width: 900px) and (hover: hover) {
  /* A desk: the team in a glass column on the left; a person opens beside it. The column
     scrolls, so it reaches 24px past its cards on every side to keep their outline and
     shadow whole (Zach, Oct 30) */
  .team-over { left: 4px; right: auto; top: 72px; bottom: 0; width: 408px; padding: 24px; overflow-y: auto;
               background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .team-over .grab-bar { display: none; }
  .team-over h1, .member { background: var(--glass-thin); border: 1px solid var(--glass-edge); border-radius: 18px;
                           box-shadow: inset 0 1px 0 var(--shine), 0 8px 24px var(--ink-wash);
                           -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); }
  .team-over h1 { font-size: 42px; padding: 10px 18px; margin-bottom: 12px; }
  .team-over .people { --between: 12px; grid-template-columns: 1fr; gap: var(--between); }
  /* Each person's hover reaches halfway into the gap on either side, so a mouse gliding
     down the list is always over someone (Zach, Oct 31). Measured from inside the 1px
     border */
  .member { position: relative; }
  .member::before { content: ""; position: absolute; inset: calc(-1px - var(--between) / 2) -1px; }
  .member { grid-template-columns: 76px 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; padding: 12px; opacity: .72; transition: opacity .2s; }
  .member .portrait { grid-row: 1 / 4; margin: 0; }
  .member .name { font-size: 22px; align-self: end; }
  .member.on { opacity: 1; outline: 1.5px solid var(--harvest); }
  .member.on .portrait { outline: none; }
  /* The person beside the list, and their outline while the team page comes */
  .team-map .ppop, .o-beside { left: 412px; right: 28px; top: 96px; bottom: 24px; }
  .team-map .ppop { width: auto; height: auto; max-height: none; transform: none;
                    animation: ppop-side .25s cubic-bezier(.2, .7, .15, 1); }
  /* The scrim only catches the click that closes the person: no tint, so the land reads as
     one ground behind the team and the person alike (Zach, Oct 30) */
  .team-map .ppop-scrim { left: 412px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
  .team-map .ppop article > .back { display: none; }
  /* The list beside it already leads to the next person (Zach, Oct 31) */
  .team-map .ppop .next-person { display: none; }
}
@keyframes ppop-side { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .team-map .ppop { animation: none; } .team-over { transition: none; } }

.statement { color: var(--ink-2); margin-bottom: 24px; }

/* A person's page (Zach chose B, Oct 30; docs/mockups/person-card-options-3.png): their
   map as the hero with their name over its fade, the bio folded to two lines, a bar of
   tiles and Filters that stays at the top, and their work as cards led by photos */
:is(main, .o-page):has(> .person) { max-width: 1296px; margin: 0 auto; }
/* Their work bar sticks under the way back, which stays above it (Zach, Nov 14) */
.person { container: person / inline-size; --stick: calc(var(--back-top) + var(--back-lift) + var(--back-h) + var(--back-gap)); }
.person .hero.aerial.live { touch-action: none; cursor: grab; }
.person .hero.aerial.dragging { cursor: grabbing; }
/* Until their map draws (a refresh, a slow phone), a picture of the land fills it,
   scaled to cover it, not the small dot drawing blown up (Zach, Nov 18) */
.person .hero.aerial .land-map { position: absolute; inset: 0; border: 0; border-radius: 0;
                                 background: var(--paper) url(/img/land-still.webp) center / cover no-repeat; }
.person .hero.aerial .land-map svg { display: none; }
/* Where it can't draw (no 3D, no script), the dot drawing stays, marking their work */
.person .hero.aerial.no-3d .land-map { background: none; }
.person .hero.aerial.no-3d .land-map svg { display: block; }
@media (scripting: none) {
  .person .hero.aerial .land-map { background: none; }
  .person .hero.aerial .land-map svg { display: block; }
}
.person .hero.aerial .land-map .open { display: none; }
/* The hero runs to the window's edges, past the page's width */
body:has(.person) { overflow-x: clip; }
:is(main, .o-page) > .person .lead .hero { left: calc(50% - 50vw); right: calc(50% - 50vw); }
.person .hero.aerial canvas, .person .hero.aerial .apins { border-radius: 0; }
.person .head { display: flex; gap: 16px; align-items: flex-end; }
.person .head .portrait { flex: none; width: 88px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--paper); }
.person .head h1 { margin: 2px 0; font-size: clamp(34px, 7vw, 52px); }
.person .head .role { font-size: 15px; }
.person .head .creds { margin-top: 2px; }
.person .bio { margin-top: 16px; max-width: 760px; }
/* A person's bio reads as body text: the sans, light, under their numbers (Zach chose B,
   Nov 3; docs/mockups/resume-sheet/body-text/) */
.person .bio p, .resume .rs-bio { font-family: var(--sans); font-weight: 300; font-size: 16.5px; line-height: 1.55; }
/* Folded from the start where the script runs, so nothing jumps when it does (UI_STANDARDS 18) */
@media (scripting: enabled) {
  .person .bio p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.person .bio .more { border: 0; background: none; padding: 12px 0; font: inherit; font-size: var(--small); color: var(--ink);
                     text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Their name, portrait and numbers open their résumé too (BRIEF.md decision 36) */
.person .head h1 .rs-open { position: relative; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
/* A finger's 44px on the name, which is 36 tall on a phone (UI_STANDARDS 9; the nightly check, Nov 19) */
.person .head h1 .rs-open::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }
.person .lead .head .portrait, .person > .experience, .person .bio:has(.more:not([hidden])) p { cursor: pointer; }
.person .head h1 .rs-open:active, .person .lead .head .portrait:active, .person > .experience:active,
.person .bio:has(.more:not([hidden])) p:active { opacity: .6; }
@media (hover: hover) {
  .person .head h1 .rs-open:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
  .person .lead .head .portrait:hover { box-shadow: 0 0 0 3px var(--harvest-soft); }
  .person > .experience:hover .figures b { color: var(--harvest); }
  .person .bio .more:hover, .person .bio:has(p:hover) .more:not([hidden]) { color: var(--harvest); }
  :is(.resume, .all-sheet) .close:hover { background: var(--ink-faint); color: var(--ink); }
  .resume .rs-card:hover { border-color: var(--harvest); }
  .resume .rs-row a:hover { color: var(--harvest); }
}
/* Without the script nothing raises the résumé, so nothing offers to */
@media (scripting: none) { .person .rs-open.more { display: none; } .person .lead .head .portrait, .person > .experience { cursor: auto; } }

/* A person's résumé, a sheet over their page (BRIEF.md decision 36; docs/mockups/resume-sheet/):
   from the bottom on a phone, a card in the middle on a desk. js/person.js raises it, and
   the ×, a tap on the dimmed page, Escape or a drag down on its top lets it go */
:is(.resume, .all-sheet)[hidden], .resume-dim[hidden] { display: none; }
.resume-dim { position: fixed; inset: 0; z-index: 80; background: var(--dim); animation: dim-in .2s ease-out; }
.resume-dim.closing { animation: dim-out .2s ease-in forwards; }
:is(.resume, .all-sheet) { position: fixed; z-index: 81; left: 8px; right: 8px; top: calc(56px + env(safe-area-inset-top)); bottom: calc(8px + env(safe-area-inset-bottom));
          display: flex; flex-direction: column; border-radius: 28px; background: var(--paper-2); color: var(--ink);
          border: 1px solid var(--glass-edge); box-shadow: var(--sheet-shadow); overflow: hidden;
          transition: transform .2s ease-out; animation: sheet-in .26s cubic-bezier(.2, .8, .2, 1); }
:is(.resume, .all-sheet).closing { animation: sheet-out .2s ease-in forwards; }
:is(.resume, .all-sheet) .rs-top { position: relative; flex: none; height: 60px; touch-action: none; cursor: grab; }
:is(.resume, .all-sheet) .grab { position: absolute; left: 50%; top: 10px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--ink-faint); }
:is(.resume, .all-sheet) .close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
                 background: var(--ink-wash); color: var(--ink-2); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
:is(.resume, .all-sheet) .close:active { transform: scale(.96); }
:is(.resume, .all-sheet) .rs-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 28px; scrollbar-width: none; }
:is(.resume, .all-sheet) .rs-body::-webkit-scrollbar { display: none; }
.resume .rs-head { display: flex; gap: 14px; align-items: center; }
.resume .rs-head .portrait { flex: none; width: 64px; aspect-ratio: 1; border-radius: 50%; }
.resume .rs-head h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0; }
.resume .rs-head p { margin: 3px 0 0; font-size: 15px; color: var(--ink-2); }
.resume .talk { display: flex; justify-content: center; margin: 16px 0 4px; }
.resume h3 { font-family: var(--sans); font-weight: 400; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
             color: var(--harvest); margin: 26px 0 10px; }
.resume .rs-bio { margin: 0; }
.resume .experience { margin: 0 0 14px; }
.resume .rs-job { position: relative; padding: 0 0 16px 20px; margin-left: 5px; border-left: 1.5px solid var(--harvest-line); }
.resume .rs-job:last-of-type { padding-bottom: 2px; border-left-color: transparent; }
.resume .rs-job::before { content: ""; position: absolute; left: -6px; top: 4px; width: 9px; height: 9px; border-radius: 50%;
                          background: var(--paper-2); border: 1.5px solid var(--harvest); }
.resume .rs-job.now::before { background: var(--harvest); }
.resume .rs-job p { margin: 0; }
.resume .rs-job .when { font-size: 13px; color: var(--ink-2); }
.resume .rs-job .firm { font-family: var(--serif); font-size: 18px; margin-top: 1px; }
.resume .rs-job .title { font-size: 15px; margin-top: 1px; }
.resume .rs-job .did { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; }
.resume .rs-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.resume .rs-row:last-child { border-bottom: 0; }
.resume .rs-row b { display: block; font-weight: 400; }
.resume .rs-row small { font-size: 13.5px; color: var(--ink-2); }
.resume .rs-row > span:last-child:not(:first-child) { color: var(--ink-2); white-space: nowrap; }
.resume .rs-row a { color: inherit; }
/* The states they're licensed in: a row of two-letter pills that swipes sideways however
   many there are (Zach, Nov 3) */
.resume .rs-states { align-items: center; }
.resume .rs-states b { flex: none; }
.resume .rs-pills { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.resume .rs-pills::-webkit-scrollbar { display: none; }
.resume .rs-pills .pill { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--harvest-line);
                          color: var(--ink); font-size: 13.5px; letter-spacing: .06em; }
.resume .rs-pills .pill small { margin-left: 5px; font-size: 11.5px; letter-spacing: 0; color: var(--ink-2); }
/* The state's name and year, for a screen reader only */
.resume .rs-pills .pill .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A talk or writing elsewhere opens in a new tab, marked as leaving */
.resume .rs-row a.away::after { content: " \2197"; color: var(--harvest); }
/* Their own podcast and writing, two cards to a row, the rest a swipe away (Zach chose A, Nov 3) */
.resume .rs-cards { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 5px); gap: 10px;
                    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.resume .rs-cards::-webkit-scrollbar { display: none; }
.resume .rs-card { scroll-snap-align: start; display: flex; flex-direction: column; padding: 14px 14px 16px; border-radius: 16px;
                   background: var(--harvest-soft); border: 1px solid var(--harvest-line); color: var(--ink); text-decoration: none;
                   transition: transform .12s ease-out, border-color .2s; }
.resume .rs-card:active { transform: scale(.98); }
.resume .rs-card .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--harvest); color: var(--paper-2);
                       display: grid; place-items: center; margin-bottom: 10px; }
.resume .rs-card b { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.15; }
.resume .rs-card .about { margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.resume .rs-card em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: 14px; color: var(--harvest); }
.resume .rs-card em::after { content: " \2192"; }
.resume .rs-lane { position: relative; }
.resume .rs-lane > button { display: none; }
/* A row's arrows, Learn's rows and a person's podcast and writing cards alike (js/site.js
   rowArrows): small and see through, each hidden until the script finds cards past it, so
   they never flash (UI_STANDARDS 18), with a reach of 48 px around the 36 px circle
   (UI_STANDARDS 9). Each page says where they sit and when they show at all. With a mouse
   the row scrolls freely, without snapping (UI_STANDARDS 7). Each fades and grows in as
   cards come to lie past it and fades out at the row's end, rather than popping (Zach,
   Nov 19). Going, it stays visible to the end of its fade out, already disabled by the
   script, so a click there passes to the card under it */
/* How far a row fades into each end that cuts it off, eased in and out with its arrow
   (Zach, Nov 19): registered as lengths so they can move */
@property --fade-before { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-after { syntax: "<length>"; inherits: false; initial-value: 0px; }
@media (hover: hover) {
  .row-arrows > button { place-items: center; position: absolute; z-index: 2; width: 36px; height: 36px; padding: 0;
                         border-radius: 50%; visibility: hidden; cursor: pointer; font-size: 18px; line-height: 1;
                         color: var(--ink); background: var(--glass-thin); border: 1px solid var(--glass-edge);
                         box-shadow: 0 2px 8px var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
                         opacity: 0; transform: scale(.8);
                         transition: opacity var(--arrow-fade) ease, transform var(--arrow-fade) cubic-bezier(.2, .7, .15, 1),
                                     visibility 0s linear var(--arrow-fade), background .2s; }
  .row-arrows { --arrow-fade: .24s; }
  /* A track that fades into its cut-off ends takes this as its mask */
  .row-arrows > * { --row-fade: linear-gradient(90deg, transparent, #000 var(--fade-before), #000 calc(100% - var(--fade-after)), transparent);
                    transition: --fade-before var(--arrow-fade) ease, --fade-after var(--arrow-fade) ease; }
  .row-arrows > button::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
  .row-arrows.before > .prev, .row-arrows.after > .next { visibility: visible; opacity: 1; transform: none;
                                                         transition-delay: 0s; }
  .row-arrows > button:disabled { pointer-events: none; }
  .row-arrows > button:not(:disabled):hover { background: var(--glass-strong); }
  .resume .rs-lane > button { display: grid; top: calc(50% - 18px); }
  .resume .rs-lane > .prev { left: -12px; }
  .resume .rs-lane > .next { right: -12px; }
  .resume .rs-cards { scroll-snap-type: none; }
}
.resume .rs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.resume .rs-tags span { padding: 7px 12px; border-radius: 999px; background: var(--harvest-soft); font-size: 14px; }
@media (min-width: 900px) and (hover: hover) {
  :is(.resume, .all-sheet) { left: 50%; right: auto; top: 60px; bottom: 40px; width: 680px; margin-left: -340px; animation: rs-in .22s cubic-bezier(.2, .7, .15, 1); }
  :is(.resume, .all-sheet).closing { animation: rs-out .18s ease-in forwards; }
  :is(.resume, .all-sheet) .rs-top { cursor: auto; }
  :is(.resume, .all-sheet) .grab { display: none; }
  :is(.resume, .all-sheet) .rs-body { padding: 0 40px 36px; }
  /* A sheet of project cards is wide enough for three across */
  .all-sheet.of-cards { width: min(1080px, calc(100vw - 80px)); margin-left: calc(min(1080px, calc(100vw - 80px)) / -2); }
  .all-sheet.of-cards .cards { grid-template-columns: repeat(3, 1fr); }
}
@keyframes rs-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes rs-out { to { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  .row-arrows > *, .row-arrows > button { transition: none; }
  :is(.resume, .all-sheet), :is(.resume, .all-sheet).closing, .resume-dim, .resume-dim.closing { animation: none; }
  :is(.resume, .all-sheet) { transition: none; }
}
/* The team's experience: three figures between thin rules, four once there are acres, a
   person's under their bio and the team's totals opening the people (Zach chose A, Oct 31;
   BRIEF.md decisions 24 and 25). Each figure is centered in its cell, a tenth smaller than
   the first build, its label's two lines set close (Zach chose B with the labels closer,
   Nov 1; docs/mockups/experience-figures/b-tight-team.png). The figures shrink a little on
   the smallest phones so four fit whole at 320 wide. */
.experience .figures { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.experience .figures p { flex: 1; min-width: 0; display: grid; justify-items: center; row-gap: 2px; text-align: center;
                         padding: 12px 4px 10px; }
.experience .figures p + p { border-left: 1px solid var(--line); }
.experience b { font-family: var(--serif); font-weight: 400; font-size: clamp(21.6px, 6.75vw, 27px); line-height: 1.1; color: var(--ink); }
.experience .figures p > span { font-size: 13px; line-height: 1.15; color: var(--ink-2); }
.experience .note { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.person .experience { position: relative; z-index: 2; margin-top: 18px; max-width: 520px; }
.team-over .experience { grid-column: 1 / -1; }
@media (min-width: 900px) and (hover: hover) {
  .team-over .experience { padding: 4px 18px 12px; background: var(--glass-thin); border: 1px solid var(--glass-edge); border-radius: 18px;
                           box-shadow: inset 0 1px 0 var(--shine), 0 8px 24px var(--ink-wash);
                           -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); }
  .team-over .experience .figures { border: 0; }
  .team-over .experience b { font-size: 23.5px; }
  .team-over .experience .note { margin-top: 0; }
}
.worknav { position: sticky; top: var(--stick); z-index: 5; display: flex; align-items: center; gap: 12px; margin: 20px 0 8px;
           padding: 10px 12px; border-radius: 18px; background: var(--glass-thin); border: 1px solid var(--glass-edge);
           box-shadow: inset 0 1px 0 var(--shine), 0 8px 24px var(--shadow-soft);
           -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); }
.worknav .strip { position: relative; flex: 1; min-width: 0; display: flex; }
.worknav .tiles { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.worknav .strip > button { display: none; }
.worknav .tiles::-webkit-scrollbar { display: none; }
/* Wider than a phone the bar holds to the left, as wide as up to five tiles, the count and
   Filters, rather than running across the page (Zach, Oct 30); more tiles scroll inside it.
   A phone keeps the full width, so the bar doesn't change size as the count does. On a desk
   the tiles are big enough to tell the work apart (Zach, Nov 18) */
@media (min-width: 600px) {
  .worknav { width: fit-content; max-width: 100%; box-sizing: border-box; }
  .worknav .strip { flex: 0 1 auto; }
  .worknav .tiles { flex: 0 1 auto; max-width: calc(5 * var(--tile-w) + 4 * 8px + 4px + 13px); }  /* five tiles, and the line between kinds */
}
.worknav { --tile-w: 104px; --fade: 56px; }
.tile { flex: none; display: block; width: var(--tile-w); height: 74px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: var(--icon-paper); }
.tile.prior { border-style: dashed; border-color: var(--slate-line); }
.tile img, .tile .drawn { display: block; width: 100%; height: 100%; object-fit: cover; }
.drawn { background: var(--icon-paper) center / cover no-repeat; }
.worknav .count { font-size: var(--small); color: var(--ink-2); white-space: nowrap; }
/* A line between their work here and their earlier work, while both show (Zach, Oct 31) */
.worknav .split { display: none; flex: none; align-self: stretch; width: 1px; margin: 2px; background: var(--line); }
.worknav .tile:not(.prior):not([hidden]) ~ .split:has(~ .tile.prior:not([hidden])) { display: block; }
/* On a phone the tiles take the whole bar and grow, and each section's heading carries
   its count in the bar's place (Zach chose C, Oct 31; docs/mockups/work-bar-count-options.png) */
.works h2 .n, .writing h2 .n, .books h2 .n { display: none; }
@container person (max-width: 639px) {
  .worknav { width: 100%; gap: 8px; padding: 8px 8px 8px 10px; }
  .worknav .strip, .worknav .tiles { flex: 1 1 auto; max-width: none; }
  .worknav .tile { width: 76px; height: 54px; border-radius: 10px; }
  .worknav .count { display: none; }
  /* The badge follows the heading's last word, even when the heading wraps */
  :is(.works, .writing, .books) h2 .n { display: inline-flex; vertical-align: middle; margin-left: 4px; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px;
                 box-sizing: border-box; border-radius: 999px; border: 1px solid var(--line);
                 font-family: var(--sans); font-size: var(--small); color: var(--ink-2); }
  .works.earlier h2 .n { border-style: dashed; border-color: var(--slate-line); color: var(--slate); }
}
.worknav .fbutton { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14' fill='none' stroke='%231f2b28' stroke-width='1.4'%3E%3Cpath d='M1 3h9M13 3h2M1 11h3M7 11h8'/%3E%3Ccircle cx='11.5' cy='3' r='1.6'/%3E%3Ccircle cx='5.5' cy='11' r='1.6'/%3E%3C/svg%3E") center / 18px no-repeat; }
.worknav .fbutton.on { border-color: var(--harvest); box-shadow: 0 0 0 3px var(--harvest-soft); }
@media (hover: hover) {
  /* A person's work tiles: an arrow over each end, the tiles fading into an end that cuts
     them off (Zach, Nov 18) */
  .worknav .strip > button { display: grid; top: calc(50% - 18px); }
  .worknav .strip > .prev { left: 4px; }
  .worknav .strip > .next { right: 4px; }
  .worknav .strip .tiles { -webkit-mask-image: var(--row-fade); mask-image: var(--row-fade); }
  .worknav .strip.before .tiles { --fade-before: var(--fade); }
  .worknav .strip.after .tiles { --fade-after: var(--fade); }
}
/* Under the Filters button, but never off the bar's left when the bar is short */
.wfilters { position: absolute; left: max(0px, calc(100% - 8px - min(320px, calc(100vw - 32px)))); top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); padding: 14px 16px 16px;
            border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); box-shadow: 0 14px 34px var(--shadow); }
.wfilters[hidden] { display: none; }
.wfilters .lbl { font-size: 13px; color: var(--ink-2); margin: 6px 0 6px; }
.wfilters .chip { position: relative; display: inline-flex; align-items: center; height: 36px; margin: 0 6px 6px 0; padding: 0 14px; border-radius: 999px;
                  border: 1px solid var(--line); background: transparent; font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; cursor: pointer; }
.wfilters .chip.on { border-color: var(--harvest); color: var(--harvest); background: var(--harvest-soft); }
.wfilters .chip.map { margin-top: 8px; }
.works { margin-top: 32px; }
:is(.works, .writing, .books) h2 { font-family: var(--serif); font-weight: 400; font-size: var(--heading); margin: 0 0 12px; }
/* The posts they wrote (BRIEF.md decision 52), a plain list under its heading */
.writing { margin-top: 32px; }
.writing ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.writing li a { display: flex; flex-direction: column; gap: 3px; min-height: 44px; padding: 12px 0; border-bottom: 1px solid var(--line);
                color: inherit; text-decoration: none; transition: transform .12s ease-out; }
/* It presses in like a card: on a touch screen after the wait (site.css, last), or at lift */
.writing li a:active { transform: scale(.98); }
.writing .q { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.writing .when { font-size: 13px; color: var(--ink-2); }
@media (hover: hover) { .writing li a:hover .q { color: var(--harvest); } }
/* Their publications (BRIEF.md decision 54; docs/mockups/portfolio-book/entry-a.png): a
   row of book covers, each its first page with a spine and a shadow, its name, what it
   is and its pages under it, each the shape of its own pages. A row wider than the page
   swipes sideways */
.books { margin-top: 32px; }
.books .shelf { display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 6px;
                scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); }
.books .shelf::-webkit-scrollbar { display: none; }
:is(.books, .rs-books) .book { flex: none; width: 168px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
               cursor: pointer; scroll-snap-align: start; transition: transform .12s ease-out; }
:is(.books, .rs-books) .book:active { transform: scale(.97); }
:is(.books, .rs-books) .cover { position: relative; display: block; aspect-ratio: var(--cover-ratio); border-radius: 2px 4px 4px 2px; overflow: hidden; background: var(--card-paper);
                box-shadow: 0 14px 28px var(--shadow), 0 2px 5px var(--shadow); transition: transform .2s ease-out; }
:is(.books, .rs-books) .cover::before, .reader .r-end .r-next-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; z-index: 1;
                        background: linear-gradient(90deg, var(--spine-dark), var(--spine-light) 45%, var(--spine-soft)); }
:is(.books, .rs-books) .cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
:is(.books, .rs-books) .name { display: block; margin-top: 14px; font-family: var(--serif); font-size: 18px; line-height: 1.25; }
:is(.books, .rs-books) .about, :is(.books, .rs-books) .pages { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
/* Every name and what-it-is takes two lines, a longer one ending in an ellipsis, so the
   covers' words line up across the row (Zach, Nov 18) */
:is(.books, .rs-books) :is(.name, .about) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
                                            height: calc(2lh); }
@media (hover: hover) { :is(.books, .rs-books) .book:hover .cover { transform: translateY(-3px); } :is(.books, .rs-books) .book:hover .name { color: var(--harvest); } }
/* In their résumé, smaller, after their own podcast and writing (Zach chose, Nov 18) */
.rs-books { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; }
.rs-books::-webkit-scrollbar { display: none; }
.rs-books .book { width: 118px; }
.rs-books .name { margin-top: 10px; font-size: 16px; }
/* The résumé's narrower covers give their names three lines, so a name shows whole */
.rs-books .name { -webkit-line-clamp: 3; line-clamp: 3; height: calc(3lh); }
.rs-books .about { display: none; }

/* A book open full screen (decision 54): on solid dark, as a photo opens, the pages as big
   as the screen allows; under the book its name at its left edge and its count, page
   strip and arrows at its right; the × at the screen's top right. A phone held upright
   shows one page under its count and ×; turned sideways, the spread alone with its ×.
   js/book.js sizes and places the book, the band and the line under the book */
html.reading { overflow: hidden; }
.reader { position: fixed; inset: 0; z-index: 9000; overflow: hidden; background: var(--night-solid); color: var(--paper);
          box-shadow: 0 0 0 150vmax var(--night-solid); touch-action: none; -webkit-user-select: none; user-select: none;
          animation: viewer-in .2s ease-out; outline: none; }
@media (prefers-reduced-motion: reduce) { .reader { animation: none; } }
.reader .r-stage { position: absolute; inset: 0; }
.reader .r-book { position: absolute; }
.reader .r-paper { position: absolute; inset: 0; perspective: 3200px; transform-origin: 0 0; }  /* book.js's PERSPECTIVE */
.reader.zoomed .r-paper { cursor: grab; }
.reader .r-side { position: absolute; top: 0; bottom: 0; width: 50%; }
.reader .r-side.left { left: 0; } .reader .r-side.right { right: 0; }
.reader .r-side.lone { width: 100%; }
.reader .r-side[hidden] { display: none; }
.reader .r-page, .reader .r-end .r-next-cover { box-shadow: 0 24px 60px var(--book-shadow), 0 3px 12px var(--book-shadow-near); }
.reader .r-page { position: absolute; inset: 0; background: var(--book-paper); }
.reader .r-page.none { background: none; box-shadow: none; }
.reader .r-page img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
/* The fold where the two pages meet */
.reader.two .r-gutter { position: absolute; top: 0; bottom: 0; left: 50%; width: 8%; transform: translateX(-50%); pointer-events: none; z-index: 3;
                        background: linear-gradient(90deg, transparent, var(--book-fold-soft) 38%, var(--book-fold) 50%, var(--book-fold-soft) 62%, transparent); }
.reader.two .r-side.left:has(.r-page.none) ~ .r-gutter { display: none; }
/* A page turning on the spine, and the shadow it casts on the page under it */
.reader .r-leaf { position: absolute; top: 0; bottom: 0; z-index: 4; transform-style: preserve-3d; will-change: transform; }
.reader .r-leaf.on-right { left: 50%; width: 50%; transform-origin: left center; }
.reader .r-leaf.on-left { left: 0; width: 50%; transform-origin: right center; }
.reader .r-leaf.whole { left: 0; width: 100%; transform-origin: left center; }
.reader .r-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.reader .r-face.back { transform: rotateY(180deg); }
.reader .r-shade { position: absolute; inset: 0; pointer-events: none; opacity: 0;
                   background: linear-gradient(90deg, var(--leaf-dark), var(--leaf-light) 55%, var(--leaf-edge)); }
.reader .r-cast { position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; opacity: 0; }
.reader .r-cast.on-right { left: 50%; width: 50%; background: linear-gradient(90deg, var(--leaf-cast), var(--leaf-cast-soft) 35%, transparent 70%); }
.reader .r-cast.on-left { left: 0; width: 50%; background: linear-gradient(270deg, var(--leaf-cast), var(--leaf-cast-soft) 35%, transparent 70%); }
.reader .r-cast.whole { inset: 0; background: linear-gradient(90deg, var(--leaf-cast), var(--leaf-cast-soft) 35%, transparent 60%); }
/* Past the last pages, the next book on the shelf, where the pages were (Zach, Nov 18) */
.reader .r-end { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
                 gap: 10px; padding: 16px; text-align: center; animation: viewer-in .3s ease-out; }
.reader .r-end[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .reader .r-end { animation: none; } }
.reader .r-end .r-kicker { margin: 0 0 6px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--kicker-on-photo); }
.reader .r-end .r-next-cover { position: relative; width: auto; height: min(52%, 340px); aspect-ratio: var(--cover-ratio); padding: 0; border: 0;
                               border-radius: 2px 4px 4px 2px; overflow: hidden; background: var(--book-paper); transition: transform .2s ease-out; }
@media (hover: hover) { .reader .r-end .r-next-cover:hover { transform: translateY(-3px); } }
.reader .r-end .r-next-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reader .r-end .r-next-name { margin: 12px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.reader .r-end .r-next-about { margin: 0; font-size: 14px; color: var(--paper-dim); }
.reader .r-end-go { display: flex; gap: 12px; margin-top: 10px; }
.reader .r-end-go button { width: auto; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 16px; }
.reader .r-end-go .r-open-next { background: var(--harvest); border-color: var(--harvest); }
@media (hover: hover) { .reader .r-end-go .r-open-next:not(:disabled):hover { background: var(--harvest); border-color: var(--paper); } }
/* Turned sideways on a phone: the cover, its name and the buttons, in the book's height */
.reader.low .r-end { gap: 6px; }
.reader.low .r-end .r-next-cover { height: 40%; }
.reader.low .r-end .r-next-about, .reader.low .r-end .r-kicker { display: none; }
/* Under the book: a line for how far in, its name, and its count, page strip and arrows */
.reader .r-scrub { position: absolute; height: 3px; border-radius: 2px; background: var(--shine-soft); opacity: .4; }
.reader .r-scrub i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--harvest); }
.reader .r-band { position: absolute; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.reader .r-title { min-width: 0; }
.reader .r-name { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.reader .r-about { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--paper-dim); }
.reader .r-ctl { display: flex; align-items: center; gap: 12px; flex: none; }
.reader .r-count { margin: 0 6px 0 0; font-size: 15px; letter-spacing: .04em; color: var(--paper-soft); white-space: nowrap; }
.reader button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
                 border: 1px solid var(--shine-soft); background: var(--night-veil); color: var(--paper); font: inherit; font-size: 26px; line-height: 1;
                 transition: transform .12s ease-out, background-color .2s, border-color .2s; }
.reader button:active { transform: scale(.92); }
.reader button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .reader button:not(:disabled):not(.r-thumb):hover { background: var(--shine-soft); border-color: var(--paper); } }
.reader .r-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; z-index: 6; border-color: transparent; background: none; font-size: 32px; }
.reader .r-strip-open::before { content: ""; width: 20px; height: 20px; background: var(--paper);
                                -webkit-mask: var(--strip-icon) center / contain no-repeat; mask: var(--strip-icon) center / contain no-repeat; }
.reader .r-strip-open[aria-expanded="true"] { border-color: var(--harvest); }
/* Arrows only with a mouse; a finger drags the page over (UI_STANDARDS 20) */
.reader .r-prev, .reader .r-next { display: none; }
@media (hover: hover) and (pointer: fine) { .reader .r-prev, .reader .r-next { display: grid; } .reader .r-book { cursor: pointer; } }
/* A phone held upright: the count at the top left, across from the × */
.reader.one .r-count { position: fixed; top: calc(24px + env(safe-area-inset-top)); left: 16px; }
/* Turned sideways on a phone: the spread alone, with its × */
.reader.low .r-band, .reader.low .r-scrub, .reader.low .r-strip { display: none; }
/* The page strip: every spread, to jump to */
.reader .r-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
                   background: var(--strip-night); border-top: 1px solid var(--strip-edge); }
.reader .r-strip[hidden] { display: none; }
.reader .r-thumbs { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; overscroll-behavior: contain;
                    padding: 6px calc(24px + env(safe-area-inset-right)) 6px calc(24px + env(safe-area-inset-left)); }
.reader .r-thumbs::-webkit-scrollbar { display: none; }
.reader .r-thumb { flex: none; width: auto; height: auto; border-radius: 2px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; }
.reader .r-pics { display: flex; height: 120px; box-shadow: 0 6px 16px var(--book-shadow); }
.reader .r-pic { display: block; flex: none; height: 100%; background: var(--book-paper); }  /* its width from book.js */
.reader .r-pic.none { background: none; }
.reader .r-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reader .r-thumb.on .r-pics { outline: 2px solid var(--kicker-on-photo); outline-offset: 4px; }
.reader .r-n { font-size: 12px; color: var(--paper-dim); }
@media (hover: hover) { .reader .r-thumb:hover .r-n { color: var(--paper); } }
.works[hidden], .wcard[hidden], .tile[hidden] { display: none; }
/* A person's projects, earlier work and posts show their first few, so every kind of thing
   on the page is seen first, and Show all raises a sheet holding all of them, as their
   résumé rises (Zach, Nov 18; BRIEF.md decision 55). team_page.clj marks what falls past
   them where the cards run one, two and three across; a filter shows every match of their
   work. */
@container person (max-width: 639px) {
  .person:not(.filtered) .works .past-phone, .person .writing .past-phone { display: none; }
}
@container person (min-width: 640px) and (max-width: 999px) {
  .person:not(.filtered) .works .past-two, .person .writing .past-two { display: none; }
  .show-all.fits-two { display: none; }
}
@container person (min-width: 1000px) {
  .person:not(.filtered) .works .past-three, .person .writing .past-three { display: none; }
  .show-all.fits-three { display: none; }
}
.person.filtered .works .show-all { display: none; }
.show-all { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin: 18px 0 0; padding: 0 20px;
            border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); font: inherit; font-size: 16px; color: var(--ink);
            cursor: pointer; transition: transform .12s ease-out, border-color .2s; }
.writing .show-all { margin-top: 14px; }
.show-all::after { content: "\2192"; color: var(--harvest); }
/* The sheet's heading, and its cards or posts as on the page */
.all-sheet h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: var(--heading); }
.all-sheet :is(.works, .writing) { margin-top: 0; }
/* The search in their sheet of posts, under its heading (Zach, Nov 18) */
.all-search { position: relative; margin: 0 0 14px; }
.all-search::before { content: ""; position: absolute; left: 15px; top: 14px; width: 18px; height: 18px; background: var(--ink-2);
                      -webkit-mask: var(--search-icon) center / contain no-repeat; mask: var(--search-icon) center / contain no-repeat; }
.all-search input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 16px 0 42px; border: 1px solid var(--line); border-radius: 999px;
                    background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); }
.all-search input:focus-visible { outline: none; border-color: var(--harvest); box-shadow: 0 0 0 3px var(--harvest-soft); }
.all-search .no-match { margin: 14px 0 0; color: var(--ink-2); }
.all-sheet .writing li[hidden] { display: none; }
.show-all:active { transform: scale(.98); }
@media (hover: hover) { .show-all:hover { border-color: var(--harvest); } }
.works .cards { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 18px; }
@container person (min-width: 640px) { .works .cards { grid-template-columns: 1fr 1fr; } }
@container person (min-width: 1000px) { .works .cards { grid-template-columns: repeat(3, 1fr); } }
.wcard { position: relative; container-type: inline-size; display: flex; flex-direction: column; overflow: hidden;
         border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.wcard.prior { border-style: dashed; border-color: var(--slate-line); }
.wcard.found { border-color: var(--harvest); box-shadow: 0 0 0 4px var(--harvest-soft); transition: box-shadow .3s, border-color .3s; }
.wcard.prior.found { border-color: var(--slate); box-shadow: 0 0 0 4px var(--slate-soft); }
/* The photos swipe sideways, the page only up and down, so the two never fight; a tap on
   them opens the card */
.wcard .slides { position: relative; z-index: 2; display: flex; aspect-ratio: 4 / 3; overflow-x: auto; scroll-snap-type: x mandatory;
                 scrollbar-width: none; overscroll-behavior-x: contain; cursor: pointer; background: var(--icon-paper); }
.wcard .slides::-webkit-scrollbar { display: none; }
/* One swipe, one picture: a quick flick never carries past the next (seen on a faster
   machine, Nov 3, where one swipe skipped a drawing) */
.wcard .slide { position: relative; flex: none; width: 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.wcard .slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* At the photo's top, clear of the dots along its foot (Zach, Nov 18) */
.wcard .slide .credit { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--glass); }
.wcard .dots { position: relative; z-index: 3; display: flex; justify-content: center; gap: 6px; height: 22px; margin-top: -22px; pointer-events: none; }
.wcard .dots i, .row .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--shine-strong); box-shadow: 0 0 0 1px var(--shadow); }
.wcard .dots i.on, .row .dots i.on { width: 16px; border-radius: 3px; background: var(--paper-2); }
/* A card's arrows and dots, a work's card and a row of the explorer's list alike (UI_STANDARDS 22) */
.wcard .arr, .row .arr { position: absolute; z-index: 3; top: calc(37.5cqw - 18px); display: none; place-items: center; width: 36px; height: 36px;
              border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass-thin); font-size: 16px; cursor: pointer;
              -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wcard .arr.prev, .row .arr.prev { left: 10px; } .wcard .arr.next, .row .arr.next { right: 10px; }
/* The name's link covers the card's words; the photos open it through the page's script */
.wcard .in { position: relative; flex: 1; padding: 12px 16px 16px; }
.wcard .no { display: flex; justify-content: space-between; font-size: var(--small); color: var(--harvest); }
.wcard .no span { color: var(--ink-2); }
.wcard h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 2px 0; }
.wcard h3 a { color: inherit; text-decoration: none; }
.wcard h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.wcard .d { font-size: var(--small); color: var(--ink-2); }
/* Earlier work in its slate, every credit line at body size under the title (0001) */
.wcard.prior .no, .wcard.prior h3, .wcard.prior .where { color: var(--slate); }
.wcard.prior .where { font-size: var(--small); margin-bottom: 6px; }
.wcard.prior .credit { font-size: var(--text); line-height: 1.45; }
/* Earlier work's credit: the firm's byline first, then the person's part in its own
   marked box (Zach chose E, Nov 4; docs/mockups/earlier-credit/options-2.png) */
.their-part { margin-top: 10px; padding: 8px 12px 9px 13px; border-left: 3px solid var(--slate); border-radius: 0 10px 10px 0;
              background: linear-gradient(var(--slate-soft), var(--slate-soft)), var(--paper); text-align: left; }
.their-part .part-title { margin: 0 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.their-part .credit { margin: 0; }
.works.earlier .statement { margin-bottom: 16px; }

/* An earlier work's own page: a Thresh project's layout, with slate in amber's place
   throughout (Zach, Oct 30); its credit under the title at body size (0001) */
.project.prior { --harvest: var(--slate); --harvest-soft: var(--slate-soft); --harvest-line: var(--slate-line); }
.project.prior .kicker, .project.prior h1 { color: var(--slate); }
.project .credits { position: relative; z-index: 2; margin-top: 12px; }
.project .credits .credit { margin: 2px 0 0; font-size: var(--text); line-height: 1.45; }
/* Under an earlier work's photo hero its credit opens the sheet, in the summary's place
   on a project's page, and the summary follows it (Zach, Nov 18) */
.project .lead.over.photo > .credits { margin-top: -18px; }
.project .lead.over.photo > .credits + .summary { margin-top: 18px; }
.project .statement { margin: 32px 0 0; padding-top: 16px; border-top: 1px dashed var(--slate-line); color: var(--ink-2); }
.project .on-map { display: inline-block; margin-top: 24px; padding: 8px 16px; border: 1px dashed var(--slate);
                   border-radius: 999px; color: var(--slate); font-size: var(--small); text-decoration: none; }
.project .on-map::after { content: "\00a0\2192"; }
@container project (min-width: 1000px) {
  .project .lead > .credits { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
  .project .lead.over.photo > .credits { margin-top: -2px; }
  .project .statement, .project .on-map { display: block; max-width: 1200px; margin-left: auto; margin-right: auto; }
  .project .on-map { width: max-content; }
}

/* Only a mouse hovers: on a phone a tapped card would stay lit (Zach, Oct 30) */
@media (hover: hover) {
  .project .back:hover, .person .back:hover, .post .back:hover, .privacy-page .back:hover, .missing-page .back:hover, .share-top:hover { border-color: var(--line); background: var(--paper-2); }
  .wcard:hover, .next-person:hover, .round:hover { border-color: var(--harvest); }
  .talk:hover { filter: brightness(1.08); }
  /* An earlier work's card lights in its slate, its title as it is (Zach, Oct 30) */
  .wcard.prior:hover { border-color: var(--slate); border-style: solid; }
  .wcard:hover .arr, .row:hover .arr { display: grid; }
  .wcard .arr:hover, .row .arr:hover { background: var(--glass-strong); }
  /* Every button and link answers a mouse (Zach, Oct 31); features/hover.feature checks it */
  header .logo:hover { opacity: .78; }
  header .links a:hover { color: var(--harvest); opacity: 1; }
  .tile:hover, .worknav .fbutton:hover { border-color: var(--harvest); }
  .tile.prior:hover { border-color: var(--slate); }
  /* As a tag on the main map grows under the mouse */
  .apin:not(.circle):hover .tag { border-color: var(--harvest); padding: 7px 14px; }
  .apin.circle:hover .tag { background: var(--harvest); color: var(--paper-2); }
  .apin.prior.circle:hover .tag { background: var(--slate); }
  .apin.prior:hover .tag { border-color: var(--slate); }
  .facts-table a:hover { color: var(--harvest); }
  a.who-led:hover .name { color: var(--harvest); }
  .project .next:hover { color: var(--harvest); }
  /* The privacy page's links and the small links to it (Zach, Nov 11) */
  :is(.legal, .wz-privacy) a:hover, .privacy-page :is(p, li) a:hover { color: var(--harvest); text-decoration-color: var(--harvest); }
}

@media (min-width: 720px) {
  header { padding: 22px var(--gutter-desk); }
  header .logo img { height: var(--logo-desk); }
  header .links { display: flex; align-items: center; gap: 34px; margin-left: auto; font-size: var(--nav); }
  header .talk { margin: 0 0 0 30px; }
  header .menu { display: none; }
  main, .o-page { padding: var(--page-top) var(--gutter-desk) 96px; }
  :is(.project, .person) .lead .hero { left: calc(-1 * var(--gutter-desk)); right: calc(-1 * var(--gutter-desk)); }
  :is(.project, .person) .lead.over::after { left: calc(-1 * var(--gutter-desk)); right: calc(-1 * var(--gutter-desk)); }
}

/* Let's talk (BRIEF.md decision 16): the land turns on its own behind a sheet that asks
   one question at a time, as the map's quick nav sits over the land; Learn's rows lie on it
   too, on a desk. The still picture shows until the 3D land draws over it, and stays where
   3D can't draw. */
.contact-map .intro, .contact-map .legend, .contact-map #dock, .contact-map #finder, .contact-map #panel, .contact-map #notes,
.contact-map #labels, .contact-map #leaders,
.learn-map .intro, .learn-map .legend, .learn-map #dock, .learn-map #finder, .learn-map #panel,
.learn-map #labels, .learn-map #leaders, .learn-map #notes { display: none !important; }
.contact-map #stage, .learn-map #stage { background: var(--paper) url(/img/land-still.webp) center / cover no-repeat; }
/* Words floating over the land are thin glass (UI_STANDARDS.md 28) */
.contact-title, .learn-title { position: fixed; left: var(--gutter); top: calc(70px + env(safe-area-inset-top)); z-index: 30; padding: 6px 18px 10px;
                 border-radius: 20px; background: var(--glass-thin); border: 1px solid var(--glass-edge);
                 -webkit-backdrop-filter: blur(5px) saturate(170%); backdrop-filter: blur(5px) saturate(170%); }
.contact-title h1, .learn-title h1 { margin: 0; font-size: 40px; }
.land-tag { position: fixed; left: 50%; top: 30%; z-index: 35; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px);
            transform: translateX(-50%); padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--glass-thin);
            border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(6px) saturate(170%); backdrop-filter: blur(6px) saturate(170%);
            box-shadow: 0 6px 18px var(--shadow); font-size: 14.5px; white-space: nowrap; }
.land-tag[hidden] { display: none; }
.land-tag b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--harvest); box-shadow: 0 0 0 5px var(--harvest-soft); }
.land-tag span { overflow: hidden; text-overflow: ellipsis; }

.contact-over { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40;
                max-height: calc(100% - 96px); overflow-y: auto; overscroll-behavior: none; scrollbar-width: none;
                --pad-top: 22px; --pad-x: 18px; --bar-h: 44px; padding: var(--pad-top) var(--pad-x) 20px; border-radius: 26px; background: var(--glass-strong); border: 1px solid var(--glass-edge);
                -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
                box-shadow: 0 -6px 30px var(--shadow); }
.contact-over::-webkit-scrollbar { display: none; }
/* Leaving by the land: the sheet fades as it is, under the work's outline (UI_STANDARDS.md 14, 27) */
.contact-over.closing { animation: dim-out .2s ease-in forwards; pointer-events: none; }
/* On a phone the card slides down to close by its top, as the other sheets do (Zach, Nov 15) */
.wz-top { display: flex; align-items: center; gap: 12px; min-height: var(--bar-h); touch-action: none; }
.contact-over { transition: transform .2s ease-out; }
.contact-over .grab { top: 8px; }
/* The bar and the question stay at the top, in the card's glass, while the fields scroll
   under them (Zach, Oct 31). A sticky offset counts from inside the card's padding. */
.wz-top, .wizard .step h2 { position: sticky; background: var(--glass-strong);
                            -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wz-top { top: calc(-1 * var(--pad-top)); z-index: 3; margin: calc(-1 * var(--pad-top)) calc(-1 * var(--pad-x)) 0; padding: var(--pad-top) var(--pad-x) 0; }
.wz-top button { min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.wz-top .wz-back { margin-left: -8px; }
.wz-top .wz-skip { margin-right: -8px; }
.wz-top button:active, .wizard .doors :is(a, button):active, .wizard .sugs button:active { opacity: .55; }
.wz-top .wz-skip { color: var(--ink-2); }
.wz-top [hidden] { display: none; }
.wz-back::before { content: "\2039\00a0"; }
.contact-over .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--ink-wash); overflow: hidden; }
.contact-over .bar i { display: block; height: 100%; border-radius: 3px; background: var(--harvest); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.contact-over .pace { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.contact-over .pace:empty { display: none; }

.wizard .step h2 { top: var(--bar-h); z-index: 2; margin: 0 calc(-1 * var(--pad-x)) 6px;
                   padding: 10px var(--pad-x) 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.12; }
.wizard .step .sub, .wizard .step .priv, .wizard .step .count { margin: -6px 0 12px; font-size: 14.5px; color: var(--ink-2); }
.wizard .step .priv { margin: 10px 0 0; font-size: 13px; }
@keyframes step-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes step-inb { from { opacity: 0; transform: translateX(-22px); } }
.wizard .step.in { animation: step-in .32s cubic-bezier(.2, .8, .2, 1); }
.wizard .step.inb { animation: step-inb .32s cubic-bezier(.2, .8, .2, 1); }

.wizard .picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wizard .pick { display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 0 0 10px; border: 1px solid var(--line);
                border-radius: 16px; background: var(--paper-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
                transition: transform .12s ease-out, border-color .2s, opacity .2s; }
/* The whole point cloud shows, fitted into its frame on the pictures' own paper (Zach, Oct 30) */
.wizard .pick img { display: block; width: 100%; height: 84px; object-fit: contain; background: var(--icon-paper); }
.wizard .pick b { padding: 8px 12px 0; font-weight: 500; font-size: 15px; line-height: 1.25; }
.wizard .pick small { padding: 2px 12px 0; font-size: 12.5px; color: var(--ink-2); }
.wizard .matters .pick { min-height: 76px; padding-top: 4px; }
/* What matters, each with its icon as Studio shows them (Zach, Oct 31) */
.wizard .matters .pick svg { flex: none; margin: 8px 12px 0; color: var(--ink-2); transition: color .2s; }
.wizard .matters .pick.on svg { color: var(--harvest); }
.wizard .step .count { display: flex; justify-content: space-between; }
.wizard .step .count .tally { font-variant-numeric: tabular-nums; }
.wizard .pick.on, .wizard .choice.on, .wizard .month.on { border-color: var(--harvest); box-shadow: 0 0 0 2px var(--harvest-soft); background: var(--paper-2); }
.wizard .pick.dim { opacity: .45; }
.wizard .choices { display: flex; flex-direction: column; gap: 8px; }
.wizard .choice { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 16px; border: 1px solid var(--line);
               border-radius: 14px; background: var(--paper-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
               transition: transform .12s ease-out, border-color .2s; }
.wizard .choice b { font-weight: 500; font-size: 16.5px; }
.wizard .choice small { font-size: 13px; color: var(--ink-2); }
.wizard .pick:active, .wizard .choice:active, .wizard .month:active { transform: scale(.97); }
.wizard .doors { display: grid; gap: 4px; margin-top: 12px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.wizard .doors a, .wizard .doors button { min-height: 44px; padding: 10px 4px; border: 0; background: none; font: inherit; color: var(--ink);
                                          text-decoration: underline; text-decoration-color: var(--harvest-line); text-underline-offset: 3px; cursor: pointer; }

.wizard input.place, .wizard input.typed-in, .wizard .field input, .wizard .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
  color: var(--ink); font: inherit; font-size: 17px; }
.wizard .field textarea { min-height: 84px; resize: none; scrollbar-width: none; }
.wizard .field textarea::-webkit-scrollbar { display: none; }
/* The place's own ×, a full finger wide, in place of the browser's small one (Zach, Oct 31) */
.wizard .place-box { position: relative; }
.wizard input.place { padding-right: 56px; }
.wizard input.place::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.wizard .clear { position: absolute; top: 50%; right: 2px; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0;
                 border-radius: 50%; background: none; cursor: pointer; }
.wizard .clear::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--ink-wash); }
.wizard .clear::after { content: "\00d7"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
                        font-size: 20px; line-height: 1; color: var(--ink-2); }
.wizard .clear:active { opacity: .55; }
.wizard input:not(.range):focus, .wizard textarea:focus { outline: none; border-color: var(--harvest); box-shadow: 0 0 0 3px var(--harvest-soft); }
/* Room is kept for five suggestions and Continue, so the field stays put while they come
   and go (Zach, Oct 31); more than five lines scroll */
.wizard .place-area { min-height: 402px; }
.wizard .sugs { max-height: 246px; margin: 6px 0 0; padding: 0; list-style: none; border-radius: 14px; overflow-y: auto;
                overscroll-behavior: contain; background: var(--paper-2); }
.wizard .sugs:not(:empty) { border: 1px solid var(--line); }
.wizard .sugs button { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line);
                       background: none; color: var(--ink); font: inherit; font-size: 15.5px; text-align: left; cursor: pointer; }
.wizard .sugs li:last-child button { border-bottom: 0; }
.wizard .away { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--harvest-soft); font-size: 14px; line-height: 1.45; }
.wizard .away[hidden], .wizard [hidden] { display: none !important; }
.wizard .field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14.5px; }
.wizard .field .optional { color: var(--ink-2); font-size: 13.5px; }
/* Out of sight and out of reach, for the bots that fill in every field */
.wizard .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }

.wizard .next, .wizard .send, .wizard .go-on, .wizard .unsure, .wizard .explore {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 14px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper-2); font: inherit; font-size: 16.5px; text-decoration: none;
  cursor: pointer; transition: transform .12s ease-out, opacity .2s, box-shadow .2s, filter .2s, border-color .2s, background .2s; }
.wizard .send { background: var(--harvest); }
.wizard .unsure, .wizard .explore { background: none; color: var(--ink); border: 1px solid var(--line); margin-top: 8px; }
.wizard button:disabled { opacity: .4; cursor: default; }
.wizard .next:active, .wizard .send:active, .wizard .go-on:active, .wizard .unsure:active, .wizard .explore:active { transform: scale(.98); }
.wizard .step[data-step="message"] .send { background: var(--ink); }
.contact-over .plain { margin: 8px 0; font-size: 16px; }
.contact-over .wz-privacy { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.wizard .months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.wizard .month { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--ink); font: inherit; font-size: 14px; }
.wizard .range:focus:not(:focus-visible) { outline: none; }
.wizard .amount { display: block; margin: 6px 0; text-align: center; font-size: 40px; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
/* The budget as a pile of Studio's coins, new ones dropping in (Zach, Oct 31) */
.wizard .coins { position: relative; margin: 4px 0 0; border-radius: 20px; overflow: hidden;
                 background: linear-gradient(180deg, var(--coin-box), var(--coin-box-2)); }
.wizard .coins svg { display: block; width: 100%; height: 150px; }
.wizard .coins .each { position: absolute; left: 14px; top: 12px; font-size: 11.5px; font-weight: 600; color: var(--coin-label); }
.wizard .coins .ground { fill: var(--coin-ground); }
.wizard .coin { transform-box: fill-box; }
.wizard .coin .edge { fill: var(--coin-edge); }
.wizard .coin .face { fill: var(--coin-face); }
.wizard .coin .ring { fill: none; stroke: var(--coin-ring); stroke-width: 1.1; }
.wizard .coin.drop { animation: coin-drop .55s cubic-bezier(.3, .6, .4, 1.25) both; }
@keyframes coin-drop { from { transform: translateY(-190px) rotate(-25deg); opacity: .2; } to { transform: none; opacity: 1; } }
.wizard .range { width: 100%; min-height: 44px; accent-color: var(--harvest); }
.wizard .ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.wizard .failed { margin-top: 10px; font-size: 14px; color: var(--harvest); }
.wizard .step:is([data-step="thanks"], [data-step="listed"]) { padding: 8px 0 4px; text-align: center; }
.confetti { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }
.wizard .step:is([data-step="thanks"], [data-step="listed"]) .mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
                                          border-radius: 50%; background: var(--harvest-soft); color: var(--harvest); font-size: 22px; }
.wizard .step:is([data-step="thanks"], [data-step="listed"]) p { color: var(--ink-2); line-height: 1.5; }

/* The village list (BRIEF.md decision 45): Let's talk in the villages' own green, its
   choices drawn in line, and its tile after the project kinds */
.contact-over.village { --harvest: var(--village); --harvest-soft: var(--village-soft); --harvest-line: var(--village-line); }
/* Tall enough for its drawing and a line, so its outline, drawn without the drawing,
   stands as tall (UI_STANDARDS 14) */
.wizard .many .pick { min-height: 80px; }
.wizard .many .pick svg { flex: none; margin: 8px 12px 0; color: var(--ink-2); transition: color .2s; }
.wizard .many .pick.on svg { color: var(--village); }
.wizard input.typed-in + .next { margin-top: 12px; }
.wizard .to-village { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; margin-top: 8px; padding: 8px 16px 8px 10px;
                      border: 1px solid var(--village-line); border-radius: 14px; background: var(--village-paper); color: var(--village);
                      font: inherit; text-align: left; cursor: pointer; transition: transform .12s ease-out, border-color .2s; }
.wizard .to-village svg { flex: none; }
.wizard .to-village b { font-weight: 500; font-size: 15.5px; color: var(--ink); }
.wizard .to-village:active { transform: scale(.97); }
/* Its button wherever it's offered: a village's page, its card on the map, a village read */
.project .lead > .join { position: relative; z-index: 2; margin: 18px 0 0; }
:is(.project .join, .post .tell.list) .talk { background: var(--village); }

/* On a desk the wizard is a card in the middle of the land, up and down too (Zach chose A,
   Oct 30; centered Oct 31); the map's script frames the land the same way (main.cljs, desk?) */
@media (min-width: 900px) and (hover: hover) {
  /* The title keeps to the left of the card where there's room, and stays for screen
     readers where there isn't */
  .contact-title, .learn-title { left: var(--gutter-desk); top: 96px; }
  .contact-title h1, .learn-title h1 { font-size: 54px; }
  .contact-over { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; max-height: calc(100% - 160px);
                  transform: translate(-50%, -50%); --pad-top: 18px; --pad-x: 26px; padding: var(--pad-top) var(--pad-x) 24px; }
  .land-tag { top: auto; bottom: 28px; }
  .contact-over .grab { display: none; }
  .wz-top { touch-action: auto; }
}
/* A bigger screen gets a bigger card, everything in it grown alike (Zach, Oct 31) */
@media (min-width: 1800px) and (min-height: 1000px) and (hover: hover) { .contact-over { zoom: 1.15; } }
@media (min-width: 2200px) and (min-height: 1200px) and (hover: hover) { .contact-over { zoom: 1.33; } }
/* Every button answers a mouse, never a finger (Zach, Oct 31) */
@media (hover: hover) {
  .wizard .pick:hover, .wizard .choice:hover, .wizard .month:hover { border-color: var(--harvest); }
  .wizard :is(.next, .send, .go-on):not(:disabled):hover { box-shadow: 0 6px 16px var(--shadow-deep); filter: brightness(1.18); }
  .wizard :is(.unsure, .explore):hover { border-color: var(--harvest); background: var(--harvest-soft); }
  .wz-top button:hover, .wizard .doors :is(a, button):hover { color: var(--harvest); text-decoration-color: var(--harvest); }
  .wizard .sugs button:hover { background: var(--harvest-soft); }
  .wizard .clear:hover::before { background: var(--ink-faint); }
  .wizard .to-village:hover { border-color: var(--village); }
}
@media (prefers-reduced-motion: reduce) {
  .wizard .step.in, .wizard .step.inb, .wizard .coin.drop { animation: none; }
  .contact-over .bar i, .wizard .pick, .wizard .choice, .wizard .to-village { transition: none; }
  .contact-over.closing { animation: none; opacity: 0; }
  .contact-over { transition: none; }
}
@media (min-width: 900px) and (max-width: 1279px) and (hover: hover) {
  .contact-title, .learn-title { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; }
}

/* The page not found (Zach chose 1C, Oct 30): the empty lot with what happened over its
   lower edge, then the map's search, three ways in and how to reach the firm. */
main:has(> .lost-top) { max-width: none; padding: 0 0 64px; }
.lost-top { position: relative; }
.empty-lot { display: block; width: 100%; height: 340px; }
.empty-lot .ground { fill: var(--ink); opacity: .55; }
.empty-lot .lot polygon { fill: none; stroke: var(--harvest); stroke-width: 1.6; }
.empty-lot .stake line { stroke: var(--harvest); stroke-width: 3; }
.empty-lot .stake circle { fill: var(--harvest); }
.lost-top::before { content: ""; position: absolute; inset: 0 0 auto; height: 25%; pointer-events: none;
  background: linear-gradient(var(--paper) 30%, var(--paper-clear)); }
.lost-top .lead { position: relative; display: grid; justify-items: start; gap: 12px; margin-top: -96px;
  padding: 0 var(--gutter); }
.lost-top .lead::before { content: ""; position: absolute; inset: -40px 0 -8px; z-index: -1;
  background: linear-gradient(var(--paper-clear), var(--paper) 55%); }
.lost-top .eyebrow { font-size: var(--small); letter-spacing: .16em; text-transform: uppercase; color: var(--harvest); }
.lost-top h1 { margin: 0; font-size: 38px; line-height: 1.04; text-wrap: balance; }
.lost-top .line { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.ways { display: grid; gap: 18px; margin-top: 36px; padding: 0 var(--gutter); }
.find-it { display: grid; gap: 12px; }
.ways .kicker { color: var(--ink-2); letter-spacing: .16em; }
.find input { width: 100%; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink-faint);
  background: var(--paper-2); font: inherit; font-size: 16px; color: var(--ink); box-shadow: 0 2px 10px var(--ink-wash); }
.find input::placeholder { color: var(--ink-2); }
.find-it .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.find-it .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: var(--small); text-decoration: none; }
.ways .ways-in { display: grid; gap: 12px; }
.ways .way { display: grid; align-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: 20px;
  background: var(--paper-2); color: var(--ink); text-decoration: none; }
.ways .way svg { display: block; width: 100%; height: auto; }
.ways .way .dot { fill: var(--ink); opacity: .32; }
.ways .way .mark circle { fill: var(--paper-2); stroke: var(--harvest); stroke-width: 1.1; }
.ways .way .mark text { font: 500 5.4px var(--sans); fill: var(--harvest); }
.ways .words { display: grid; gap: 4px; padding: 14px 16px 16px; }
.ways .words b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.ways .words span { font-size: var(--small); color: var(--ink-2); }
.ways .faces { display: flex; gap: 6px; padding: 18px 16px 0; }
.ways .face { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--portrait); font-size: 13px; color: var(--ink-2); }
.ways .way.contact { background: var(--harvest); border-color: var(--harvest); color: var(--paper-2); }
.ways .way.contact .words span { color: var(--shine-bright); }
.ways .way.contact .big { padding: 22px 16px 0; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.ways .reach { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: var(--small); color: var(--ink-2); }
.ways .reach a { padding: 12px 0; margin: -12px 0; text-decoration: none; }
@media (min-width: 900px) {
  .empty-lot { height: 400px; }
  .lost-top .lead { justify-items: center; text-align: center; margin-top: -120px; }
  .lost-top h1 { font-size: 64px; }
  .lost-top .line { font-size: 21px; }
  .ways { max-width: 1088px; margin: 32px auto 0; padding: 0 var(--gutter-desk); gap: 24px; }
  .ways .ways-in { grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
  /* Four faces fit the narrower tile on a desk */
  .ways .face:nth-child(n+5) { display: none; }
}

/* The privacy page (Zach, Nov 11): plain words in a column a phone or a desk reads easily,
   set as Learn's posts are */
.privacy-page { max-width: 680px; margin: 0 auto; color: var(--ink); }
/* Its way back stays just under the header as the page scrolls (Zach, Nov 14; UI_STANDARDS 15) */
.privacy-page > .lead { display: contents; }
.privacy-page .back { position: sticky; top: var(--back-top); z-index: 5; }
.privacy-page h1 { margin: 0; font-size: 34px; line-height: 1.1; }
.privacy-page .meta { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.privacy-page .lede { margin: 20px 0 0; font-size: 18px; line-height: 1.5; }
.privacy-page h2 { margin: 34px 0 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.16; }
.privacy-page :is(p, li) { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.privacy-page section p { margin: 12px 0 0; }
.privacy-page ul { margin: 12px 0 0; padding-left: 22px; }
.privacy-page li + li { margin-top: 8px; }
.privacy-page :is(p, li) a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--harvest-line); text-underline-offset: 3px; }
@media (min-width: 720px) { .privacy-page h1 { font-size: 44px; } }

/* Staging (BRIEF.md decision 49): the tag on work that isn't live yet, under its title on
   its page, and the What's missing page, a plain page of words like the privacy page */
.not-live { display: inline-block; margin: 10px 0 0; padding: 4px 11px; border-radius: 999px; font-size: 13px; line-height: 1.2;
           color: var(--ink); background: var(--glass-strong); border: 1px solid var(--harvest); }
/* On a page it leads to the What's missing page */
a.not-live { text-decoration: none; }
.missing-page { max-width: 760px; margin: 0 auto; color: var(--ink); }
.missing-page > .lead { display: contents; }
.missing-page .back { position: sticky; top: var(--back-top); z-index: 5; }
.missing-page h1 { margin: 0; font-size: 34px; line-height: 1.1; }
.missing-page .lede { margin: 16px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.missing-page h2 { margin: 34px 0 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.16; }
.needs-list { margin: 12px 0 0; padding: 0; list-style: none; }
.needs-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.needs-list a { font-family: var(--serif); font-size: 19px; color: var(--ink); text-decoration: none; }
.needs-list .state { align-self: center; font-size: 13px; color: var(--ink-2); }
.needs-list li[data-live="no"] .state { color: var(--harvest); }
.needs-list .needs { grid-column: 1 / -1; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 720px) { .missing-page h1 { font-size: 44px; } }
@media (hover: hover) { .needs-list a:hover { color: var(--harvest); } a.not-live:hover { background: var(--harvest-soft); } }

/* A card's press waits its moment (the cards that press, near the top): last, and on
   :root, so it outweighs each card's own transition */
@media (hover: none) { :root :active { transition-delay: calc(var(--tap-press, 0) * 80ms); } }
