/* ==========================================================================
   The night desk: the craft direction (docs/brand.md).

   A page takes it by carrying class="craft" on <html> and loading this sheet
   after main.css and site.css. It keeps the brand (paper, ink, one marker
   yellow, the condensed poster face, the highlighter) and changes how things
   are made: keys you can press, soft paper cards, exhibits with crop marks,
   small labels in a plain sans (IBM Plex Sans, in capitals), pictures from the one desk.

   The homepage has it first. Contents:
     1  tokens            6  exhibits (where a product picture goes)
     2  type and labels   7  the homepage's sections, top to bottom
     3  keys (buttons)    8  plans, questions, notes, the sheet
     4  the nav           9  the foot of the page
     5  the lookup       10  phones
   ========================================================================== */
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ 1 tokens */
.craft {
  --paper: #F3EFE4; --paper-2: #E9E3D3; --card: #FBF8F0; --white: #FFFDF8;
  --ink: #17130F; --ink-2: #3F3A33; --graphite: #6A645A;
  --night: #120E0A; --night-2: #1D1711; --desk: #0D0905; --on-night: #F3EFE4; --on-night-2: #ADA596;
  --rule: rgba(23, 19, 15, .14); --rule-2: rgba(23, 19, 15, .075);
  --red: #C8321F;                                   /* the wax pencil: one ring a page, never a fill */
  --f-tag: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;   /* small labels: the sans, in capitals */
  --wrap: 1200px;
  /* corners: a key, a field, a card, a frame. Each sits inside the next, so they stay concentric */
  --r-1: 6px; --r-btn: 9px; --r-2: 11px; --r-3: 15px; --r-4: 20px;
  /* a key's hard shadow, and the soft one paper casts */
  --stamp-c: var(--ink);
  --stamp: 2px 2px 0 var(--stamp-c);
  --stamp-up: 3px 3px 0 var(--stamp-c);
  --stamp-down: 1px 1px 0 var(--stamp-c);
  --lift: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 1px 2px rgba(23, 19, 15, .05), 0 16px 32px -22px rgba(23, 19, 15, .32);
  --px-y: var(--signal); --px-d: var(--signal-deep); --px-w: var(--white); --px-r: var(--red);
}
.craft body { font-size: 16.5px; line-height: 1.58; }
.craft ::selection { background: var(--signal); color: var(--ink); }
.craft :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.craft .on-night :focus-visible, .craft .nav[data-theme="dark"] :focus-visible { outline-color: var(--signal-night); }

/* ------------------------------------------------------------------ 2 type and labels */
/* small labels: IBM Plex Sans, in capitals */
.craft .label, .craft .mono { font: 500 11px/1.5 var(--f-tag); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* a section's head: its marker, its title, a line under it, and what to do about it */
.hd { display: grid; justify-items: start; gap: 18px; margin-bottom: clamp(36px, 4.4vw, 56px); }
.hd--center { justify-items: center; text-align: center; }
.hd__k { display: inline-flex; align-items: center; gap: 12px; color: var(--graphite); }
/* the number is an evidence marker: a yellow tag with an ink edge and the stamp's shadow */
.hd__k span, .craft .sh__label span { display: inline-block; padding: 2px 5px 1px; border: 1.5px solid var(--ink); border-radius: 4px; color: var(--ink); background: var(--signal); box-shadow: 2px 2px 0 var(--ink); }
.craft .sh__label span { margin-right: 10px; }
.hd__t { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 4.3vw, 60px); line-height: .96; letter-spacing: .002em; word-spacing: .07em; text-wrap: balance; max-width: min(100%, 900px); }
.hd__t mark.hl { --hl-y: 70%; --hl-h: 58%; padding: 0 .06em; color: var(--ink); }
/* over the dark the stroke covers the whole letter, and the letters turn ink with it (main.css, .hl-flip) */
.on-night .hd__t mark.hl { --hl-y: 54%; --hl-h: 96%; padding: 0 .08em; color: inherit; }
.on-night .hd__t mark.hl.is-lit { color: var(--ink); }
.on-night .hd__t mark.hl.hl--split:not(.is-done) { color: inherit; }
/* the second voice of a title: what the first half leads to, a shade back, on a line of its own */
.t2 { display: block; color: var(--graphite); }
/* the product's headline: two lines, the first never broken on a screen wide enough to hold it,
   all in ink, so the marker alone carries the weight */
.hd__t--cite { max-width: none; }
.hd__t--cite .t2 { color: var(--ink); }
@media (min-width: 720px) { .hd__t--cite .t1 { white-space: nowrap; } }
/* a title's own line break, for screens wide enough to keep it */
.br-w { display: none; }
@media (min-width: 761px) { .br-w { display: inline; } }
.hd__s { max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hd--center .hd__s { max-width: 31em; }
.hd__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.hd--center .hd__act { justify-content: center; }
.hd__note { color: var(--graphite); }

.craft .section { padding-block: clamp(64px, 7.6vw, 108px); }
/* the first section under the numbers is a plain section again (main.css lays it over the old yellow band) */
.craft .stats + .section { margin-top: 0; border-radius: 0; background: none; }

/* a name blacked out, then cleared: the bar draws back off it. A transform, so it runs on the compositor */
.blackout { position: relative; white-space: nowrap; }
.blackout::after { content: ""; position: absolute; inset: .14em -.12em .06em; border-radius: 2px; background: #050403; transform-origin: 100% 50%; will-change: transform; animation: unredact .55s cubic-bezier(.7, 0, .2, 1) .75s both; }
@keyframes unredact { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .blackout::after { display: none; } }

/* pixel icons (assets/img/pixel-icons.svg): 16 x 16, so they're drawn at whole multiples of it */
.px { display: block; width: 32px; height: 32px; }
/* an evidence tile: the icon on a small card */
.ptile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-3); background: var(--white); border: 1px solid var(--rule); box-shadow: var(--lift); color: var(--ink); }

