/* Mu Media design system C ("Apple-grade"), iteration 94. The site's only stylesheet: every page links it and
   nothing else (site.css is kept as an empty preserved URL). System type, a near-white canvas and black bands; the
   products' own icons and screenshots carry the colour. Two touches from Direction A: the five-colour bar after the
   wordmark on every page, and each product page painted in its own project colour (pill, status, hero tint).
   No web fonts are served (scripts/check-site.py check_no_web_fonts). */

/* ---------- Tokens ---------- */
:root {
  --canvas: #fbfbfd; --sheet: #ffffff; --ink: #1d1d1f; --body: #1d1d1f; --grey: #6e6e73; --grey-on-tint: #48484d;
  --rule: #d2d2d7; --sunk: #f5f5f7; --link: #0066cc; --blue: #0071e3; --focus: #0071e3;
  --night: #000; --night-ink: #f5f5f7; --night-grey: #a1a1a6; --night-link: #2997ff;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-zh: "PingFang SC", "PingFang HK", "PingFang TC", "Noto Sans SC", "Noto Sans TC", "Microsoft YaHei", sans-serif;
  --t-xs: 13px; --t-sm: 15px; --t-0: 17px; --t-1: 20px; --t-2: 24px;
  --t-3: clamp(30px, 3.6vw, 48px); --t-4: clamp(36px, 5.2vw, 64px); --t-5: clamp(40px, 6vw, 80px);
  --gutter: clamp(16px, 4vw, 48px);
  --r-card: 22px; --r-panel: 18px; --r-field: 12px;
  /* The five-colour bar (decorative, so FIRE keeps its bright ember to stay apart from 碰碰胡's lacquer). */
  --bar-muwatch: #187665; --bar-halo: #7050af; --bar-beep: #b83a62; --bar-fire: #e4572e; --bar-pungpunghu: #a12e26;
  /* The pill and status colour; a product page swaps in its own (below). */
  --p: var(--blue); --tint: var(--sunk);
}
/* Project colours: --sp is text-safe on white, the canvas and the project's own --tint (all >= 4.7:1, white on
   --sp >= 5.5:1); --tint is a background only. A product page carries data-project-id on <body>; tiles, cards and
   rack links carry it themselves. */
