/* Agentic App Store website (docs/index.html), styled as an issue of a magazine: ink sections and two of paper
   (What you can do, Vision), serif display type, champagne gold for the main button, the stressed word, kickers
   and what is selected, and the aurora only for light. Group colours appear only on the apps' icon tiles.
   Motion: html.fx (on) or html.nofx (off), set before the page paints; reveals and effects live in site.js. */

/* Times New Roman scaled to Bodoni Moda's widths: headlines keep their lines while the web font loads */
@font-face { font-family: "Bodoni Fallback"; src: local("Times New Roman Bold"), local("Liberation Serif Bold"); font-weight: 400 900; size-adjust: 110%; ascent-override: 103%; descent-override: 36%; }
@font-face { font-family: "Bodoni Fallback"; font-style: italic; src: local("Times New Roman Bold Italic"), local("Liberation Serif Bold Italic"); font-weight: 400 900; ascent-override: 113%; descent-override: 40%; }

:root {
  color-scheme: dark;
  --ink: #08080c; --ink-2: #101018; --ink-3: #181822;
  --on-ink: #f3efe7; --on-ink-muted: #a5a1b2; --rule-ink: rgb(243 239 231 / .12);
  --paper: #f2ede3; --paper-2: #e8e1d3; --on-paper: #15141a; --on-paper-muted: #5f5b66; --rule-paper: rgb(21 20 26 / .16);
  --gold: #f2c14e; --gold-hi: #fff1c2; --gold-deep: #b8862b; --gold-2: #ffd978; --gold-ink: #1a1405;
  --foil: linear-gradient(100deg, #b8862b 0%, #f2c14e 30%, #fff1c2 50%, #f2c14e 70%, #b8862b 100%);
  --aurora-1: #7b5cff; --aurora-2: #ff3d8b; --aurora-3: #ff7a45;
  --aurora: linear-gradient(100deg, #7b5cff, #ff3d8b 45%, #ff7a45 75%, #f2c14e);
    --bg: var(--ink); --surface: var(--ink-2); --raised: var(--ink-3);
  --line: rgb(243 239 231 / .08); --line-2: var(--rule-ink); --line-3: rgb(243 239 231 / .22);
  --text: var(--on-ink); --muted: var(--on-ink-muted); --accent: var(--gold);
  --hover: rgb(243 239 231 / .055); --ul: rgb(243 239 231 / .32);
  --serif: "Bodoni Moda", "Bodoni Fallback", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-head: "Sora", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 64px;
  --pad: 24px;
  --sec: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 640px) { :root { --pad: 16px; } }
.paper {
  --bg: var(--paper); --surface: var(--paper-2); --raised: #faf7f0;
  --line: rgb(21 20 26 / .09); --line-2: var(--rule-paper); --line-3: rgb(21 20 26 / .26);
  --text: var(--on-paper); --muted: var(--on-paper-muted); --accent: #85601a;
  --hover: rgb(21 20 26 / .05); --ul: rgb(21 20 26 / .35);
  color-scheme: light; color: var(--text);
}
/* Two languages live side by side in the HTML; the <html lang> picks one. */
html[lang="zh-Hant"] [lang="en"], html:not([lang="zh-Hant"]) [lang="zh-Hant"] { display: none !important; }
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; }
p, ul, ol, figure, blockquote { margin: 0; }
a { color: var(--text); text-decoration-color: var(--ul); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code { font-family: var(--font-mono); font-size: .875em; background: color-mix(in srgb, currentColor 8%, transparent); padding: .1em .4em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: #050508; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; overflow: auto; font-family: var(--font-mono); font-size: .8125rem; line-height: 1.6; color: #e9e4da; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
pre .cm { color: var(--on-ink-muted); }
.wrap { max-width: calc(1160px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 10px; }
svg.i { width: 1.1em; height: 1.1em; flex: none; }
svg.b { fill: currentColor; flex: none; }
.nw { white-space: nowrap; }
.fine { color: var(--muted); font-size: .875rem; }
.mini { display: block; color: var(--muted); font-size: .8125rem; font-weight: 500; }

/* buttons, links, tags */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.3; text-decoration: none; border: 1px solid var(--line-3); color: var(--text); background: transparent; cursor: pointer; transition: background-color .2s, border-color .2s; }
.btn:hover { background: var(--hover); border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { isolation: isolate; overflow: hidden; background: var(--gold); color: var(--gold-ink); border-color: transparent; box-shadow: 0 10px 30px -12px rgb(242 193 78 / .7); }
.btn-gold:hover { background: var(--gold-2); border-color: transparent; }
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .7) 48%, transparent 66%); transform: translateX(-110%); }
.btn-gold:hover::after { transform: translateX(110%); transition: transform .8s var(--ease-out); }
.btn .go { transition: transform .26s var(--ease-out); }
.btn:hover .go { transform: translateX(3px); }
.btn-glass { background: rgb(243 239 231 / .05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--ul); }
.text-link svg { width: 16px; height: 16px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.tag.ai { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* icon tiles: the app's Lucide icon on its group's colours */
.tile { --s: 44px; --t1: #9aa6bb; --t2: #5b667c; position: relative; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .27); flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, rgb(255 255 255 / .28), rgba(255, 255, 255, 0) 48%, rgb(0 0 0 / .14)), linear-gradient(135deg, var(--t1), var(--t2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -1px 0 rgb(0 0 0 / .16), 0 7px 18px -8px color-mix(in srgb, var(--t2) 85%, transparent); }
.tile { --lit: inset 0 1px 0 rgb(255 255 255 / .55), 0 14px 28px -8px var(--t2), 0 0 24px -3px color-mix(in srgb, var(--t1) 68%, transparent); }
.tile svg { width: 52%; height: 52%; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .3)); }
.tile.s28 { --s: 28px; }
.tile.s28 svg { width: 58%; height: 58%; }
.tile.s48 { --s: 48px; }
.tile.s96 { --s: 96px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgb(8 8 12 / .7); -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px); border-bottom: 1px solid var(--line); transition: transform .5s var(--ease-out); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.nav-links { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-mark { position: absolute; left: 0; bottom: -4px; width: 1px; height: 2px; background: var(--gold); transform-origin: 0 50%; transform: translateX(var(--mx, 0px)) scaleX(var(--mw, 0)); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s; pointer-events: none; }
.nav-links.marked .nav-mark { opacity: 1; }
.nav-icons { display: flex; gap: 8px; align-items: center; flex: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-3); background: none; color: var(--text); display: grid; place-items: center; text-decoration: none; cursor: pointer; flex: none; padding: 0; }
.icon-btn:hover { background: var(--hover); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn { height: 40px; min-width: 56px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-3); background: none; color: var(--text); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex: none; }
.lang-btn:hover { background: var(--hover); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--aurora); transform: scaleX(0); transform-origin: 0 50%; }
html.fx.nav-up .nav { transform: translateY(-100%); }
html.fx.nav-up .progress { translate: 0 1px; }
html.nofx .progress { display: none; }
@media (max-width: 820px) { .nav-links { display: none; } .nav-icons { margin-left: auto; } }
@media (max-width: 380px) {
  .nav .wrap { gap: 10px; }
  .brand { gap: 8px; font-size: .9375rem; }
  .nav-icons { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-btn { height: 36px; min-width: 0; padding: 0 10px; }
}

/* sections */
.section { position: relative; padding: var(--sec) 0; background: var(--bg); overflow-x: clip; }
.section.alt { background: var(--ink-2); }
.section > .wrap { position: relative; }
.section.paper { z-index: 1; margin-top: -28px; border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 rgb(255 255 255 / .55), 0 -30px 60px -30px rgb(0 0 0 / .9); }
.anchor { display: block; height: 0; }
.section-head { position: relative; z-index: 1; margin: 0 0 clamp(36px, 4.4vw, 56px); max-width: 860px; }
.section-head::after { content: ""; display: block; height: 1px; margin-top: clamp(22px, 2.6vw, 30px); background: var(--line-2); transform-origin: 0 50%; }
.kicker, .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; }
.kicker::before, .eyebrow::before { content: ""; flex: none; width: 24px; height: 1px; background: currentColor; }
html:lang(zh) .kicker, html:lang(zh) .eyebrow { letter-spacing: .3em; }
.eyebrow svg { display: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; }
h1, h2 { font-variation-settings: "opsz" 36; }
/* Serif headings set f and i as two letters: the fused "fi" reads as an unknown letter to people who decode letter by letter */
h1, h2, .story-text h3, .group-head h3, .quote p, .band-set, .foot-word { font-variant-ligatures: no-common-ligatures; }
/* On paper, Bodoni's dark hairlines thin out against the light ground and letters lose strokes (the left leg of A, the
   joins of W, the bar of t, the hyphen). There it uses its sturdy small-size cut, a lighter weight and no tightening.
   On ink the light hairlines bloom, so the display cut stays. */
.paper h2, .paper .story-text h3 { font-variation-settings: "opsz" 10; letter-spacing: -.005em; }
.paper .quote p { font-variation-settings: "opsz" 10; font-weight: 400; letter-spacing: 0; }
.paper .quote p b { font-weight: 600; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.02em; margin-top: 16px; }
html:lang(zh) h2 { font-weight: 900; font-size: clamp(1.75rem, 3.7vw, 3.1rem); line-height: 1.22; letter-spacing: .02em; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.35; }
.section-head p { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; margin-top: 18px; }
.bignum { --num: rgb(243 239 231 / .2); position: absolute; top: -.16em; right: var(--pad); z-index: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(4.25rem, 12.4vw, 10.5rem); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--num); pointer-events: none; user-select: none; }
.paper .bignum { --num: rgb(21 20 26 / .2); }
@media (min-width: 721px) { .section-head { max-width: min(860px, calc(100% - 15vw - 24px)); } }
@media (max-width: 720px) { .bignum { top: calc(14px - var(--sec)); font-size: 3.75rem; } }

