/* awareful.com · "Gallery".
   A quiet gallery: each painting is hung like a plate in a fine book, on warm paper, with a hairline and an exact caption;
   a scene's or a figure's name in serif is the largest word near a picture. Full-bleed is kept for the first picture of a
   page, the moment the scene moves, and the night passage. One family with the store prototypes
   (docs/wip/design/perch-2026-11/studio/kit.css, web.css): the same paper, ink, 1240 wrap, pill button and serif names.

   The stylesheet is written in parts and goes out as one file, in the order of the file names:
   10 tokens · 20 base (type, layout, buttons, tags) · 30 the bar and the foot · 40 parts shared by pages · 50 home ·
   60 a scene's page · 70 reading pages · 90 motion and print.
   A page is composed from the parts in 40 and 70 (deploy/site/templates/README.md lists them); a new visual idea is a
   decision, not a line of CSS. */

@font-face { font-family: "Cinzel"; src: url(/assets/cinzel.58e33c83b8.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: light dark;

  /* colour: the paintings carry it; these stand back. Same values as the store's kit. */
  --paper: #F5F2EC;            /* the ground */
  --paper2: #ECE8E0;           /* a quiet panel: code, the foot */
  --ink: #1B1916;              /* text, and the one colour of buttons and links */
  --ink2: #5E5850;             /* second text (AA on paper and on paper2) */
  --ink3: #736C63;             /* captions, on paper only (4.6:1) */
  --hair: rgba(27, 25, 22, .14);   /* hairlines */
  --line: rgba(27, 25, 22, .36);   /* the ground line things stand on */
  --rule: rgba(27, 25, 22, .82);   /* the one strong rule: a table's head, the top of a list */
  --fill: rgba(27, 25, 22, .06);   /* the quiet button, inline code */
  --on: #F5F2EC;               /* text on an ink button */
  --need: #D2691E;             /* the one colour: something needs you (the app's own orange); a mark, never text */
  --need-glow: rgba(210, 105, 30, .42);

  /* night: the ground of a night band, in both schemes (deeper in the dark scheme, so the band still reads) */
  --night: #0C0B0A;
  --night2: #171513;
  --night-ink: #F3EFE8;
  --night-ink2: #B1AAA0;
  --night-ink3: #8D867C;
  --night-hair: rgba(243, 239, 232, .16);
  --night-line: rgba(243, 239, 232, .34);
  --night-rule: rgba(243, 239, 232, .8);
  --night-fill: rgba(243, 239, 232, .08);
  --night-edge: transparent;                /* the hairline that closes a night band: only needed in the dark scheme */

  /* things that sit on a picture, whatever the scheme */
  --on-pic: #FFFFFF;                        /* text on a painting, over the scrim */
  --on-pic2: rgba(255, 255, 255, .9);
  --on-wall: #1B1916;                       /* text on the light wall of the product picture */
  --on-wall2: #4A453F;
  --scrim-0: rgba(12, 11, 10, 0);           /* the scrim under text on a painting: four stops, bottom to top 3 2 1 0 */
  --scrim-1: rgba(12, 11, 10, .14);
  --scrim-2: rgba(12, 11, 10, .48);
  --scrim-3: rgba(12, 11, 10, .76);
  --scrim-glow: rgba(12, 11, 10, .35);      /* the soft halo behind white letters */
  --scrim-btn: rgba(12, 11, 10, .56);       /* a round control on a picture */
  --shadow-contact: rgba(24, 16, 8, .3);    /* where a phone or a figure meets the ground line */
  --fig-edge: drop-shadow(0 0 .6px rgba(27, 25, 22, .34)) drop-shadow(0 1px 2px rgba(27, 25, 22, .1));   /* the hair around a standing figure, so a pale one holds on paper */
  --bezel: #131211;                         /* a phone's body */
  --bezel-in: rgba(255, 255, 255, .13);
  --bezel-out: rgba(12, 11, 10, .5);
  --proto-bg: #1B1916;                      /* the preview line */
  --proto-ink: #F5F2EC;

  /* type: six sizes for the whole site, in rem so they follow the reader's own text size (1rem = 16px by default) */
  --t-display: clamp(4rem, 6.1vw, 7rem);              /* 64 to 112 · a page's name: 桌搭, 九份 */
  --t-title: clamp(1.75rem, 3.3vw, 3rem);             /* 28 to 48 · a name on a plate, a reading page's title */
  --t-lead: clamp(1.1875rem, 1.5vw, 1.375rem);        /* 19 to 22 · the one sentence */
  --t-body: 1.0625rem;                                /* 17 */
  --t-small: .875rem;                                 /* 14 · the bar, section labels, captions, tables */
  --t-micro: .75rem;                                  /* 12 · numbers, Latin name lines, coordinates, legal */

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;   /* Chinese names only */
  --latin: "Cinzel", "Songti SC", "Times New Roman", serif;                        /* Latin names only */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* space: one scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 96px; --s10: 144px;
  --m: 20px;                                /* side margin: 20 on a phone, 40 from 900 (the store's) */
  --gap: 16px;                              /* column gap: 16 on a phone, 24 from 900 */
  --wrap: 1240px;                           /* the widest the text grid gets, margins included (the store's) */
  --band: clamp(72px, 9vw, 128px);          /* between two sections */
  --measure: 33em;                          /* a reading line: about 66 Latin or 33 Chinese characters */

  /* motion: one curve, two durations */
  --out: cubic-bezier(.2, .7, .2, 1);
  --t-fade: .6s;
  --t-press: .18s;
}
@media (min-width: 900px) { :root { --m: 40px; --gap: 24px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100F0D; --paper2: #191714; --ink: #F3EFE8; --ink2: #B1AAA0; --ink3: #8D867C;
    --hair: rgba(243, 239, 232, .16); --line: rgba(243, 239, 232, .34); --rule: rgba(243, 239, 232, .8);
    --fill: rgba(243, 239, 232, .08); --on: #100F0D;
    --night: #050404; --night2: #0E0D0B; --night-edge: rgba(243, 239, 232, .22);
    /* on dark paper a black shadow and a near-black body vanish: the contact is a faint light on the line, the body lifts */
    --shadow-contact: rgba(243, 239, 232, .14);
    --bezel: #2A2724; --bezel-in: rgba(255, 255, 255, .2); --bezel-out: rgba(243, 239, 232, .12);
    --fig-edge: none;
  }
}

/* Inside a night band, and on the bars while one is mid-screen (30-night.js), the same tokens take the night values:
   every part works on the night ground without a class of its own. */
.night, :root.is-night .bar, :root.is-night .sub, :root.is-night .buy {
  --fig-edge: none;
  --paper: var(--night); --paper2: var(--night2); --ink: var(--night-ink); --ink2: var(--night-ink2); --ink3: var(--night-ink3);
  --hair: var(--night-hair); --line: var(--night-line); --rule: var(--night-rule); --fill: var(--night-fill); --on: var(--night);
}

/* ───────────────────────── 20 · base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
/* a page with the bar that stays at the bottom keeps what has the focus clear of it (64 + the safe area + a margin) */
html:has(.buy) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: var(--t-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(zh) body, body:lang(zh) { line-height: 1.7; }
/* A picture comes from the build as <picture><source><img></picture>; the img is the box, the picture has none. */
picture { display: contents; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre, table, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-picture :focus-visible, .on-picture:focus-visible { outline-color: var(--on-pic); }
::selection { background: var(--ink); color: var(--paper); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 100; background: var(--ink); color: var(--on); padding: 12px 16px; border-radius: 22px; font-size: var(--t-small); line-height: 20px; }
.skip:focus { top: 8px; }

/* ── type: the six sizes as classes. A page's h1 takes one of the first two (parts.mjs h1Class): a product page's name
      .t-display (weight 500), a reading page's title .t-title (weight 600). ── */
.t-display { font: 500 var(--t-display)/1.04 var(--sans); letter-spacing: 0; }
.t-title { font: 600 var(--t-title)/1.16 var(--sans); letter-spacing: -.01em; text-wrap: balance; }
.t-lead { font-size: var(--t-lead); line-height: 1.55; text-wrap: pretty; }
:lang(zh) .t-lead { line-height: 1.65; }
.t-small { font-size: var(--t-small); line-height: 1.5; }
.t-micro { font-size: var(--t-micro); line-height: 1.5; }
.dim { color: var(--ink2); }
.num { font-variant-numeric: tabular-nums; }

/* Names, and only names: a scene's or a figure's. Chinese in the system's Songti, Latin in Cinzel capitals.
   .nm is the name in the page's own language; .en is the small Latin line under a Chinese name. */
.nm { font-family: var(--serif); font-weight: 700; letter-spacing: .06em; line-height: 1.15; text-wrap: balance; }
.nm:lang(en) { font-family: var(--latin); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.t-display.nm { letter-spacing: .1em; margin-right: -.1em; line-height: 1.1; }
/* A Latin name set large is set at title size: Cinzel's capitals are wide, and "Humble Administrator's Garden" has to fit a phone. */
.t-display.nm:lang(en) { font-size: var(--t-title); letter-spacing: .12em; margin-right: -.12em; line-height: 1.25; text-wrap: balance; }
.en { font-family: var(--latin); font-weight: 400; font-size: var(--t-micro); letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; }
.en:lang(zh) { font-family: var(--serif); font-weight: 700; letter-spacing: .3em; }   /* on an English page the second line is the Chinese name */

/* A phrase that must not break inside: Chinese sentences are cut into phrases, so no line ends on one stray character. */
.ph { display: inline-block; }

/* A place and its coordinates: the one spec that travels with a scene. */
.geo { font-size: var(--t-micro); line-height: 1.5; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink3); }
.geo .deg { white-space: nowrap; }

/* ── layout ── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
/* A column under a full-width section head: a list, a set's table, a text. From 900 its children sit on columns 4 to 11,
   the column a reading page's text stands on, so every table and list on the site starts on one line. */
@media (min-width: 900px) {
  .inset { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .inset > * { grid-column: 4 / span 8; }
}
.prose { max-width: var(--measure); }
.prose p { text-wrap: pretty; }
.prose p + p { margin-top: var(--s4); }
.band { padding-top: var(--band); }
.band-end { padding-bottom: var(--band); }

/* A section's head: a hairline, its label on the left, a quiet note on the right. The names and pictures are the big things. */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s5); border-top: 1px solid var(--hair); padding-top: var(--s3); margin-bottom: clamp(24px, 3.4vw, 48px); }
.head h2, .head h3 { font: 600 var(--t-small)/1.5 var(--sans); flex: none; max-width: 68%; }
.head p { font-size: var(--t-small); line-height: 1.5; color: var(--ink3); text-align: right; text-wrap: balance; }
.head p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }

/* ── buttons and links: one ink. A page has one .btn; everything else is quieter. ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 25px;
  font: 600 var(--t-body)/1 var(--sans); background: var(--ink); color: var(--on); white-space: nowrap; cursor: pointer;
  transition: transform var(--t-press) var(--out), opacity var(--t-press); }
.btn:active { transform: scale(.97); opacity: .86; }
.btn.is-quiet { background: var(--fill); color: var(--ink); }
.btn.is-line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.is-small { min-height: 44px; padding: 0 20px; font-size: var(--t-small); }
.btn[aria-disabled="true"] { opacity: .38; pointer-events: none; }
/* The text button: words and an arrow, a hairline under the words. 44 high to the touch. */
.go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; }
.go > span { box-shadow: 0 1px 0 currentColor; padding-bottom: 1px; }
.go::after { content: "→" / ""; font-family: var(--sans); transition: transform var(--t-press) var(--out); }   /* drawn, not read */
.go.is-down::after { content: "↓" / ""; }
.go:hover::after { transform: translateX(3px); }
.go.is-down:hover::after { transform: translateY(3px); }
/* A link inside running text. A link in a reading page that is navigation, not a word in a sentence, carries .bare. */
.txt a, .read-body a:not(.go):not(.thing):not(.bare) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.txt a:hover, .read-body a:not(.go):not(.thing):not(.bare):hover { text-decoration-color: currentColor; }

/* A tag: a small quiet mark on a thing in a list or under a title ("Preview: not public yet"). Never a colour. */
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--hair);
  font: 500 var(--t-micro)/1 var(--sans); letter-spacing: .02em; color: var(--ink2); white-space: nowrap; vertical-align: middle; }
.on-picture .tag { box-shadow: inset 0 0 0 1px var(--on-pic2); color: var(--on-pic); }
/* 「即将」 (Coming soon): the chip on a thing that is not out yet, and a page's own sentence about it. Until launch only
   (deploy/site/SOON.md). The chip is ink on paper, filled, so it reads as a state and not as one more category tag. */
.tag.is-soon { box-shadow: none; background: var(--ink); color: var(--on); font-weight: 600; letter-spacing: .06em; }
.on-picture .tag.is-soon, .night .tag.is-soon { background: var(--on-pic); color: #1B1916; box-shadow: none; }
.soon-note { display: flex; align-items: baseline; gap: var(--s2); margin-top: var(--s3); font-size: var(--t-small); line-height: 1.6; color: var(--ink2); max-width: 44em; }
.soon-note .tag { flex: none; position: relative; top: -1px; }

/* ───────────────────────── 30 · the bar and the foot ───────────────────────── */
/* The line that says this is a preview: the first thing inside the bar (the banner), one line of 27; when the bar sticks,
   it goes up with the bar's top 12 and only the thin 44 stays. */
.proto { height: 27px; margin: 0 0 12px; background: var(--proto-bg); color: var(--proto-ink); font-size: var(--t-micro); line-height: 17px; text-align: center; padding: 5px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The bar: 56 high at the top of the page; it sticks 12 higher, so after the first scroll it is a thin 44. No script, nothing moves.
   Its content sits on the same 1240 wrap as the store's. */
.bar { position: sticky; top: -12px; z-index: 50; height: 56px; padding-top: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--hair);
  transition: background-color var(--t-fade) var(--out), color var(--t-fade) var(--out); }
.bar:has(> .proto) { top: -39px; height: 83px; padding-top: 0; }
.bar-in { height: 44px; display: flex; align-items: center; gap: var(--s5); position: relative; }
.mark { font: 600 var(--t-body)/44px var(--sans); letter-spacing: .08em; min-width: 44px; }
.mark:lang(en) { letter-spacing: .01em; }
.bar-links { display: flex; gap: 28px; font-size: var(--t-small); color: var(--ink2); }
.bar-links a { display: inline-flex; align-items: center; min-height: 44px; }
.bar-links a:hover, .bar-links a[aria-current] { color: var(--ink); }
.bar-links a[aria-current] { font-weight: 600; }
.lang { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: var(--t-small); color: var(--ink3); }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; color: var(--ink2); }
.lang a:hover { color: var(--ink); }
@media (min-width: 760px) { .lang a { min-width: 0; } .bar .lang a:last-child { padding-right: 0; } }   /* with a pointer the words sit evenly; the last one ends on the wrap's edge */
.lang a[aria-current] { color: var(--ink); font-weight: 600; }
.menu-box, .menu-btn, .menu-js { display: none; }
/* the language switch is written twice (parts.mjs bar()): before the menu at a phone, after the links with a pointer */
.bar .lang.is-narrow { display: none; }