/* text links: ink, with a marker band under them that fills on hover */
.craft .link { gap: 7px; font-size: 15px; }
.craft .link svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ 3 keys
   Every button is a key: softly rounded, a top light, an edge, and a hard shadow it lifts off on
   hover and presses into on click. Yellow is the one that matters on a page; ink is the working
   button; paper is the quiet one; glass is for over the dark. */
.craft .btn, .craft .nav__cta {
  --h: 40px;
  position: relative; height: var(--h); padding: 0 16px; gap: 8px; border: 1.5px solid transparent; border-radius: var(--r-btn);
  font-size: 14.5px; font-weight: 700; line-height: 1; letter-spacing: -.004em; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .12s, border-color .12s, color .12s;
}
.craft .btn--lg { --h: 48px; padding: 0 20px; border-radius: 11px; font-size: 15.5px; }
.craft .btn--sm { --h: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; }
.craft .btn svg, .craft .nav__cta svg { width: 13px; height: 13px; }

.craft .btn--signal, .craft .nav__cta {
  overflow: hidden; color: var(--ink); border-color: var(--ink);
  background: var(--signal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), inset 0 -1px 0 rgba(23, 19, 15, .1), var(--stamp);
}
.craft .btn--signal:hover, .craft .nav__cta:hover { transform: translate(-1px, -1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), inset 0 -1px 0 rgba(23, 19, 15, .1), var(--stamp-up); }
.craft .btn--signal:active, .craft .nav__cta:active { transform: translate(1px, 1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), var(--stamp-down); }