/* hero */
.hero { --h1: clamp(2.75rem, 7.2vw, 6rem); position: relative; isolation: isolate; overflow: clip; padding: clamp(22px, 3vw, 40px) 0 clamp(30px, 3.4vw, 48px); background: var(--ink); }
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(40% 55% at var(--a1) 6%, rgb(123 92 255 / .5), transparent 70%),
  radial-gradient(34% 46% at 92% var(--a2), rgb(255 61 139 / .4), transparent 70%),
  radial-gradient(30% 40% at var(--a3) 46%, rgb(255 122 69 / .26), transparent 70%),
  radial-gradient(26% 30% at 66% 26%, rgb(242 193 78 / .16), transparent 70%); }
.aurora::after { content: ""; position: absolute; inset: 0; background: radial-gradient(52% 62% at 20% 40%, rgb(8 8 12 / .7), transparent 72%), linear-gradient(180deg, transparent 48%, var(--ink) 94%); }
.aurora canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.hero.gl .aurora canvas { opacity: 1; }
.hero.gl .aurora::before { display: none; }
@property --a1 { syntax: "<percentage>"; inherits: false; initial-value: 72%; }
@property --a2 { syntax: "<percentage>"; inherits: false; initial-value: 14%; }
@property --a3 { syntax: "<percentage>"; inherits: false; initial-value: 56%; }
html.fx .hero:not(.gl) .aurora::before { animation: aurora 24s ease-in-out infinite alternate; }
@keyframes aurora { 50% { --a2: 34%; } to { --a1: 86%; --a3: 70%; --a2: 22%; } }
.masthead { display: flex; align-items: center; gap: 18px; margin: 0 0 clamp(22px, 2.8vw, 36px); color: var(--muted); font-size: .6875rem; font-weight: 500; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
html:lang(zh) .masthead { letter-spacing: .26em; }
.mh-rule { flex: 1 1 0; min-width: 16px; height: 1px; background: var(--line-3); }
.mh-text { display: flex; align-items: center; gap: 14px; }
.masthead [data-count], #issue-date { color: var(--text); }
@media (max-width: 720px) { .mh-wide { display: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); grid-template-rows: auto auto 1fr; grid-template-areas: "head head" "body art" "cover art"; column-gap: clamp(32px, 4.4vw, 64px); }
.hero-head { grid-area: head; }
.hero-body { grid-area: body; padding-top: clamp(20px, 2.4vw, 30px); }
.hero-art { grid-area: art; position: relative; perspective: 1600px; padding-top: clamp(20px, 2.4vw, 30px); }
html:not(:lang(zh)) .hero-art { margin-top: calc(var(--h1) * -1.02); }
h1 { font-family: var(--serif); font-size: var(--h1); font-weight: 600; line-height: 1; letter-spacing: -.025em; margin: 14px 0 0; }
html:lang(zh) h1 { font-weight: 900; line-height: 1.14; letter-spacing: .02em; }
html:not(:lang(zh)) h1 { font-size: min(var(--h1), 9vw); }
h1 .ln { display: block; overflow: clip; padding: .1em .12em .16em 0; margin: -.1em -.12em -.16em 0; }
h1 .ln > span { display: block; }
.hl { font-style: italic; padding: 0 .1em 0 .02em; margin: 0 -.1em 0 -.02em; background: linear-gradient(100deg, transparent 38%, rgb(255 252 240 / .95) 50%, transparent 62%) 170% 0 / 250% 100% no-repeat, var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html:lang(zh) .hl { font-style: normal; }
html.fx .hl { animation: sheen 8s 1.4s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 170% 0, 0 0; } 18%, 100% { background-position: -70% 0, 0 0; } }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 31em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin-top: 20px; color: var(--muted); font-size: .875rem; }
.hero-meta > * + *::before { content: "·"; margin: 0 10px; color: var(--muted); }
@media (max-width: 520px) { .hero-meta { column-gap: 16px; } .hero-meta > * + *::before { content: none; } }
.hero-meta a { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; }
.hero-meta b { color: var(--text); font-weight: 600; }
.frame { border: 1px solid var(--line-3); border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: 0 24px 64px rgb(0 0 0 / .45); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(243 239 231 / .16); flex: none; }
.frame-url { margin-left: 8px; flex: 1; min-width: 0; height: 22px; border-radius: 6px; background: rgb(243 239 231 / .05); font: .8125rem/22px var(--font-mono); color: var(--muted); padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame img { display: block; width: 100%; height: auto; }
.hero-stage { position: relative; transform-style: preserve-3d; transform-origin: 50% 100%; }
.hero-shot { position: relative; transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); box-shadow: 0 50px 90px -42px rgb(255 61 139 / .55), 0 40px 90px -40px rgb(123 92 255 / .65), 0 26px 60px rgb(0 0 0 / .55); }
.glare { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glare::before { content: ""; position: absolute; left: -60%; top: -60%; width: 120%; height: 120%; background: radial-gradient(closest-side, rgb(255 255 255 / .2), rgb(255 255 255 / .05) 45%, transparent 72%); transform: translate(var(--gx, 50%), var(--gy, 50%)); opacity: 0; transition: opacity .5s; }
.hero-art.tilt .glare::before { opacity: 1; }
.float { position: absolute; z-index: 2; pointer-events: none; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.float .tile { --s: 56px; box-shadow: var(--lit); }
.float.f2 .tile, .float.f4 .tile { --s: 44px; }
.cover { grid-area: cover; align-self: start; max-width: 460px; margin-top: clamp(28px, 3vw, 40px); }
.cover a { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: .9375rem; line-height: 1.45; transition: color .2s; }
.cover a:hover { color: var(--gold-2); }
.cover .pg { flex: none; width: 3.4em; color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.cover b { font-weight: 600; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "body" "art" "cover"; }
  html:not(:lang(zh)) .hero-art { margin-top: 0; }
  .hero-art { padding-top: 44px; max-width: 560px; }
}

/* hero: one tile per app, in their groups */
.wall { position: relative; margin: clamp(34px, 4.4vw, 56px) calc(50% - 50vw) 0; }
.wall-row { overflow: clip; padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.wall-track { display: flex; width: max-content; }
.wall ul { display: flex; flex: none; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.wall a { position: relative; display: block; border-radius: 13px; text-decoration: none; }
.wall .tile { transition: transform .3s var(--ease-out), box-shadow .3s; }
.wall a:hover .tile, .wall a:focus-visible .tile { transform: translateY(-5px) scale(1.08); box-shadow: var(--lit); }
html.fx .wall-track { animation: marquee var(--dur, 60s) linear infinite; }
.wall-row.rev .wall-track { animation-direction: reverse; }
.wall-row:hover .wall-track, .wall-row:focus-within .wall-track { animation-play-state: paused; }
.wall-row:focus-within { mask-image: none; }
@keyframes marquee { to { transform: translateX(var(--shift, -50%)); } }
.wall-tip { position: fixed; z-index: 45; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-3); background: rgb(8 8 12 / .92); color: var(--text); font-size: .8125rem; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s; }
.wall-tip.on { opacity: 1; transform: translate(-50%, 0); }
.wall-tip:empty { display: none; }
.wall.still { margin-inline: 0; }
.wall.still .wall-row { overflow: visible; padding: 0; mask-image: none; }
.wall.still ul { flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 auto; padding: 0; }
@media (max-width: 720px) {
  .wall .tile.s48 { --s: 44px; }
  .wall.still { margin: 40px calc(-1 * var(--pad)) 0; }
  .wall.still .wall-row { overflow-x: auto; padding: 4px var(--pad) 6px; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 28px), transparent); }
  .wall.still .wall-row::-webkit-scrollbar { display: none; }
  .wall.still ul { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; }
}

.band { position: relative; overflow: clip; padding: clamp(14px, 1.8vw, 24px) 0; background: var(--ink); border-block: 1px solid var(--line); }
.band-track { display: flex; width: max-content; }
.band-set { flex: none; margin: 0; padding-right: .3em; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(3rem, 7vw, 6rem); line-height: 1.12; letter-spacing: -.01em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(243 239 231 / .36); transform: skewX(var(--skew, 0deg)); }
.band-set em, .band-set b { font-style: italic; font-weight: inherit; color: transparent; -webkit-text-stroke: 0; padding: 0 .08em; background: var(--aurora); -webkit-background-clip: text; background-clip: text; }
html:lang(zh) .band-set, html:lang(zh) .band-set em { font-style: normal; font-weight: 700; letter-spacing: .04em; }
html.fx .band-track { animation: marquee var(--dur, 50s) linear infinite; }
html.fx .band-apps .band-track { animation-direction: reverse; }

/* screenshots: one frame for all of them */
.shot { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line-3); border-radius: 16px; overflow: hidden; background: var(--raised); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot.fit { background: #fff; }
.shot.fit img { object-fit: contain; }

/* tabs: panels share one cell, so switching does not move the page (phones: one at a time) */
.js .stack { display: grid; }
.js .stack > * { grid-area: 1 / 1; min-width: 0; }
.js .stack > .off { visibility: hidden; }
.js .stack > .off.under { visibility: visible; }
.js .stack > :not(.off) { animation: fade .18s ease-out; }
@media (max-width: 900px) { .js .stack > .off { display: none; } }
@keyframes fade { from { opacity: 0; } }

/* how it works */
.flow { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.3fr); gap: 8px; }
.node { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--raised); min-width: 0; }
.node::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 122 69 / .7), 0 0 30px -6px rgb(255 61 139 / .55); opacity: 0; pointer-events: none; }
.node-ic { display: flex; gap: 6px; flex: none; color: var(--text); }
.node-ic svg { width: 22px; height: 22px; }
.node-tx { display: flex; flex-direction: column; min-width: 0; }
.node b { font-family: var(--font-head); font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.node small { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.node .mono { font-family: var(--font-mono); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.arrow { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.arrow svg { width: 18px; height: 18px; }
.flow-run { position: absolute; z-index: 0; left: var(--x0); top: var(--y0); width: var(--len); height: 1px; pointer-events: none; }
.flow-run { --run: rgb(123 92 255 / .15), rgb(123 92 255 / .7) 15%, rgb(255 61 139 / .7) 50%, rgb(255 122 69 / .7) 85%, rgb(242 193 78 / .15); }
.flow-run::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--run)); transform-origin: 0 50%; }
.flow-run i { position: absolute; inset: 0; opacity: 0; }
.flow-run i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #fff6e8; box-shadow: 0 0 10px 3px rgb(255 61 139 / .85), 0 0 26px 8px rgb(123 92 255 / .5); }
.flow-run.v { --from: translateY(-100%); width: 1px; height: var(--len); }
.flow-run.v::before { background: linear-gradient(180deg, var(--run)); transform-origin: 50% 0; }
.flow-run.v i::after { right: auto; top: auto; left: -4px; bottom: -5px; }
html.fx .flow-run.rv:not(.in)::before { transform: scaleX(0); }
html.fx .flow-run.v.rv:not(.in)::before { transform: scaleY(0); }
html.fx .flow-run.rv::before { transition: transform 1.4s var(--ease-out); }
html.fx .flow-run.in i { animation: run 4.2s linear 1.2s infinite; }
html.fx .flow.on .node::after { animation: hit 4.2s linear infinite; animation-delay: var(--hit, 0s); }
@keyframes run { 0% { transform: var(--from, translateX(-100%)); opacity: 0; } 4% { opacity: 1; } 84% { transform: none; opacity: 1; } 92%, 100% { transform: none; opacity: 0; } }
@keyframes hit { 0% { opacity: 0; } 5% { opacity: 1; } 18%, 100% { opacity: 0; } }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.feature { position: relative; isolation: isolate; overflow: hidden; display: flex; gap: 16px; padding: 24px; border-radius: 16px; background: var(--raised); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgb(255 61 139 / .13), rgb(123 92 255 / .07) 42%, transparent 70%); opacity: 0; transition: opacity .35s; }
.feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--aurora); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .35s; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .feature:hover::before, .feature:hover::after { opacity: 1; } }
.feature-ic { width: 40px; height: 40px; border-radius: 12px; background: rgb(243 239 231 / .06); display: grid; place-items: center; flex: none; }
.feature-ic svg { width: 20px; height: 20px; }
html.fx .feature.rv .feature-ic svg > * { transition: stroke-dashoffset 1.1s var(--ease-out) calc(var(--rd, 0s) + .2s); }
html.fx .feature.rv:not(.in) .feature-ic svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.fx .feature.rv.in .feature-ic svg > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.feature h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9375rem; }
.feature p + p { margin-top: 8px; }
.features-note { color: var(--muted); font-size: .9375rem; max-width: 80ch; margin-top: 16px; }
.manage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; margin-top: 64px; }
.manage-side h3 { margin-bottom: 14px; }
.manage-tabs { display: grid; gap: 4px; }
.manage-tabs [role="tab"] { display: block; width: 100%; padding: 12px 16px; border: 0; border-radius: 0 12px 12px 0; box-shadow: inset 2px 0 0 var(--line-2); background: none; color: var(--muted); font: inherit; font-size: .9375rem; line-height: 1.55; text-align: left; cursor: pointer; transition: background-color .2s, box-shadow .3s; }
.manage-tabs [role="tab"] b { color: var(--text); font-weight: 600; }
.manage-tabs [role="tab"]:hover { background: rgb(243 239 231 / .03); }
.manage-tabs [aria-selected="true"], .manage-tabs [aria-selected="true"]:hover { background: rgb(242 193 78 / .08); box-shadow: inset 2px 0 0 var(--gold); color: var(--text); }
.arch-link { margin-top: 20px; }
html:not(.js) .manage-shots { display: grid; gap: 16px; }
html.fx .manage-shots > .enter { z-index: 1; animation: wipe .8s var(--ease-out) both; }
.story.off.under .story-text { visibility: hidden; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (min-width: 961px) and (max-width: 1200px) { .node-ic { display: none; } .arrow { min-width: 44px; } }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 4px; }
  .arrow { flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 28px; padding-left: 16px; }
  .arrow svg { transform: rotate(90deg); }
  .manage { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } .feature { padding: 20px; } }