/* 390: the links fold into a menu that opens without script (a checkbox and its label). */
@media (max-width: 759.9px) {
  .bar-in { gap: var(--s2); }
  .bar .lang.is-wide { display: none; }
  .bar .lang.is-narrow { display: flex; margin-right: var(--s2); }
  .menu-box { display: block; position: absolute; right: var(--m); top: 0; width: 56px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
  .menu-btn, .menu-js { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; height: 44px; font-size: var(--t-small); font-weight: 600; }
  .menu-btn { pointer-events: none; }
  .menu-js { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
  /* with the script the checkbox and its label give way to a real button (50-menu.js); the checkbox keeps the state */
  .js-menu .menu-box, .js-menu .menu-btn { display: none; }
  .menu-box:focus-visible ~ .menu-btn { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
  .menu-btn .is-open, .menu-js .is-open, .menu-box:checked ~ .menu-btn .is-shut, .menu-box:checked ~ .menu-js .is-shut { display: none; }
  .menu-box:checked ~ .menu-btn .is-open, .menu-box:checked ~ .menu-js .is-open { display: inline; }
  .bar-links { display: none; position: absolute; left: 0; right: 0; top: 44px; flex-direction: column; gap: 0; padding: var(--s2) var(--m) var(--s3);
    background: var(--paper); box-shadow: 0 1px 0 var(--hair); font-size: var(--t-lead); color: var(--ink); }
  .bar-links a { min-height: 56px; border-bottom: 1px solid var(--hair); }
  .bar-links a:last-child { border-bottom: 0; }
  .menu-box:checked ~ .bar-links { display: flex; }
}

/* A product's own bar under the first one, as apple.com does: there the first bar scrolls away and this one stays.
   The first bar keeps a stacking place above the second (z 49) and the first picture, so its phone menu opens over them. */
.bar.is-static, .bar.is-static:has(> .proto) { position: relative; top: auto; z-index: 51; }
.sub { position: sticky; top: 0; z-index: 49; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--hair);
  transition: background-color var(--t-fade) var(--out), color var(--t-fade) var(--out); }
.sub-in { height: 44px; display: flex; align-items: center; gap: var(--s5); }
.sub-name { font: 600 var(--t-body)/44px var(--sans); letter-spacing: .04em; flex: none; min-width: 44px; }
.sub-name:lang(en) { letter-spacing: 0; }
.sub ul { margin-left: auto; display: flex; gap: clamp(8px, 2vw, 20px); font-size: var(--t-small); color: var(--ink2); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.sub ul::-webkit-scrollbar { display: none; }
.sub li a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.sub li a:hover, .sub li a[aria-current] { color: var(--ink); }
.sub li a[aria-current] { font-weight: 600; box-shadow: inset 0 -1px 0 var(--ink); }

/* The bar that stays at the bottom of a product page: the thing's name and the page's one main action. */
.buy { position: sticky; bottom: 0; z-index: 48; background: var(--paper); color: var(--ink); box-shadow: 0 -1px 0 var(--hair); padding-bottom: env(safe-area-inset-bottom);
  transition: background-color var(--t-fade) var(--out), color var(--t-fade) var(--out), transform .32s var(--out), visibility 0s; }
/* A page whose first screen already carries the bar's action (/perch) keeps the bar away until that screen has gone (45-buy.js). */
.buy.is-away { transform: translateY(105%); visibility: hidden; transition: transform .32s var(--out), visibility 0s .32s; }
.buy.is-still { transition: none; }
@media (prefers-reduced-motion: reduce) { .buy, .buy.is-away { transition: none; } }
.buy-in { min-height: 64px; display: flex; align-items: center; gap: var(--s4); }
.buy .nm { font-size: var(--t-lead); }
.buy .en { color: var(--ink2); }
/* the price, where it stands: quietly, right before the button (「价格未定」 until it is decided) */
.buy-price { margin-left: auto; font-size: var(--t-micro); line-height: 1.4; color: var(--ink3); text-align: right; }
.buy .btn { margin-left: auto; flex: none; }
.buy-price + .btn { margin-left: 0; }
/* .buy-what (optional): the name and the price together, so at a phone the price can stand under the name and leave the
   button its room ("Studio · not open yet" is long) */
.buy-what { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s4); }
.buy-what .nm { min-width: 0; text-wrap: balance; }
@media (max-width: 479.9px) {
  .buy .en { display: none; } .buy .nm:lang(en) { font-size: var(--t-micro); letter-spacing: .12em; line-height: 1.4; text-wrap: balance; } .buy-in { gap: var(--s3); }
  .buy-what { flex-direction: column; align-items: flex-start; gap: 2px; }
  .buy-what .buy-price { margin-left: 0; text-align: left; }
  .buy .btn.is-small { padding: 0 14px; }
}

/* The foot: four columns, then one line. Equally complete on every page. */
main { padding-bottom: var(--band); overflow-x: clip; }   /* a ground line may run past both edges of the screen; it is cut here */
main:has(> .night:last-child), main.is-flush { padding-bottom: 0; }   /* a page that ends on a night band or a full-bleed picture meets the foot */
.foot { background: var(--paper2); color: var(--ink2); font-size: var(--t-small); line-height: 1.5; padding: var(--s7) 0 var(--s6); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--gap); }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot h2 { font: 600 var(--t-small)/1.5 var(--sans); color: var(--ink); padding-bottom: var(--s2); }
.foot li a { display: flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .foot li a { min-height: 36px; } }
.foot a:hover { color: var(--ink); }
.foot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s5); margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--hair); font-size: var(--t-micro); }
.foot-line > a, .foot-line > span { display: inline-flex; align-items: center; min-height: 44px; }
.foot-line .lang { margin: 0; font-size: var(--t-micro); }
.foot-line .lang a:first-child { justify-content: flex-start; padding-left: 0; min-width: 44px; }
.foot-line .lang span { color: var(--ink2); }   /* the separator: ink3 is for paper only, and this is paper2 */
.foot-line .co { margin-left: auto; }
@media (max-width: 899.9px) { .foot-line .co { margin-left: 0; flex-basis: 100%; } }
/* the line's second half (what 即将 means) goes where a phone has no room for it in English */
@media (max-width: 559.9px) { .proto-more:lang(en) { display: none; } }

/* ───────────────────────── 40 · parts shared by pages ───────────────────────── */

/* ── A plate: a picture hung in the grid with its caption. The box has its size before the picture comes, and the
      picture brings its own flat colour (the build writes it on the img). ── */
.plate { display: block; }
.plate-pic { display: block; position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 9); border-radius: 2px; background: var(--paper2); }
/* --pos places a crop (object-position); --zoom draws a detail larger, about the same point */
.plate-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); scale: var(--zoom, 1); transform-origin: var(--pos, 50% 50%); }
.plate-cap { display: flex; align-items: baseline; gap: var(--s3); padding-top: var(--s3); font-size: var(--t-small); line-height: 1.5; color: var(--ink2); }
.plate-cap .no { font-size: var(--t-micro); color: var(--ink3); font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 2.6em; flex: none; }
.plate-cap b { font-weight: 600; color: var(--ink); }
a.plate .plate-pic, a .plate-pic { transition: opacity var(--t-press); }
a.plate:hover .plate-pic, a:hover > .plate-pic { opacity: .92; }

/* ── A phone: the screenshot inside a thin, exact bezel drawn in container units. A hairline, nothing else:
      no notch of its own (the stills carry the status bar), no reflection, no drop shadow. ── */
.phone { display: block; container-type: inline-size; width: 100%; }
.phone-in { display: block; padding: 1.9cqw; border-radius: 15cqw; background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-in), 0 0 0 1px var(--bezel-out); }
.phone-screen { display: block; position: relative; overflow: hidden; aspect-ratio: 390 / 844; border-radius: 13.2cqw; background: var(--bezel); }
.phone-screen img, .phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone.is-land .phone-in { padding: .88cqw; border-radius: 6.93cqw; }
.phone.is-land .phone-screen { aspect-ratio: 844 / 390; border-radius: 6.1cqw; }

/* ── The ground line: phones and figures stand side by side on one hairline, each with a soft contact shadow;
      what is said about each hangs under the line. <ul class="ground" style="--n:3"> of <li><span class="stand">…</span>
      <span class="hang">…</span></li>. The line runs through every item; with .is-wide it runs the whole width of the list,
      which a page gives the width of its wrap (one rule: a ground line ends where the text column ends, never at the screen's
      edge). Things stand ON the line: the line is drawn just under the foot of the picture box, bezel included. ── */
.ground { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: var(--gap); }
/* the subgrid sets its own row gap to nothing: a line that wraps into more rows keeps its words right under the line */
.ground > * { display: grid; grid-row: span 2; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; min-width: 0; }
.ground > *::before { content: ""; grid-area: 1 / 1; align-self: end; height: 1px; translate: 0 1px; background: var(--line); margin-inline: calc(var(--gap) * -.5); }
.ground.is-wide { clip-path: inset(-100vh 0); }
.ground.is-wide > *::before { margin-inline: -100vw; }
.stand { grid-area: 1 / 1; align-self: end; justify-self: center; position: relative; display: block; width: 100%; max-width: var(--stand, none); }
.stand::after { content: ""; position: absolute; z-index: -1; left: 3%; right: 3%; bottom: -7px; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--shadow-contact), transparent); pointer-events: none; }
.ground > * { position: relative; z-index: 0; }
.hang { grid-area: 2 / 1; display: block; padding-top: var(--s4); text-align: center; font-size: var(--t-small); line-height: 1.5; color: var(--ink2); }
.hang .nm { display: block; font-size: var(--t-title); color: var(--ink); }
.hang .en { display: block; padding-top: 2px; color: var(--ink2); }
.hang b { font-weight: 600; color: var(--ink); }

/* A figure standing: a transparent picture, feet on the line. No panel behind her. A pale figure (Lumen, Lumi) would melt
   into the paper, so every standing figure gets a hair of shadow that traces her own outline (--fig-edge; none at night
   and in the dark scheme, where the paper is darker than any figure). */
.fig-pic { display: block; aspect-ratio: 13 / 24; }
.fig-pic img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; background-color: transparent !important; }
.stand.is-fig img { filter: var(--fig-edge); }
.stand.is-fig::after { left: 14%; right: 14%; }
/* A whole item of the line as one link: the link takes the item's two rows (stand above the line, words under it). */
.ground > * > a { display: grid; grid-area: 1 / 1 / span 2 / auto; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
.ground > * > a:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* The figures of a scene, or of a list: one line at desktop; at phone width the line slides sideways (the row is long on purpose). */
.cast { --n: 4; }
.cast .hang { padding-inline: 2px; }
.cast.is-many .hang .nm { font-size: var(--t-lead); }
/* Latin names under figures: Cinzel's capitals are wide (SAFFRON beside SELENE), so they stand at the lead size, tracked */
.cast .hang .nm:lang(en) { font-size: var(--t-lead); letter-spacing: .1em; }
@media (max-width: 899.9px) {
  .cast-rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--m); scrollbar-width: none; margin-inline: calc(var(--m) * -1); }
  .cast-rail::-webkit-scrollbar { display: none; }
  .cast-rail .ground { grid-template-columns: repeat(var(--n), 36vw); width: max-content; padding-inline: var(--m); column-gap: 0; padding-bottom: 2px; }
  .cast-rail .ground > * { scroll-snap-align: start; }
  .cast-rail .ground > *::before { margin-inline: 0; }
  .cast-rail .ground > :first-child::before { margin-left: calc(var(--m) * -1); }
  .cast-rail .ground > :last-child::before { margin-right: calc(var(--m) * -1); }
  .cast-rail .hang .nm { font-size: var(--t-lead); }
}
@media (min-width: 900px) {
  .cast { column-gap: 0; justify-content: center; grid-template-columns: repeat(var(--n), minmax(0, 200px)); }
  .cast.is-few { grid-template-columns: repeat(var(--n), minmax(0, 240px)); }
  .cast { clip-path: inset(-100vh 0); }   /* the line runs the wrap's width, not the screen's */
  .cast > *::before { margin-inline: 0; }
  .cast > :first-child::before { margin-left: -100vw; }
  .cast > :last-child::before { margin-right: -100vw; }
  .cast .stand { width: 92%; }
}

/* ── A row that slides sideways: the wall of scenes. It bleeds to both edges; the first plate starts on the text margin. ── */
.rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--m), calc((100% - var(--wrap)) / 2 + var(--m))); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: var(--gap); width: max-content; min-width: 100%; padding-inline: max(var(--m), calc((100vw - var(--wrap)) / 2 + var(--m))); }
.rail-track > li { flex: none; width: clamp(280px, 80vw, 568px); scroll-snap-align: start; }
.rail-nav { display: none; gap: var(--s2); justify-content: flex-end; padding-top: var(--s5); }
.js .rail-nav { display: flex; }
.rail-nav button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font: 400 var(--t-body)/1 var(--sans); cursor: pointer; transition: opacity var(--t-press); }
.rail-nav button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.rail-nav button[aria-disabled="true"] { opacity: .32; cursor: default; box-shadow: inset 0 0 0 1px var(--hair); }   /* still focusable (40-rail.js) */
@media (max-width: 899.9px) { .js .rail-nav { display: none; } }

/* ── A scene in a list: the painting, then its name with room around it, the place and its coordinates beside it. ── */
.scene-card { display: block; }
.scene-name { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--s4); padding-top: var(--s4); }
.scene-name .nm { grid-column: 1 / -1; font-size: var(--t-title); }
.scene-name .en { grid-column: 1; color: var(--ink2); padding-top: 2px; }
.scene-name .geo { grid-column: 1 / -1; padding-top: var(--s1); }
.scene-name .tag { grid-column: 1 / -1; justify-self: start; margin-top: var(--s2); }
@media (min-width: 760px) { .scene-name .geo { grid-column: 2; grid-row: 2; text-align: right; padding-top: 0; } }
.scene-card.is-small .scene-name { display: block; padding-top: var(--s3); }
.scene-card.is-small .scene-name .nm { display: block; font-size: var(--t-lead); }
.scene-card.is-small .scene-name .en { display: block; }
/* a Latin name in a narrow card: small at a phone, so the longest name (Humble Administrator's Garden) keeps its words whole */
.scene-card.is-small .scene-name .nm:lang(en) { font-size: var(--t-small); overflow-wrap: break-word; }
@media (min-width: 900px) { .scene-card.is-small .scene-name .nm:lang(en) { font-size: var(--t-lead); } }
.scene-card.is-small .geo { display: none; }

/* A grid of small cards: the other scenes, a list of scenes. Two across at a phone, four from 900 (three with .is-3). */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--gap); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--s7); } .cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── A list of things (guides, agents, questions, updates): ruled rows, the thing's name, one line, an arrow. ── */
.things { border-top: 1px solid var(--rule); }
.things > li { border-bottom: 1px solid var(--hair); }
.thing { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--s4); padding-block: 14px; min-height: 52px; }
.thing::after { content: "→" / ""; grid-column: 2; grid-row: 1; color: var(--ink3); transition: transform var(--t-press) var(--out), color var(--t-press); }
a.thing:hover::after { transform: translateX(3px); color: var(--ink); }
.thing-name { grid-column: 1; font-weight: 500; text-wrap: pretty; }
.thing-line { grid-column: 1; font-size: var(--t-small); line-height: 1.55; color: var(--ink2); padding-top: 2px; text-wrap: pretty; }
.thing-meta { grid-column: 1; font-size: var(--t-micro); color: var(--ink3); font-variant-numeric: tabular-nums; letter-spacing: .04em; padding-top: var(--s1); }
span.thing::after { content: none; }

/* ── The night band. When a night painting appears the whole band turns to the night ground and the painting runs
      edge to edge, meeting the band's top edge: the cut from paper to night is the painting itself. In the dark scheme
      the band's ground is deeper than the paper and a hairline closes it, so the step from night back to paper is seen.
      A thing that stands with the band (night({ slot })) goes in .night-slot; the page places it. ── */