[data-project-id="muwatch"] { --tint: #e8f3ee; --sp: #187665; }
[data-project-id="halo"] { --tint: #f0ebfa; --sp: #7050af; }
[data-project-id="beep"] { --tint: #fbe9ef; --sp: #b83a62; }
[data-project-id="fire"] { --tint: #fae9df; --sp: #a73d20; }
[data-project-id="pungpunghu"] { --tint: #f8eae6; --sp: #a12e26; }
[data-project-id="kisera"] { --tint: #f3eee5; --sp: #725522; }
body[data-project-id] { --p: var(--sp, var(--blue)); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 400 var(--t-0)/1.47 var(--text); letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -0.025em; line-height: 1.07; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration: underline; }
p a, li a, dd a, figcaption a, td a { text-decoration: underline; text-decoration-thickness: 1px; }
:is(.hero-product, .screenshot-link, .project-links a, .error-projects a, .page-contents a, .support-directory a, .store-badge, .headline-link, .project-card h3 a, .btn, .primary-action, .project-store a, .support-draft-actions a) { text-decoration: none; }
:is(.page-contents a, .support-directory a, .headline-link, .project-card h3 a):hover { text-decoration: underline; }
b, strong { color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Chinese: the system's CJK faces by name; a project name is one word and never breaks inside. */
.zh, [lang|="zh"] { font-family: var(--font-zh); letter-spacing: 0; }
:is(span, a, strong, li, h3)[lang|="zh"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-200%); background: var(--ink); color: var(--canvas); padding: 12px 20px; font-weight: 600; border-radius: 980px; }
.skip-link:focus { transform: none; }

/* ---------- Header: a quiet bar; the studio's mark is the five-colour bar after the wordmark ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding-block: 4px; font-size: 13px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font: 600 19px/1 var(--display); letter-spacing: -0.02em; }
.wordmark:hover { text-decoration: none; }
.wordmark::after { content: ""; flex: none; width: 24px; height: 14px; border-radius: 2px; background: linear-gradient(90deg,
  var(--bar-muwatch) 0 4px, transparent 4px 5px, var(--bar-halo) 5px 9px, transparent 9px 10px, var(--bar-beep) 10px 14px,
  transparent 14px 15px, var(--bar-fire) 15px 19px, transparent 19px 20px, var(--bar-pungpunghu) 20px 24px, transparent 24px); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 13px; }
.site-nav a[aria-current="page"] { color: var(--grey); text-decoration: none; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--ink); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--grey); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Actions: one filled pill per section; everything else is a blue "›" link ---------- */
.btn, .primary-action, .project-store a, .directory-empty button, .directory-controls button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px;
  border: 0; border-radius: 980px; background: var(--blue); color: #fff; font: 400 var(--t-0)/1.2 var(--text); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; }
.btn:hover, .project-store a:hover, .directory-empty button:hover, .directory-controls button:hover { background: #0077ed; color: #fff; text-decoration: none; }
.directory-controls button { background: var(--sunk); color: var(--ink); font-size: var(--t-sm); }
.directory-controls button:hover { background: #e8e8ed; color: var(--ink); }
.primary-action { background: var(--p); }
.primary-action:hover { background: var(--p); color: #fff; text-decoration: none; filter: brightness(1.12); }
.project-store a { background: var(--sp, var(--blue)); }
.project-store a:hover { background: var(--sp, var(--blue)); filter: brightness(1.12); }
.browse-actions, .product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.browse-actions > a:not(.btn), .product-actions > a:not(.primary-action) { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-size: var(--t-0); }
.browse-actions > a:not(.btn)::after, .product-actions > a:not(.primary-action)::after, .studio-note a::after { content: "\00a0›"; }
/* A pre-release status is text, never a button: no fill, no outline, no shadow. */
.cta .btn-soon, .way-action .soon-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; min-height: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; cursor: default; font-weight: 600; }
.way-action .soon-badge { color: var(--ink); font-size: var(--t-0); }

/* ---------- Homepage: centred statement, then the bento ---------- */
.hero:has(.hero-products) { text-align: center; padding-block: clamp(32px, 6vw, 72px) 24px; }
.hero-kicker { color: var(--grey); font-size: var(--t-0); font-weight: 600; margin: 0 0 10px; }
.hero:has(.hero-products) h1 { font-size: var(--t-5); margin: 4px auto 16px; }
.hero h1 .accent { color: var(--grey); }
.hero:has(.hero-products) > p:not(.hero-kicker) { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: var(--ink); max-width: 36ch; margin: 0 auto 24px; }
.hero:has(.hero-products) .browse-actions { justify-content: center; }
.hero .hero-products-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-products { margin-top: clamp(32px, 5vw, 56px); }
.hero-products ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); text-align: center; }
.hero-products li { grid-column: span 3; display: flex; min-width: 0; }
.hero-products li:nth-child(n+3) { grid-column: span 2; }
/* A row of thirds with only two tiles left (4, 7, 10 projects) splits into halves instead of leaving a gap. */
@media (min-width: 900px) { .hero-products li:nth-child(n+3):nth-child(3n):nth-last-child(2), .hero-products li:nth-child(n+3):nth-child(3n):nth-last-child(2) + li { grid-column: span 3; } }
.hero-product { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 24px 0; overflow: hidden;
  background: var(--tint); color: var(--ink); border-radius: var(--r-card); min-height: 100%; text-decoration: none; }
.hero-product:hover { text-decoration: none; }
.hero-product:hover .hero-product-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-product-icon img { width: 56px; height: 56px; border-radius: 13px; }
.hero-product-text { display: grid; gap: 4px; }
.hero-product-name { font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -0.02em; }
.hero-product-name.zh { font-family: var(--font-zh); letter-spacing: .02em; }
.hero-product-purpose { font-size: var(--t-0); line-height: 1.35; color: var(--ink); max-width: 30ch; margin-inline: auto; }
.hero-product-status { font-size: 14px; color: var(--grey-on-tint); }
.hero-product[data-state="available"] .hero-product-status { color: var(--sp); font-weight: 600; }
.hero-product-shot { margin-top: auto; padding-top: 20px; width: 100%; display: flex; justify-content: center; }
.hero-product-shot img { width: 100%; max-width: 520px; border-radius: 12px 12px 0 0; }
.hero-product[data-project-id="fire"] .hero-product-shot img { max-width: 200px; aspect-ratio: 586 / 640; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; }
.hero-product[data-project-id="beep"] { padding-bottom: 32px; }
.hero-product[data-project-id="beep"] .hero-product-icon { order: 3; margin-top: auto; }
.hero-product[data-project-id="beep"] .hero-product-icon img { width: 120px; height: 120px; border-radius: 27px; margin-top: 24px; }
.hero-product:focus-visible { outline-offset: 4px; border-radius: var(--r-card); }
.clay-art-square { overflow: hidden; }

/* ---------- Directory ---------- */
.project-guide { padding-block: clamp(48px, 7vw, 96px) 24px; }
.directory-heading { display: grid; gap: 12px 48px; margin-bottom: 24px; }
@media (min-width: 900px) { .directory-heading { grid-template-columns: 1fr 1fr; align-items: end; } .directory-heading .eyebrow { grid-column: 1 / -1; } }
.eyebrow { color: var(--grey); font-size: var(--t-0); font-weight: 600; margin: 0 0 10px; }
.directory-heading > p { color: var(--grey); font-size: 19px; margin: 0; }
.directory-heading h2, .studio-note h2, .stack > .card h2, .error-projects h2 { font-size: var(--t-3); line-height: 1.1; }
.directory-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 24px 0; padding: 20px; background: var(--sheet); border-radius: var(--r-panel); }
.directory-controls label { display: grid; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.directory-search { flex: 1 1 260px; }
.directory-controls input[type="search"], .directory-controls select, .support-composer input, .support-composer select, .support-composer textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-radius: var(--r-field); }
.directory-refinements { flex: 2 1 420px; }
.directory-refinements summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--ink); font-size: var(--t-sm); }
@media (min-width: 700px) { .directory-refinements > summary { display: none; } }
.refinement-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.directory-check { display: flex !important; align-items: center; gap: 8px; min-height: 44px; }
.directory-check input { width: 20px; height: 20px; accent-color: var(--blue); }
[data-directory-count] { flex-basis: 100%; margin: 0; font-size: var(--t-sm); color: var(--grey); }
.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.project-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; min-width: 0; background: var(--sheet); border-radius: var(--r-card); }
.project-card header { display: flex; align-items: center; gap: 16px; }
.project-card header img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.project-card h3 { font-size: var(--t-2); line-height: 1.1; }
.project-card h3 a { color: var(--ink); }
.project-card h3 a, .headline-link { display: inline-block; padding-block: 10px; margin-block: -10px; }
.project-kind, .project-meta dt { color: var(--grey); font-size: var(--t-xs); font-weight: 600; margin: 0 0 2px; }
.project-purpose { margin: 0; }
@media (min-width: 700px) { .project-card .project-purpose { min-height: 4.4em; } }
.project-meta { margin: 0; display: grid; gap: 6px; font-size: var(--t-sm); }
.project-meta dd { margin: 0; color: var(--ink); }
.project-explore { display: inline-block; align-self: flex-start; padding-block: 11px; min-height: 44px; margin-top: auto; color: var(--link); font-size: var(--t-0); }
.project-store { display: grid; gap: 6px; justify-items: start; }
.project-store small { font-size: var(--t-xs); color: var(--grey); }
.directory-empty { padding: 24px; margin-top: 16px; background: var(--sheet); border-radius: var(--r-panel); }
.project-comparison { margin-top: 24px; }
.project-comparison summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--ink); }
.table-hint { font-size: var(--t-xs); color: var(--grey); }
.table-scroll { overflow-x: auto; background: var(--sheet); border-radius: var(--r-panel); }
.table-scroll table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: var(--t-sm); }
.table-scroll th, .table-scroll td { text-align: left; padding: 12px; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table-scroll th { color: var(--ink); font-weight: 600; }

/* ---------- Homepage stories and the studio band ---------- */
.apps { display: grid; gap: 40px 64px; padding-block: 48px; }
@media (min-width: 900px) { .apps { grid-template-columns: 1fr 1fr; } }
.app .app-name { font-size: var(--t-0); color: var(--grey); font-weight: 600; }
.app h2 { font-size: var(--t-2); line-height: 1.2; margin: 6px 0 10px; }
.headline-link { color: inherit; }
.studio-note { max-width: none; display: grid; gap: 16px 64px; background: var(--night); color: var(--night-ink);
  padding-inline: max(var(--gutter), calc((100% - 1080px) / 2 + var(--gutter))); padding-block: 88px; }
@media (min-width: 900px) { .studio-note { grid-template-columns: 5fr 7fr; } }
.studio-note h2, .studio-note b, .studio-note strong { color: var(--night-ink); }
.studio-note .eyebrow { color: var(--night-grey); }
.studio-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--night-link); }
.studio-note :focus-visible { outline-color: var(--night-link); }