/* stories */
.story-text h3 { margin: 14px 0 18px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.015em; }
html:lang(zh) .story-text h3 { font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.22; letter-spacing: .02em; }
.story-text p { color: var(--muted); }
.story-text p + p { margin-top: 12px; }
.story-text .kicker { flex-wrap: wrap; row-gap: 2px; }
.feat { display: inline-flex; gap: .45em; color: var(--text); }
.feat b { display: inline-block; font-weight: 600; font-variant-numeric: tabular-nums; }
.story-apps { margin-top: 22px; }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.story-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: .875rem; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.app-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 500; line-height: 1.4; transition: background-color .2s; }
.app-chip:hover { background: var(--hover); }
.app-chip .tile { border-radius: 999px; }
.new { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1; }
html:not(.js) .story + .story { margin-top: 64px; }
.story { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.story .shot, .story .shot.fit { align-self: stretch; aspect-ratio: auto; display: grid; place-items: center; padding: clamp(18px, 2.6vw, 36px); border: 0; border-radius: 22px; background: radial-gradient(110% 80% at 28% 18%, #262632, var(--ink) 72%); box-shadow: 0 34px 70px -34px rgb(21 20 26 / .55); }
.story .shot img { height: auto; aspect-ratio: 16 / 10; border-radius: 10px; box-shadow: 0 0 0 1px rgb(243 239 231 / .1), 0 26px 50px -22px #000; }
.story .shot.fit img { background: #fff; }
.js .stories { display: block; }
.story-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 14px; margin-bottom: clamp(36px, 4.4vw, 56px); }
.story-tabs [role="tab"] { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; color: var(--muted); font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; transition: color .2s; }
.story-tabs [lang] { min-height: 2.7em; }
.story-tabs .new [lang] { min-height: 0; }
.story-tabs .no { color: var(--accent); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.story-tabs [role="tab"]:hover, .story-tabs [aria-selected="true"] { color: var(--text); }
.story-tabs [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-deep); transform: scaleX(0); transform-origin: 0 50%; }
.story-tabs [aria-selected="true"]::after { transform: none; transition: transform .5s var(--ease-out); }
html.fx .stories.auto .story-tabs [aria-selected="true"]::after { animation: fill 8s linear both; }
html.fx .stories.auto.hold .story-tabs [aria-selected="true"]::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: none; } }
@media (min-width: 901px) { .story-tabs .new { position: absolute; top: -3px; right: 0; } }
@media (max-width: 900px) {
  .story-tabs { display: flex; gap: 22px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 28px; padding: 0 var(--pad); scrollbar-width: none; }
  .story-tabs::-webkit-scrollbar { display: none; }
  .story-tabs [role="tab"] { flex: none; white-space: nowrap; }
  .story-tabs [lang] { min-height: 0; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .story .shot { align-self: auto; }
}

/* app catalog */
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 40px; }
.cat-head .section-head { margin: 0; flex: 1 1 560px; }
.cat-tools { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); pointer-events: none; }
.search { width: 240px; height: 40px; padding: 0 14px 0 38px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--ink); color: var(--text); font: inherit; font-size: .9375rem; }
.search::placeholder { color: var(--muted); opacity: 1; }
.toggle { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--line-3); background: none; color: var(--text); font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.toggle:hover { background: var(--hover); }
.toggle small { color: var(--muted); font-size: .8125rem; }
.toggle .sw { position: relative; width: 30px; height: 18px; border-radius: 999px; background: rgb(243 239 231 / .16); flex: none; transition: background-color .15s; }
.toggle .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform .15s var(--ease); }
.toggle[aria-pressed="true"] { border-color: rgb(242 193 78 / .6); }
.toggle[aria-pressed="true"] .sw { background: var(--gold); }
.toggle[aria-pressed="true"] .sw::after { transform: translateX(12px); background: var(--gold-ink); }
.catalog { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
html:not(.js) .catalog { display: block; }
.cat-nav { position: sticky; top: calc(var(--nav-h) + 24px); isolation: isolate; display: flex; flex-direction: column; gap: 2px; transition: translate .5s var(--ease-out); }
.cat-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 0 10px 10px 0; box-shadow: inset 2px 0 0 var(--line); color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.35; white-space: nowrap; transition: color .2s; }
.cat-nav a span { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.cat-nav a:hover { color: var(--text); }
.cat-nav a.on { color: var(--text); background: rgb(242 193 78 / .08); box-shadow: inset 2px 0 0 var(--gold); }
.cat-nav a[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.cat-slide { display: none; }
@media (min-width: 1024px) {
  .cat-nav.sliding .cat-slide { display: block; position: absolute; left: 0; right: 0; top: 0; z-index: -1; height: var(--sh, 0px); border-radius: 0 10px 10px 0; background: rgb(242 193 78 / .09); box-shadow: inset 2px 0 0 var(--gold); transform: translateY(var(--sy, 0px)); transition: transform .5s var(--ease-out), height .3s; }
  .cat-nav.sliding a.on { background: none; box-shadow: inset 2px 0 0 transparent; }
}
.ai-banner { position: relative; isolation: isolate; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid transparent; border-radius: 14px; color: var(--text); text-decoration: none; background: linear-gradient(var(--bg), var(--bg)) padding-box, conic-gradient(from var(--ang), rgb(242 193 78 / .85), rgb(123 92 255 / .95) 18%, rgb(242 193 78 / .85) 36%, rgb(242 193 78 / .5) 70%, rgb(242 193 78 / .85)) border-box; transition: box-shadow .3s; }
.ai-banner:hover { box-shadow: 0 18px 50px -24px rgb(242 193 78 / .5); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
html.fx .ai-banner { animation: ang 6s linear infinite; }
@keyframes ang { to { --ang: 360deg; } }
.ai-banner .tile::before { content: ""; position: absolute; inset: -16px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgb(242 193 78 / .5), transparent); opacity: .6; }
html.fx .ai-banner .tile::before { animation: breathe 3.6s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .35; transform: scale(.85); } to { opacity: .8; transform: scale(1.1); } }
.ai-banner .tx { flex: 1; min-width: 0; }
.ai-banner b { display: block; font-family: var(--font-head); font-weight: 600; line-height: 1.4; }
.ai-banner .tx span { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.ai-banner .more { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; }
.ai-banner .more svg { width: 16px; height: 16px; transition: transform .26s var(--ease-out); }
.ai-banner:hover .more svg { transform: translateX(3px); }
.group { padding-top: 40px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.group-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 0 10px 12px; margin-bottom: 8px; }
.group-head::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: var(--line-2); transform-origin: 0 50%; }
.group-head h3 { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.01em; }
html:lang(zh) .group-head h3 { font-weight: 900; letter-spacing: .03em; }
.group-head .gno { color: var(--gold); font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.group-head small { color: var(--muted); font-family: var(--font-body); font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.group-head p { color: var(--muted); font-size: .875rem; }
/* one column, two from 640 px, three where each is at least 282 px wide (taglines fit in one line) */
.rows { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 8px; }
@media (min-width: 640px) { .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rows { grid-template-columns: repeat(auto-fill, minmax(max(282px, calc((100% - 16px) / 3)), 1fr)); } }
.row { position: relative; isolation: isolate; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "tile name marks" "tile tag tag"; column-gap: 12px; align-content: center; height: 68px; padding: 0 8px; border-radius: 12px; }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(90deg, rgb(243 239 231 / .075), rgb(243 239 231 / .03)); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.row .tile { grid-area: tile; align-self: center; transition: transform .3s var(--ease-out), box-shadow .3s; }
.row-go { position: absolute; right: 10px; bottom: 13px; width: 14px; height: 14px; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease-out); pointer-events: none; }
@media (hover: hover) {
  .row:hover::before { transform: none; opacity: 1; }
  .row:hover .tile { transform: rotate(-6deg) scale(1.08); box-shadow: var(--lit); }
  .row:hover .row-go { opacity: 1; transform: none; }
  .row:hover .row-tag { mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent calc(100% - 20px)); }
}
.row-name { grid-area: name; min-width: 0; font-weight: 600; font-size: .9375rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name a { text-decoration: none; }
.row-name a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.row-name a:focus-visible { outline: none; }
.row-name a:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -2px; }
.row-marks { grid-area: marks; display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.row-tag { grid-area: tag; min-width: 0; color: var(--muted); font-size: .8125rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark-ai { color: var(--gold); font-size: .8125rem; font-weight: 700; letter-spacing: .03em; line-height: 1; }
.mark-play { position: relative; z-index: 1; width: 24px; height: 24px; padding: 0; border-radius: 999px; border: 1px solid var(--line-3); background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.mark-play::before { content: ""; position: absolute; inset: -10px; }
.mark-play:hover { background: rgb(243 239 231 / .12); }
.mark-play svg { width: 10px; height: 10px; fill: currentColor; margin-left: 1px; }
.empty { color: var(--muted); padding: 32px 10px; }
.note { color: var(--muted); margin-top: 32px; padding: 0 10px; }
@media (max-width: 1023px) {
  .catalog { grid-template-columns: 1fr; gap: 8px; }
  .cat-nav { top: var(--nav-h); z-index: 20; flex-direction: row; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad); background: var(--ink); scrollbar-width: none; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav a { flex: none; gap: 8px; padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-3); white-space: nowrap; }
  .cat-nav a.on { box-shadow: inset 0 0 0 1px var(--gold); }
  html.fx.nav-up .cat-nav { translate: 0 calc(-1 * var(--nav-h)); }
  .group { scroll-margin-top: calc(var(--nav-h) + 72px); }
}
@media (max-width: 640px) {
  .cat-tools, .search-box { width: 100%; }
  .search { width: 100%; }
  .ai-banner { align-items: flex-start; flex-wrap: wrap; }
  .ai-banner .tx { flex-basis: calc(100% - 60px); }
  .ai-banner .more { margin-left: 60px; }
}

/* videos */
.vfeature { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.vplayer { position: relative; isolation: isolate; }
.ambient { position: absolute; inset: 6% 4% -4%; z-index: -1; filter: blur(56px) saturate(1.8); opacity: .55; pointer-events: none; }
.ambient img { width: 100%; height: 100%; object-fit: cover; }
html.fx .ambient { animation: fade 1.2s ease-out; }
.vmain h3 { margin-top: 18px; }
.vmain p { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.vmain .alt, .video .alt { margin-top: 6px; font-size: .875rem; }
.vlist { list-style: none; padding: 0; display: grid; gap: 4px; }
.vlist button { position: relative; display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background-color .2s; }
.vlist button:hover { background: var(--hover); }
.vthumb { position: relative; display: block; overflow: hidden; border-radius: 8px; background: #000; }
.vlist img { display: block; width: 136px; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .45s var(--ease-out); }
.vthumb::after { content: ""; position: absolute; left: 9px; bottom: 9px; width: 12px; height: 14px; background: var(--gold); clip-path: polygon(0 0, 0 100%, 100% 50%); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease-out); }
@media (hover: hover) { .vlist button:hover img { transform: scale(1.05); } .vlist button:hover .vthumb::after { opacity: 1; transform: none; } }
.vlist b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.vlist small { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; }
.vmore { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 40px; }
html.fx .videos.drop .video { animation: drop .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-18px); } }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; color: inherit; font: inherit; cursor: pointer; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
button.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgb(0 0 0 / .45)); }
.yt .play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 60px; height: 42px; transform: translate(-50%, -50%); border-radius: 12px; display: grid; place-items: center; background: rgb(8 8 12 / .78); border: 1px solid rgb(255 255 255 / .28); color: #fff; transition: transform .3s var(--ease-out), background-color .2s; }
.yt:hover .play, .yt:focus-visible .play { transform: translate(-50%, -50%) scale(1.06); background: rgb(8 8 12 / .92); }
.yt .play svg { width: 22px; height: 22px; fill: currentColor; }
.vmain .yt .play { width: 84px; height: 84px; border-radius: 50%; background: rgb(8 8 12 / .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vmain .yt .play > svg { width: 26px; height: 26px; margin-left: 3px; }
.vmain .yt:hover .play, .vmain .yt:focus-visible .play { transform: translate(-50%, -50%) scale(1.12); }
.ring { position: absolute; left: 50%; top: 50%; width: 156px; height: 156px; margin: -78px 0 0 -78px; pointer-events: none; }
html.fx .ring svg { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring svg { width: 100%; height: 100%; fill: rgb(255 255 255 / .9); font: 600 10.5px var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
html:lang(zh) .ring svg { font-size: 11.5px; letter-spacing: .3em; }
.yt .dur { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 1px 7px; border-radius: 5px; background: rgb(0 0 0 / .78); color: #fff; font-size: .8125rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h3 { font-size: 1.0625rem; margin: 14px 0 4px; line-height: 1.4; }
.video p { color: var(--muted); font-size: .9375rem; }
.vdemo { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-size: .9375rem; }
@media (max-width: 960px) {
  .vfeature { grid-template-columns: 1fr; gap: 20px; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .videos { grid-template-columns: 1fr; }
  .vlist button { grid-template-columns: 112px minmax(0, 1fr); }
  .vlist img { width: 112px; }
  .ring { transform: scale(.82); }
}

/* get started */
.start { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.start-main { min-width: 0; }
.tabs { display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px; border: 1px solid var(--line-3); }
.tabs [role="tab"] { min-height: 36px; padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: .9375rem; font-weight: 500; line-height: 1.3; cursor: pointer; transition: background-color .25s, color .25s; }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [aria-selected="true"], .tabs [aria-selected="true"]:hover { background: rgb(242 193 78 / .14); color: var(--gold-2); }
.tab-panel > * + * { margin-top: 14px; }
.tab-panel p { color: var(--muted); }
.js .tab-h, .js .tab-panels > .off { display: none; }
.js .tab-panels > :not(.off) { animation: fade .18s ease-out; }
html:not(.js) .tab-panel + .tab-panel { margin-top: 48px; }
.tab-h { font-size: 1.125rem; }
.term { border: 1px solid var(--line-3); border-radius: 16px; overflow: hidden; background: #050508; box-shadow: 0 34px 70px -36px rgb(0 0 0 / .9), 0 0 0 1px rgb(0 0 0 / .5); }
.term-bar { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgb(243 239 231 / .16); flex: none; }
.term pre { margin: 0; border: 0; border-radius: 0; background: none; padding: 18px 20px 20px; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: auto; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-3); background: none; color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; transition: color .2s, border-color .2s; }
.copy:hover { color: var(--text); }
.copy svg { width: 14px; height: 14px; }
.copy .ok, .copy-ok, .copy.done svg:first-child, .copy.done .copy-tx { display: none; }
.copy.done .ok, .copy.done .copy-ok { display: inline; }
.copy.done { color: var(--gold); border-color: rgb(242 193 78 / .5); }
.tl { display: inline-block; }
html.fx .term.type .tl { clip-path: inset(0 100% 0 0); animation: type calc(var(--n) * var(--cps) + 40ms) steps(var(--n), start) var(--d, 0s) forwards; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.caret { display: inline-block; width: .55em; height: 1.2em; margin-left: 3px; vertical-align: text-bottom; background: var(--gold); }
html.fx .caret { animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.urls { list-style: none; padding: 0; display: grid; gap: 10px; }
.urls li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.urls .lock { width: 15px; height: 15px; align-self: center; color: var(--muted); transition: color .6s calc(var(--rd, 0s) + .35s); }
.urls.in .lock, html:not(.fx) .urls .lock { color: var(--gold); }
.urls span { color: var(--muted); font-size: .9375rem; }
.start-links h3 { font-size: 1.0625rem; margin-bottom: 14px; }
.linklist { list-style: none; padding: 0; display: grid; gap: 14px; font-size: .9375rem; }
.linklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.linklist li > span > span:first-child { color: var(--text); }
.linklist a { display: inline-flex; align-items: flex-start; gap: 10px; }
.linklist .on { margin-left: .6em; white-space: nowrap; }
.linklist svg { width: 16px; height: 16px; margin-top: .3em; color: var(--muted); }
@media (max-width: 900px) { .start { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .tabs [role="tab"] { padding: 6px 12px; } }

/* vision and follow */
.vision { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: clamp(40px, 6vw, 88px); align-items: end; }
.quote { position: relative; margin-top: 40px; padding-top: clamp(30px, 3.4vw, 44px); max-width: 820px; view-timeline: --quote block; }
.qmark { position: absolute; left: -.04em; top: -.22em; color: var(--gold-deep); font: 700 clamp(5.5rem, 10vw, 8.5rem)/1 var(--serif); pointer-events: none; user-select: none; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.75rem, 2.8vw, 2.45rem); line-height: 1.26; letter-spacing: -.01em; }
.quote p b { font-weight: 700; }
html:lang(zh) .quote p { font-style: normal; font-weight: 700; font-size: clamp(1.75rem, 2.4vw, 2rem); line-height: 1.6; letter-spacing: .03em; }
html:lang(zh) .quote p b { font-weight: 900; }
.quote p + p { margin-top: 18px; }
.quote footer { margin-top: 22px; color: var(--muted); font-size: .875rem; }
html.fx .quote.words .w { opacity: .2; }
html.fx .quote.words.in .w { opacity: 1; transition: opacity .5s ease-out calc(var(--i) * 26ms); }
@supports (animation-timeline: view()) {
  html.fx .quote.words .w { opacity: 1; animation: lit linear both; animation-timeline: --quote; animation-range: cover var(--a) cover var(--b); }
}
@keyframes lit { from { opacity: .2; } }
.vision-photo { padding: 10px 10px 14px; border-radius: 3px; background: #fffdf8; transform: rotate(-2deg); box-shadow: 0 1px 2px rgb(21 20 26 / .1), 0 22px 44px -16px rgb(21 20 26 / .45); transition: transform .6s var(--ease-out), box-shadow .6s; }
.vision-photo:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 1px 2px rgb(21 20 26 / .1), 0 30px 60px -20px rgb(21 20 26 / .5); }
.vision-photo img { display: block; width: 100%; height: auto; border-radius: 1px; }
.vision-photo figcaption { margin-top: 10px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 64px; }
.follow h3 { font-size: 1rem; }
.follow-links { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-links a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: background-color .2s; }
.follow-links a:hover { background: var(--hover); }
.follow-links svg { width: 16px; height: 16px; }
html.fx .follow-links a:hover svg { animation: pop .5s var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.3) rotate(-8deg); } }
@media (max-width: 760px) { .vision { grid-template-columns: 1fr; gap: 40px; } .vision-photo { max-width: 240px; } }

/* ---- Q&A: seven questions, each answer closed until it is asked for (site.js opens them all at #it, the link
   sent to an IT team); beside them a reply card on paper, slipped into the issue, for the next step ---- */
.qa-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.6fr); gap: 24px 64px; align-items: start; }
.qa-tools { display: flex; justify-content: flex-end; min-height: 24px; margin-bottom: 6px; }
.qa-all { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--ul); text-underline-offset: 3px; cursor: pointer; }
.qa-all:hover { color: var(--text); }
.qa-all .a-close, .qa-all[aria-pressed="true"] .a-open { display: none; }
.qa-all[aria-pressed="true"] .a-close { display: inline; }
.qa { border-top: 1px solid var(--line-2); interpolate-size: allow-keywords; }
.qa-item { border-bottom: 1px solid var(--line-2); }
.qa-item summary { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; list-style: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-n { flex: none; width: 22px; color: var(--accent); font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; }
.qa-q { flex: 1; min-width: 0; }
/* a plus that turns into a minus */
.qa-x { position: relative; flex: none; align-self: center; width: 14px; height: 14px; color: var(--muted); transition: color .2s; }
.qa-x::before, .qa-x::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.qa-x::after { transform: rotate(90deg); }
.qa-item[open] .qa-x::after { transform: none; }
.qa-item summary:hover .qa-x, .qa-item[open] .qa-x { color: var(--accent); }
.qa-a { padding: 0 0 22px 38px; color: var(--muted); max-width: 66ch; }
.qa-a a { color: var(--text); }
.qa-limit { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--accent); font-size: .9375rem; }
.qa-limit b { color: var(--text); font-weight: 600; }
html.fx .qa-item::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
html.fx .qa-item[open]::details-content { block-size: auto; }

.reply { position: sticky; top: calc(var(--nav-h) + 28px); padding: 24px 28px 22px; border-radius: 6px; background: var(--bg); rotate: 1.4deg; box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 34px 60px -28px rgb(0 0 0 / .95), 0 2px 6px rgb(0 0 0 / .4); transition: rotate .6s var(--ease-out); }
/* the stub above the tear line, with a notch at each end of the line */
.reply-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -28px 22px; padding: 0 28px 18px; border-bottom: 2px dashed var(--line-3); }
.reply-top::before, .reply-top::after { content: ""; position: absolute; bottom: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); }
.reply-top::before { left: -8px; }
.reply-top::after { right: -8px; }
.reply .kicker { letter-spacing: .14em; }
.reply .kicker::before { content: none; }
.reply-stamp { flex: none; display: grid; justify-items: center; align-content: center; gap: 3px; width: 62px; height: 70px; border: 1.5px dashed var(--accent); border-radius: 4px; color: var(--accent); font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1; rotate: 5deg; }
.reply-stamp b { font-family: var(--font-head); font-size: 1.3125rem; font-weight: 700; letter-spacing: 0; }
.reply h3 { font-family: var(--serif); font-variation-settings: "opsz" 10; font-weight: 600; font-size: 1.75rem; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 12px; }
html:lang(zh) .reply h3 { font-weight: 900; font-size: 1.5rem; line-height: 1.3; letter-spacing: .02em; }
.reply > p { color: var(--muted); font-size: .9375rem; }
.reply-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin: 18px 0 22px; padding: 0; }
.reply-steps li { counter-increment: step; position: relative; padding-left: 34px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.reply-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; color: var(--text); font-family: var(--font-mono); font-size: .75rem; }
.reply-steps b { display: block; color: var(--text); font-family: var(--font-head); font-weight: 600; }
.reply-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.btn-ink { background: var(--on-paper); color: var(--paper); border-color: transparent; }
.btn-ink:hover { background: #2a2833; border-color: transparent; }
.reply .copy { height: auto; min-height: 28px; margin-left: 0; padding: 4px 10px; text-align: left; }
.reply .copy.done { color: var(--accent); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .reply:hover { rotate: 0deg; } }
@media (max-width: 900px) {
  .qa-grid { grid-template-columns: 1fr; gap: 44px; }
  .reply { position: relative; top: auto; max-width: 460px; rotate: .8deg; }
}
@media (max-width: 760px) { .qa-item summary { padding: 16px 0; font-size: 1rem; } .qa-a { padding-left: 0; } .reply { padding: 22px 22px 20px; } .reply-top { margin: 0 -22px 20px; padding: 0 22px 16px; } }

/* the city: every repo a building that grows commit by commit (city.js draws it; without WebGL the poster stays) */
.city { margin-top: clamp(56px, 7vw, 104px); }
.city-head { max-width: 780px; }
.city-head h3 { margin: 14px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.08; font-variation-settings: "opsz" 10; letter-spacing: -.005em; font-variant-ligatures: no-common-ligatures; }
html:lang(zh) .city-head h3 { font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.22; letter-spacing: .02em; }
.city-head p { margin-top: 14px; color: var(--muted); }
.city-plate {
  --text: var(--on-ink); --muted: var(--on-ink-muted); --accent: var(--gold); --line-3: rgb(243 239 231 / .22); --hover: rgb(243 239 231 / .1);
  position: relative; isolation: isolate; margin-top: 28px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; color: var(--text); color-scheme: dark;
  background: radial-gradient(46% 34% at 44% 40%, rgb(123 92 255 / .26), transparent 72%), radial-gradient(34% 26% at 70% 44%, rgb(255 61 139 / .16), transparent 72%), radial-gradient(34% 26% at 18% 48%, rgb(255 122 69 / .12), transparent 72%), linear-gradient(#0a0a12, #08080c 60%, #0c0a14);
  box-shadow: 0 34px 70px -34px rgb(21 20 26 / .6); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.city-poster, .city-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.city-poster { object-fit: cover; transition: opacity .6s ease-out; }
.city-canvas { opacity: 0; touch-action: pan-y; cursor: grab; outline: none; transition: opacity .6s ease-out; }
.city-plate.live .city-canvas { opacity: 1; }
.city-plate.live .city-poster { opacity: 0; }
.city-plate.turning .city-canvas { cursor: grabbing; }
.city-plate.aim .city-canvas { cursor: pointer; }
.city-plate::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(243 239 231 / .1); background: linear-gradient(rgb(8 8 12 / .5), transparent 26%, transparent 66%, rgb(8 8 12 / .72)); }
.city-labels { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.city-pop { position: absolute; left: 0; top: 0; max-width: 250px; padding: 6px 10px 7px; border-radius: 10px; background: rgb(12 12 18 / .82); border: 1px solid rgb(242 193 78 / .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .75rem; line-height: 1.35; opacity: 0; transition: opacity .2s; will-change: transform; }
.city-pop.on { opacity: 1; }
.city-pop::after { content: ""; position: absolute; left: calc(50% + var(--sx, 0px)); top: 100%; width: 1px; height: var(--stem, 18px); background: linear-gradient(rgb(242 193 78 / .9), rgb(242 193 78 / .15)); }
.city-pop b { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.city-pop b i, .city-feed li i { flex: none; width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--gold)); }
.city-pop span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--muted); overflow-wrap: anywhere; }
.city-pop.tip { border-color: rgb(243 239 231 / .3); z-index: 1; }
.city-pop.tip::after { display: none; }
.city-pop.tip span { -webkit-line-clamp: 3; line-clamp: 3; }
.city-pop.tip small { display: block; margin-top: 2px; color: var(--gold); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.city-pop.lot { padding: 4px 10px; border-style: dashed; color: var(--gold); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.city-pop.lot::after { height: 12px; }
.city-hud { position: absolute; z-index: 2; left: clamp(14px, 2.2vw, 26px); top: clamp(12px, 2vw, 22px); pointer-events: none; }
.city-date { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
html:lang(zh) .city-date { font-weight: 700; letter-spacing: .02em; }
.city-stats { display: flex; gap: clamp(12px, 1.8vw, 24px); margin: 10px 0 0; }
.city-stats dt { color: var(--muted); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.city-stats dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(.9375rem, 1.5vw, 1.125rem); font-variant-numeric: tabular-nums; }
.city-stats div:nth-child(2) dd { color: var(--gold); }
.city-feed { position: absolute; z-index: 2; right: clamp(14px, 2.2vw, 26px); top: clamp(14px, 2vw, 24px); width: min(290px, 30%); pointer-events: none; }
.city-feed h4 { color: var(--muted); font-family: var(--font-body); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.city-feed ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.city-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 7px; align-items: center; padding: 5px 9px 6px; border-radius: 9px; background: rgb(12 12 18 / .58); border: 1px solid rgb(243 239 231 / .09); font-size: .75rem; line-height: 1.35; }
.city-feed li b { font-family: var(--font-head); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-feed li time { color: var(--muted); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.city-feed li span { grid-column: 1 / -1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-feed li:first-child { border-color: rgb(242 193 78 / .5); background: rgb(12 12 18 / .8); }
.city-feed li:first-child span { color: var(--text); white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.city-feed li:nth-child(4) { opacity: .75; }
.city-feed li:nth-child(n+5) { opacity: .5; }
html.fx .city-feed li.city-new { animation: city-in .28s var(--ease-out); }
@keyframes city-in { from { opacity: 0; transform: translateY(-8px); } }
.city-hint { position: absolute; z-index: 2; right: clamp(14px, 2.2vw, 26px); bottom: 78px; color: var(--muted); font-size: .75rem; pointer-events: none; transition: opacity .4s; }
.city-plate.used .city-hint { opacity: 0; }
.city-bar { position: absolute; z-index: 2; left: clamp(12px, 2.2vw, 26px); right: clamp(12px, 2.2vw, 26px); bottom: clamp(10px, 1.6vw, 18px); display: flex; align-items: center; gap: 8px; }
.city-bar button { flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-3); background: rgb(12 12 18 / .5); color: var(--text); font: inherit; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.city-bar button:hover { background: var(--hover); }
.city-bar button svg { width: 16px; height: 16px; }
.city-bar .city-play { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 30px -10px rgb(242 193 78 / .8); }
.city-bar .city-play:hover { background: var(--gold-2); }
.city-play svg { width: 18px; height: 18px; }
.city-play .i-play { margin-left: 2px; }
.city-play .i-pause, .city-play .i-again, .city-play.playing .i-play, .city-play.ended .i-play { display: none; }
.city-play.playing .i-pause, .city-play.ended:not(.playing) .i-again { display: block; }
.city-step { width: 34px; height: 34px; border-radius: 10px; }
.city-speed { min-width: 44px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.city-track { position: relative; flex: 1; min-width: 0; height: 56px; margin: 0 6px; cursor: pointer; touch-action: none; outline: none; }
.city-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.city-bars { position: absolute; left: 0; top: 0; width: 100%; height: 38px; display: block; }
.city-months { position: absolute; left: 0; right: 0; top: 40px; height: 16px; color: var(--muted); font-size: .625rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.city-months span { position: absolute; top: 0; padding-left: 4px; border-left: 1px solid rgb(243 239 231 / .28); line-height: 16px; white-space: nowrap; }
.city-months span.y { color: var(--text); }
.city-head-line { position: absolute; top: -4px; left: 0; width: 2px; height: 46px; margin-left: -1px; border-radius: 2px; background: var(--gold-hi); box-shadow: 0 0 12px rgb(242 193 78 / .9); pointer-events: none; }
.city-head-line::before { content: ""; position: absolute; left: -5px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgb(242 193 78 / .25); }
@media (max-width: 900px) {
  .city-feed { width: min(250px, 38%); }
  .city-feed li:nth-child(n+4), .city-hint { display: none; }
  .city-stats div:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .city-plate { aspect-ratio: 4 / 5; border-radius: 18px; }
  .city-feed { left: 14px; right: 14px; top: auto; bottom: 84px; width: auto; }
  .city-feed h4, .city-feed li:nth-child(n+2), .city-hint { display: none; }
  .city-feed li:first-child span { -webkit-line-clamp: 1; line-clamp: 1; }
  .city-stats { flex-wrap: wrap; gap: 6px 16px; }
  .city-stats div:nth-child(3) { display: block; }
  .city-bar .city-step { display: none; }
  .city-bar .city-play { width: 42px; height: 42px; }
  .city-track { margin: 0 2px 0 6px; }
  .city-pop { max-width: 200px; }
  .city-pop span { -webkit-line-clamp: 1; line-clamp: 1; }
}

.footer { position: relative; overflow: clip; background: var(--ink); padding: clamp(48px, 6vw, 88px) 0 36px; color: var(--muted); font-size: .875rem; }
.foot-word { position: relative; margin: 0 0 clamp(26px, 3.4vw, 44px); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: min(10.6vw, 8.4rem); line-height: 1.04; letter-spacing: -.03em; white-space: nowrap; text-align: center; }
.fw-line { display: block; color: transparent; -webkit-text-stroke: 1px rgb(243 239 231 / .3); }
.fw-fill { position: absolute; inset: 0; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.fx .foot-word.rv .fw-fill { transition: clip-path 2s var(--ease-out) .15s; }
html.fx .foot-word.rv:not(.in) .fw-fill { clip-path: inset(0 100% 0 0); }
html.fx .foot-word.rv:not(.in) { opacity: 1; transform: none; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; justify-content: space-between; }
.motion-btn .m-off, .motion-btn[aria-pressed="false"] .m-on { display: none; }
.motion-btn[aria-pressed="false"] .m-off { display: inline; }

/* dialogs */
.dlg { padding: 0; border: 1px solid var(--line-3); border-radius: 20px; background: var(--ink-3); color: var(--text); box-shadow: 0 30px 90px rgb(0 0 0 / .55); max-height: calc(100dvh - 32px); overflow: hidden; }
.dlg::backdrop { background: rgb(8 8 12 / .66); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.dlg[open] { animation: dlg-in .3s var(--ease-out); }
.dlg[open]::backdrop { animation: fade .3s ease-out; }
.dlg.morph[open], .dlg.morph[open]::backdrop { animation: none; }
@keyframes dlg-in { from { opacity: 0; transform: scale(.96); } }
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; }
.dlg-head h3 { flex: 1; min-width: 0; font-size: 1.0625rem; }
.dlg-head .text-link { font-size: .875rem; }

/* the video dialog */
.vd { width: min(960px, calc(100vw - 32px), max(420px, calc((100dvh - 240px) * 16 / 9))); max-width: none; }
.vd-box { max-height: calc(100dvh - 34px); overflow: auto; }
.vd-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vd-player { position: absolute; inset: 0; }
.vd-player iframe, .vd-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vd-note { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: #000; color: var(--text); text-align: center; text-decoration: none; }
.vd-list { list-style: none; padding: 10px 10px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.vd-list button, .ad-videos button { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: .875rem; line-height: 1.4; text-align: left; cursor: pointer; }
.vd-list button:hover, .ad-videos button:hover { background: var(--hover); }
.vd-list button[aria-current="true"], .ad-videos button[aria-current="true"] { border-color: var(--gold); background: rgb(242 193 78 / .08); }
.vd-list img, .ad-videos img { width: 96px; height: 54px; flex: none; object-fit: cover; border-radius: 6px; background: #000; }
.vd-list small, .ad-videos small { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; }
.vd-cap { padding: 14px 20px 0; color: var(--muted); font-size: .9375rem; }
.vd-foot { padding: 10px 20px 14px; text-align: right; font-size: .875rem; }
.vd-foot a { display: inline-flex; align-items: center; gap: 6px; }
.vd-foot svg { width: 14px; height: 14px; }
.vd .for-demo, .vd.demo .for-yt { display: none; }
.vd.demo .for-demo { display: inline; }

/* an app's dialog */
.ad { width: min(1040px, calc(100vw - 32px)); max-width: none; box-shadow: 0 30px 90px rgb(0 0 0 / .55), 0 0 120px -20px var(--glow, transparent); }
.ad-box { max-height: calc(100dvh - 34px); overflow: auto; overscroll-behavior: contain; }
.ad-head { position: sticky; top: 0; z-index: 2; padding: 12px 12px 12px 16px; background: var(--ink-3); border-bottom: 1px solid var(--line); }
.ad-head h3 { flex: 0 1 auto; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-group { flex: 1; min-width: 0; color: var(--muted); font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "media info" "vids info"; gap: 20px 28px; padding: 20px; }
.ad-media { grid-area: media; min-width: 0; }
.ad-vids { grid-area: vids; min-width: 0; }
.ad-head .icon-btn { margin-left: auto; }
html.fx .ad[open] #ad-shot { animation: unveil .5s var(--ease-out) .1s both; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.shot-tile { position: absolute; inset: 0; display: grid; place-items: center; }
.ad-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.ad-yt { margin-top: 8px; text-align: right; font-size: .875rem; }
.ad-yt a { display: inline-flex; align-items: center; gap: 6px; }
.ad-yt svg { width: 14px; height: 14px; }
.ad-vids .mini { margin-bottom: 8px; }
.ad-videos { list-style: none; padding: 0; display: grid; gap: 4px; }
.ad-info { grid-area: info; min-width: 0; }
.ad-desc { line-height: 1.7; }
.ad-info .tags { margin-top: 16px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 12px 18px; margin: 20px 0 0; font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.facts .chips { margin-top: 0; }
.facts .src { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.facts .src a { display: inline-flex; align-items: center; gap: 6px; }
.facts .src svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .ad { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .ad[open] { animation: sheet-in .55s var(--ease-out); }
  .ad-box { height: 100%; max-height: none; }
  .ad-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "media" "info" "vids"; gap: 20px; padding: 16px; }
  .ad-group { display: none; }
}
@keyframes sheet-in { 0% { transform: translateY(100%); } 70% { transform: translateY(-10px); } 100% { transform: none; } }

/* the architecture picture */
.pd { width: min(1280px, calc(100vw - 32px)); max-width: none; }
.pd[open] { display: flex; flex-direction: column; }
.pd-body { overflow: auto; padding: 0 20px 20px; }
.pd-body img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.pd-cap { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.pd-cap b { color: var(--text); }

body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glow-layer { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.glow { position: absolute; left: -240px; top: -240px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(closest-side, rgb(243 239 231 / .1), rgb(243 239 231 / .035) 50%, transparent); opacity: 0; transition: opacity .5s; }
.glow.on { opacity: 1; }
/* reveals: hidden only under html.fx; site.js adds .rv, then .in in view */
html.fx .rv { transition: opacity .9s var(--ease-out) var(--rd, 0s), transform .9s var(--ease-out) var(--rd, 0s); }
html.fx .rv:not(.in) { opacity: 0; transform: translateY(24px); }
html.fx :is(.section-head, .group-head).rv::after { transition: transform 1.2s var(--ease-out) .25s; }
html.fx :is(.section-head, .group-head).rv:not(.in)::after { transform: scaleX(0); }
html.fx .row.rv:not(.in) { transform: translateY(12px); }
html.fx .flow-run.rv:not(.in), html.fx .urls.rv:not(.in) { opacity: 1; transform: none; }
html.fx .urls.rv li { transition: opacity .7s var(--ease-out) var(--rd), transform .7s var(--ease-out) var(--rd); }
html.fx .urls.rv:not(.in) li { opacity: 0; transform: translateX(-12px); }
html.fx .mh-rule { animation: rule .7s var(--ease-out) both; }
html.fx .mh-text { animation: fade .6s ease-out .1s both; }
html.fx h1 .ln > span { animation: rise .7s var(--ease-out) both; }
html.fx.fw h1 .ln > span { animation-play-state: paused; }
html.fx h1 [lang] > .ln:nth-child(1) > span { animation-delay: 0s; }
html.fx h1 [lang] > .ln:nth-child(2) > span { animation-delay: .14s; }
html.fx h1 [lang] > .ln:nth-child(3) > span { animation-delay: .22s; }
html.fx .hero .eyebrow, html.fx .hero-body { animation: up .7s var(--ease-out) .26s both; }
html.fx .hero-stage { animation: settle .85s var(--ease-out) .08s both; }
html.fx .cover { animation: up .7s var(--ease-out) .32s both; }
@keyframes rule { from { transform: scaleX(0); } }
@keyframes rise { from { transform: translateY(118%); } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }
@supports (animation-timeline: view()) {
  html.fx .bignum { animation: drift linear both; animation-timeline: view(); }
  html.fx .hero-art { animation: flatten linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  html.fx .float { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  html.fx .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes drift { from { transform: translateY(-36px); } to { transform: translateY(56px); } }
@keyframes flatten { from { transform: rotateX(8deg) scale(.96); } }
@keyframes lift { to { translate: 0 var(--lift, -60px); } }
@keyframes grow { to { transform: scaleX(1); } }
.hero-art { transform-origin: 50% 0; transform-style: preserve-3d; }
html.fx .story.enter .shot { animation: wipe .9s var(--ease-out) both; }
html.fx .story.enter .story-text h3 { animation: up .8s var(--ease-out) .12s both; }
html.fx .story.enter :is(.story-text p, .story-apps, .story-actions) { animation: up .8s var(--ease-out) .2s both; }
html.fx .story.enter .feat b { animation: flip .6s var(--ease-out) both; }
html.fx .story:not(.off) .shot img { animation: closer 8s ease-out both; }
@keyframes flip { from { transform: perspective(200px) rotateX(-90deg); opacity: 0; } }
@keyframes closer { to { transform: scale(1.04); } }
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }
html.vt-list::view-transition-old(root) { display: none; }
html.vt-list::view-transition-new(root) { animation: none; }
html.vt-close::view-transition-group(*) { animation-duration: .26s; }
html.vt-close::view-transition-old(root), html.vt-close::view-transition-new(root) { animation-duration: .2s; }
html:not(.vt-close)::view-transition-old(dlg) { display: none; }
html:not(.vt-close)::view-transition-new(dlg) { animation: vt-in .38s var(--ease-out) both; }
html.vt-close::view-transition-new(dlg) { animation: none; }
html.vt-close::view-transition-old(dlg) { animation: vt-out .26s ease-in both; }
@keyframes vt-in { from { opacity: .55; } }
@keyframes vt-out { to { opacity: 0; } }
html.fx #app-groups.refade .row:not([hidden]) { animation: fade .35s ease-out; }

/* motion off: everything still */
html.nofx { scroll-behavior: auto; }
html.nofx *, html.nofx *::before, html.nofx *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.fx) { scroll-behavior: auto; }
  html:not(.fx) *, html:not(.fx) *::before, html:not(.fx) *::after { animation: none !important; transition: none !important; }
}
@media print { body::after, .glow-layer, .band, .aurora { display: none; } }