.night { background: var(--paper); color: var(--ink); margin-top: var(--band); padding-bottom: clamp(40px, 5.6vw, 80px); box-shadow: 0 1px 0 var(--night-edge); }
.night-pic { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--night2); }
.night-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (min-width: 700px) { .night-pic { aspect-ratio: 16 / 9; max-height: 86svh; width: 100%; } }
.night-cap { display: grid; gap: var(--s3) var(--gap); padding-top: var(--s5); }
.night-cap .nm { font-size: var(--t-title); }
.night-cap .en { color: var(--ink2); padding-top: 2px; }
.night-cap .geo { padding-top: var(--s2); }
.night-cap .no { font-size: var(--t-micro); color: var(--ink2); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.night-cap h3 { font: 600 var(--t-title)/1.16 var(--sans); letter-spacing: -.01em; }
.night-cap p { color: var(--ink2); max-width: 30em; }
.night-cap .t-lead { color: var(--ink); }
.night-cap .go { margin-top: var(--s2); }
@media (min-width: 900px) {
  .night-cap { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .night-cap > :first-child { grid-column: 1 / span 5; }
  .night-cap > :last-child { grid-column: 7 / span 6; }
}

/* ── A spec list: terms and values, hairlines only. ── */
.spec { display: grid; }
.spec > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: var(--s4); padding-block: 14px; border-bottom: 1px solid var(--hair); }
.spec > div:first-child { border-top: 1px solid var(--rule); }
.spec dt { color: var(--ink2); font-size: var(--t-small); line-height: 1.9; }
.spec:lang(zh) dt { line-height: 2.05; }
.spec dd { font-variant-numeric: tabular-nums; }
.spec dd small { display: block; font-size: var(--t-small); line-height: 1.55; color: var(--ink2); padding-top: 2px; }
.spec dd.is-quiet { color: var(--ink2); }
/* a value that is a link as a whole (its words say where it goes): the full row's height to the touch */
.spec-go { display: block; min-height: 44px; margin-block: -10px; padding-block: 10px; }
.spec-go > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.spec-go:hover > span { text-decoration-color: currentColor; }
@media (min-width: 900px) { .spec > div { grid-template-columns: 9em minmax(0, 1fr); } }

/* ── A table: hairlines only, tabular figures. At phone width each row restacks into label and value (the head's
      words come from data-th on each cell). ── */
.table-wrap { overflow-x: auto; }
.facts { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.55; font-variant-numeric: tabular-nums; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px var(--s5) 14px 0; border-bottom: 1px solid var(--hair); }
.facts th:last-child, .facts td:last-child { padding-right: 0; }
.facts thead th { font-size: var(--t-micro); font-weight: 600; color: var(--ink2); padding-block: 0 10px; border-bottom: 1px solid var(--rule); }
.facts thead th:lang(en) { letter-spacing: .08em; text-transform: uppercase; }
.facts tbody th { font-weight: 600; }
.facts td { color: var(--ink2); }
.facts td b, .facts td strong { color: var(--ink); font-weight: 600; }
.facts .n { white-space: nowrap; width: 1%; }
@media (min-width: 620px) { .facts.is-2 tbody th { width: 46%; } .facts.is-3 tbody th { width: 30%; } }
/* table(…, { hideHead: true }): the head is read, not shown */
.facts.is-headless thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.facts.is-headless tbody tr:first-child > * { border-top: 1px solid var(--rule); }
@media (max-width: 619.9px) {
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; }
  .facts thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .facts tbody { border-top: 1px solid var(--rule); }
  .facts tr { padding-block: 14px; border-bottom: 1px solid var(--hair); }
  .facts tbody th, .facts td { padding: 0; border: 0; }
  .facts td { padding-top: var(--s2); }
  .facts td::before { content: attr(data-th); display: block; font-size: var(--t-micro); font-weight: 600; color: var(--ink3); padding-bottom: 1px; }
  .facts td:lang(en)::before { letter-spacing: .08em; text-transform: uppercase; }
  .facts.is-2 td::before { content: none; }
  .facts.is-2 td { padding-top: var(--s1); }
}

/* ── The two-cell ruled panel: two ways in, side by side, each with a small hairline drawing. No fill, no card. ── */
.duo { display: grid; border-block: 1px solid var(--hair); }
.duo-cell { display: flex; flex-direction: column; align-items: flex-start; padding-block: var(--s6) var(--s5); min-width: 0; }
.duo-cell + .duo-cell { border-top: 1px solid var(--hair); }
.duo-cell h3 { font: 600 var(--t-title)/1.16 var(--sans); letter-spacing: -.01em; padding-top: var(--s5); }
.duo-cell p { font-size: var(--t-lead); line-height: 1.55; color: var(--ink2); padding-top: var(--s2); max-width: 20em; text-wrap: pretty; }
.duo-cell .go { margin-top: auto; padding-top: var(--s4); }
@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; }
  /* the words on the left of a cell, its drawing on the right */
  .duo-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: var(--s6); align-items: start; padding: var(--s7) var(--s7) var(--s6) 0; min-height: 280px; }
  .duo-cell h3 { grid-column: 1 / -1; padding-top: 0; }
  .duo-cell p, .duo-cell .go { grid-column: 1; }
  .duo-cell .draw { grid-column: 2; grid-row: 2 / span 2; align-self: end; width: clamp(160px, 15vw, 220px); margin-bottom: var(--s3); }
  .duo-cell .go { align-self: end; }
  .duo-cell + .duo-cell { border-top: 0; border-left: 1px solid var(--hair); padding-left: var(--s7); padding-right: 0; }
}
/* The drawings: one line weight, the ground line a little stronger, no fill. */
.draw { display: block; width: 240px; max-width: 100%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1; overflow: visible; }
.draw .dash { stroke-dasharray: 2 4; }
.draw .solid { fill: var(--ink); stroke: none; }
.draw .floor { stroke: var(--line); }

/* ── Small plates in the phone's proportion (the six looks): never drawn larger than they are. ── */
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 168px)); justify-content: space-between; gap: var(--s6) var(--gap); }
.minis .plate-pic { --ar: 168 / 364; border-radius: 9% / 4.2%; box-shadow: 0 0 0 1px var(--hair); }
.minis .plate-cap { display: block; }
.minis .plate-cap .no { display: block; }
@media (min-width: 900px) { .minis { grid-template-columns: repeat(6, minmax(0, 168px)); } }

/* ── Steps that keep time: four (or so) short labels under hairlines; the one happening now has an ink rule. ── */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--s3); counter-reset: step; }
.steps li { counter-increment: step; position: relative; border-top: 1px solid var(--hair); padding-top: var(--s2); font-size: var(--t-small); line-height: 1.45; color: var(--ink2); text-wrap: balance; }
.steps li::before { content: counter(step); display: block; font-size: var(--t-micro); font-variant-numeric: tabular-nums; color: var(--ink3); padding-bottom: 2px; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); opacity: 0; transition: opacity var(--t-fade) var(--out); }
.steps li.is-now { color: var(--ink); }
.steps li.is-now::after { opacity: 1; }
@media (max-width: 599.9px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s4); } }   /* two by two at a phone */
@media (min-width: 900px) { .steps { gap: var(--gap); } }

/* A figure who would vanish on paper (content/pages/figures.json → edge: Lumen and Lumi pale, Nyx and 小夜 dark) gets a
   faint outline of her own colour's opposite in both schemes, as on her own page (71-figures.css .fg-edge). */
.stand.is-fig.is-edge img { filter: drop-shadow(0 0 1px color-mix(in srgb, var(--ink) 34%, transparent)) drop-shadow(0 0 6px color-mix(in srgb, var(--ink) 9%, transparent)); }

/* ───────────────────────── 50 · home ───────────────────────── */

/* The first screen (Founder 12-03: 桌搭 is the picture, the Agent half is the words, both in the hero).
   The feeling: unhurried. The company is at work without you; the one thing that needs you waits for one tap.
   The picture is the first thing and the largest, with the product's name hung on its own wall. Under it, on paper:
   the brand line (the h1, one sentence a line, cut into phrases that never break) and the two ways on at the left; at
   the right "now", the three figures in that phone as lines of text: who, her state, what her agent says. One line
   needs you and waits; Approve answers it (25-now.js). From 900 a hairline runs from the phone in the picture down to
   those lines, so picture and text read as one thing told twice.
   below 700: the picture cropped upright, so the display's right half and the phone on its stand are large; the name
        on the wall above the phone; the callout one caption line under the picture; then the h1, the sentence, the
        lines, the buttons.
   700: the whole picture; the name on the wall left of the display.
   900 up: the frame is as tall as the window leaves it after the words, never shorter than the picture from the top of
        the display to the foot of the phone's stand: what goes is desk at the bottom (and a little wall at the top).
        On a short wide window the picture stops growing in width instead of losing the stand, and stands centred.
        The callout is drawn in the picture with a hairline leader. Every point on the picture is a share of the picture
        (--y of its height, --x of its width), so it holds at any size. */
.hero { position: relative; }
.hero-pic { position: relative; }
.hero-frame { display: block; position: relative; overflow: hidden; aspect-ratio: 390 / 420; background: var(--paper2); }
.hero-art { position: absolute; display: block; width: 260%; aspect-ratio: 2048 / 1152; left: -130%; top: -19%; }   /* the display's right half and the phone, large; the keyboard out of frame */
.hero-art img { display: block; width: 100%; height: 100%; max-width: none; }
.hero-art { transform-origin: 82.05% 63.4%; }   /* the middle of the phone in the picture: the picture comes in about it */
.hero-name { position: absolute; z-index: 1; top: var(--s4); right: var(--m); font: 500 var(--t-title)/1 var(--sans); color: var(--on-wall); }
.callouts { display: flex; flex-wrap: wrap; gap: 0 var(--s5); padding: var(--s2) var(--m) 0; font-size: var(--t-micro); line-height: 1.6; letter-spacing: .04em; color: var(--ink3); }
.callouts .k::after { content: " · "; white-space: pre; }
.hero-leader { display: none; }
.hero-text { padding-top: var(--s4); }
/* the h1: the brand line at the title size */
.brand { text-wrap: balance; margin-left: -.04em; }
.brand:lang(zh) { line-height: 1.24; letter-spacing: .01em; }
.brand .bl { display: block; }
.brand .ph { white-space: nowrap; }
/* a Chinese line ends on a full-width comma or stop whose right half is blank: let that half hang past the measure, so
   「一个人活成一家公司，」 stays one line on a 320 screen */
.brand:lang(zh) .bl { margin-right: -.5em; }
/* the English line is long: a size that keeps "and still live like a normal person." one line from 900 */
.brand.is-en { font-size: clamp(1.625rem, 6.6vw, 2.25rem); line-height: 1.12; letter-spacing: -.015em; }
.hero-line { margin-top: var(--s3); font-size: var(--t-lead); line-height: 1.55; max-width: 30em; text-wrap: pretty; }
.hero-line:lang(zh) { line-height: 1.65; }
.hero-acts { margin-top: var(--s5); }
.hero-acts > p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.hero-acts .soon-note { margin-top: var(--s4); }

/* "now": the Agent half as text. A strong rule, a caption, three lines on hairlines. A line is: the figure standing at
   its left (small, the same picture as in the scene), her name in the names' serif, the state word, what her agent
   says. The line that needs you carries the one colour of the page, the product's own (--need), as a small flame. */
.now { margin-top: var(--s5); border-top: 1px solid var(--rule); }
.now-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s4); padding: 6px 0 2px; font-size: var(--t-micro); line-height: 1.5; letter-spacing: .06em; color: var(--ink3); }
.now-cap > span { white-space: nowrap; }
.now-row { display: grid; grid-template-columns: 22px 5.2em minmax(0, 1fr) auto; grid-template-areas: "fig name say end" "fig state say end"; column-gap: var(--s3); align-items: center; align-content: center; min-height: 58px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.now-row:lang(en) { grid-template-columns: 22px 5.8em minmax(0, 1fr) auto; }
.now-row:lang(en) > .nm { letter-spacing: .06em; }
.now-fig { grid-area: fig; align-self: center; display: block; width: 22px; }
.now-fig img { display: block; width: 100%; height: auto; background: none !important; filter: var(--fig-edge); }
.now-row > .nm { grid-area: name; align-self: end; justify-self: start; font-size: .9375rem; line-height: 1.3; }
.now-state { grid-area: state; align-self: start; justify-self: start; font-size: var(--t-micro); line-height: 1.4; letter-spacing: .04em; color: var(--ink3); white-space: nowrap; }
.now-say { grid-area: say; align-self: center; font-size: var(--t-small); line-height: 1.45; color: var(--ink2); min-width: 0; text-wrap: pretty; }
.now-say code { font: 500 .8125rem/1.4 var(--mono); color: var(--ink); background: var(--fill); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.now-end { grid-area: end; align-self: center; }
.now-row [data-on] { display: none; }
.now-row[data-at="before"] [data-on~="before"], .now-row[data-at="need"] [data-on~="need"],
.now-row[data-at="done"] [data-on~="done"], .now-row[data-at="after"] [data-on~="after"] { display: inline; }
.now-row.is-need .now-state strong { font-weight: 600; color: var(--ink); }
.now-row.is-need .now-state strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--need); vertical-align: 1px; }
.now-key { position: relative; min-height: 36px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--ink); color: var(--on); font: 600 var(--t-small)/1 var(--sans); cursor: pointer; transition: transform var(--t-press) var(--out), opacity var(--t-press) var(--out); }
.now-key::after { content: ""; position: absolute; inset: -6px -4px; }   /* the place a finger lands: 48 tall */
.now-key:active { transform: scale(.96); opacity: .86; }
html:not(.js) .now-key { pointer-events: none; }
.now-sent { font-size: var(--t-micro); letter-spacing: .04em; color: var(--ink3); white-space: nowrap; }
.now-sent::before { content: "✓ "; color: var(--ink); }
.now-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  /* the flame comes up when she starts to need you, and breathes twice; then it is still */
  .now-row[data-at="need"] .now-state strong::before { animation: flame 2.4s var(--out) 1 both; }
  .now-row[data-at="done"] .now-sent { animation: sent .5s var(--out) both; }
}
@keyframes flame { 0% { transform: scale(0); box-shadow: 0 0 0 0 var(--need-glow); } 18% { transform: scale(1.25); } 30% { transform: scale(1); box-shadow: 0 0 0 5px transparent; } 60% { box-shadow: 0 0 0 0 var(--need-glow); } 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes sent { from { transform: translateY(3px); } to { transform: none; } }

@media (min-width: 700px) {
  .hero { --fw: 100vw; --ph: calc(var(--fw) * .5625); --hh: var(--ph); --top: 0px; }
  .hero-pic { width: var(--fw); margin-inline: auto; }
  .hero-frame { aspect-ratio: auto; height: var(--hh); }
  .hero-art { left: 0; top: calc(-1 * var(--top)); width: 100%; }
  .hero-name, .callouts li { top: calc(var(--y) * var(--ph) - var(--top)); }
  /* the display size, as wide as the wall left of the display allows (it is the display size from about 1050 wide) */
  .hero-name { --y: .086; right: auto; left: var(--m); margin: -.1em 0 0 -.04em; font-size: min(var(--t-display), calc(var(--fw) * .061)); line-height: 1.04; }
  .hero-name:lang(en) { font-size: min(var(--t-display), calc(var(--fw) * .05)); }
  .hero-text { padding-top: var(--s5); }
  .brand.is-en { font-size: clamp(2rem, 4.6vw, 2.75rem); }
}
@media (min-width: 900px) {
  /* --res: what the first screen keeps for the bars and the words under the picture */
  .hero {
    --res: 372px;
    --fw: min(100vw, calc((100svh - var(--res)) * 2.309));
    --hh: clamp(calc(var(--ph) * .77), calc(100svh - var(--res)), var(--ph));
    --top: min(calc((var(--ph) - var(--hh)) * .3), calc(var(--ph) * .06));
  }
  /* the words at the left (the h1, the sentence, the ways on), the lines at the right, on the same top */
  .hero-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: var(--gap); align-items: start; padding-top: var(--s4); }
  .brand { grid-column: 1 / span 6; grid-row: 1; }
  .hero-line { grid-column: 1 / span 6; grid-row: 2; margin-top: var(--s3); max-width: 30em; }
  .hero-acts { grid-column: 1 / span 6; grid-row: 3; margin-top: var(--s4); }
  .hero-acts .soon-note { margin-top: var(--s3); }
  .now { grid-column: 7 / span 6; grid-row: 1 / span 3; margin-top: .35em; }
  /* the English line: two lines in seven columns */
  /* the English line: two lines in six columns, three on a narrow desktop */
  .brand.is-en { font-size: min(2.625rem, calc((min(100vw, var(--wrap)) - 2 * var(--m)) * .033)); }
  .callouts { display: block; position: absolute; inset: 0 0 auto 0; height: var(--hh); padding: 0; pointer-events: none; }
  .callouts li { position: absolute; left: var(--x); font-size: var(--t-small); line-height: 1.45; letter-spacing: 0; color: var(--on-wall); white-space: nowrap; }
  /* the key word in the same ink as its value (on the picture's wall --on-wall2 measured under 4.5:1), told apart by weight */
  .callouts .k { display: block; font-size: var(--t-micro); font-weight: 600; line-height: 1.5; letter-spacing: .08em; color: var(--on-wall); }
  .callouts .k::after { content: none; }
  .callouts li::before { content: ""; position: absolute; background: var(--on-wall2); }
  .callouts li::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--on-wall); }
  /* the wallpaper's: a leader from the display's right edge */
  .callouts .is-h { --x: 76.3%; --y: .15; }
  .callouts .is-h::before { right: calc(100% + 8px); top: .68em; width: calc(var(--fw) * .024 - 8px); height: 1px; }
  .callouts .is-h::after { right: calc(100% + var(--fw) * .024 - 3px); top: calc(.68em - 2px); }
  /* the phone's: a hairline from under its stand, down across the foot of the picture, to the rule the lines hang from.
     It starts under the stand where the window shows it, and no higher than 30px above the foot of the frame. */
  .hero-leader { display: block; position: absolute; z-index: 1; left: 81.6%; width: 1px; --from: min(calc(var(--ph) * .845 - var(--top)), calc(var(--hh) - 30px));
    top: var(--from); height: calc(var(--hh) - var(--from) + var(--s4)); background: linear-gradient(var(--on-wall2), var(--on-wall2)) top / 1px calc(var(--hh) - var(--from)) no-repeat, var(--rule); transform-origin: top; }
  .hero-leader::after { content: ""; position: absolute; left: -2px; bottom: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
  @media (prefers-reduced-motion: no-preference) {
    .js .hero-leader { animation: leader .7s var(--out) .25s both; }
    .hero.is-answered .hero-leader::after { animation: ping 1s var(--out) 1; }
  }
}
@keyframes leader { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--need-glow); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* The moment it moves: the phone standing in front of its own wallpaper, bled to the edge; in the phone the real clip
   of the live scene (the still first; the clip only while the section is in view, 20-clip.js). Under it the sentence and
   the four steps that keep the story in words. */