/* ---------- Product pages: the project's own object ---------- */
/* The hero: a compact centred stack on the project's tint, which bleeds to both edges. */
.hero:not(:has(.hero-products)) { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 16px 24px; }
body[data-project-id] .hero { background: var(--tint); box-shadow: 0 0 0 100vmax var(--tint); clip-path: inset(0 -100vmax); }
.clay-art { display: block; }
.hero:not(:has(.hero-products)) .clay-art { order: -1; width: 64px; margin-bottom: 8px; }
.clay-art img { border-radius: 22%; }
.hero-title-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; }
.hero-title-row .app-name { font: 600 24px/1.2 var(--display); color: var(--ink); }
.hero-title-row .app-name[lang|="zh"], .hero-title-row .app-name.zh { font-family: var(--font-zh); }
.badge { font-size: 14px; font-weight: 600; color: var(--p); }
.hero:not(:has(.hero-products)) h1 { font-size: clamp(36px, 4.2vw, 56px); margin: 6px 0 12px; max-width: 22ch; }
.lede { max-width: 60ch; }
.hero:not(:has(.hero-products)) .lede { margin-inline: auto; max-width: 52ch; color: var(--grey-on-tint); font-size: 19px; }
.hero:not(:has(.hero-products)) .lede:first-of-type { color: var(--ink); font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.015em; }
.hero:not(:has(.hero-products)) .lede:only-of-type { font-weight: 400; font-size: clamp(17px, 1.6vw, 21px); }
.hero .hero-points { list-style: none; margin: 0 auto; padding: 0; max-width: 52ch; display: grid; gap: 4px; color: var(--ink); font-size: clamp(17px, 1.6vw, 21px); }
.hero:not(:has(.hero-products)) .product-actions { justify-content: center; margin-top: 4px; }
/* Essentials: one white spec strip. */
.product-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: calc(100% - 2 * var(--gutter)); max-width: 1032px;
  margin-block: 0; padding: 6px 0; gap: 0; background: var(--sheet); border-radius: var(--r-panel); }