.craft .btn--ink {
  color: var(--paper); border-color: var(--ink);
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 2px 2px 0 rgba(23, 19, 15, .28);
}
.craft .btn--ink:hover { transform: translate(-1px, -1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 3px 3px 0 rgba(23, 19, 15, .28); }
.craft .btn--ink:active { transform: translate(1px, 1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 1px 1px 0 rgba(23, 19, 15, .28); }

.craft .btn--line {
  color: var(--ink); border: 1px solid rgba(23, 19, 15, .24);
  background: var(--card);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(23, 19, 15, .16);
}
.craft .btn--line:hover { transform: translate(-1px, -1px); border-color: var(--ink); box-shadow: inset 0 1px 0 #fff, var(--stamp); }
.craft .btn--line:active { transform: translate(1px, 1px); box-shadow: inset 0 1px 0 #fff, 0 0 0 var(--ink); }

.craft .btn--glass {
  color: var(--on-night); border: 1px solid rgba(243, 239, 228, .24); background: rgba(243, 239, 228, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.craft .btn--glass:hover { background: rgba(243, 239, 228, .18); border-color: rgba(243, 239, 228, .42); }

/* over the dark a key's shadow is its own side, a deeper yellow, so it still reads as raised */
.craft .on-night, .craft .nav[data-theme="dark"] { --stamp-c: #A87D00; }

/* the tile at a key's left: ink, with the icon in yellow */
.craft .btn__ico { display: grid; place-items: center; flex: none; width: calc(var(--h) - 14px); height: calc(var(--h) - 14px); border-radius: var(--r-1); background: var(--ink); color: var(--signal); box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .09); }
.craft .btn:has(.btn__ico) { padding-left: 5.5px; }
.craft .btn__ico svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.craft .btn:hover .btn__ico svg { transform: rotate(-12deg) scale(1.08); }
/* a key's key: the shortcut, or what pressing it does */
.craft kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font: 700 11px/1 var(--f-sans); letter-spacing: 0; color: rgba(23, 19, 15, .78); background: rgba(23, 19, 15, .1); box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .12); transition: background-color .15s, color .15s; }
.craft .btn kbd { margin: 0 -7px 0 2px; }
.craft .btn--signal:hover kbd { color: var(--paper); background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .craft .btn, .craft .btn::before, .craft .nav__cta, .craft .nav__cta::before, .craft .btn__ico svg { transition: none; } }

/* ------------------------------------------------------------------ 4 the nav
   One floating bar: the mark, the links in a tray, and a key. Paper glass over the page, smoked
   glass over the dark (main.js follows the section under it). */
.craft .nav { inset: 14px 0 auto; }
.craft .nav__bar {
  width: min(calc(var(--wrap) + 36px), calc(100% - 28px)); height: 56px; padding: 0 9px 0 18px; border-radius: var(--r-3);
  background: rgba(251, 248, 240, .84); border: 1px solid rgba(23, 19, 15, .1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 28px -20px rgba(23, 19, 15, .5);
}
.craft .nav[data-theme="dark"] .nav__bar { background: rgba(24, 18, 12, .72); border-color: rgba(243, 239, 228, .13); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 32px -18px rgba(0, 0, 0, .8); }
.craft .nav__bar::after { left: 16px; right: 16px; }
.craft .nav .brand__mark { width: 59px; height: 36px; }
.craft .nav .brand__word { font-size: 24px; }
.craft .nav__links { gap: 2px; padding: 3px; border-radius: 10px; background: rgba(23, 19, 15, .05); font-size: 14.5px; font-weight: 600; }
.craft .nav__links a { padding: 7px 13px; border-radius: 7px; opacity: 1; color: var(--ink-2); transition: background-color .15s, color .15s, box-shadow .15s; }
.craft .nav__links a::after { content: none; }
.craft .nav__links a:hover, .craft .nav__links a[aria-current="location"] { color: var(--ink); background: var(--white); box-shadow: 0 1px 2px rgba(23, 19, 15, .12), 0 0 0 1px rgba(23, 19, 15, .06); }
.craft .nav[data-theme="dark"] .nav__links { background: rgba(243, 239, 228, .07); }
.craft .nav[data-theme="dark"] .nav__links a { color: rgba(243, 239, 228, .82); }
.craft .nav[data-theme="dark"] .nav__links a:hover, .craft .nav[data-theme="dark"] .nav__links a[aria-current="location"] { color: #fff; background: rgba(243, 239, 228, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.craft .nav__actions { gap: 6px; }
.craft .nav__login { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; opacity: 1; transition: background-color .15s; }
.craft .nav__login:hover { background: rgba(23, 19, 15, .06); }
.craft .nav[data-theme="dark"] .nav__login:hover { background: rgba(243, 239, 228, .1); }
.craft .nav__cta { --h: 36px; display: inline-flex; align-items: center; padding: 0 13px 0 14px; margin-right: 2px; border-radius: 8px; font-size: 14px; }
.craft .nav[data-theme="dark"] .nav__cta { border-color: var(--desk); }
.craft .nav__menu { border-radius: 8px; }
.craft .nav__sheet { width: min(calc(var(--wrap) + 36px), calc(100% - 28px)); border-radius: var(--r-3); background: rgba(251, 248, 240, .97); }
.craft .nav__sheet-cta { --h: 48px; }

/* ------------------------------------------------------------------ 5 the lookup
   The field's radius is the key's plus the gap round it, so the two corners are concentric. */
/* the field is paper wherever it sits, so the key in it casts an ink shadow even over the dark */
.craft .lookup__row { --stamp-c: var(--ink); height: 56px; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 15px; border: 1.5px solid var(--ink); background: var(--white); box-shadow: inset 0 1px 2px rgba(23, 19, 15, .06), var(--stamp-up); transition: box-shadow .15s var(--ease); }
.craft .lookup__row:focus-within { border-color: var(--ink); box-shadow: inset 0 1px 2px rgba(23, 19, 15, .06), 3px 3px 0 var(--signal-deep); }
.craft .lookup__row input { padding: 0 8px; font-size: 16px; }
/* the field shows the focus (its shadow turns yellow), so the input inside it doesn't draw a second ring */
.craft .lookup__row input:focus-visible { outline: none; }
.craft .lookup__row input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.craft .lookup__row .btn { --h: 42px; margin: 0; }

/* ------------------------------------------------------------------ 6 exhibits
   Where a picture of the product goes. Until there is one, the frame is what's shown: squared
   paper, the crop marks a picture is trimmed to, its exhibit tag and a photo scale. */
.exhibit {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: var(--ar, 16 / 9);
  border-radius: var(--r-4); background: var(--card); border: 1px solid var(--rule); box-shadow: var(--lift);
}
.exhibit::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--rule-2) 1px, transparent 1px) 50% 50% / 28px 28px, linear-gradient(90deg, var(--rule-2) 1px, transparent 1px) 50% 50% / 28px 28px;
  }
.exhibit::after {
  content: ""; position: absolute; inset: 16px; pointer-events: none; --c: rgba(23, 19, 15, .42);
  background:
    linear-gradient(var(--c) 0 0) 0 0 / 12px 1.5px, linear-gradient(var(--c) 0 0) 0 0 / 1.5px 12px,
    linear-gradient(var(--c) 0 0) 100% 0 / 12px 1.5px, linear-gradient(var(--c) 0 0) 100% 0 / 1.5px 12px,
    linear-gradient(var(--c) 0 0) 0 100% / 12px 1.5px, linear-gradient(var(--c) 0 0) 0 100% / 1.5px 12px,
    linear-gradient(var(--c) 0 0) 100% 100% / 12px 1.5px, linear-gradient(var(--c) 0 0) 100% 100% / 1.5px 12px;
  background-repeat: no-repeat;
}
.exhibit__tag { position: absolute; left: 30px; top: 27px; display: flex; align-items: center; gap: 8px; color: var(--graphite); }
.exhibit__tag::before { content: ""; width: 7px; height: 7px; background: var(--signal); box-shadow: 0 0 0 1.5px var(--ink); }
/* the photo scale: a tick every 8px, a long one every 40 */
.exhibit__scale {
  position: absolute; right: 30px; bottom: 28px; width: 121px; height: 9px; --tick: rgba(23, 19, 15, .42);
  background:
    linear-gradient(var(--tick), var(--tick)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 40px) left bottom / 100% 9px no-repeat;
}
/* over the dark: a pane of glass round the paper */
.exhibit--glass { border: 0; box-shadow: 0 0 0 7px rgba(243, 239, 228, .13), 0 0 0 8px rgba(243, 239, 228, .1), 0 40px 80px -40px rgba(0, 0, 0, .9); }

/* squared paper behind a group of cards, fading out at its edges */
.gridsheet { position: relative; isolation: isolate; }
.gridsheet::before {
  content: ""; position: absolute; z-index: -1; inset: -56px -18vw; pointer-events: none;
  background: linear-gradient(var(--rule-2) 1px, transparent 1px) 50% 0 / 64px 64px, linear-gradient(90deg, var(--rule-2) 1px, transparent 1px) 50% 0 / 64px 64px;
}

/* ------------------------------------------------------------------ 7 the homepage, top to bottom */
/* --- the hero: the copy on the desk's dark side */
.craft .hero--desk .display { font-size: clamp(46px, 5vw, 72px); line-height: .9; }
.craft .hero--desk .lede { margin-top: 22px; font-size: clamp(17px, 1.3vw, 19px); }
.craft .hero--desk .lookup { margin-top: 28px; max-width: 480px; }
.craft .hero--desk .lookup__row { border-color: var(--desk); background: #FBF7EC; color: var(--ink); box-shadow: inset 0 1px 2px rgba(23, 19, 15, .08), 4px 4px 0 rgba(0, 0, 0, .6); }
.craft .hero--desk .lookup__row:focus-within { border-color: var(--desk); box-shadow: inset 0 1px 2px rgba(23, 19, 15, .08), 4px 4px 0 var(--signal); }
.craft .hero__case { margin-bottom: 20px; }
.craft .hero__case span { padding: 3px 7px 2px; border-radius: 3px; box-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.craft .hero--desk .hero__notes { margin-top: 20px; max-width: 480px; font: 500 11px/1.5 var(--f-tag); letter-spacing: .06em; text-transform: uppercase; }

/* --- the numbers: four quiet boxes straight under the hero, where a row of logos would go */
/* The numbers, set as a ledger line and not as four boxes: one ink rule over them, the figures in
   the poster face, a hairline between each and what it counts under it, a hairline to close, and
   the three promises as the line's footnote. */
.stats { position: relative; z-index: 1; padding: clamp(30px, 3.6vw, 48px) 0 0; }
.stats__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; margin-inline: auto; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; min-width: 0; padding: 24px 26px 22px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 4px; }
.stat:last-child { padding-right: 4px; }
.stat dd { font: 850 clamp(46px, 4.6vw, 64px)/.86 var(--f-display); letter-spacing: -.008em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat dt { max-width: 15em; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.stats__note { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; max-width: 1040px; margin: 14px auto 0; padding-inline: 4px; color: var(--graphite); }
.stats__note i { width: 5px; height: 5px; align-self: center; background: var(--signal); box-shadow: 0 0 0 1px var(--ink); }
/* the wax pencil's one ring on the page: round the nought (nobody was told) */
.ring { position: relative; display: inline-block; padding: 0 .12em; }
.ring svg { position: absolute; left: -22%; top: -14%; width: 144%; height: 128%; overflow: visible; pointer-events: none; }
.ring path { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stats.is-in .ring path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s cubic-bezier(.5, 0, .2, 1) .9s; }
@media (prefers-reduced-motion: reduce) { .ring path { stroke-dashoffset: 0; transition: none !important; } }

/* --- 01 what it is: one large exhibit, three lines under it, and the way in */
.intro__pic { max-width: 1240px; margin-inline: auto; }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; max-width: 1040px; margin: 30px auto 0; padding: 0 6px; }
.caps p { font-size: 15.5px; line-height: 1.5; color: var(--graphite); text-wrap: pretty; }
.caps b { font-weight: 700; color: var(--ink); }
/* a lead-in that opens something: the same words, with the marker's band under them */
.caps a { font-weight: 700; color: var(--ink); background: linear-gradient(var(--signal), var(--signal)) left 94% / 100% 28% no-repeat; transition: background-size .25s var(--ease); }
.caps a:hover { background-size: 100% 88%; }
.pitch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: clamp(40px, 5vw, 60px); }
.pitch p { max-width: 21em; font-size: 16.5px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.pitch__note { flex-basis: 100%; text-align: center; color: var(--graphite); }

/* --- the showcase: the product itself. The app, on its demo case, in a frame the height of what's
   in it (assets/js/show.js mounts and sizes it; app/stage.html?show is what it shows). Nothing here
   draws the product: there is no copy of it to keep in step. The glass is the showcase's own too:
   the map's pane and the conversation's pane over its edge are drawn inside the frame
   (assets/css/stage-show.css), so the upper one really does blur the map under it. */
.show { position: relative; min-height: 870px; transition: height .45s var(--ease); }
.show__frame { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: light; transform-origin: 0 0; opacity: 0; transition: opacity .5s; }
.show.is-ready .show__frame { opacity: 1; }
.show__no { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--graphite); }
@media (min-width: 980px) {
  .show { min-height: 0; aspect-ratio: 1240 / 612; }
}
@media (prefers-reduced-motion: reduce) { .show, .show__frame { transition: none; } }

/* --- 02 who it's for: four files on squared paper. Each has a folder's tab, a detail of the desk,
   what that team starts with and what they need at the end */
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; max-width: 860px; margin-inline: auto; }
.file { position: relative; display: grid; grid-template-rows: auto auto 1fr; padding: 22px 22px 20px; border-radius: 4px var(--r-3) var(--r-3) var(--r-3); background: var(--white); border: 1px solid var(--rule); box-shadow: var(--lift); }
.file::before { content: ""; position: absolute; left: -1px; bottom: 100%; width: 112px; height: 13px; border-radius: 7px 9px 0 0; background: var(--white); border: 1px solid var(--rule); border-bottom: 0; }
.file__k { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding-right: 50px; color: var(--graphite); }
.file__k span::before { content: "·"; margin-right: 10px; }
/* the corner key on a file: where its fuller page will open from. Nothing is behind it yet */
.file__open { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-1); background: var(--paper-2); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.file__open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.file__open:hover, .file__open:focus-visible { background: var(--signal); border-color: var(--ink); transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); outline: 0; }
.file__open:active { transform: none; box-shadow: none; }
.file__k b { font-weight: 400; color: var(--ink); }
.file h3 { margin-top: 8px; padding-right: 50px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.018em; }
.file__pic { position: relative; margin: 16px 0 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-1); background: var(--desk); box-shadow: 0 0 0 1px rgba(23, 19, 15, .5); }
.file__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
/* what moves in the picture (assets/js/scenes.js), laid over it and scaled with it */
.file__fx { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; transition: transform .5s var(--ease); }
.file:hover .file__pic img, .file:hover .file__fx { transform: scale(1.035); }
.file__meta { display: grid; gap: 10px; margin-top: 16px; align-content: start; }
.file__meta div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.file__meta dt { color: var(--graphite); }
.file__meta dd { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.file__meta div:first-child dd { font-weight: 600; color: var(--ink); }

/* --- 03 what's in the case: a feature a row. Its icon, its claim and where to read more on one
   side; an exhibit on the other, a rule between them */
.feats { display: grid; }
.feat { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(28px, 3.6vw, 44px); }
.feat + .feat { border-top: 1px solid var(--rule); }
.feat:first-child { padding-top: 0; }
.feat:last-child { padding-bottom: 0; }
.feat__copy { display: grid; justify-items: start; align-content: start; padding-top: 6px; }
/* the feature's object (assets/img/case): drawn, its backdrop knocked out, so it stands on the page */
.feat__ic { display: block; width: 56px; height: 56px; filter: drop-shadow(0 6px 8px rgba(20, 21, 25, .08)); }
.feat h3 { margin-top: 22px; font-size: 22px; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.feat p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.feat__links { display: grid; justify-items: start; gap: 8px; margin-top: 18px; }
.feat__links .link { font-size: 14.5px; }
.feat__links .link--quiet { background: none; font-weight: 600; color: var(--graphite); }
.feat__links .link--quiet:hover { color: var(--ink); }
.feat__pic { position: relative; padding-left: clamp(32px, 5vw, 72px); }
.feat__pic::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule); }
/* the rows take turns: the first has its picture on the left and its words on the right, the next
   the other way round, and so on down. The rule stays between them */
.feat:nth-child(odd) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.feat:nth-child(odd) .feat__pic { order: -1; padding-left: 0; padding-right: clamp(32px, 5vw, 72px); }
.feat:nth-child(odd) .feat__pic::before { left: auto; right: 0; }
/* each picture is a blank pane of Liquid Glass, the showcase's own (stage-show.css): flat, a rim of
   light, a hairline of ink, the glass's thickness inside its edge and one soft shadow. No squared
   paper, crop marks, tag or scale */
.feat__pic .exhibit, .ways__pic .exhibit {
  border: 0; border-radius: 26px; background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 1px rgba(23, 19, 15, .11), 0 0 0 3px rgba(255, 255, 255, .88), 0 2px 3px rgba(23, 19, 15, .05), 0 16px 26px -18px rgba(23, 19, 15, .2), 0 34px 40px -32px rgba(23, 19, 15, .4);
}
.feat__pic .exhibit::before, .ways__pic .exhibit::before { content: none; }
.feat__pic .exhibit::after, .ways__pic .exhibit::after {
  inset: 0; z-index: 6; border-radius: inherit; background: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 0 0 6px rgba(255, 255, 255, .2), inset 0 0 0 7px rgba(23, 19, 15, .028), inset 0 14px 22px -14px rgba(255, 255, 255, .95), inset 0 -18px 26px -20px rgba(23, 19, 15, .2);
}

/* --- the dark band: the street outside, between two torn edges. Custom search, a tab for each part of its page.
   The picture (assets/img/street.webp, street-tall.webp on phones) stands on the band's foot, the
   card floats over the middle of the street, and the band leaves room under the card for the
   pavement to show. assets/js/street.js adds the rain and lets the lights falter. */
.ways { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 12vw, 172px) clamp(180px, 20vw, 300px); color: var(--on-night); background: var(--desk); }
/* the scene: one box the shape of the picture, so the lights-off copy, the rain and the masks all
   share its coordinates. Its sky fades into the band's own dark, so it can stop short of the top */