.moment-stage { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; padding-block: clamp(28px, 5vw, 64px); background: var(--paper2); }
.moment-back img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.moment-stage .phone { width: min(60vw, 292px); }
.clip video { display: none; }
.js .clip.is-on video { display: block; }
.clip-btn { position: absolute; right: var(--m); bottom: var(--s4); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--scrim-btn); color: var(--on-pic); cursor: pointer; display: grid; place-items: center; }
.clip-btn[hidden] { display: none; }
.clip-btn svg { width: 14px; height: 14px; fill: currentColor; }
.clip-btn .i-play, .clip-btn[data-state="paused"] .i-pause { display: none; }
.clip-btn[data-state="paused"] .i-play { display: block; }
.moment-words { display: grid; gap: var(--s6) var(--gap); padding-top: var(--s6); }
.moment-words .t-lead { max-width: 24em; }
@media (min-width: 900px) {
  .moment-stage .phone { width: min(22vw, 316px); }
  .moment-words { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; padding-top: var(--s7); }
  .moment-words .t-lead { grid-column: 1 / span 5; }
  .moment-words .steps { grid-column: 7 / span 6; }
}

/* Three things: a detail of a still and one sentence each. */
.feats { display: grid; gap: var(--s7) var(--gap); }
.feat .plate-pic { --ar: 1 / 1; }
.feat p { font-size: var(--t-lead); line-height: 1.5; padding-top: var(--s4); text-wrap: balance; }
.feat .no { display: block; font-size: var(--t-micro); color: var(--ink3); font-variant-numeric: tabular-nums; letter-spacing: .04em; padding-bottom: 2px; }
@media (min-width: 620px) {
  .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat .plate-pic { --ar: 4 / 5; }
}

/* Studio: three ways to set a scene up. One row of words (the sentence, the button), then three phones standing on one
   ground line that runs to both edges of the screen. */