.product-facts > div { text-align: center; padding: 10px 12px; min-width: 0; }
.product-facts > div + div { border-left: 1px solid var(--rule); }
.product-facts dt { color: var(--grey); font-size: var(--t-xs); font-weight: 600; }
.product-facts dd { margin: 4px 0 0; color: var(--ink); font-size: var(--t-0); font-weight: 600; overflow-wrap: anywhere; }
/* The strip sits on the hero's tint, which runs on to the black preview band; below a single-shot preview (which
   moves up under the hero) it sits on the canvas instead. */
body[data-project-id] main:not(:has(> .product-facts + .product-preview:not(.preview-gallery))) > .hero + .product-facts {
  box-shadow: 0 0 0 100vmax var(--tint); clip-path: inset(0 -100vmax -32px); }
/* The product, big, on black. */
.product-preview { max-width: none; display: grid; gap: 20px; background: var(--night); color: var(--night-ink); margin-top: 32px;
  padding: 40px max(var(--gutter), calc((100% - 1180px) / 2)) 64px; }
.product-preview > h2 { color: var(--night-ink); text-align: center; font-size: var(--t-3); line-height: 1.1; }
.product-preview figcaption, .product-preview .screenshot-hint, .product-preview .stage-note { color: var(--night-grey); }
.product-preview .frames .step { color: var(--night-ink); }
.product-preview a { color: var(--night-link); }
.product-preview :focus-visible { outline-color: var(--night-link); }
.preview-video { margin: 0; }
.preview-video video { width: 100%; height: auto; border-radius: var(--r-panel); }
.preview-video figcaption, .shot figcaption { font-size: var(--t-sm); margin-top: 10px; text-align: center; text-wrap: pretty; }
.shot { margin: 0; }
.screenshot-link { display: block; }
.product-preview .shot > .screenshot-link { max-width: min(100%, 900px); margin-inline: auto; }
.product-preview .shot > .screenshot-link img { width: 100%; max-height: 540px; object-fit: contain; border-radius: 12px; }
.screenshot-hint { display: block; }
.frames { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frames-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 900px) { .preview-gallery .frames:not(.frames-3) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.frames img { border-radius: 14px; }
.frames .step { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--grey); text-align: center; padding-top: 10px; }
.stage-note { display: block; font-size: var(--t-sm); color: var(--grey); line-height: 1.45; text-align: center; max-width: 240px; margin: 4px auto 0; }
@media (max-width: 740px) {
  .frames { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .frames li { scroll-snap-align: start; }
}
/* A single screenshot is the first proof: on its page the black preview band comes straight after the hero. */
main:has(> .product-facts + .product-preview:not(.preview-gallery)) { display: flex; flex-direction: column; }
main:has(> .product-facts + .product-preview:not(.preview-gallery)) > * { width: 100%; }
main:has(> .product-facts + .product-preview:not(.preview-gallery)) > .hero { order: -2; }
main:has(> .product-facts + .product-preview:not(.preview-gallery)) > .product-preview { order: -1; margin-top: 0; }
main:has(> .product-facts + .product-preview:not(.preview-gallery)) > .product-facts { width: calc(100% - 2 * var(--gutter)); margin-top: 24px; }
/* Page contents */
.page-contents { margin-block: 16px 24px; }
.page-contents summary { min-height: 48px; display: flex; align-items: center; padding: 0 16px; cursor: pointer; font-weight: 600; color: var(--ink); background: var(--sheet); border-radius: 14px; }
.page-contents[open] { background: var(--sheet); border-radius: 14px; }
.page-contents nav div { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 8px 16px; }
.page-contents nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-sm); text-decoration: none; }
/* Sections: no cards, a hairline between them; on product pages from 1000 px the heading sits in a 4/12 column. */
.stack { display: grid; gap: 0; }
.stack > .card { padding-block: 40px; min-width: 0; }
.stack > .card + .card { border-top: 1px solid var(--rule); }
.stack > .card h2 { margin-bottom: 16px; }
body[data-project-id] .stack > .card h2 { font-size: clamp(26px, 2.6vw, 34px); }
.stack > .card > h3, .stack > .card section h3 { font-size: var(--t-1); line-height: 1.2; margin: 20px 0 6px; }
.stack .card p, .stack .card li { color: var(--ink); }
.stack > .card > .badge { display: block; margin-bottom: 6px; }
.stack > figure.shot { margin: 0 0 40px; }
.stack > figure.shot img, .card figure.shot img { border-radius: 12px; border: 1px solid var(--rule); }
.card figure.shot { margin: 20px 0; }
@media (min-width: 1000px) {
  body[data-project-id] .stack > .card:not(.iphone, .hint, :has(.ways-grid)) { display: grid; grid-template-columns: 4fr 8fr; column-gap: 64px; }
  body[data-project-id] .stack > .card:not(.iphone, .hint, :has(.ways-grid)) > :not(h2, .badge) { grid-column: 2; }
  body[data-project-id] .stack > .card:not(.iphone, .hint, :has(.ways-grid)) > .badge { grid-column: 1; grid-row: 1; }
  body[data-project-id] .stack > .card:not(.iphone, .hint, :has(.ways-grid)) > h2 { grid-column: 1; grid-row: 1 / span 30; align-self: start; position: sticky; top: 24px; }
  body[data-project-id] .stack > .card:not(.iphone, .hint, :has(.ways-grid)):has(> .badge) > h2 { grid-row: 2 / span 30; }
  body[data-project-id] .stack > figure.shot, body[data-project-id] .stack > .shot-note { margin-left: calc((100% - 64px) / 3 + 64px); }
}
.feature-list { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: 10px; }
.feature-list li::marker { color: var(--p); }
.walkthrough { list-style: none; counter-reset: step; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.walkthrough li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; background: var(--sheet); border-radius: var(--r-panel); }
.walkthrough li::before, .steps > li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--p); color: #fff; font-weight: 600; font-size: var(--t-sm); }
.levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .levels { grid-template-columns: 1fr 1fr; } }
.levels li { padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--sheet); border-radius: var(--r-panel); }
.levels .level { display: block; font: 700 var(--t-1)/1.2 var(--display), var(--font-zh); color: var(--ink); }
.levels .tag { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--sunk); color: var(--ink); font-size: var(--t-xs); font-weight: 600; }
.levels .tag.free { color: #1a6b37; background: #e3f3e8; }
.faq { display: grid; gap: 8px; }
.faq details { padding: 0 16px; background: var(--sheet); border-radius: var(--r-panel); }
.faq summary { min-height: 52px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; color: var(--ink); padding-block: 10px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--link); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq-permalink { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-sm); margin-bottom: 8px; }
/* The closing band: black, centred, one action. */
.cta { max-width: none; display: grid; gap: 8px; justify-items: center; text-align: center; background: var(--night); color: var(--night-ink);
  padding-block: 72px; padding-inline: max(var(--gutter), calc((100% - 1080px) / 2)); margin-top: 48px; }