.street { position: absolute; z-index: -2; left: 50%; bottom: 0; width: max(100%, 1500px); aspect-ratio: 4 / 3; transform: translateX(-50%); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%); mask-image: linear-gradient(180deg, transparent, #000 16%); }
.street img, .street__off, .street__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the street is painted finer than the screen shows it, so it's scaled smoothly; only the rain is drawn on a grid */
.street__fx { image-rendering: pixelated; }
/* the same street with every light out, shown over one light at a time and nothing else:
   street.js raises its opacity for a frame or two. The phone box is its glass and the pavement at
   its foot; the far lamp is its head, the cone under it and its reflection in the puddle */
.street__off { opacity: 0; background: url("../img/street-off.webp") 0 0 / 100% 100% no-repeat; }
.street__off--box { -webkit-mask: linear-gradient(#000 0 0) 6.3% 58.97% / 6.3% 22% no-repeat, radial-gradient(6.5% 9% at 8.6% 77%, #000 30%, transparent) no-repeat; mask: linear-gradient(#000 0 0) 6.3% 58.97% / 6.3% 22% no-repeat, radial-gradient(6.5% 9% at 8.6% 77%, #000 30%, transparent) no-repeat; }
.street__off--lamp { -webkit-mask: radial-gradient(6.5% 14% at 75.5% 52%, #000 62%, transparent) no-repeat, radial-gradient(3.5% 10% at 74% 76%, #000 55%, transparent) no-repeat; mask: radial-gradient(6.5% 14% at 75.5% 52%, #000 62%, transparent) no-repeat, radial-gradient(3.5% 10% at 74% 76%, #000 55%, transparent) no-repeat; }
/* the dark the headline and the tabs are read against */
.ways::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(13, 9, 5, .72), rgba(13, 9, 5, .28) 30%, rgba(13, 9, 5, 0) 50%); }
.ink-edge--top { top: -1px; bottom: auto; transform: scaleY(-1); }
.ways .hd__t { color: #F6F1E4; }
.ways .hd__s { color: rgba(243, 239, 228, .78); }
.ways__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 1040px; margin: 0 auto clamp(28px, 3.4vw, 40px); }
.ways__tabs button { display: grid; align-content: start; gap: 5px; padding: 4px 6px 6px 14px; text-align: left; color: rgba(243, 239, 228, .5); border-left: 2px solid rgba(243, 239, 228, .16); transition: color .2s, border-color .2s; }
.ways__tabs b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.ways__tabs span { font-size: 13.5px; line-height: 1.4; }
.ways__tabs button:hover { color: rgba(243, 239, 228, .82); border-left-color: rgba(243, 239, 228, .4); }
.ways__tabs button[aria-selected="true"] { color: #fff; border-left-color: var(--signal); }
.ways__d { display: none; }
/* the card stands in a pane of glass, so the street reads as behind it */
/* the card stands in the street between its two lamps: their heads are at 23.5% and 74% of the
   picture's width (the picture is max(100%, 1500px) wide, centred), so the card keeps inside that, a
   little left of the middle as the lamps are */
.ways { --street: max(100vw, 1500px); }
.ways__pic { max-width: min(904px, calc(var(--street) * .455)); margin-inline: auto; translate: calc(var(--street) * -.0125) 0; }
/* the same holder as The case's, over the street: the glass is a little more opaque so the night doesn't show through it grey */
.ways__pic .exhibit { background: rgba(251, 247, 236, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(23, 19, 15, .3), 0 0 0 3px rgba(255, 255, 255, .88), 0 40px 70px -36px rgba(0, 0, 0, .9); }

/* --- 05 where it looks: the heading on the page, then a band of dark water the width of the screen,
   between two torn edges: the wreck and the chest on the sea bed (assets/img/deep.webp, and
   deep-tall.webp on phones). The top
   edge is the surface: the sources come up to it as bubbles, a logo in each (assets/js/deep.js).
   .deep is the band; .deep__art is the shape of the picture and stands on the band's foot, as the
   street does, so a band shorter than its picture loses the picture's top, which is open water.
   The band is tall enough at every width to keep the mast under the surface. The canvas covers
   the band; the edges lie over it */
.craft .depth { padding-bottom: 0; }
.depth .hd { margin-bottom: clamp(18px, 2.4vw, 30px); }
.deep { position: relative; isolation: isolate; overflow: hidden; height: clamp(600px, 52vw, 860px); margin: 0; background: var(--desk); }
.deep__art { position: absolute; z-index: -1; left: 50%; bottom: 0; width: max(100%, 1280px); aspect-ratio: 1920 / 1088; transform: translateX(-50%); }
/* the sea: what moves in the picture itself, on the picture's own grid (deep.js sets its height: the grid's last row hangs off the foot) */
.deep__art img, .deep__sea { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* the sea is painted finer than the screen shows it, so it's scaled smoothly; a flat-colour picture's grid stays crisp */
.deep__sea { image-rendering: pixelated; }
.deep__sea { pointer-events: none; }
.deep__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* --- the word search that stood here before the water: the kinds of source hidden in a grid, three
   at a time found, a found word getting the marker. Off the page for now (its markup is in git
   history, and tools/make_wordsearch.js makes it); kept until the water is settled on */
.wsearch { max-width: 648px; margin-inline: auto; container-type: inline-size; }
.wsearch__grid { display: grid; gap: 0; font: 500 22px/1 var(--f-tag); text-transform: uppercase; color: rgba(23, 19, 15, .34); user-select: none; -webkit-user-select: none; }
.ws__row { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); }
.ws__row i, .ws__w i { display: grid; place-items: center; height: 36px; font-style: normal; }
.ws__w { position: relative; z-index: 0; display: grid; grid-template-columns: subgrid; grid-column: span var(--n); transition: color .3s; }
/* the marker over a found word: the same stroke as the highlighter, drawn by the same two transforms */
.ws__w::before { content: ""; position: absolute; z-index: -1; inset: 3px -2px; border-radius: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M5 9C62 5 160 8 238 5c62-3 122 1 157-2l3 14c-2 12 1 23-3 36-74 3-194 0-274 3-50 2-90-1-116 1L2 44C5 33 0 20 5 9Z' fill='%23FFD02B'/%3E%3Cpath d='M6 47c118 3 258-2 388 1l-1 7c-92 3-242 0-383 2Z' fill='%23E9B200' fill-opacity='.5'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.3, .1, .2, 1); }
.ws__w.is-found { color: var(--ink); }
.ws__w.is-found::before { transform: scaleX(1); }
.ws__w.is-leaving::before { transform: scaleX(0); transform-origin: 100% 50%; transition-duration: .3s; }
.wsearch__key { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.wsearch__key li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 4px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--graphite); transition: color .3s, border-color .3s, background-color .3s; }
.wsearch__key li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: rgba(23, 19, 15, .2); transition: background-color .3s, box-shadow .3s; }
.wsearch__key li.is-found { color: var(--ink); border-color: var(--ink); background: var(--white); }
.wsearch__key li.is-found::before { background: var(--signal); box-shadow: 0 0 0 1px var(--ink); }
@container (max-width: 600px) { .wsearch__grid { font-size: 11px; } .ws__row i, .ws__w i { height: 21px; } .ws__w::before { inset: 2px -1px; } }
@media (prefers-reduced-motion: reduce) { .ws__w, .ws__w::before, .wsearch__key li { transition: none; } }

/* --- 05 conduct: the rules, as numbered clauses */
.craft .conduct__lead { gap: 20px; }
.craft .conduct__lead .hd { margin-bottom: 0; }
.craft .rules { border-top: 1.5px solid var(--ink); }
.craft .rules li { grid-template-columns: 44px 1fr; padding: 18px 0; }
.craft .rules li > span { margin-top: 3px; padding: 2px 5px 1px; border: 1.5px solid var(--ink); border-radius: 4px; }
.craft .rules p { font-size: 17px; }
/* the aside: a sticky note */
.sticky { position: relative; display: grid; gap: 10px; max-width: 290px; margin-top: 8px; padding: 18px 18px 16px; background: var(--signal); border: 1.5px solid var(--ink); border-radius: 2px 2px 14px 2px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.2deg); font-size: 15px; line-height: 1.4; font-weight: 600; }
.sticky::before { content: ""; position: absolute; left: 50%; top: -9px; width: 74px; height: 17px; margin-left: -37px; background: rgba(251, 248, 240, .72); box-shadow: 0 0 0 1px rgba(23, 19, 15, .12); transform: rotate(1.5deg); }
.sticky .link { justify-self: start; background: none; padding: 0; font-size: 14.5px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ 8 plans, questions, notes, the sheet */
.craft .seg2 { padding: 3px; border-radius: 10px; background: rgba(23, 19, 15, .06); }
.craft .seg2 button { height: 34px; padding: 0 14px; border-radius: 7px; font-size: 14px; }
.craft .seg2 button[aria-checked="true"] { background: var(--white); }
.craft .seg2 i { border-radius: 4px; }
.craft .cur select { height: 38px; border-radius: var(--r-btn); border-color: rgba(23, 19, 15, .24); background-color: var(--white); box-shadow: 0 1px 0 rgba(23, 19, 15, .1); }
.craft .plan { gap: 14px; padding: 22px 20px 20px; border-radius: var(--r-3); background: var(--white); border-color: var(--rule); box-shadow: var(--lift); }
.craft .plan--featured { border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.craft .plan__flag { top: -11px; padding: 4px 8px 3px; border-radius: 4px; box-shadow: 2px 2px 0 var(--ink); }
.craft .plan__price { border-top: 1px solid var(--rule); }
.craft .plan--featured .plan__price { border-top-color: var(--ink); }
.craft .plan__note { font: 400 12.5px/1.5 var(--f-sans); text-transform: none; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.craft .plan__credits { border-radius: var(--r-btn); }
.craft .plan__cta { --h: 42px; }
.craft .seats button { border-radius: 7px; }
.craft .seats .mono { font-size: 11px; }
.craft .home-pricing .more { justify-content: center; text-align: center; margin-top: 30px; }

.craft .faq .hd { grid-column: 1 / span 4; margin: 0; align-self: start; }
.craft .faq__list { border-top: 1.5px solid var(--ink); }
.craft .faq summary { padding: 20px 0; font-size: 18px; }
.craft .faq summary::after { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--rule); background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat, var(--white); box-shadow: 0 1px 0 rgba(23, 19, 15, .1); }
/* open: the plus loses its upright and the key turns yellow (it doesn't spin into a diamond) */
.craft .faq details[open] summary::after { transform: none; border-color: var(--ink); background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, var(--signal); }
.craft .faq summary:hover { text-decoration: none; }
.craft .faq summary:hover::after { border-color: var(--ink); }
.craft .faq details p { padding-bottom: 22px; font-size: 16px; }

.craft .hnotes__head { display: flex; align-items: end; }
.craft .hnotes__head .hd { margin-bottom: 0; }
.craft .hnotes__head { margin-bottom: clamp(32px, 4vw, 48px); }
.craft .hnote .cover { border-radius: var(--r-2); }

.craft .dsheet__in { border-radius: var(--r-4) var(--r-4) 0 0; }
.craft .dsheet__x { width: 40px; height: 40px; border-radius: var(--r-btn); box-shadow: var(--stamp); }
.craft .dsheet__act .btn { --h: 50px; }
.craft .dsheet__list li::before { border-radius: 5px; }
@media (min-width: 641px) {
  .craft .dsheet__in { border-radius: var(--r-4); box-shadow: 5px 5px 0 var(--ink); }
  .craft .dsheet__act .btn { --h: 44px; }
}

/* ------------------------------------------------------------------ 9 the foot of the page
   Light, like the page: the last word and the box again, the links, and a picture of the desk. It
   ends where the hero began, on the dark, through the same torn edge. */
.foot { position: relative; padding-top: clamp(64px, 7.6vw, 108px); background: var(--paper); color: var(--ink); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.foot .hd__t { max-width: 13ch; }
.foot__sub { margin-top: 16px; max-width: 26em; font-size: 17px; color: var(--ink-2); }
.foot .lookup { margin-top: 26px; max-width: 480px; }
.foot__demo { margin-top: 18px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; margin-top: clamp(44px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--rule); }
.foot__cols h3 { margin-bottom: 12px; color: var(--graphite); }
.foot__cols a, .foot__soon { display: block; padding: 4px 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.foot__cols a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal-deep); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.foot__soon { opacity: .45; cursor: default; }
/* the desk, as a card: the brand's line on its dark half, the way in at its foot */
.foot__card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 33 / 46; padding: 22px; border-radius: var(--r-4); color: #F6F1E4; background: var(--desk); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.foot__card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; image-rendering: pixelated; }
.foot__card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(13, 9, 5, .5), rgba(13, 9, 5, 0) 38%, rgba(13, 9, 5, 0) 62%, rgba(13, 9, 5, .82)); }
.foot__card p { font: 850 34px/.94 var(--f-display); text-transform: uppercase; word-spacing: .07em; text-shadow: 0 2px 0 rgba(9, 6, 3, .6); }
.foot__card .btn { align-self: flex-start; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: clamp(48px, 6vw, 72px); padding-block: 22px 26px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--graphite); }
.foot__base .brand { color: var(--ink); }
.foot__base .brand__mark { width: 49px; height: 30px; }
.foot__base .brand__word { font-size: 21px; }
.foot__base p { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot .heart__f { fill: var(--red); }
/* the last strip: the desk's dark, through the torn edge the other way up */
.foot__edge { position: relative; height: 96px; background: var(--desk); }
.foot__edge::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 78px; background: var(--paper); transform: scaleY(-1); -webkit-mask: url("../img/ink-edge.png") 0 100% / 960px 78px repeat-x; mask: url("../img/ink-edge.png") 0 100% / 960px 78px repeat-x; }

/* ------------------------------------------------------------------ 10 smaller screens */
@media (max-width: 1080px) {
  .craft .nav__links a { padding-inline: 10px; }

  .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 4px; }
  .stat:nth-child(even) { padding-right: 4px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .stats__note { max-width: 620px; }
  .ways__tabs { grid-template-columns: repeat(5, auto); justify-content: center; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 12px; background: rgba(243, 239, 228, .08); }
  .ways__tabs button { padding: 9px 14px 8px; border-left: 0; border-radius: 8px; text-align: center; }
  .ways__tabs span { display: none; }
  .ways__tabs button[aria-selected="true"] { color: var(--ink); background: var(--signal); }
  .ways__d { display: block; max-width: 30em; min-height: 3em; margin: 0 auto 26px; text-align: center; font-size: 15px; line-height: 1.5; color: rgba(243, 239, 228, .8); }
}
@media (max-width: 900px) {
  .craft .nav__bar { height: 54px; padding-left: 14px; }
  .craft .nav__login { display: none; }
  .craft .nav__cta { --h: 38px; }
  .caps { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 34em; }
  .feat { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .feat__pic, .feat:nth-child(odd) .feat__pic { padding-inline: 0; }
  .feat__pic::before { content: none; }
  /* stacked, every row reads the same way: the words, then the picture */
  .feat:nth-child(odd) { grid-template-columns: minmax(0, 1fr); }
  .feat:nth-child(odd) .feat__pic { order: 0; }
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .foot__card { aspect-ratio: 16 / 11; max-width: 520px; }
  .foot__card img { object-position: 50% 88%; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft .faq .hd { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .files { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 440px; }
  .stat { padding: 18px 16px 16px; gap: 9px; }
  .stat:nth-child(odd) { padding-left: 2px; }
  .stat dd { font-size: 46px; }
  .stat dt { max-width: none; font-size: 13.5px; }
  .stats__note { justify-content: flex-start; }
  .exhibit { border-radius: var(--r-3); }
  .exhibit::after { inset: 11px; }
  .exhibit__tag { left: 21px; top: 19px; }
  .exhibit__scale { right: 21px; bottom: 20px; width: 81px; }
  .intro__pic .exhibit, .ways .exhibit { --ar: 4 / 3 !important; }
  .feat__pic .exhibit { --ar: 3 / 2 !important; }
  .feat__pic .exhibit { border-radius: 20px; }
  .exhibit--glass { box-shadow: 0 0 0 5px rgba(243, 239, 228, .13), 0 30px 60px -30px rgba(0, 0, 0, .9); }
  /* phones get the tall street: the lamps and the phone box stand two-thirds of the way down it,
     so the band leaves that much under the card */
  .ways { padding-block: 112px clamp(236px, 63vw, 440px); }
  .street { width: 100%; aspect-ratio: 1088 / 1920; }
  .street__off { background-image: url("../img/street-tall-off.webp"); }
  .street__off--box { -webkit-mask: linear-gradient(#000 0 0) 5.9% 76.6% / 6.9% 8.6% no-repeat, radial-gradient(7% 5% at 8% 84%, #000 30%, transparent) no-repeat; mask: linear-gradient(#000 0 0) 5.9% 76.6% / 6.9% 8.6% no-repeat, radial-gradient(7% 5% at 8% 84%, #000 30%, transparent) no-repeat; }
  .street__off--lamp { -webkit-mask: radial-gradient(7% 7.5% at 77% 72.5%, #000 62%, transparent) no-repeat, radial-gradient(3.2% 5% at 76.5% 85.5%, #000 55%, transparent) no-repeat; mask: radial-gradient(7% 7.5% at 77% 72.5%, #000 62%, transparent) no-repeat, radial-gradient(3.2% 5% at 76.5% 85.5%, #000 55%, transparent) no-repeat; }
  .ways__pic { max-width: none; translate: none; }
  /* phones get the tall picture (assets/img/deep-tall.webp): all of it on a phone, and on wider
     screens up to here a band still tall enough to keep the mast under the surface */
  .deep { height: min(125vw, max(92vw + 60px, 600px)); }
  .deep__art { width: 100%; aspect-ratio: 1088 / 1360; }
  .ways__tabs { gap: 2px; }
  .ways__tabs button { padding: 9px 10px 8px; }
  .ways__tabs b { font-size: 14px; }
  .pitch { flex-direction: column; text-align: center; }
  .foot__base { flex-direction: column; align-items: flex-start; }
  .sticky { max-width: none; }
}
@media (max-width: 560px) {
  .craft body { font-size: 16px; }
  .craft .lookup__row { height: 54px; }
  .craft .lookup__row .btn { --h: 40px; padding-right: 12px; }
  .craft .lookup__row .btn kbd { display: none; }
  .craft .nav .brand__mark { width: 49px; height: 30px; }
  .craft .nav .brand__word { font-size: 21px; }
  .hd__s { font-size: 16px; }
  .file { padding: 18px 18px 16px; }
  .file__meta div { grid-template-columns: 84px minmax(0, 1fr); }
  .foot__card p { font-size: 30px; }
}
@media (max-width: 380px) {
  .ways__tabs button { padding-inline: 7px; }
  .ways__tabs b { font-size: 13px; }
}
/* fingers: a tab and a link are at least 44px to the touch, without growing as drawn */
@media (pointer: coarse) {
  .ways__tabs button { min-height: 44px; }
  .foot__cols a { padding-block: 8px; }
  .craft .faq summary::after { width: 30px; height: 30px; }
}