.trio-words { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
.trio-words .t-lead { max-width: 30em; }
.trio-when { font-size: var(--t-small); line-height: 1.6; color: var(--ink2); margin-top: var(--s2); }
/* the list spans the wrap (its line ends with the text column); the three phones stand centred on it */
.trio .ground { --stand: 248px; grid-template-columns: repeat(var(--n), minmax(0, 248px)); justify-content: center; column-gap: clamp(12px, 4vw, 72px); margin-top: var(--s6); }
@media (min-width: 900px) { .trio .ground { margin-top: var(--s7); } }

/* ── The display's windows (home.mjs → .desk): agent tools at work over the wallpaper, drawn in HTML on the display's
   corners in the picture (its screen is x 380–1506, y 110–753 of 2048 × 1152), so they stay sharp at any size and can
   move. Every size is a share of the screen's width (cqw). No product's marks, names or look: the windows read as agent
   tools by what is in them. Only opacity and transform move, and only without reduced motion. The wallpaper stays
   visible top right, where the callout points. ── */
.desk { position: absolute; left: 18.55%; top: 9.55%; width: 54.98%; height: 55.82%; container-type: inline-size; overflow: hidden; pointer-events: none;
  font: 400 12px/1.45 var(--sans); color: #2a2622; }
.desk > * { font-size: 1.05cqw; }   /* a size on .desk itself would be a share of the window, not of the screen: it is the container */
.dk-menu { position: absolute; inset: 0 0 auto; height: 2.1cqw; display: flex; align-items: center; gap: .9cqw; padding: 0 1.2cqw; background: rgba(28, 24, 22, .32); color: rgba(255, 255, 255, .86); font-size: .9cqw; }
.dk-menu i { width: 2.6cqw; height: .55cqw; border-radius: .3cqw; background: rgba(255, 255, 255, .55); }
.dk-menu i:first-child { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; }
.dk-menu b { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.dk-win { position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: .9cqw; background: #FBF8F3; box-shadow: 0 .5cqw 2.4cqw rgba(20, 14, 10, .32), 0 0 0 .08cqw rgba(20, 14, 10, .18); }
.dk-bar { flex: none; display: flex; align-items: center; gap: .6cqw; height: 2.3cqw; padding: 0 1cqw; border-bottom: .08cqw solid rgba(20, 14, 10, .1); font-size: .95cqw; font-weight: 600; color: #4a443d; white-space: nowrap; }
.dk-body { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: .9cqw 1.1cqw; }
.dk-dot { flex: none; display: inline-block; width: .9cqw; height: .9cqw; border-radius: 50%; }
.dk-dot.is-saffron { background: #E0874A; } .dk-dot.is-vega { background: #8B72D8; } .dk-dot.is-selene { background: #A9A3CF; }
/* Saffron's terminal: her steps streaming up, one line at a time */
.dk-term { left: 1.6%; top: 6.4%; width: 46%; height: 60%; background: #1E1B19; color: #E9E3D8; }
.dk-term .dk-bar { color: #CFC7BA; border-color: rgba(255, 255, 255, .08); }
.dk-term .dk-body { font: 400 1cqw/1.6 var(--mono); }
.dk-scroll { display: block; }
.dk-scroll span { display: block; height: 1.6em; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.dk-scroll span:nth-child(5n + 1) { color: #F0C79E; }
.dk-cursor { position: absolute; left: 1.1cqw; bottom: .9cqw; width: .6em; height: 1.1em; background: #E9E3D8; }
/* Vega's diff, done */
.dk-diff { left: 49.6%; top: 6.4%; width: 25%; height: 44%; }
.dk-diff .dk-body { font: 400 .92cqw/1.65 var(--mono); padding: .7cqw 0; }
.dk-file { display: flex; justify-content: space-between; padding: 0 1cqw .5cqw; color: #7a7268; font-family: var(--sans); }
.dk-file b { color: #3E8A5B; font-weight: 600; }
.dk-l { display: block; padding: 0 1cqw; white-space: pre; overflow: hidden; }
.dk-l i { display: inline-block; width: 1.4em; font-style: normal; color: #9a9288; }
.dk-l.is-add { background: rgba(62, 138, 91, .14); } .dk-l.is-add i { color: #3E8A5B; }
.dk-l.is-del { background: rgba(196, 82, 64, .12); text-decoration: line-through; text-decoration-color: rgba(196, 82, 64, .5); } .dk-l.is-del i { color: #C45240; }
/* Selene's chat: what she did and what she would like to do */
.dk-chat { left: 49.6%; top: 53.6%; width: 25%; height: 40%; }
.dk-chat .dk-body { display: flex; flex-direction: column; gap: .7cqw; }
.dk-msg { align-self: flex-start; max-width: 92%; padding: .6cqw .9cqw; border-radius: .9cqw .9cqw .9cqw .25cqw; background: #EFE9DF; }
.dk-typing { align-self: flex-start; display: flex; gap: .4cqw; padding: .7cqw .9cqw; border-radius: .9cqw; background: #EFE9DF; }
.dk-typing i { width: .55cqw; height: .55cqw; border-radius: 50%; background: #9a9288; }
/* the test run that waits for her */
.dk-tests { left: 1.6%; top: 69%; width: 46%; height: 26%; }
.dk-run { display: block; font: 400 1cqw/1.6 var(--mono); color: #6b645b; }
.dk-track { display: block; position: relative; height: .7cqw; margin-top: 1cqw; border-radius: .4cqw; background: #ECE6DC; overflow: hidden; }
.dk-track i { position: absolute; inset: 0; width: 30%; border-radius: .4cqw; background: #D2B48C; }
.dk-spec { display: flex; align-items: center; gap: .6cqw; margin-top: .55cqw; font: 400 .95cqw/1.4 var(--mono); color: #8a8278; }
.dk-spec i { width: .9cqw; height: .9cqw; border-radius: 50%; box-shadow: inset 0 0 0 .12cqw #B9B0A4; }
/* Selene's ask: the one window waiting for you, nearest the phone */
.dk-ask { position: absolute; right: 2%; top: 53.6%; width: 21.5%; display: flex; flex-direction: column; gap: .55cqw; padding: 1cqw; border-radius: .9cqw; background: #FBF8F3;
  box-shadow: 0 .5cqw 2.4cqw rgba(20, 14, 10, .34), 0 0 0 .12cqw var(--need); }
.dk-ask-who { display: flex; align-items: center; gap: .5cqw; font-size: .95cqw; color: #7a7268; white-space: nowrap; }
.dk-ask-who b { color: #2a2622; }
.dk-ask-who em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--need); }
.dk-ask-say { font-size: 1.05cqw; font-weight: 600; line-height: 1.35; }
.dk-ask code { font: 400 .95cqw/1.5 var(--mono); padding: .2cqw .6cqw; border-radius: .4cqw; background: #EFE9DF; align-self: flex-start; }
.dk-ask-keys { display: flex; gap: .6cqw; }
.dk-ask-keys i { flex: 1; height: 2.2cqw; display: flex; align-items: center; justify-content: center; border-radius: .6cqw; font-style: normal; font-weight: 600; font-size: .95cqw; background: #2E5E45; color: #fff; }
.dk-ask-keys i + i { flex: .7; background: #ECE6DC; }
@media (prefers-reduced-motion: no-preference) {
  .js .dk-scroll { animation: dk-stream 12s steps(10) infinite; }
  .js .dk-cursor { animation: dk-blink 1.1s steps(1) infinite; }
  .js .dk-typing i { animation: dk-type 1.2s var(--out) infinite; }
  .js .dk-typing i:nth-child(2) { animation-delay: .15s; } .js .dk-typing i:nth-child(3) { animation-delay: .3s; }
  .js .dk-track i { animation: dk-wait 2.4s ease-in-out infinite alternate; }
  .js .dk-l.is-add { animation: dk-in 6s var(--out) infinite; }
  .js .dk-ask { animation: dk-ask 2.6s ease-in-out infinite; }
  .hero.is-away .desk * { animation-play-state: paused; }
}
@keyframes dk-stream { to { transform: translateY(-16em); } }    /* ten lines of 1.6em: one line every 1.2s, then the copy of them takes over */
@keyframes dk-blink { 50% { opacity: 0; } }
@keyframes dk-type { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
@keyframes dk-wait { from { transform: translateX(-30%); } to { transform: translateX(260%); } }
@keyframes dk-in { 0%, 8% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes dk-ask { 0%, 100% { transform: none; } 50% { transform: translateY(-.25cqw); } }
/* the phone in the picture, where the zoomed phone starts and ends (x 1594–1767, y 544–917 of 2048 × 1152) */
.desk-phone { position: absolute; left: 77.83%; top: 47.22%; width: 8.45%; height: 32.38%; pointer-events: none; }

/* ── The phone takes the screen (25-now.js adds .is-pinned, only without reduced motion). The first screen pins from the
   top; scrolling grows the phone from its stand until it fills the screen over the night ground, the clip plays its run
   once, waiting on the card for the tap, then the phone goes back on its stand and the page goes on. The phone is drawn
   at its full size and transformed down onto the one in the picture, so it ends sharp. Selene's line stands under it. ── */
.hero-zoom { display: none; }
.hero.is-pinned .hero-in { position: sticky; top: var(--stick, 0px); }
.hero.is-pinned::after { content: ""; display: block; height: 210lvh; }
.hero.is-pinned .hero-zoom { display: block; position: fixed; inset: 0; z-index: 40; visibility: hidden; pointer-events: none; }
.hero.is-pinned .hero-zoom.is-on { visibility: visible; }
.hero.is-pinned .hero-zoom.is-full { pointer-events: auto; }
.zoom-back { position: absolute; left: 0; right: 0; top: 0; height: calc(100lvh + 160px); background: var(--night); opacity: 0; }   /* longer than the screen: under iOS Safari's floating toolbar too */
.zoom-stage { position: absolute; left: 0; right: 0; top: 44px; height: calc(100svh - 44px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); padding: var(--s4) var(--m); }
.zoom-stage .phone { flex: none; width: min(380px, calc((100svh - 44px - 170px) / 2.12)); transform-origin: 0 0; will-change: transform; }
.zoom-clip { position: absolute; inset: 0; display: block; }
.zoom-clip img, .zoom-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom-clip video { opacity: 0; }
.zoom-clip.is-playing video { opacity: 1; }
.zoom-row { width: min(560px, 100%); margin: 0; padding: 0 var(--s4); list-style: none; border-radius: 14px; background: var(--paper); opacity: 0; transform: translateY(8px); }
.zoom-row .now-row { border-bottom: 0; }
/* under the zoomed phone a phone width is narrow: her sentence gets its own line under her name and state */
@media (max-width: 699.9px) {
  .zoom-row .now-row, .zoom-row .now-row:lang(en) { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "fig name end" "fig state end" "say say say"; padding: 10px 0 12px; }
  .zoom-row .now-say { padding-top: var(--s2); }
}
.hero-zoom.is-full .zoom-row { opacity: 1; transform: none; transition: opacity .5s var(--out), transform .5s var(--out); }
.now-key.is-pressed { transform: scale(.96); opacity: .86; }
:root.is-dim .bar { --paper: var(--night); --ink: var(--night-ink); --ink2: var(--night-ink2); --ink3: var(--night-ink3); --hair: var(--night-hair); }
/* while the phone has the screen, the page's own ground is the night too: iOS Safari paints the strip under its floating
   toolbar from it */
:root.is-dim, :root.is-dim body { background-color: var(--night); }

/* ───────────────────────── 60 · a scene's page ───────────────────────── */

/* The cover is the title page of a book about the place: the painting to all four edges, the name set large on it,
   the Latin name, the place and its coordinates, all in one group at the foot of the painting, over the scrim. */
.cover { position: relative; overflow: hidden; aspect-ratio: 4 / 5; color: var(--on-pic); background: var(--paper2); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--scrim-3), var(--scrim-2) 24%, var(--scrim-1) 48%, var(--scrim-0) 64%); pointer-events: none; }
.cover-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 var(--m) clamp(24px, 3.4vw, 44px); text-align: center; text-shadow: 0 1px 18px var(--scrim-glow); }
.cover-title .en { font-size: var(--t-small); letter-spacing: .36em; margin-right: -.36em; padding-top: var(--s2); }
.cover-title .en:lang(zh) { letter-spacing: .5em; margin-right: -.5em; padding-top: var(--s3); }
.cover-title .geo { color: var(--on-pic2); padding-top: var(--s3); }
.cover-title .tag { margin-top: var(--s3); text-shadow: none; }
@media (min-width: 700px) {
  .cover { aspect-ratio: 16 / 9; max-height: max(440px, calc(100svh - 376px)); width: 100%; }
  /* a held scene has one more line under its sentence: the cover leaves room for it above the bar at the bottom */
  .cover.is-held { max-height: max(400px, calc(100svh - 460px)); }
}
/* the trail under the cover (the one the structured data declares), quiet, on the text margin */
.cover + .crumb { padding-top: var(--s2); }
/* the scene's one sentence, the first on the page, on paper under the painting */
.cover-line { text-align: center; padding-top: clamp(8px, 1.4vw, 20px); }
.cover-line .cover-kind { font-size: var(--t-small); line-height: 1.6; color: var(--ink2); margin-top: var(--s2); text-wrap: balance; }
.cover-line .t-lead { max-width: 30em; margin-inline: auto; text-wrap: balance; }
.cover-line .hold { font-size: var(--t-small); line-height: 1.6; color: var(--ink2); max-width: 36em; margin: var(--s3) auto 0; text-wrap: balance; }
.cover-line .soon-note { justify-content: center; margin-inline: auto; text-align: left; }

/* Two free wallpapers (one for a phone, one for a desktop): two ruled rows, each a download link whose words name the
   kind and the wall, with its size in pixels and in megabytes; under them, that the rest come with the set. */
.free-line { max-width: var(--measure); }
.free-list { margin-top: var(--s4); border-top: 1px solid var(--hair); max-width: var(--measure); }
.free-list li { border-bottom: 1px solid var(--hair); }
.free-get { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s4); min-height: 44px; padding-block: var(--s3); color: var(--ink); text-decoration: none; }
.free-kind { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.free-get:hover .free-kind { text-decoration-color: currentColor; }
.free-size { font-size: var(--t-micro); color: var(--ink3); font-variant-numeric: tabular-nums; }
.free-rest { margin-top: var(--s3); font-size: var(--t-small); line-height: 1.6; color: var(--ink2); max-width: var(--measure); }

/* In the phone: upright and sideways, the same phone at the same size, standing on one line. */
.holds { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.holds > * + * { margin-top: var(--s7); }
.holds .stand { max-width: 250px; }
.holds .is-side .stand { max-width: 541px; }
@media (min-width: 900px) {
  /* the list spans the wrap, so its line ends where the text column ends; the two phones stand centred on it */
  .holds { grid-template-columns: minmax(0, 290px) minmax(0, 628px); justify-content: center; column-gap: clamp(48px, 8vw, 112px); }
  .holds > * + * { margin-top: 0; }
  .holds .stand, .holds .is-side .stand { max-width: none; }
}

/* The six wallpapers. The four hours of a day are one stage (.day); the seasons and weather after it are a pair of plates.
   Without the script or with reduced motion, the stage is plates on paper, two by two, and nothing pins. */
.hours { display: grid; gap: var(--s6) var(--gap); }
@media (min-width: 900px) {
  .hours { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s7); }
  .hours > .is-large { grid-column: 1 / -1; }
}
.hours + .night, .wrap + .night { margin-top: var(--s7); }
.day-after { margin-top: var(--s6); }
.day-stage { display: grid; gap: var(--s6) var(--gap); width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--m); }
@media (min-width: 900px) { .day-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s7); } }
.day-pic { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 2px; background: var(--paper2); }
.day-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-cap { display: flex; align-items: baseline; gap: var(--s3); padding-top: var(--s3); font-size: var(--t-small); line-height: 1.5; color: var(--ink2); }
.day-cap .no { font-size: var(--t-micro); color: var(--ink3); font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 2.6em; flex: none; }
.day-cap b { font-weight: 600; color: var(--ink); }
.day-ruler { display: none; }

/* Pinned (28-steps.js adds .is-pinned, only without reduced motion): a day passing over the place, seen from the desk.
   The section is as tall as the screen plus one long step per hour; the stage sticks to the top for all of it, and the
   hours cross-fade in place, slowly, opacity and scale only. The picture sits between the product's bar at the top (44)
   and the bar at the bottom (64 and the home indicator), which both take the night ground meanwhile (30-night.js). The
   stage is 100lvh tall and the caption measured from 100svh, so iOS Safari's toolbar coming and going moves nothing. */
.day.is-pinned { --sub: 44px; --buy: calc(64px + env(safe-area-inset-bottom)); --step: 78lvh;
  position: relative; height: calc(100lvh + (var(--n) - .3) * var(--step)); margin-top: var(--s7); background: var(--night); }
.is-pinned .day-stage { display: block; position: sticky; top: 0; height: 100lvh; max-width: none; padding: 0; overflow: hidden;
  --ink: var(--night-ink); --ink2: var(--night-ink2); --ink3: var(--night-ink3); }
.is-pinned .day-frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.is-pinned .day-frame:first-child { opacity: 1; visibility: visible; }
.is-pinned .day-pic { position: absolute; left: 0; right: 0; top: var(--sub); bottom: calc(var(--buy) + 100lvh - 100svh); aspect-ratio: auto; border-radius: 0; background: var(--night2); }
.is-pinned .day-pic img { will-change: transform; transform-origin: 50% 60%; }
.is-pinned .day-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--scrim-2), var(--scrim-1) 18%, var(--scrim-0) 34%); pointer-events: none; }
.is-pinned .day-cap, .is-pinned .day-ruler { position: absolute; bottom: calc(var(--buy) + 100lvh - 100svh + clamp(20px, 3vw, 40px)); z-index: 1; }
.is-pinned .day-cap { --x: max(var(--m), calc((100vw - var(--wrap)) / 2 + var(--m)));
  left: var(--x); flex-direction: column; gap: var(--s1); padding: 0; color: var(--on-pic); text-shadow: 0 1px 18px var(--scrim-glow);
  opacity: 0; transition: opacity .24s var(--out); }
.is-pinned .day-cap .no { color: var(--on-pic2); min-width: 0; }
.is-pinned .day-cap b { font: 600 var(--t-title)/1.16 var(--sans); letter-spacing: -.01em; color: var(--on-pic); }
.is-pinned .day-frame.is-on .day-cap { opacity: 1; transition: opacity .6s var(--out) .3s; }
.is-pinned .day-ruler { --x: max(var(--m), calc((100vw - var(--wrap)) / 2 + var(--m)));
  display: flex; gap: var(--s4); right: var(--x); margin: 0; padding: 0; list-style: none; font-size: var(--t-micro); color: var(--on-pic); text-shadow: 0 1px 12px var(--scrim-glow); }
.day-ruler li { min-width: 40px; padding-top: var(--s2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34); opacity: .62; transition: opacity .6s var(--out), box-shadow .6s var(--out); }
.day-ruler li.is-on { opacity: 1; box-shadow: inset 0 2px 0 var(--on-pic); }
/* On a phone the painting would be cut to a quarter at full height: it keeps a 4:5 window under the top bar, as the night
   band does, with the caption and the hours on the night ground under it, the three centred together between the bars. */
@media (max-width: 699.9px) {
  .day.is-pinned { --box: min(125vw, calc(100svh - var(--sub) - var(--buy) - 128px)); --top: calc(var(--sub) + (100svh - var(--sub) - var(--buy) - var(--box) - 104px) / 2); }
  .is-pinned .day-pic { top: var(--top); bottom: auto; height: var(--box); }
  .is-pinned .day-pic::after { display: none; }
  .is-pinned .day-cap, .is-pinned .day-ruler { bottom: auto; top: calc(var(--top) + var(--box) + var(--s4)); text-shadow: none; }
  .is-pinned .day-cap { color: var(--ink); flex-direction: row; align-items: baseline; gap: var(--s3); }
  .is-pinned .day-cap .no { color: var(--ink3); }
  .is-pinned .day-cap b { font-size: 1.5rem; color: var(--ink); }
  .is-pinned .day-ruler { top: calc(var(--top) + var(--box) + var(--s4) + 56px); left: var(--m); right: var(--m); gap: var(--s2); color: var(--ink); }
  .day-ruler li { flex: 1; min-width: 0; box-shadow: inset 0 1px 0 var(--night-line); }
}

/* .inset and .prose (the set's list, the place's story) are shared parts: 20-base.css. */

/* The six looks: six phones in the shared bezel, standing on the ground line as on /perch/looks; their names hang under
   it. Three to a line at a phone (two lines), six across from 900, the line ending where the text column ends. */
.looks-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s6); }
.looks-row .stand { max-width: 132px; }
.looks-row .hang { padding-top: var(--s3); }
@media (min-width: 900px) {
  .looks-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .looks-row .stand { max-width: 168px; }
}

/* Pinned looks (28-steps.js adds .is-pinned, only without reduced motion): one phone in the middle of the screen, and the
   six looks change on its screen in place as the page scrolls, the scene and the moment kept: like turning a dial while
   the place stays put. Their names under it, the current one in ink. Shorter steps than the day: six changes, not three. */
.looks-pin { display: none; }
#looks:has(.looks-pin.is-pinned) .looks-row { display: none; }
.looks-pin.is-pinned { --sub: 44px; --buy: calc(64px + env(safe-area-inset-bottom)); --step: 40lvh;
  display: block; position: relative; height: calc(100lvh + (var(--n) - .3) * var(--step)); margin-top: var(--s4); }
.looks-stage { position: sticky; top: 0; height: 100lvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s5);
  padding: var(--sub) 0 calc(var(--buy) + 100lvh - 100svh); }
.looks-phone { flex: none; width: min(290px, calc((100svh - var(--sub) - var(--buy) - 150px) * .45)); }
.looks-frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.looks-frame:first-child { opacity: 1; visibility: visible; }
.looks-ruler { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); max-width: 34em; margin: 0; padding: 0 var(--m); list-style: none;
  font-size: var(--t-small); line-height: 1.5; color: var(--ink3); text-align: center; }
.looks-ruler li { padding-bottom: 2px; box-shadow: inset 0 -1px 0 transparent; transition: color .5s var(--out), box-shadow .5s var(--out); }
.looks-ruler li.is-on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }

/* The turning phone (26-turn.js adds .is-on, only without reduced motion): one phone, upright on its line, that turns on
   its side as it comes up the screen, standing on the same line throughout; the place turns with it (the upright picture
   gives way to the sideways one halfway through the turn). Only transform and opacity move; nothing pins. */
.turn { display: none; }
#phone:has(.turn.is-on) .holds { display: none; }
.turn.is-on { display: block; margin-top: var(--s4); }
.turn-box { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.turn-box::after { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 1px; background: var(--line); }
#phone { overflow-x: clip; }
.turn-phone { width: 250px; flex: none; transform-origin: 50% 50%; will-change: transform; }
@media (min-width: 900px) { .turn-phone { width: 290px; } }
.turn-up, .turn-side { position: absolute; display: block; }
.turn-up { inset: 0; }
.turn-side { left: 50%; top: 50%; width: calc(100% * 844 / 390); height: calc(100% * 390 / 844); transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.turn-cap { display: grid; padding-top: var(--s4); text-align: center; font-size: var(--t-small); line-height: 1.5; color: var(--ink2); }
.turn-cap > span { grid-area: 1 / 1; transition: opacity .4s var(--out); }
.turn-cap b { font-weight: 600; color: var(--ink); }
.turn-cap .is-side, .turn.is-turned .turn-cap .is-up { opacity: 0; }
.turn.is-turned .turn-cap .is-side { opacity: 1; }

/* ───────────────────────── 70 · 桌搭's own pages: /perch, /perch/scenes, /perch/looks ───────────────────────── */
/* Built from the tokens and the shared parts; only what these three pages need beyond them. Class names start with pp-. */

/* ── /perch · the first screen: the product picture, then the name and the plain definition on paper.
      390: cropped upright on the display's right half and the phone on its stand (same composition as every desk picture).
      700 up: the whole picture, edge to edge; from 1200 the name and the sentence share one row under it. ── */
.pp-hero-frame { display: block; position: relative; overflow: hidden; aspect-ratio: 390 / 412; background: var(--paper2); }
.pp-hero-frame img { position: absolute; max-width: none; width: 220%; height: auto; left: -102.3%; top: -3.2%; }
.pp-callouts { display: flex; flex-wrap: wrap; gap: 0 var(--s5); padding: var(--s2) var(--m) 0; font-size: var(--t-micro); line-height: 1.6; letter-spacing: .04em; color: var(--ink3); }
.pp-callouts .k::after { content: " · "; white-space: pre; }
/* the one note that the pictures' name labels leave out the agent icon (claims.json): with the first picture that shows labels */
.pp-labels-note { padding-top: var(--s5); font-size: var(--t-micro); color: var(--ink3); }
.pp-hero-text { padding-top: var(--s4); }
.pp-hero-text h1 { margin-left: -.04em; }
.pp-hero-text .t-lead { margin-top: var(--s2); max-width: 30em; }
@media (min-width: 700px) {
  .pp-hero-frame { aspect-ratio: 16 / 9; max-height: calc(100svh - 220px); min-height: 360px; width: 100%; }
  .pp-hero-frame img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
  .pp-callouts { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--m); }
}
/* from 900 the picture is capped so the name and the sentence stand on the first screen above the bar that stays
   (1440×900: 570 px of picture, the phone on its stand kept whole, the display's top edge and the keyboard out of frame) */
@media (min-width: 900px) {
  .pp-hero-frame { max-height: calc(100svh - 330px); min-height: 340px; }
  .pp-hero-frame img { object-position: 50% 40%; }
  .pp-hero-text { padding-top: var(--s4); }
}
@media (min-width: 1200px) {
  /* the name and the lead start on one line: the lead runs on below (it says what a set holds), the name stays on the first screen */
  .pp-hero-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .pp-hero-text h1 { grid-column: 1 / span 4; line-height: .95; }
  .pp-hero-text .t-lead { grid-column: 5 / span 7; margin: 0; max-width: 32em; padding-top: .35em; }
  /* the soon note stands under the lead, in the lead's columns (without this it falls into the twelfth column alone) */
  .pp-hero-text .soon-note { grid-column: 5 / span 7; grid-row: 2; margin-top: var(--s3); }
}

/* ── /perch · a section's words: one sentence and a text button, in one row above its picture or its line of things. ── */
.pp-words { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3) var(--s6); margin-bottom: var(--s6); }
.pp-words .t-lead { max-width: 32em; }
@media (min-width: 900px) { .pp-words { margin-bottom: var(--s7); } }

/* ── /perch · the places: the scenes hung together, one large plate and the rest around it.
      390: the large one across, the others two by two. 900 up: the large one takes two columns and two rows. ── */
.pp-hang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--gap); }
.pp-hang > li > a { display: block; height: 100%; }
.pp-hang .is-large { grid-column: 1 / -1; }
.pp-hang .plate-cap { padding-top: var(--s2); }
.pp-hang .plate-cap > span:last-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s2); min-width: 0; }
.pp-hang .plate-cap .nm { font-size: var(--t-body); color: var(--ink); }
.pp-hang .plate-cap .en { display: none; }
.pp-hang .plate-cap .tag { white-space: normal; min-height: 0; padding: 3px 7px; line-height: 1.25; }
.pp-hang .plate-cap .nm:lang(en) { font-size: var(--t-small); letter-spacing: .1em; }
.pp-hang .is-large .plate-cap .nm { font-size: var(--t-lead); }
.pp-hang .is-large .plate-cap .en { display: inline; color: var(--ink2); }
/* at a phone a long Latin name (HUMBLE ADMINISTRATOR’S GARDEN) goes down a size and may break, never past the edge */
@media (max-width: 479.9px) { .pp-hang .plate-cap .nm:lang(en) { font-size: var(--t-micro); letter-spacing: .06em; overflow-wrap: anywhere; } }
.pp-hang a:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (min-width: 900px) {
  .pp-hang { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--s6); }
  .pp-hang .is-large { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .pp-hang .is-large .plate { display: flex; flex-direction: column; height: 100%; }
  .pp-hang .is-large .plate-pic { flex: 1; aspect-ratio: auto; min-height: 240px; }
}

/* ── /perch · the figures: four on the line, a little apart, centred under the words. ── */
/* a Latin name in Cinzel capitals is wide: at lead size, so SAFFRON and SELENE keep apart on the line */
.pp-cast .hang .nm:lang(en) { font-size: var(--t-lead); letter-spacing: .1em; }

/* ── /perch · alive: three short things under hairlines beside the sentence (the shared steps, without a clip's time). ── */
.pp-alive li { font-size: var(--t-small); }
.pp-alive li b { display: block; font-weight: 600; color: var(--ink); padding-bottom: 2px; }
@media (max-width: 619.9px) { .pp-alive { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } }

/* ── /perch · what it does: the shared three things, with one more sentence each, quieter. ── */
.pp-feats .pp-more { font-size: var(--t-body); line-height: 1.6; color: var(--ink2); padding-top: var(--s2); text-wrap: pretty; }
.pp-feats .pp-more:lang(zh) { line-height: 1.75; }

/* ── /perch · on your desk: the two phones (the scene page's line), then the desk picture as a wide plate. ── */
#desk .holds { margin-bottom: var(--s8); }
.pp-desk .plate-cap .no { min-width: 4.5em; }
.pp-desk .plate-cap .no:lang(en) { letter-spacing: .08em; text-transform: uppercase; }

/* ── /perch · night: the title and the sentence on the left, the same night standing in a phone on the right. ── */
.pp-night-h { font: 600 var(--t-title)/1.16 var(--sans); letter-spacing: -.01em; padding-bottom: var(--s3); }
.night-cap .pp-night-h + .t-lead { max-width: 24em; }
.pp-night-phone { --n: 1; --pw: 200px; max-width: var(--pw); margin: var(--s6) auto 0; }
.pp-night-phone .hang { color: var(--ink2); }
/* from 900 the phone stands with its foot on the painting's lower edge, the caption on the night ground under it */
@media (min-width: 900px) {
  .pp-night-phone { --pw: clamp(190px, 16vw, 236px); margin: calc(var(--pw) * -2.12 - var(--s5)) 0 0 auto; position: relative; z-index: 1; }
  .pp-night-phone > *::before { margin-inline: calc(var(--pw) * -.35); }
}

/* ── /perch · what you need: the guide for the stand under the list. ── */
/* the head's 「完整的清单」 link: 44 px to the touch at a phone, the words where they were */
#need .head a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.pp-guides { margin-top: var(--s6); }

/* ── /perch · the bar that stays: what is sold, the price not decided (the shared .buy-price), the one button.
      Not the product's name: the second bar and the h1 already say it. ── */
.pp-buy-what { display: flex; flex-direction: column; min-width: 0; }
.pp-buy-what b { font-size: var(--t-body); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.pp-buy-what .buy-price { margin: 0; text-align: left; }
.pp-buy-what .tag { align-self: flex-start; }   /* a pill, not a bar the width of the column */
@media (max-width: 479.9px) { .pp-buy-what b { font-size: var(--t-small); } }

/* ── /perch/scenes and /perch/looks · the title and the one sentence. ── */
.pp-top { padding-top: clamp(8px, 2vw, 32px); padding-bottom: clamp(40px, 6vw, 88px); }
.pp-top h1 { margin-left: -.04em; }
.pp-top .t-lead { max-width: 32em; margin-top: var(--s3); color: var(--ink2); }
.pp-no { font-size: var(--t-micro); line-height: 1.5; color: var(--ink3); letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* ── /perch/scenes · the contents list under the title: number, name, place; it leads down to each plate. ── */
.pp-toc { margin-top: var(--s6); }
.pp-toc ol { border-top: 1px solid var(--rule); }
.pp-toc li { border-bottom: 1px solid var(--hair); }
.pp-toc a { display: grid; grid-template-columns: 2.4em minmax(0, auto) minmax(0, 1fr); align-items: baseline; column-gap: var(--s3); min-height: 44px; padding-block: 10px; }
.pp-toc .nm { font-size: var(--t-body); }
.pp-toc .geo { text-align: right; text-wrap: balance; }
.pp-toc .nm:lang(en) { font-size: var(--t-small); letter-spacing: .1em; }
.pp-toc a:lang(en) { grid-template-columns: 2.4em minmax(0, 1fr) minmax(0, max-content); }
/* at a phone an English place goes under its name: the Latin names are long */
@media (max-width: 599.9px) { .pp-toc a:lang(en) .geo { grid-column: 2 / -1; text-align: left; padding-top: 2px; } }
/* a held scene carries its tag here too, under its name */
.pp-toc .tag { grid-column: 2 / -1; justify-self: start; margin-top: var(--s1); }
.pp-toc a:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.pp-entry { scroll-margin-top: 56px; }
@media (min-width: 900px) {
  .pp-top-toc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .pp-toc { padding-top: var(--s4); }
  .pp-top-toc > div { grid-column: 1 / span 6; }
  .pp-toc { grid-column: 8 / span 5; margin-top: 0; }
}

/* ── /perch/scenes · the contents of a book of places: a plate and its entry, one place to a row, numbered. ── */
.pp-entries { border-top: 1px solid var(--rule); }
.pp-entry { display: grid; gap: var(--s4) var(--gap); padding-block: var(--s5) var(--s7); border-bottom: 1px solid var(--hair); }
.pp-entry-pic { display: block; }
.pp-entry-words { display: flex; flex-direction: column; align-items: flex-start; }
.pp-entry h2 { padding-top: var(--s2); }
.pp-entry h2 a { display: block; }
.pp-entry h2 .nm { display: block; }
.pp-entry h2 .nm:lang(en) { font-size: var(--t-title); }
.pp-entry h2 .en { display: block; color: var(--ink2); padding-top: var(--s1); font-weight: 400; }
.pp-entry h2 a:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.pp-entry .geo { display: block; padding-top: var(--s2); }
.pp-held { padding-top: var(--s3); }
.pp-line { font-size: var(--t-body); line-height: 1.6; color: var(--ink2); padding-top: var(--s4); max-width: 26em; text-wrap: pretty; }
.pp-line:lang(zh) { line-height: 1.75; }
.pp-stands { font-size: var(--t-small); color: var(--ink3); padding-top: var(--s3); font-variant-numeric: tabular-nums; }
.pp-entry .go { margin-top: var(--s3); }
@media (min-width: 900px) {
  .pp-entry { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; padding-block: var(--s6); }
  .pp-entry-pic { grid-column: 1 / span 7; }
  .pp-entry-words { grid-column: 8 / span 5; }
}

/* ── /perch/looks · each look: its number, name and line, and the same three scenes in it at their own size. ── */
.pp-look { display: grid; gap: var(--s5) var(--gap); padding-block: var(--s5) var(--s7); border-top: 1px solid var(--hair); }
.pp-look:first-child { border-top-color: var(--rule); }
.pp-look h2 { padding-top: var(--s2); }
.pp-look .pp-line { max-width: 30em; }
/* the three phones on one ground line (the shared bezel and line), names hanging under it at a small size */
.pp-minis { grid-template-columns: repeat(3, minmax(0, 168px)); justify-content: start; }
.pp-minis .hang { padding-top: var(--s3); }
.pp-minis .hang .nm { font-size: var(--t-small); }
.pp-minis .hang .nm:lang(en) { font-size: var(--t-micro); letter-spacing: .1em; overflow-wrap: anywhere; }
@media (max-width: 899.9px) { .pp-minis .hang .en { display: none; } }
@media (min-width: 900px) {
  .pp-look { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; padding-block: var(--s6) var(--s8); }
  .pp-look-words { grid-column: 1 / span 5; }
  .pp-minis { grid-column: 7 / span 6; justify-content: end; }
}

/* ───────────────────────── 70 · reading pages (guides, facts, help, changelog, legal, a page still being made) ───────────────────────── */

/* Breadcrumbs: the layout puts them at the top of <main> on every page that hands a trail back. */
.crumb { font-size: var(--t-small); color: var(--ink3); padding-top: clamp(8px, 1.6vw, 20px); }
.crumb ol { display: flex; flex-wrap: wrap; gap: 0 var(--s2); }   /* a long last step goes to its own line first, then wraps there */
.crumb li { flex: none; display: flex; align-items: center; min-height: 44px; }
.crumb li + li::before { content: "›"; margin-right: var(--s2); color: var(--ink3); }
.crumb li:last-child { flex: 0 1 auto; min-width: 0; }
/* a short step (知在, 桌搭) is two characters wide: the link reaches 44 to the touch without moving the words */
.crumb a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; margin-inline: -8px; color: var(--ink2); }
.crumb a:hover { color: var(--ink); }
.crumb li:last-child { padding-block: 10px; }
/* the last step (the page itself) may wrap onto a second line rather than lose its end; its row keeps 44 at least */
.crumb [aria-current] { white-space: normal; overflow-wrap: anywhere; }

/* The reading column: a measure of about 33 Chinese or 66 Latin characters; what is about the page (its kind, its date)
   stands in the left margin from 900, and so do the numbers of its sections. */
.read { padding-top: clamp(16px, 3vw, 40px); }
.read-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.read-meta { display: flex; flex-wrap: wrap; gap: 0 .9em; font-size: var(--t-micro); line-height: 1.7; color: var(--ink3); letter-spacing: .04em; font-variant-numeric: tabular-nums; padding-bottom: var(--s3); }
.read-meta:lang(en) { letter-spacing: .08em; text-transform: uppercase; }
.read-meta span + span::before { content: "·"; margin-right: .9em; }
.read-body { counter-reset: sec; }
.read-body > * { max-width: var(--measure); }
.read-body h1 { font: 600 var(--t-title)/1.16 var(--sans); letter-spacing: -.015em; text-wrap: balance; }
.read-body h1:lang(zh) { letter-spacing: 0; line-height: 1.24; word-break: auto-phrase; }
/* reading({ h1: 'display' }): a product or list page in this column sets its name at the display size (parts.mjs h1Class) */
.read-body h1.t-display { font: 500 var(--t-display)/1.04 var(--sans); letter-spacing: 0; }
.read-body .lede { font-size: var(--t-lead); line-height: 1.55; color: var(--ink2); margin-top: var(--s4); text-wrap: pretty; }

/* The answer: the whole answer in a sentence or two, set off between two hairlines directly under the title. */
.answer { position: relative; margin-top: var(--s5); padding-block: var(--s4) calc(var(--s4) + 2px); border-block: 1px solid var(--line); }
.answer-k { display: block; font-size: var(--t-micro); line-height: 1.7; color: var(--ink3); letter-spacing: .08em; padding-bottom: 2px; }
.answer-k:lang(en) { text-transform: uppercase; }
.answer p { font-size: var(--t-lead); line-height: 1.55; text-wrap: pretty; }
.answer:lang(zh) p { line-height: 1.7; }

/* The blocks of a long text (parts.mjs blocks()): each kind once, the same on every reading page. */
.read-body > * + * { margin-top: var(--s4); }
.read-body h2:lang(zh) { word-break: auto-phrase; }
.read-body h2 { position: relative; font: 600 var(--t-lead)/1.3 var(--sans); letter-spacing: -.005em; text-wrap: balance; margin-top: var(--s7); counter-increment: sec; scroll-margin-top: 72px; }
.read-body h2 + * { margin-top: var(--s2); }
/* these defaults weigh no more than one class (:where), so a family's own single-class rule wins over them */
.read-body :where(h3) { font: 600 var(--t-body)/1.4 var(--sans); margin-top: var(--s6); }
.read-body :where(p, li) { text-wrap: pretty; }
.read-body :where(p) { hanging-punctuation: first allow-end; }
/* inline code: the small size beside body text; beside a lead or a heading, the body size (both on the scale) */
.read-body code { font: var(--t-small)/1 var(--mono); font-variant-ligatures: none; background: var(--fill); padding: .16em .38em; border-radius: 3px; overflow-wrap: anywhere; }
.read-body :is(h2, .answer, .lede) code { font-size: var(--t-body); }
/* numbered steps: tabular numerals hanging in their own column, a hairline between steps */
.numbered { counter-reset: n; border-top: 1px solid var(--hair); }
.numbered li { counter-increment: n; position: relative; padding: var(--s3) 0 var(--s3) 2.4em; border-bottom: 1px solid var(--hair); }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: calc(var(--s3) + .3em); font-size: var(--t-small); line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--ink3); }
/* a plain list: a short dash hanging in the margin of the column */
.bullets li { position: relative; padding-left: 1.4em; }
.bullets li + li { margin-top: var(--s2); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .82em; width: .62em; height: 1px; background: var(--ink3); }
.bullets:lang(zh) li::before { top: .88em; }
/* code, set quietly; a muted $ before each command */
.code figcaption { font-size: var(--t-small); line-height: 1.5; color: var(--ink3); padding-top: var(--s2); }
.code pre { font: var(--t-small)/1.7 var(--mono); font-variant-ligatures: none; background: var(--paper2); border-radius: 2px; padding: 14px var(--s4); overflow-x: auto; white-space: pre; tab-size: 2; }
.code pre code { font: inherit; background: none; padding: 0; border-radius: 0; overflow-wrap: normal; }
.code .ln { display: block; }
.code.is-cmd .ln::before { content: "$ "; color: var(--ink3); user-select: none; -webkit-user-select: none; }
/* a note: what is true beside the main line */
.note { border-left: 1px solid var(--ink); padding-left: var(--s4); color: var(--ink2); }
/* a picture inside the column: a phone in its bezel, or a plate, with its caption */
.shot { margin-block: var(--s6); }
.shot .phone { max-width: 248px; margin-inline: auto; }
.shot figcaption { font-size: var(--t-small); line-height: 1.5; color: var(--ink3); padding-top: var(--s3); text-align: center; text-wrap: balance; }
.shot .plate-pic + figcaption, .shot.is-plate figcaption { text-align: left; }
/* what to read next: a short ruled list */
.related { margin-top: var(--s8) !important; }
.related h2 { font: 600 var(--t-micro)/1.5 var(--sans); letter-spacing: .08em; color: var(--ink2); margin: 0 0 var(--s3); counter-increment: none; }
.related h2:lang(en) { text-transform: uppercase; }
.related h2::before { content: none !important; }

@media (min-width: 900px) {
  .read-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .read-side { grid-column: 1 / span 3; }
  .read-body { grid-column: 4 / span 8; }
  .read-meta { display: block; padding: .5em 0 0; }
  .read-meta span { display: block; }
  .read-meta span + span::before { content: none; }
  .read-body h1 { margin-top: -.08em; }
  .read-body > .table-wrap { max-width: none; }   /* a table may run past the measure, to the end of the column's eight */
  /* a section's number, and the answer's label, hang in the margin beside the column */
  .read-body h2::before { content: counter(sec); position: absolute; right: calc(100% + var(--gap)); top: .34em; font: 400 var(--t-micro)/1.5 var(--sans); color: var(--ink3); font-variant-numeric: tabular-nums; }
  .answer-k { position: absolute; right: calc(100% + var(--gap)); top: calc(var(--s4) + .42em); padding: 0; white-space: nowrap; }
}

/* The page that is not there: a figure standing on the ground line, one sentence, two text links. */
.lost { display: grid; gap: var(--s7) var(--gap); padding-top: clamp(24px, 5vw, 72px); }
.lost h1 { font: 600 var(--t-title)/1.2 var(--sans); letter-spacing: -.01em; text-wrap: balance; }
.lost-words p { padding-top: var(--s3); }
.lost-links { display: flex; flex-wrap: wrap; gap: 0 var(--s6); padding-top: var(--s4); }
.lost .ground { --n: 1; --stand: 168px; }
/* From 900 the words and the figure share two rows: the figure's line is the foot of the first, and the words sit in it
   with their links on that line (the ground list is a subgrid of .lost, so the line is where row 1 ends). */
@media (min-width: 900px) {
  .lost { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; row-gap: 0; align-items: end; }
  .lost-words { grid-column: 1 / span 6; grid-row: 1; }
  .lost .ground { grid-column: 8 / span 3; grid-row: 1 / span 2; grid-template-rows: subgrid; align-self: stretch; --stand: 200px; }
}

/* ───────────────────────── 71 · the figures: /perch/figures and /perch/figures/<slug> ─────────────────────────
   Built on the ground line (40-parts): the same hairline, the same contact shadow, no panel behind a figure. What is
   new here is only the sizing: every figure is drawn at her true height against a grown figure's (--k on .fg-pic), so a
   smaller figure stands shorter on the same line, and rows of the line wrap (two across at a phone, five from 760). */

/* A figure at her true scale: --fg-h is a grown figure's height for this line; her picture is --k of it, feet on the line. */
.fg-pic { display: block; }
.fg-pic img { height: calc(var(--fg-h, 240px) * var(--k, 1)); width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; background-color: transparent !important; }

/* A figure whose dress is close to the paper (white on light paper, black on dark): a faint edge in the page's ink, so
   in either scheme the one that would dissolve keeps her outline and the other gets an edge too quiet to see. */
.fg-edge img { filter: drop-shadow(0 0 1px color-mix(in srgb, var(--ink) 34%, transparent)) drop-shadow(0 0 6px color-mix(in srgb, var(--ink) 9%, transparent)); }

/* ── the list page ── */
.fg-top { padding-top: clamp(16px, 3vw, 40px); }
.fg-top .t-lead { color: var(--ink2); margin-top: var(--s4); max-width: 30em; }
:lang(zh) .fg-top .t-lead { max-width: 26em; }

/* The wrapping ground line: each row of items is one line; the stand shrinks to the figure, so her shadow is her width. */
.ground.fg-line { --fg-h: min(260px, calc((100vw - 2 * var(--m) - var(--gap)) / 2 * 1.42)); grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s7); }
.fg-line > *, .fg-line > * > a { row-gap: 0; }
.fg-line .stand { width: auto; max-width: 100%; }
.fg-line .hang { padding-top: var(--s3); }
.fg-line .hang .nm:lang(en) { font-size: var(--t-lead); letter-spacing: .06em; }
.fg-line .hang .nm:lang(zh) { font-size: var(--t-title); }
.fg-line > :nth-child(2n + 1)::before { margin-left: calc(var(--m) * -1); }
.fg-line > :nth-child(2n)::before { margin-right: calc(var(--m) * -1); }
@media (min-width: 760px) {
  .ground.fg-line { --fg-h: min(320px, calc((min(100vw, var(--wrap)) - 2 * var(--m) - 4 * var(--gap)) / 5 * 1.5)); grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: var(--s8); }
  .fg-line > :nth-child(n)::before { margin-inline: calc(var(--gap) * -.5); }
  .fg-line > :nth-child(5n + 1)::before { margin-left: calc(var(--m) * -1); }
  .fg-line > :nth-child(5n)::before { margin-right: calc(var(--m) * -1); }
}
/* The cat closes the smaller ten: one quiet line under their ground, in the band's own column, not a field of its own. */
.fg-cat { padding-top: var(--s8); color: var(--ink2); max-width: 30em; text-wrap: pretty; }

/* ── a figure's page ── */
.fg-hero { display: grid; gap: var(--s6) var(--gap); padding-top: clamp(16px, 3vw, 40px); }
.fg-name .t-lead { margin-top: var(--s4); max-width: 26em; text-wrap: pretty; }
.fg-name .en { display: block; padding-top: var(--s2); color: var(--ink2); }
.fg-stage .ground { --n: 1; --fg-h: min(440px, 64svh); }
.fg-solo .stand { width: auto; }
.fg-solo > *::before { margin-inline: calc(var(--m) * -1); }
.fg-look { color: var(--ink2); max-width: var(--measure); text-wrap: pretty; }
.fg-about .spec { margin-top: var(--s6); }
.fg-about .txt a { font-weight: 500; }
@media (min-width: 900px) {
  .fg-hero { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; align-items: start; column-gap: var(--gap); row-gap: 0; }
  .fg-stage { grid-column: 1 / span 6; grid-row: 1 / span 2; align-self: start; padding-top: var(--s4); }
  .fg-stage .ground { --fg-h: min(600px, 70svh); }
  .fg-solo { grid-template-rows: var(--fg-h) auto; }   /* the line at one height on every figure's page: a smaller figure stands lower under the same sky */
  .fg-solo > *::before { margin-left: -100vw; margin-right: 0; }
  .fg-name { grid-column: 8 / span 5; grid-row: 1; padding-top: var(--s8); }
  .fg-about { grid-column: 8 / span 5; grid-row: 2; padding-top: var(--s6); }
}

/* Where she stands: three phones on one line (at a phone the line slides), or three scenes by their paintings. */
.fg-phones-line { --n: 3; }
.fg-phones-line .hang .nm { font-size: var(--t-lead); }
@media (max-width: 899.9px) {
  .fg-phones { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--m); scrollbar-width: none; margin-inline: calc(var(--m) * -1); }
  .fg-phones::-webkit-scrollbar { display: none; }
  .fg-phones .ground { grid-template-columns: repeat(3, 58vw); width: max-content; padding-inline: var(--m); column-gap: var(--gap); padding-bottom: 2px; }
  .fg-phones .ground > * { scroll-snap-align: start; }
  .fg-phones .ground > :first-child::before { margin-left: calc(var(--m) * -1); }
  .fg-phones .ground > :last-child::before { margin-right: calc(var(--m) * -1); }
}
@media (min-width: 900px) {
  .fg-phones-line { grid-template-columns: repeat(3, minmax(0, 250px)); justify-content: center; column-gap: var(--s9); }
  .fg-phones-line > :first-child::before { margin-left: -100vw; }
  .fg-phones-line > :last-child::before { margin-right: -100vw; }
  .fg-phones-line > *::before { margin-inline: calc(var(--s9) * -.5); }
}
.fg-places .scene-card.is-small .scene-name .nm:lang(en) { font-size: var(--t-small); }
@media (min-width: 900px) { .fg-places .scene-card.is-small .scene-name .nm:lang(en) { font-size: var(--t-lead); } }
.fg-more { padding-top: var(--s5); }
.fg-nav.band { padding-top: var(--s8); }
@media (max-width: 899.9px) {
  .cards.fg-places { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58vw; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--m); scrollbar-width: none; margin-inline: calc(var(--m) * -1); padding-inline: var(--m); }
  .cards.fg-places::-webkit-scrollbar { display: none; }
  .cards.fg-places > li { scroll-snap-align: start; }
}

/* Previous and next: two ruled halves, the name in the serif. */
.fg-pn { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--hair); }
.fg-pn a { display: flex; flex-direction: column; gap: 2px; padding-block: var(--s5); min-height: 44px; min-width: 0; }
.fg-pn a + a { border-left: 1px solid var(--hair); padding-left: var(--gap); align-items: flex-end; text-align: right; }
.fg-pn-k { font-size: var(--t-small); color: var(--ink3); }
.fg-pn-prev .fg-pn-k::before { content: "← " / ""; }
.fg-pn-next .fg-pn-k::after { content: " →" / ""; }
.fg-pn .nm { font-size: var(--t-title); }
.fg-pn .nm:lang(en) { font-size: var(--t-lead); }
.fg-pn .en { color: var(--ink2); }
.fg-pn a:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* All twenty by name: two groups, names in the serif, the page's own figure marked. */
.fg-groups { display: grid; gap: var(--s7) var(--gap); }
.fg-group { font: 600 var(--t-small)/1.5 var(--sans); color: var(--ink2); padding-bottom: var(--s3); }
.fg-all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); column-gap: var(--gap); }
.fg-all li { border-bottom: 1px solid var(--hair); }
.fg-all a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding-block: var(--s3); }
.fg-all .nm { font-size: var(--t-lead); }
.fg-all .en { color: var(--ink3); }
.fg-all a:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.fg-all a[aria-current] { color: var(--ink3); }
.fg-all a[aria-current] .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (min-width: 900px) {
  .fg-groups { grid-template-columns: 1fr 1fr; }
  .fg-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ───────────────────────── 72 · the reading lists: /agents, /agents/<id>, /guides, /help, /changelog ─────────────────────────
   Built on the reading page (70): the same column, margin and hairlines. Only what these lists need beyond the shared parts. */

/* A group of a list: its heading is a reading heading (numbered in the margin from 900), the list follows close. */
.rl-group h2 + * { margin-top: var(--s3); }

/* /agents: the three the one command connects, each a ruled entry: the product's name at the lead size, the size of the
   heading above it, so the page's title stays the one large line (sans: a product, not a painted name), its maker, its one
   sentence, the way in. From 900 the name stands left and the words right. */
.rl-agents { border-top: 1px solid var(--rule); }
.rl-ag { padding-block: var(--s5) var(--s4); border-bottom: 1px solid var(--hair); }
.read-body .rl-ag-name { margin-top: 0; font: 600 var(--t-lead)/1.3 var(--sans); letter-spacing: -.005em; }
/* the name is a link: 44 px to the touch, the words where they were */
.read-body .rl-ag-name a.bare { display: inline-flex; align-items: center; min-height: 44px; margin-block: -8px; }
.read-body .rl-ag-name a.bare:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.rl-ag-maker { font-size: var(--t-micro); line-height: 1.6; letter-spacing: .04em; color: var(--ink3); padding-top: var(--s1); }
.rl-ag-maker:lang(en) { letter-spacing: .08em; text-transform: uppercase; }
.rl-ag-line { color: var(--ink2); padding-top: var(--s3); text-wrap: pretty; }
.rl-ag-go { padding-top: var(--s1); }
.rl-others { margin-top: 0; }
/* at a phone the restacked rows keep each label beside its value, so eleven Agents stay a short list */
@media (max-width: 619.9px) {
  .rl-others td { position: relative; padding-left: calc(9.5em + var(--s3)); }
  .rl-others td::before { position: absolute; left: 0; top: calc(var(--s2) + .2em); width: 11em; padding-bottom: 0; line-height: 1.5; }
  .rl-others td:last-child:lang(en) { min-height: 44px; }   /* an English label takes two lines; the row keeps room for it */
}
.rl-asof { font-size: var(--t-small); line-height: 1.5; color: var(--ink3); margin-top: var(--s3) !important; }

/* Questions answered in full (an Agent's questions, help): the question in the body's weight, its answer under it,
   a hairline between two. Nothing folds: every answer is text on the page. */
.rl-qas { border-top: 1px solid var(--rule); }
.rl-qa { padding-block: var(--s4) calc(var(--s4) + 2px); border-bottom: 1px solid var(--hair); scroll-margin-top: 72px; }
.read-body .rl-qa h3 { margin-top: 0; text-wrap: pretty; }
.read-body .rl-qa h3:lang(zh) { word-break: auto-phrase; }
.rl-qa p { padding-top: var(--s1); color: var(--ink2); }
.rl-qa p a { color: var(--ink); }

/* /help: the groups at the top, a small index that jumps down the page: two across at a phone, four from 620. */
.rl-toc { margin-top: var(--s6) !important; }
.rl-toc ol { border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.rl-toc li { border-top: 1px solid var(--hair); }
.rl-toc a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); min-height: 48px; padding-block: 12px; font-size: var(--t-small); line-height: 1.45; }
.rl-toc a:hover span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.rl-n { font-size: var(--t-micro); color: var(--ink3); font-variant-numeric: tabular-nums; }
.rl-toc + .rl-group > h2 { margin-top: var(--s7); }
@media (min-width: 620px) { .rl-toc ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* /changelog: a quiet list. The date in tabular figures over each entry at a phone; from 900 it hangs in the margin,
   where a reading page keeps what is about the text. Titles are headings without the margin's section number. */
.rl-log { border-top: 1px solid var(--rule); margin-top: var(--s7) !important; }
.rl-log > li { border-bottom: 1px solid var(--hair); }
.rl-log article { position: relative; padding-block: var(--s5) calc(var(--s5) + 2px); }
.rl-date { font-size: var(--t-micro); line-height: 1.6; letter-spacing: .04em; color: var(--ink3); font-variant-numeric: tabular-nums; }
.read-body .rl-log h2 { margin-top: var(--s1); counter-increment: none; font-size: var(--t-body); line-height: 1.45; letter-spacing: 0; }
.read-body .rl-log h2::before { content: none; }
.rl-log article > p:last-child { padding-top: 2px; color: var(--ink2); text-wrap: pretty; }

@media (min-width: 900px) {
  /* the list of three, and the table under it, may run to the end of the column's eight, like a table */
  .read-body > .rl-agents, .read-body > .rl-toc { max-width: none; }
  .rl-ag { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr auto; column-gap: var(--gap); padding-block: var(--s6) var(--s5); }   /* the maker sits under the name; the slack goes below it */
  .rl-ag-name, .rl-ag-maker { grid-column: 1; }
  .rl-ag-name { grid-row: 1; }
  .rl-ag-maker { grid-row: 2; }
  .rl-ag-line { grid-column: 2; grid-row: 1 / span 2; padding-top: .15em; max-width: 30em; }
  .rl-ag-go { grid-column: 2; grid-row: 3; }
  .read-body .rl-date { position: absolute; right: calc(100% + var(--gap)); top: calc(var(--s5) + .3em); text-wrap: nowrap; white-space: nowrap; }
  .read-body .rl-log h2 { margin-top: 0; }
}

/* ───────────────────────── 73 · the pages for machines and for trust: facts, press, status, legal ─────────────────────────
   Only what these pages need beyond the shared parts, from the tokens. fx- facts · ps- press · st- status · lg- legal. */

/* ── Facts: a quiet list of the sections under the lead, then each section a ruled table of label and sentence. ── */
.fx-toc { margin-top: var(--s6) !important; }
.read-body .fx-toc h2 { font: 600 var(--t-micro)/1.5 var(--sans); letter-spacing: .08em; color: var(--ink2); margin: 0 0 var(--s2); counter-increment: none; }
.read-body .fx-toc h2:lang(en) { text-transform: uppercase; }
.read-body .fx-toc h2::before { content: none !important; }
.fx-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--hair); counter-reset: toc; }
.fx-toc li { counter-increment: toc; border-bottom: 1px solid var(--hair); }
.fx-toc a { display: flex; align-items: baseline; gap: var(--s2); min-height: 44px; padding-block: 11px; font-size: var(--t-small); line-height: 1.5; }
.fx-toc a::before { content: counter(toc); font-size: var(--t-micro); color: var(--ink3); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.read-body .fx-toc li a:not(.thing) { text-decoration: none; }
.read-body .fx-toc li a:not(.thing):hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.fx .read-meta { align-items: center; }
@media (min-width: 900px) { .read-body > .fx-toc { max-width: none; } .fx-toc ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.read-meta .fx-md { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; color: var(--ink2); }
@media (min-width: 900px) { .read-meta .fx-md { min-height: 0; padding-top: var(--s2); } }
.fx-sec { max-width: none !important; }
.fx-sec > h2 { scroll-margin-top: 24px; }
.read-body .fx-sec > h2 { margin-top: var(--s8); }
.read-body .fx-sec > h2 + .table-wrap { margin-top: var(--s3); }
/* the section's own heading names it: the table's head stays for screen readers only, and a strong rule opens the rows */
.fx-sec .facts thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.fx-sec .facts tbody tr:first-child > * { border-top: 1px solid var(--rule); }
.fx-sec .facts { font-size: var(--t-body); line-height: 1.6; }
.fx-sec .facts tbody th { font-size: var(--t-small); line-height: 1.75; color: var(--ink); }
.fx-sec .facts td { color: var(--ink2); }
.fx-sec .facts td a { color: var(--ink); }
.fx-sec .facts .tag { margin-left: 2px; }
@media (min-width: 620px) { .fx-sec .facts.is-2 tbody th { width: 30%; } }
@media (max-width: 619.9px) {
  .fx-sec .facts tbody { border-top: 0; }
  .fx-sec .facts tbody tr:first-child { border-top: 1px solid var(--rule); }
  .fx-sec .facts tbody tr:first-child > * { border-top: 0; }
  .fx-sec .facts td { padding-top: var(--s1); }
}

/* ── Press ── */
.ps-top { padding-top: clamp(16px, 3vw, 40px); }
.ps-top .t-lead { margin-top: var(--s4); max-width: 34em; }
.ps-about p { font-size: var(--t-lead); line-height: 1.6; text-wrap: pretty; hanging-punctuation: first allow-end; }
.ps-about p:lang(zh), :lang(zh) .ps-about p { line-height: 1.75; }
.ps-about p + p { margin-top: var(--s5); }
.ps-plates { display: grid; gap: var(--s8) var(--gap); }
/* one caption style for every asset: its number, its bold name, what it is; a picture's own name sits under it in micro */
.ps-walls-row { display: grid; gap: var(--s5) var(--gap); }
@media (min-width: 620px) { .ps-walls-row { grid-template-columns: 1fr 1fr; } }
.ps-pic-name { padding-top: var(--s2); font-size: var(--t-micro); line-height: 1.5; color: var(--ink3); letter-spacing: .02em; }
.ps-pair { --n: 2; --stand: 190px; max-width: 500px; margin-inline: auto; width: 100%; }
.ps-pair .hang .nm:lang(en) { font-size: var(--t-lead); }
/* figures and mark: two plates of one height, captions on one line */
.ps-figs, .ps-logo { display: flex; flex-direction: column; }
.ps-plate { flex: 1; display: flex; align-items: flex-end; }
.ps-mark { align-items: center; justify-content: center; aspect-ratio: 16 / 9; border: 1px solid var(--hair); border-radius: 2px; }
/* the mark is drawn dark on light: in the dark scheme its frame is filled light, like the wall of the product picture */
@media (prefers-color-scheme: dark) { .ps-mark { background: var(--night-ink); border-color: transparent; } }
.ps-mark img { width: clamp(64px, 9vw, 112px); height: auto; }
@media (min-width: 900px) {
  .ps-plates { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ps-desk, .ps-walls { grid-column: 1 / -1; }
  .ps-figs { grid-column: 1 / span 6; }
  .ps-logo { grid-column: 7 / span 6; }
  .ps-mark { aspect-ratio: auto; min-height: 0; }
}
.ps-kit { display: grid; gap: var(--s1) var(--gap); margin-top: var(--s8); padding-block: var(--s5); border-block: 1px solid var(--hair); }
.ps-kit-name { font-weight: 600; }
.ps-kit-what { color: var(--ink2); }
@media (min-width: 900px) {
  .ps-kit { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
  .ps-kit-name { grid-column: 1 / span 2; }
  .ps-kit-what { grid-column: 3 / span 8; font-size: var(--t-lead); }
}
.ps-rows .spec > div:first-child { border-top: 0; padding-top: 0; }
.ps-contact a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }

/* ── Status: per region a ruled list; each row the service, its address, its state (a word and a mark of its own shape). ── */
.read-body .st { max-width: none; }
.st-region + .st-region { margin-top: var(--s8); }
.read-body .st-region > h2 { margin-top: var(--s7); }
.st-list { margin-top: var(--s3); border-top: 1px solid var(--rule); }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s5); padding-block: var(--s4); border-bottom: 1px solid var(--hair); }
.st-svc { grid-column: 1; display: flex; flex-direction: column; }
.st-name { font-weight: 600; }
.st-host { font-size: var(--t-micro); line-height: 1.6; color: var(--ink3); letter-spacing: .02em; overflow-wrap: anywhere; }
.st-state { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: var(--s2); min-height: 28px; align-self: start; font-size: var(--t-small); color: var(--ink2); white-space: nowrap; }
.st-mark { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink3); }
.st-state[data-state="unknown"] .st-mark { box-shadow: none; border: 1px dashed var(--ink3); }
.st-state[data-state="ok"] { color: var(--ink); }
.st-state[data-state="ok"] .st-mark { background: var(--ink); box-shadow: none; }
.st-state[data-state="down"] { color: var(--ink); font-weight: 600; }
.st-state[data-state="down"] .st-mark { box-shadow: inset 0 0 0 1.5px var(--ink); }
.st-state[data-state="down"] .st-mark::after { content: ""; position: absolute; left: -2px; right: -2px; top: 4.25px; height: 1.5px; background: var(--ink); transform: rotate(-45deg); }
.st-what { grid-column: 1 / -1; padding-top: var(--s2); font-size: var(--t-small); line-height: 1.6; color: var(--ink2); max-width: var(--measure); text-wrap: pretty; }
@media (min-width: 900px) {
  .st-row { grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; }
  .st-what { grid-column: 2; grid-row: 1; padding-top: 2px; }
  .st-state { grid-column: 3; }
}
.st-when { margin-top: var(--s5) !important; font-size: var(--t-small); color: var(--ink3); font-variant-numeric: tabular-nums; }
.st-when[hidden] { display: none; }
.st-note { margin-top: var(--s6) !important; font-size: var(--t-small); line-height: 1.6; }

/* the status page without scripts says why every row reads unknown */
.st-noscript { margin-top: var(--s5) !important; font-size: var(--t-small); line-height: 1.6; }

/* ── Legal ── */
.read-body .lg-sec > h2 { margin-top: var(--s8); }
.read-body .lg-sec > h2 + * { margin-top: var(--s3); }
.lg-sec .thing-line { max-width: 36em; }
.lg-mail { display: block; }
.lg-mail + .lg-mail { margin-top: var(--s3); }
.lg-sec .spec a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); overflow-wrap: anywhere; }