.cta h2 { color: var(--night-ink); }
.cta .btn-soon { color: var(--night-ink); font: 600 var(--t-3)/1.1 var(--display); letter-spacing: -0.025em; }
.cta-note, .cta-links { font-size: var(--t-sm); color: var(--night-grey); margin: 0; }
.cta a:not(.store-badge) { color: var(--night-link); }
.cta-links a { display: inline-block; padding-block: 10px; }
.cta-note a { display: inline-block; padding-block: 13px; margin-block: -13px; }
.cta :focus-visible { outline-color: var(--night-link); }
.store-badge { display: inline-block; margin: 0; line-height: 0; }
.store-badge img { height: 50px; width: auto; }
.store-badge:hover img { opacity: .85; }
.app-help { padding-block: 24px; text-align: center; color: var(--grey); }
.app-help p { margin: 0; }
.app-help a { display: inline-block; min-height: 44px; padding-block: 10px; }

/* ---------- MuWatch: two ways in, the iPhone check ---------- */
.ways { padding-block: 16px 40px; }
.ways > h2 { font-size: var(--t-3); text-align: center; margin: 0 0 28px; }
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.way { --device-h: clamp(220px, 21vw, 290px); display: flex; flex-direction: column; background: var(--sheet); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) 0; overflow: hidden; }
.way-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--grey); font-size: var(--t-xs); font-weight: 600; }
.way-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p); }
.way h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin: 0 0 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 21px; height: 21px; border-radius: 50%;
  background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.way-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