/* /press · the facts head's 「全部事实」 link: 44 px to the touch at a phone, the words where they were */
[aria-labelledby="ps-facts"] > .head a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
/* /legal: the plain line under the two documents (not the 「即将」 note) */
.lg-old { margin-top: var(--s3); color: var(--ink2); }

/* ───────────────────────── 74 · product pages: Awareful Desk, the plans, Studio, the store ───────────────────────── */
/* Composed from the shared parts; this file holds only what those four pages need beyond them, built from the tokens.
   Every class here starts with pr- (or sits under body.pr). */

/* ── The first screen of a product page without a full-bleed picture: the name at display size, the one sentence under
      it, a quieter line, the one way onward. From 900 the name holds the left of the grid and the words stand to its right,
      on its last line, like a title page; with a drawing (Desk), the words keep the left and the drawing takes the right. ── */
.pr-top { padding-top: clamp(40px, 7vw, 112px); }
.pr-top-words h1, .pr-top > h1 { margin-left: -.04em; text-wrap: balance; }
/* A product's two-word name (Awareful Desk) stays whole from 600; below that it may break between its words. */
@media (min-width: 600px) { .pr-name { white-space: nowrap; } }
.pr-top > h1 + .pr-top-words .t-lead { margin-top: var(--s4); }
.pr-top-words .t-lead { margin-top: var(--s4); max-width: 30em; }
.pr-top-words .t-title + .t-lead { margin-top: var(--s4); }
.pr-sub { margin-top: var(--s3); max-width: 32em; color: var(--ink2); text-wrap: pretty; }
.pr-acts { margin-top: var(--s4); }
.pr-dl { margin-top: var(--s2); max-width: 32em; font-size: var(--t-small); color: var(--ink2); text-wrap: pretty; }
.pr-steps-go { margin-top: var(--s3); }
@media (min-width: 900px) {
  .pr-top-words { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .pr-top-words > * { grid-column: 7 / span 6; }
  .pr-top-words h1 { grid-column: 1 / span 6; grid-row: 1 / span 3; align-self: end; margin-bottom: -.12em; }
  .pr-top-words h1.t-title { margin-bottom: .1em; }
  .pr-top-words .t-lead { margin-top: 0; }
  .pr-top.has-fig { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .pr-top.has-fig > h1 { grid-column: 1 / -1; margin-bottom: var(--s6); }
  .pr-top.has-fig .pr-top-words { display: block; grid-column: 1 / span 5; }
  .pr-top.has-fig .pr-top-words .t-lead { margin-top: var(--s5); }
  .pr-top.has-fig .pr-figure { grid-column: 7 / span 6; margin-top: 0; }
}

/* ── Desk: the drawing of the menu bar and its card. The same hand as the home page's two-cell drawings, larger:
      1 px lines at any width, no fill but the marked item's quiet ground, a caption that says it is a drawing. ── */
.pr-figure { margin-top: var(--s7); }
.pr-draw { display: block; }
.pr-draw .draw { width: 100%; }
.pr-draw .draw * { vector-effect: non-scaling-stroke; }
.pr-menubar .pr-item { fill: var(--fill); }

/* ── Desk: three steps in a row from 900, each under a hairline; the command sits in the second. ── */
.pr-pre { max-width: var(--measure); color: var(--ink2); margin-bottom: var(--s6); text-wrap: pretty; }
.pr-steps { display: grid; gap: var(--s7) var(--gap); }
.pr-steps > li { border-top: 1px solid var(--hair); padding-top: var(--s3); min-width: 0; }
.pr-steps .no { display: block; font-size: var(--t-micro); line-height: 1.5; color: var(--ink3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pr-steps h3 { font: 600 var(--t-lead)/1.3 var(--sans); padding-top: var(--s3); }
.pr-steps p { color: var(--ink2); padding-top: var(--s2); max-width: 26em; text-wrap: pretty; }
.pr-steps .code { margin-top: var(--s4); }
.pr-after { margin-top: var(--s7); max-width: var(--measure); text-wrap: pretty; }
@media (min-width: 900px) { .pr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pr-prose { max-width: var(--measure); text-wrap: pretty; }
.pr-prose code, .pr-steps code { font: var(--t-small)/1 var(--mono); font-variant-ligatures: none; background: var(--fill); padding: .16em .38em; border-radius: 3px; }
.pr-steps pre code { background: none; padding: 0; border-radius: 0; font: inherit; }
.pr-links { display: flex; flex-wrap: wrap; gap: 0 var(--s6); margin-top: var(--s4); }

/* ── Desk: what it adds and what it never does, two short ruled lists side by side from 900. ── */
.pr-two { display: grid; gap: var(--s7) var(--gap); }
.pr-col h3 { font: 600 var(--t-small)/1.5 var(--sans); color: var(--ink2); border-top: 1px solid var(--rule); padding-top: var(--s3); }
.pr-col ul { margin-top: var(--s4); }
.pr-col li { text-wrap: pretty; }
@media (min-width: 900px) { .pr-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── The plans: three tiers side by side, their rows aligned across (subgrid), stacked at a phone. No card, no fill: each
      tier hangs from a rule. Plus, the tier whose moment the page is about, hangs from the strong rule; the others from a
      hairline. ── */
.pr-plans { padding-top: clamp(40px, 6vw, 88px); }
.pr-tiers { display: grid; gap: var(--s8) var(--gap); }
.pr-tier { display: grid; grid-template-rows: auto; align-content: start; border-top: 1px solid var(--hair); padding-top: var(--s5); min-width: 0; }
.pr-tier.is-plus { border-top-color: var(--rule); }
.pr-tier-draw { display: block; }
.pr-tier-draw .draw { width: 168px; }
.pr-tier h2 { display: flex; align-items: center; gap: var(--s3); font: 600 var(--t-title)/1.16 var(--sans); letter-spacing: -.01em; padding-top: var(--s5); }
.pr-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6em; padding-top: var(--s2); font-variant-numeric: tabular-nums; }
.pr-month { font-weight: 500; }
.pr-year { font-size: var(--t-small); color: var(--ink2); }
.pr-feeling { font-size: var(--t-lead); line-height: 1.55; padding-top: var(--s5); text-wrap: pretty; }
:lang(zh) .pr-feeling { line-height: 1.7; }
.pr-line { font-size: var(--t-small); line-height: 1.6; color: var(--ink2); padding-top: var(--s4); text-wrap: pretty; }
.pr-includes { margin-top: var(--s5); border-top: 1px solid var(--hair); }
.pr-includes li { font-size: var(--t-small); line-height: 1.55; padding-block: 10px; border-bottom: 1px solid var(--hair); text-wrap: pretty; }
.pr-slot { font-size: var(--t-small); line-height: 1.5; color: var(--ink3); padding-top: var(--s4); min-height: 1.5em; }
.pr-slot:empty { display: none; }
@media (min-width: 900px) {
  .pr-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); }
  .pr-tier { grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  .pr-slot:empty { display: block; }
}
.pr-foot { display: grid; gap: var(--s4); margin-top: var(--s8); border-top: 1px solid var(--hair); padding-top: var(--s4); }
.pr-note { font-size: var(--t-small); line-height: 1.6; color: var(--ink2); max-width: var(--measure); text-wrap: pretty; }
.pr-which { max-width: var(--measure); text-wrap: pretty; }
.pr-which a, .pr-col a, .pr .spec a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.pr-which a:hover, .pr-col a:hover, .pr .spec a:hover { text-decoration-color: currentColor; }
@media (min-width: 900px) {
  .pr-foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; }
  .pr-note { grid-column: 1 / span 6; }
  .pr-which { grid-column: 7 / span 6; }
}

/* ── Studio: the four steps walked one by one, each a row: its number, name and line at the left, the real pictures of
      what it changes at the right (from 900); stacked at a phone. Each row hangs from a hairline. ── */
.pr-walk > li { border-top: 1px solid var(--hair); padding-block: var(--s3) var(--s8); min-width: 0; }
.pr-walk-words .no { display: block; font-size: var(--t-micro); line-height: 1.5; color: var(--ink3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pr-walk-words h3 { font: 600 var(--t-title)/1.16 var(--sans); letter-spacing: -.01em; padding-top: var(--s3); }
.pr-walk-words h3:lang(en) { letter-spacing: 0; }
.pr-walk-words p { color: var(--ink2); padding-top: var(--s2); max-width: 22em; text-wrap: pretty; }
.pr-walk-pics { margin-top: var(--s6); min-width: 0; }
.pr-walls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pr-walls .plate-pic { --ar: 16 / 10; }
.pr-stands { --stand: 200px; }
.pr-stands.is-one { grid-template-columns: minmax(0, 200px); }
.pr-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599.9px) { .pr-stands.is-one { grid-template-columns: minmax(0, 44vw); } }
@media (min-width: 900px) {
  .pr-walk > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .pr-walk-words { grid-column: 1 / span 4; }
  .pr-walk-pics { grid-column: 5 / span 8; margin-top: var(--s3); }
  .pr-looks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.pr-walk + .pr-links { margin-top: 0; }

/* ── The store: the sets in a rail, close under the first screen. A set's picture is its product picture (the display and
      the phone), so the frame is the picture's own 16:9. ── */
.pr-sets { padding-top: clamp(48px, 6vw, 96px); }
.pr-set .plate-pic { --ar: 16 / 9; }

/* The last section of these pages and the foot: the same air as at the end of the home page. */
.pr main { padding-bottom: var(--s9); }

/* ───────────────────────── 90 · motion and print ───────────────────────── */
/* Three kinds only: a picture fades in, a full-bleed picture drifts a little as it passes (parallax), the figures in a
   picture move (the clip, 20-clip.js). Without the script everything is simply there. With reduced motion everything is
   a still. Text never fades. */
@media (prefers-reduced-motion: no-preference) {
  /* the script marks only pictures that are still below the screen when it starts, so nothing already seen blinks */
  [data-fade].will-fade { opacity: 0; transition: opacity var(--t-fade) var(--out); }
  [data-fade].will-fade.is-in { opacity: 1; }
  .night-pic[data-fade].will-fade { transition-duration: 1.4s; }   /* the lamps come up slowly */

  /* parallax: only where the browser can tie it to the scroll itself */
  @supports (animation-timeline: view()) {
    .night-pic img { scale: 1.1; animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .cover img { scale: 1.06; animation: drift-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
@keyframes drift-out { from { translate: 0 0; } to { translate: 0 2.6%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; scroll-behavior: auto !important; }
  .clip video, .clip-btn { display: none !important; }   /* the clip is its still */
}

/* print: the paper without the bars */
@media print {
  .proto, .bar, .sub, .buy, .foot-cols, .rail-nav, .clip-btn, .skip { display: none !important; }
  :root { --paper: #fff; --ink: #000; --ink2: #333; --ink3: #555; }
  .night { background: none; color: inherit; }
  .read-body { max-width: none; }
  a { text-decoration: none; }
}