.way-action > p { margin: 0; }
.way-note { font-size: var(--t-sm); color: var(--grey); }
.way-note a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.device { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; }
.device img { height: var(--device-h); object-fit: cover; object-position: top center; border: 6px solid var(--ink); border-bottom: 0; background: var(--ink); }
.device-phone img { width: calc(var(--device-h) * 0.86); border-radius: 34px 34px 0 0; }
.device-mac img { width: min(100%, calc(var(--device-h) * 1.6)); border-radius: 14px 14px 0 0; }
.iphone-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.iphone-shot { margin: 0; text-align: center; order: -1; }
.iphone-shot img { width: clamp(210px, 22vw, 260px); margin: 0 auto; border: 6px solid var(--ink); border-radius: 38px; }
.iphone-shot figcaption { max-width: 260px; margin: 14px auto 0; font-size: var(--t-sm); color: var(--grey); }
.steps { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps > li { counter-increment: step; position: relative; padding-left: 50px; }
.steps > li::before { left: 0; top: -2px; width: 34px; height: 34px; }
.card .steps h3 { margin: 0 0 4px; font-size: var(--t-1); }
.answers { list-style: none; margin: 8px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack .card .answer { font-weight: 600; font-size: var(--t-sm); padding: 6px 13px; border-radius: 980px; }
.stack .card .answer-ok { background: #e2f3ec; color: #0b6b52; }
.stack .card .answer-bad { background: #fce8e6; color: #b3261e; }
.stack .card .answer-unknown { background: var(--sunk); color: var(--grey-on-tint); }
.iphone .faq { margin-top: 32px; }
.shot-note { font-size: var(--t-sm); color: var(--grey); margin: -24px 0 40px; text-wrap: pretty; }
@media (max-width: 760px) {
  .ways-grid, .iphone-grid { grid-template-columns: 1fr; }
  .iphone-shot { order: 0; }
  .device-mac img { height: auto; aspect-ratio: 1920 / 1100; }
}

/* ---------- FIRE: the grown tree, eight landscapes, the hint ---------- */
.tree-row { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); margin-top: 16px; }
.tree-row .tree-copy { flex: 1 1 auto; min-width: 0; }
.tree-row img { flex: 0 0 auto; width: clamp(180px, 26vw, 300px); border-radius: var(--r-panel); }
.places { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.places li { display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; }
.places .n { font-weight: 700; color: var(--p); }
.hint { text-align: center; }
.hint .zh { font: 600 clamp(22px, 3vw, 36px)/1.3 var(--font-zh); color: var(--ink); margin: 0 auto; }
.stack .card.hint .en { font: 600 clamp(18px, 2vw, 24px)/1.3 var(--display); color: var(--grey); margin: 8px auto 0; }
.stack .card.hint p.small { margin: 16px auto 0; font-size: var(--t-sm); color: var(--grey); }
@media (max-width: 760px) {
  .places { grid-template-columns: minmax(0, 1fr); }
  .tree-row { flex-direction: column; align-items: stretch; }
  .tree-row img { width: 100%; max-width: 360px; align-self: center; }
}

/* ---------- Text pages: support, privacy ---------- */
.page-hero { padding-block: clamp(24px, 4vw, 56px) clamp(16px, 2vw, 24px); }
.page-hero h1 { font-size: var(--t-4); margin: 0 0 16px; max-width: 18ch; }
.page-hero .lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.4; color: var(--grey); max-width: 40em; margin: 0; }
main:has(> .page-hero) .stack > .card > * { max-width: 720px; }
.doc h2 { font-size: var(--t-2); line-height: 1.2; margin: 40px 0 10px; }
.stack > .card.doc h2 { font-size: var(--t-2); }
.doc h2:first-child { margin-top: 0; }
.fixes { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.support-directory { list-style: none; padding: 0; margin: 16px 0 0; }
.support-directory li { padding: 20px 0; border-top: 1px solid var(--rule); }
.support-directory strong { font-size: var(--t-1); }
.support-directory span { display: block; font-size: var(--t-sm); color: var(--grey); margin: 4px 0 8px; }
.support-directory a span { display: inline; margin: 0; font-size: inherit; color: inherit; }
.support-directory li > div { display: flex; flex-wrap: wrap; gap: 0 20px; }
.support-directory a { display: inline-block; padding-block: 10px; white-space: nowrap; text-decoration: none; }
.support-directory li:target { background: var(--sheet); padding: 20px; border-radius: var(--r-panel); }
.support-composer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.support-composer > label:has(textarea), .support-composer > details, .support-composer > p, .support-composer > .support-draft-actions { grid-column: 1 / -1; }
.support-composer label { display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink); font-weight: 600; }
.support-composer textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.support-composer summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--link); }
.support-draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.support-draft-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: 980px; background: var(--blue); color: #fff; text-decoration: none; }
.support-draft-actions a:hover { background: #0077ed; text-decoration: none; }
.support-draft-actions button { font: inherit; color: var(--link); background: transparent; border: 0; min-height: 44px; padding: 10px 4px; cursor: pointer; }
.stack .card .composer-note { font-size: var(--t-xs); color: var(--grey); }
@media (max-width: 600px) { .support-composer { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.error-page { padding-block: 56px 72px; }
.error-page h1 { font-size: var(--t-4); margin-bottom: 16px; }
.error-page > p { font-size: 19px; color: var(--grey); max-width: 40em; }
.error-page > p a { display: inline-block; padding-block: 10px; }
.error-projects { margin-top: 40px; }
.error-projects h2 { margin-bottom: 20px; }

/* ---------- The page-end rack (and the 404 list): tinted tiles, one per project ---------- */
.project-links { padding-block: 48px 24px; }
.project-links > p { color: var(--grey); font-size: var(--t-0); font-weight: 600; }
:is(.project-links, .error-projects) ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
:is(.project-links, .error-projects) li > a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; height: 100%; padding: 14px 16px;
  background: var(--tint, var(--sheet)); color: var(--ink); border-radius: var(--r-panel); text-decoration: none; }
:is(.project-links, .error-projects) li > a:hover .project-link-name { text-decoration: underline; text-underline-offset: 4px; }
:is(.project-links, .error-projects) li > a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--sp); }
:is(.project-links, .error-projects) li > a:focus-visible { border-radius: var(--r-panel); }
.project-link-kind { color: var(--grey-on-tint); font-size: var(--t-xs); font-weight: 600; }
.project-link-name { font: 700 var(--t-1)/1.2 var(--display); letter-spacing: -0.02em; }
.project-link-name.zh { font-family: var(--font-zh); letter-spacing: 0; }
.project-link-purpose { font-size: var(--t-sm); line-height: 1.4; color: var(--grey-on-tint); }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-block: 16px 40px; margin-top: 32px; border-top: 1px solid var(--rule); color: var(--grey); font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--grey); }
.site-footer .sep { color: var(--grey); }

/* ---------- Motion: one reveal per section, set only by reveal.js; nothing under reduced motion ---------- */
.reveal { opacity: 0; transform: translateY(8px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 600ms ease, transform 600ms ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 899px) {
  .hero-products ul { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-products li, .hero-products li:nth-child(n+3) { grid-column: span 2; }
  .hero-products li:nth-child(3), .hero-products li:nth-child(4) { grid-column: span 1; }
  .hero-products li:nth-child(3) .hero-product, .hero-products li:nth-child(4) .hero-product { padding-inline: 14px; }
  .hero-products li:nth-child(3) .hero-product-purpose, .hero-products li:nth-child(4) .hero-product-purpose { font-size: 15px; }
  .hero-product[data-project-id="beep"] .hero-product-icon img { width: 88px; height: 88px; }
  .hero-product { padding-top: 24px; }
}
@media (max-width: 740px) {
  .site-header { padding-block: 0; }
  .hero:not(:has(.hero-products)) { padding-block: 12px 20px; }
  .hero:not(:has(.hero-products)) .clay-art { width: 56px; margin-bottom: 6px; }
  .hero-title-row .app-name { font-size: 20px; }
  .hero-title-row .badge { font-size: 13px; }
  .hero:not(:has(.hero-products)) h1 { font-size: 30px; margin: 4px 0 10px; }
  .hero:not(:has(.hero-products)) .lede { font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
  .hero:not(:has(.hero-products)) .lede:first-of-type { font-size: 19px; }
  .hero:not(:has(.hero-products)) .lede:only-of-type { font-size: 16px; font-weight: 400; }
  .hero:not(:has(.hero-products)) .product-actions { gap: 0 18px; }
  .product-facts > div { padding: 8px 6px; }
  .product-facts dd { font-size: 15px; }
  .product-preview { padding-top: 28px; margin-top: 20px; }
  body[data-project-id] main:not(:has(> .product-facts + .product-preview:not(.preview-gallery))) > .hero + .product-facts { clip-path: inset(0 -100vmax -20px); }
  main:has(> .product-facts + .product-preview:not(.preview-gallery)) > .product-preview { padding-top: 20px; gap: 14px; }
  .product-preview > h2 { font-size: 24px; }
  .page-hero h1 { font-size: 36px; }
}
@media (max-width: 360px) {
  .hero-products li:nth-child(3), .hero-products li:nth-child(4) { grid-column: span 2; }
  .product-facts { grid-template-columns: 1fr 1fr; }
  .product-facts > div:nth-child(2) { border-left: 0; }
  .product-facts > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); }
}

/* ---------- Print: everything visible, dark text on paper (backgrounds are dropped), no skip link ---------- */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .skip-link { display: none !important; }
  .studio-note, .studio-note :is(h2, p, a, b, strong, .eyebrow),
  .product-preview, .product-preview :is(h2, figcaption, .screenshot-hint, .stage-note, .step, a),
  .cta, .cta :is(h2, p, span, a, .btn-soon, .cta-note, .cta-links) { color: #000 !important; }
}
