/* =========================================================================================================
   Product pages in the light (24 Nov): Studio and Taste Your Brief on Pricing's column and MCP's rhythm.
   Title 280 from the top, one line under it, a 1280 column, 200 between the blocks, processes as stages.
   Everything lives under body.ds.px-page; the script is /product.js.
   ========================================================================================================= */
html body.ds.px-page { --px-ink: #0a0a0b; --px-ink-2: #666767; --px-ink-3: #a7a8a8; --px-well: #e8e8e6; --px-card: #fff; --px-hot: #ff5a1f; --px-ease: cubic-bezier(.2, .8, .2, 1); background: #f1f1f0; }
html body.ds.px-page .px { box-sizing: border-box; display: block; width: 100%; margin: 0; padding: 0 var(--ds-edge, 32px) 64px; color: var(--px-ink); }
html body.ds.px-page .px > * { box-sizing: border-box; width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
html body.ds.px-page .px :where(h1, h2, h3, p, ol, ul, li) { margin: 0; padding: 0; list-style: none; }
html body.ds.px-page .px :is(h1, h2, h3) { font-weight: 400; text-wrap: balance; text-transform: none; }
html body.ds.px-page .px :is(p, li, summary) { text-wrap: pretty; }
html body.ds.px-page .px .h-mute { display: inline-block; color: var(--px-ink-3) !important; }

/* Taste keeps its app's shell: on the product page the app bar goes, the page takes the full width */
html body.ds.px-page .cab-bar { display: none !important; }
html body.ds.px-page.cab:has(#home:not([hidden])) { padding-top: 0 !important; }
html body.ds.px-page .cab-main:has(> #home:not([hidden])) { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
html body.ds.px-page #home:not([hidden]) { display: block !important; width: 100%; }

/* ---------- the title: 280 from the top, centred ---------- */
html body.ds.px-page .px-head { display: flex; flex-direction: column; align-items: center; padding-top: calc(224px + env(safe-area-inset-top)); text-align: center; }
html body.ds.px-page .px-kick { display: inline-flex; align-items: center; gap: 8px; height: 32px; margin-bottom: 24px; padding: 0 14px 0 12px; border-radius: 999px; background: #fff; box-shadow: var(--air-lift); font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink); }
html body.ds.px-page .px-kick i { width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); animation: px-dot 2.4s ease-in-out infinite; }
@keyframes px-dot { 50% { opacity: .35; transform: scale(.8); } }
html body.ds.px-page .px-h1 { font-size: 48px !important; line-height: 52px !important; letter-spacing: -.03em !important; color: var(--px-ink); }
html body.ds.px-page .px-lead { margin-top: 16px; font-size: 14px !important; line-height: 20px !important; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .px-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }   /* 24 from the line above, as on Academy and MCP (25 Nov) */
html body.ds.px-page .px-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 24px; }
html body.ds.px-page .px-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .px-facts li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--px-ink-3); }

/* ---------- the stage: the product at work, a white card with an 8 field ---------- */
html body.ds.px-page .px-stage { position: relative; margin-top: 64px; padding: 8px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); }
html body.ds.px-page .px-stage__in { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; background: var(--px-well) center / cover no-repeat; }
html body.ds.px-page .px-stage__in video, html body.ds.px-page .px-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html body.ds.px-page .px-tag { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--air-lift); font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink); }
html body.ds.px-page .px-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); animation: px-dot 2.4s ease-in-out infinite; }

/* ---------- a block: 200 above it, the heading on the left with one grey line ---------- */
html body.ds.px-page .px-sec { margin-top: 200px; scroll-margin-top: 104px; }
html body.ds.px-page .px-sec__h { margin-bottom: 64px; }
html body.ds.px-page .px-h2 { font-size: 48px !important; line-height: 48px !important; letter-spacing: -.03em !important; color: var(--px-ink); }
html body.ds.px-page .px-sec__h p { max-width: 560px; margin-top: 16px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }

/* ---------- the cards that stack: each stops under the header, the next slides over it ---------- */
html body.ds.px-page .px-stack { display: grid; gap: 16px; }
html body.ds.px-page .px-card { --c: 0; position: sticky; top: calc(96px + var(--i, 0) * 16px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px; min-height: 520px; padding: 8px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); transform: scale(calc(1 - var(--c) * .04)); transform-origin: 50% 0; transition: box-shadow .3s; }
html body.ds.px-page .px-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #f1f1f0; opacity: calc(var(--c) * .55); pointer-events: none; }
html body.ds.px-page .px-card__t { display: flex; flex-direction: column; padding: 32px; }
html body.ds.px-page .px-n { font: 700 16px/20px Doto, ui-monospace, monospace; color: var(--px-ink-2); }
html body.ds.px-page .px-card__t h3 { margin-top: auto; font-size: 32px; line-height: 36px; letter-spacing: -.03em; }
html body.ds.px-page .px-card__t h3 + p { margin-top: 8px; max-width: 400px; font-size: 16px; line-height: 24px; color: var(--px-ink-2); }
html body.ds.px-page .px-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
html body.ds.px-page .px-card__meta span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: #f1f1f0; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink); }
html body.ds.px-page .px-card__media { position: relative; overflow: hidden; min-height: 320px; border-radius: 24px; background: var(--px-well) center / cover no-repeat; }

/* ---------- numbers: two bars to compare, three figures under them ---------- */
html body.ds.px-page .px-tok { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html body.ds.px-page .px-bars { grid-column: 1 / -1; display: grid; gap: 32px; padding: 40px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); }
html body.ds.px-page .px-bar { display: grid; grid-template-columns: 220px minmax(0, 1fr) 96px; align-items: center; gap: 24px; }
html body.ds.px-page .px-bar > span { font-size: 16px; line-height: 24px; color: var(--px-ink-2); }
html body.ds.px-page .px-bar > em { position: relative; height: 16px; border-radius: 999px; background: #f1f1f0; box-shadow: inset 0 1px 2px #0a0a0b14; }
html body.ds.px-page .px-bar > em i { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: inherit; background: #c9c9c6; transition: width 1.4s var(--px-ease) .2s; }
html body.ds.px-page .px-bars.is-in .px-bar > em i { width: var(--w); }
html body.ds.px-page .px-bar > b { font-size: 32px; line-height: 32px; text-align: right; color: var(--px-ink-3); }
html body.ds.px-page .px-bar--us > span, html body.ds.px-page .px-bar--us > b { color: var(--px-ink); }
html body.ds.px-page .px-bar--us > em i { background: var(--px-ink); transition-delay: .5s; }
html body.ds.px-page .px-bar--us > em i::after { content: ""; position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); }
html body.ds.px-page .px-fine { font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-3); }
html body.ds.px-page .px-stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; padding: 32px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); transition: transform .5s var(--px-ease), box-shadow .3s; }
html body.ds.px-page .px-stat:hover { transform: translateY(-4px); box-shadow: var(--air-lift-hi); }
html body.ds.px-page .px-stat b { font-size: 56px; line-height: 56px; color: var(--px-ink); }
html body.ds.px-page .px-stat span { font-size: 16px; line-height: 24px; color: var(--px-ink-2); }

/* ---------- stages on a rail: the line fills as you read, the stage you are on lights up ---------- */
html body.ds.px-page .px-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
html body.ds.px-page .px-rail { --p: 0; position: relative; }
html body.ds.px-page .px-rail__line { position: absolute; left: 23px; top: 16px; width: 2px; height: calc(100% - 32px); border-radius: 2px; background: #0a0a0b14; }
html body.ds.px-page .px-rail__line i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p) * 100%); border-radius: 2px; background: var(--px-ink); }
html body.ds.px-page .px-rail li { position: relative; padding: 0 0 72px 96px; counter-increment: px-rail; transition: opacity .5s ease; }
html body.ds.px-page .px-rail li:last-child { padding-bottom: 0; }
html body.ds.px-page .px-rail.is-live li:not(.is-on) { opacity: .4; }
html body.ds.px-page .px-rail li::before { content: counter(px-rail); position: absolute; left: 0; top: -8px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--px-ink-3); box-shadow: var(--air-lift); font: 700 16px/1 Doto, ui-monospace, monospace; transition: background-color .4s, color .4s; }
html body.ds.px-page .px-rail li.is-on::before { background: var(--px-ink); color: #fff; }
html body.ds.px-page .px-rail h3 { font-size: 24px; line-height: 28px; letter-spacing: -.03em; }
html body.ds.px-page .px-rail h3 + p { margin-top: 8px; max-width: 480px; font-size: 16px; line-height: 24px; color: var(--px-ink-2); }
html body.ds.px-page .px-rail kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: #fff; box-shadow: var(--air-lift); font: 700 14px/1 Doto, ui-monospace, monospace; vertical-align: 2px; }
html body.ds.px-page .px-code { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 8px 8px 8px 20px; border-radius: 16px; background: var(--px-well); box-shadow: inset 0 1px 2px #0a0a0b14; }
html body.ds.px-page .px-code code { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: none; padding: 0; font: 400 14px/22px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; color: var(--px-ink); }
html body.ds.px-page .px-code button { flex: none; height: 38px; min-width: 76px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--px-ink); color: #fff; font: inherit; font-size: 14px; line-height: 20px; cursor: pointer; transition: transform .3s var(--px-ease), background-color .2s; }
html body.ds.px-page .px-code button:hover { transform: scale(1.04); background: #2a2a2c; }
html body.ds.px-page .px-code button:focus-visible, html body.ds.px-page .px-q summary:focus-visible, html body.ds.px-page .px-link:focus-visible { outline: 2px solid var(--px-ink); outline-offset: 3px; }
html body.ds.px-page .px-link { display: inline-flex; align-items: center; gap: 8px; margin: 40px 0 0 96px; font-size: 16px; line-height: 24px; color: var(--px-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #0a0a0b4d; transition: text-decoration-color .2s; }
html body.ds.px-page .px-link:hover { text-decoration-color: var(--px-ink); }
html body.ds.px-page .px-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* the window beside the stages: white, grey fields, lines that type themselves in a loop */
html body.ds.px-page .px-win { position: sticky; top: 104px; padding: 8px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); }
html body.ds.px-page .px-win__bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-3); }
html body.ds.px-page .px-win__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--px-well); }
html body.ds.px-page .px-win__bar span { margin-left: 10px; }
html body.ds.px-page .px-win pre { display: grid; gap: 6px; min-height: 264px; margin: 0; padding: 32px; border-radius: 24px; background: #f1f1f0; box-shadow: inset 0 1px 2px #0a0a0b14; font: 400 14px/22px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; color: var(--px-ink); white-space: pre-wrap; align-content: start; }
html body.ds.px-page .px-win .ln { display: block; opacity: 0; animation: px-ln 9s var(--px-ease) infinite; animation-delay: calc(var(--l) * .7s); }
html body.ds.px-page .px-win .ln.g { color: var(--px-ink-3); }
html body.ds.px-page .px-win .ln .d { color: var(--px-ink-3); }
html body.ds.px-page .px-win .ln .ok { color: var(--px-hot); }
@keyframes px-ln { 0% { opacity: 0; transform: translateY(6px); } 5%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }

/* ---------- three steps on one line (Taste): a light runs along the line ---------- */
html body.ds.px-page .px-line { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: px-line; }
html body.ds.px-page .px-line > li { position: relative; display: flex; flex-direction: column; padding: 8px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); counter-increment: px-line; transition: transform .5s var(--px-ease), box-shadow .3s; }
html body.ds.px-page .px-line > li:hover { transform: translateY(-4px); box-shadow: var(--air-lift-hi); }
html body.ds.px-page .px-line__v { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 24px; background: #f1f1f0; box-shadow: inset 0 1px 2px #0a0a0b14; }
html body.ds.px-page .px-line__t { padding: 24px; }
html body.ds.px-page .px-line__t .px-n::before { content: "0" counter(px-line); }
html body.ds.px-page .px-line__t h3 { margin-top: 40px; font-size: 24px; line-height: 28px; letter-spacing: -.03em; }
html body.ds.px-page .px-line__t p { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--px-ink-2); }
html body.ds.px-page .px-after { display: flex; justify-content: center; margin-top: 40px; }
/* 01: the questions, answered one by one */
html body.ds.px-page .px-qs { display: grid; gap: 8px; width: 72%; }
html body.ds.px-page .px-qs span { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px 0 16px; border-radius: 14px; background: #fff; box-shadow: var(--air-lift); font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .px-qs b { height: 28px; padding: 0 10px; border-radius: 999px; background: var(--px-ink); color: #fff; font-weight: 400; font-size: 14px; line-height: 28px; animation: px-pick 6s var(--px-ease) infinite; animation-delay: calc(var(--d) * .9s); }
@keyframes px-pick { 0%, 6% { opacity: 0; transform: scale(.6); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
/* 02: the deck being swiped (the deck itself is drawn in shell.css, .tsw) */
html body.ds.px-page .tsw i { box-shadow: 0 24px 48px -24px #0a0a0b66, inset 0 0 0 1px #0a0a0b0f; }
html body.ds.px-page .tsw__no { background: #fff; color: var(--px-ink); box-shadow: var(--air-lift); }
html body.ds.px-page .tsw__yes { background: var(--px-ink); color: #fff; }
html body.ds.px-page .px-line__v .tsw { width: 32%; margin-top: 44px; }
html body.ds.px-page .px-line__v .tsw__yes { right: -44px; } html body.ds.px-page .px-line__v .tsw__no { left: -44px; }
html body.ds.px-page .px-line__v .tsw i { border-radius: 14px; }
html body.ds.px-page .px-line__v :is(.tsw__yes, .tsw__no) { top: -44px; height: 28px; padding: 0 12px; font-size: 14px; line-height: 28px; }
/* 03: the profile and the prompt */
html body.ds.px-page .px-prof { display: grid; gap: 14px; width: 72%; }
html body.ds.px-page .px-prof div { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .px-prof em { height: 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 1px 2px #0a0a0b14; overflow: hidden; }
html body.ds.px-page .px-prof em i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--px-ink); transform-origin: 0 50%; animation: px-grow 6s var(--px-ease) infinite; }
@keyframes px-grow { 0%, 4% { transform: scaleX(0); } 24%, 90% { transform: none; } 100% { transform: scaleX(0); } }
html body.ds.px-page .px-prof b { font: 700 14px/20px Doto, ui-monospace, monospace; text-align: right; color: var(--px-ink); }
html body.ds.px-page .px-prof p { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--px-ink); }
html body.ds.px-page .px-prof p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); }

/* Taste's stage: the deck in the middle of a wide light field, references laid out behind it */
html body.ds.px-page .px-stage--deck .px-stage__in { display: grid; place-items: center; aspect-ratio: 16 / 8; background: #f1f1f0; box-shadow: inset 0 1px 2px #0a0a0b14; }
html body.ds.px-page .px-stage--deck .tsw { width: min(24%, 300px); margin-top: 40px; z-index: 2; }
html body.ds.px-page .px-wall { position: absolute; inset: 0; }
html body.ds.px-page .px-wall i { position: absolute; width: 17%; aspect-ratio: 4 / 3; border-radius: 16px; background: center / cover no-repeat; box-shadow: var(--air-lift); opacity: .9; animation: px-float 9s ease-in-out infinite; animation-delay: calc(var(--d) * -1.3s); }
@keyframes px-float { 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }

/* Taste: the drop zone and the 20 base references, side by side */
html body.ds.px-page .px-drop { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-top: 0; align-items: stretch; }
html body.ds.px-page .px-drop .drop, html body.ds.px-page .px-drop .base-start { border-radius: 32px !important; height: 100%; box-sizing: border-box; }
html body.ds.px-page .px-drop .base-start { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px !important; }
html body.ds.px-page .px .mine { margin-top: 40px; }

/* ---------- questions: the title stays under the header while the list scrolls by ---------- */
html body.ds.px-page .px-faq { display: grid; grid-template-columns: minmax(0, 1fr) 704px; column-gap: 56px; align-items: start; }
html body.ds.px-page .px-faq .px-sec__h { position: sticky; top: 104px; margin-bottom: 0; }
html body.ds.px-page .px-faq__list { display: grid; gap: 8px; }
html body.ds.px-page .px-q { border-radius: 24px; background: #fff; box-shadow: var(--air-lift); transition: box-shadow .3s; }
html body.ds.px-page .px-q:hover { box-shadow: var(--air-lift-hi); }
html body.ds.px-page .px-q summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 24px 24px 32px; list-style: none; cursor: pointer; font-size: 20px; line-height: 28px; letter-spacing: -.02em; color: var(--px-ink); border-radius: 24px; }
html body.ds.px-page .px-q summary::-webkit-details-marker { display: none; }
html body.ds.px-page .px-q summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #f1f1f0; transition: transform .5s cubic-bezier(.34, 1.4, .64, 1), background-color .2s; }
html body.ds.px-page .px-q summary i::before, html body.ds.px-page .px-q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 1px; background: var(--px-ink); transition: background-color .2s; }
html body.ds.px-page .px-q summary i::after { transform: rotate(90deg); }
html body.ds.px-page .px-q:hover summary i { transform: rotate(90deg); }
html body.ds.px-page .px-q[open] summary i { transform: rotate(45deg); background: var(--px-ink); }
html body.ds.px-page .px-q[open] summary i::before, html body.ds.px-page .px-q[open] summary i::after { background: #fff; }
html body.ds.px-page .px-q > div { padding: 0 88px 28px 32px; }
html body.ds.px-page .px-q > div p { font-size: 16px; line-height: 24px; color: var(--px-ink-2); }
html body.ds.px-page .px-q[open] > div { animation: px-open .5s var(--px-ease); }
@keyframes px-open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- the ending: a black card with the star sky of Pricing's yearly plan ---------- */
html body.ds.px-page .px-end { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; margin-top: 200px; padding: 64px 32px; border-radius: 32px; background: #0a0a0b; text-align: center; }
html body.ds.px-page .px-end canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .9; }
html body.ds.px-page .px-end .px-h2 { font-size: 48px !important; line-height: 52px !important; color: #fff; }
/* a long closing title breaks at the change of tone, a short one stays on one line */
html body.ds.px-page .px-end .px-h2 { max-width: 760px; }
html body.ds.px-page .px-end .h-mute { color: #ffffff59 !important; }
html body.ds.px-page .px-end .px-acts { margin-top: 40px; }
html body.ds.px-page .px-end .btn--primary { --action-fill: #fff; background: #fff !important; color: #0a0a0b !important; }
html body.ds.px-page .px-end .btn--primary :is(span, svg) { color: #0a0a0b !important; stroke: #0a0a0b; }
html body.ds.px-page .px-end .btn--glass { background: #ffffff1f !important; color: #fff !important; box-shadow: inset 0 0 0 1px #ffffff29 !important; }
html body.ds.px-page .px-end .btn--glass span { color: #fff !important; }

/* ---------- everything rises in as it scrolls into view ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.px-js body.ds.px-page [data-rise] { opacity: 0; transform: translateY(32px); }
  html.px-js body.ds.px-page [data-rise].is-in { opacity: 1; transform: none; transition: opacity .8s var(--px-ease), transform .8s var(--px-ease); transition-delay: calc(var(--ri, 0) * .07s); }
  html.px-js body.ds.px-page .px-card[data-rise].is-in { transform: scale(calc(1 - var(--c) * .04)); }
  html.px-js body.ds.px-page :is(.px-stat, .px-line > li)[data-rise].is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
  html.px-js body.ds.px-page .px-stage[data-rise] { transform: translateY(48px) scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  html body.ds.px-page .px *, html body.ds.px-page .px *::before, html body.ds.px-page .px *::after { animation: none !important; transition: none !important; }
  html body.ds.px-page .px-win .ln { opacity: 1; }
  html body.ds.px-page .px-bar > em i { width: var(--w); }
}

/* ---------- narrower windows ---------- */
@media (max-width: 999px) {
  html body.ds.px-page .px-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  html body.ds.px-page .px-card__media { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  html body.ds.px-page .px-card__t h3 { margin-top: 32px; }
  html body.ds.px-page .px-flow { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  html body.ds.px-page .px-win { position: relative; top: 0; }
  html body.ds.px-page .px-faq { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  html body.ds.px-page .px-faq .px-sec__h { position: static; }
  html body.ds.px-page .px-line, html body.ds.px-page .px-drop { grid-template-columns: minmax(0, 1fr); }
  html body.ds.px-page .px-line__v { aspect-ratio: 16 / 10; }
  html body.ds.px-page .px-stage--deck .tsw { width: min(34%, 240px); }
}
@media (max-width: 799px) {
  html body.ds.px-page .px { padding-left: 16px; padding-right: 16px; }
  html body.ds.px-page .px-head { padding-top: calc(120px + env(safe-area-inset-top)); }
  html body.ds.px-page .px-h1 { font-size: 36px !important; line-height: 40px !important; }
  html body.ds.px-page .px-h2, html body.ds.px-page .px-end .px-h2 { font-size: 36px !important; line-height: 40px !important; }
  html body.ds.px-page .px-sec, html body.ds.px-page .px-end { margin-top: 120px; }
  html body.ds.px-page .px-sec__h { margin-bottom: 40px; }
  html body.ds.px-page .px-stage { margin-top: 48px; border-radius: 24px; }
  html body.ds.px-page .px-stage__in { border-radius: 16px; }
  html body.ds.px-page .px-stage--deck .px-stage__in { aspect-ratio: 4 / 5; }
  html body.ds.px-page .px-stage--deck .tsw { width: 52%; }
  html body.ds.px-page .px-wall i { width: 30%; }
  html body.ds.px-page .px-tag { left: 16px; bottom: 16px; }
  html body.ds.px-page .px-card { top: 80px; border-radius: 24px; }
  html body.ds.px-page .px-card__media { border-radius: 16px; }
  html body.ds.px-page .px-card__t { padding: 24px 16px 16px; }
  html body.ds.px-page .px-card__t h3 { font-size: 24px; line-height: 28px; }
  html body.ds.px-page .px-tok { grid-template-columns: minmax(0, 1fr); }
  html body.ds.px-page .px-bars { padding: 24px; border-radius: 24px; }
  html body.ds.px-page .px-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  html body.ds.px-page .px-bar > em { grid-column: 1 / -1; order: 3; }
  html body.ds.px-page .px-bar > b { font-size: 24px; line-height: 24px; }
  html body.ds.px-page .px-stat { min-height: 160px; padding: 24px; border-radius: 24px; }
  html body.ds.px-page .px-stat b { font-size: 48px; line-height: 48px; }
  html body.ds.px-page .px-rail li { padding: 0 0 48px 64px; }
  html body.ds.px-page .px-rail li::before { width: 40px; height: 40px; top: -6px; }
  html body.ds.px-page .px-rail__line { left: 19px; }
  html body.ds.px-page .px-link { display: inline; margin-left: 64px; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
  html body.ds.px-page .px-link svg { display: inline; margin-left: 4px; vertical-align: -2px; }
  html body.ds.px-page .px-flow > div:first-child { display: flex; flex-direction: column; gap: 32px; }
  html body.ds.px-page .px-flow .px-link { margin-top: 0; }
  html body.ds.px-page .px-win pre { padding: 20px; min-height: 240px; }
  html body.ds.px-page .px-q summary { padding: 20px 16px 20px 20px; font-size: 18px; line-height: 24px; }
  html body.ds.px-page .px-q > div { padding: 0 20px 24px; }
  html body.ds.px-page .px-end { min-height: 440px; padding: 48px 20px; border-radius: 24px; }
  html body.ds.px-page .px-acts .btn { min-height: 44px; }
  html body.ds.px-page .px-code button { height: 44px; }
}

/* =========================================================================================================
   Second pass (24 Nov): every block moves and says what the product is. Studio edits its own heading, its three
   ways are working demos; Taste's deck is real and its profile is built from your swipes.
   ========================================================================================================= */
html body.ds.px-page .px :where(button) { font: inherit; color: inherit; cursor: pointer; }
html body.ds.px-page .px :is(button, input, a):focus { outline: none; }
html body.ds.px-page .px :is(button, input, a):focus-visible { outline: 2px solid var(--px-ink); outline-offset: 3px; }

/* a pointer drawn by the page: it shows where the demo is clicking */
html body.ds.px-page .px-cur { position: absolute; left: 0; top: 0; z-index: 6; width: 22px; height: 22px; pointer-events: none; opacity: 0; transform: translate(var(--cx, 0px), var(--cy, 0px)); transition: transform .9s cubic-bezier(.5, 0, .2, 1), opacity .3s; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M4 2.5l13 7.2-5.6 1.5-1.6 5.6z' fill='%230a0a0b' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
html body.ds.px-page .px-cur.is-on { opacity: 1; }
html body.ds.px-page .px-cur.is-tap { animation: px-tap .35s ease; }
@keyframes px-tap { 50% { scale: .8; } }

/* a segmented switch: the pill glides, no spring */
html body.ds.px-page .px-seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: #f1f1f0; box-shadow: inset 0 1px 2px #0a0a0b14; }
html body.ds.px-page .px-seg::before { content: ""; position: absolute; left: 0; top: 3px; width: var(--w, 0px); height: calc(100% - 6px); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px #0a0a0b1f; transform: translateX(var(--x, 3px)); transition: transform .4s cubic-bezier(.4, 0, .2, 1), width .4s cubic-bezier(.4, 0, .2, 1); }
html body.ds.px-page .px-seg button { position: relative; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); transition: color .2s, background-color .2s; }
html body.ds.px-page .px-seg button:hover:not([aria-pressed="true"]) { background: #ffffff29; color: var(--px-ink); }
html body.ds.px-page .px-seg button[aria-pressed="true"] { color: var(--px-ink); }
/* a slider: a grey well, a black fill, a white thumb */
html body.ds.px-page .px input[type="range"] { --v: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: none; cursor: pointer; }
html body.ds.px-page .px input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, #0a0a0b var(--v), #e8e8e6 var(--v)); }
html body.ds.px-page .px input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, #0a0a0b var(--v), #e8e8e6 var(--v)); }
html body.ds.px-page .px input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #0a0a0b, 0 2px 6px #0a0a0b33; transition: scale .2s; }
html body.ds.px-page .px input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #0a0a0b, 0 2px 6px #0a0a0b33; }
html body.ds.px-page .px input[type="range"]:hover::-webkit-slider-thumb { scale: 1.15; }
/* colour chips */
html body.ds.px-page .px-sws { display: inline-flex; gap: 8px; }
html body.ds.px-page .px-sws button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0a0a0b14; transition: box-shadow .2s, scale .2s; }
html body.ds.px-page .px-sws button:hover { scale: 1.1; }
html body.ds.px-page .px-sws button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #0a0a0b; }

/* ---------- Studio's first screen: the page edits its own heading ---------- */
html body.ds.px-page .px-ed { position: relative; }
html body.ds.px-page .px-ed__sel { position: relative; display: grid; place-items: center; width: fit-content; max-width: 100%; min-height: 104px; padding: 4px 16px; }
html body.ds.px-page .px-ed .px-h1 .h-mute { display: block; }
html body.ds.px-page .px-ed .px-h1 { font-family: var(--ed-font, inherit); font-size: var(--ed-size, 48px) !important; line-height: 52px !important; transition: font-size .5s var(--px-ease); }
html body.ds.px-page .px-ed .px-h1 .h-mute { color: var(--ed-color, #a7a8a8) !important; transition: color .4s; }
html body.ds.px-page .px-ed__box { position: absolute; inset: 0; border: 1.5px solid var(--px-hot); border-radius: 2px; pointer-events: none; opacity: 0; scale: 1.03; transition: opacity .4s, scale .5s var(--px-ease); }
html body.ds.px-page .px-ed.is-live .px-ed__box { opacity: 1; scale: 1; }
html body.ds.px-page .px-ed__box i { position: absolute; width: 7px; height: 7px; background: #fff; box-shadow: 0 0 0 1.5px var(--px-hot); }
html body.ds.px-page .px-ed__box i:nth-child(1) { left: -4px; top: -4px; } html body.ds.px-page .px-ed__box i:nth-child(2) { right: -4px; top: -4px; }
html body.ds.px-page .px-ed__box i:nth-child(3) { left: -4px; bottom: -4px; } html body.ds.px-page .px-ed__box i:nth-child(4) { right: -4px; bottom: -4px; }
html body.ds.px-page .px-ed__box b { position: absolute; left: -1.5px; bottom: 100%; height: 20px; padding: 0 8px; border-radius: 4px 4px 0 0; background: var(--px-hot); color: #fff; font: 400 12px/20px ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; }
html body.ds.px-page .px-ed__panel { box-sizing: border-box; display: grid; gap: 16px; width: 272px; margin-top: 48px; padding: 20px; border-radius: 24px; background: #fff; box-shadow: var(--air-lift-hi); text-align: left; }
html body.ds.px-page .px-ed__cap { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink); }
html body.ds.px-page .px-ed__cap i { width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); animation: px-dot 2.4s ease-in-out infinite; }
html body.ds.px-page .px-ed__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 34px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .px-ed__row > b { min-width: 24px; font-size: 14px; text-align: right; color: var(--px-ink); }
html body.ds.px-page .px-ed__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid #0a0a0b0f; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .px-ed__foot b { font-size: 14px; color: var(--px-ink); }
@media (min-width: 1240px) {
  html body.ds.px-page .px-ed__panel { position: absolute; left: calc(50% + 336px); top: calc(196px + env(safe-area-inset-top)); margin-top: 0; }
}

/* the stage grows as it comes up the screen */
html body.ds.px-page .px-stage--grow { transform: scale(calc(.84 + var(--g, 1) * .16)); transform-origin: 50% 0; will-change: transform; }

/* ---------- what it is: one statement that fills with ink as you read, then the plain answers ---------- */
html body.ds.px-page .px-what__say { max-width: 1120px; font-size: 40px; line-height: 48px; letter-spacing: -.03em; color: var(--px-ink); text-wrap: balance; }
html body.ds.px-page .px-what__say span { color: #c9c9c6; transition: color .5s ease; }
html body.ds.px-page .px-what__say span.is-ink { color: var(--px-ink); }
html body.ds.px-page .px-what__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 64px !important; }
html body.ds.px-page .px-what__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body.ds.px-page .px-what__cols > li { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 0 0 !important; border-top: 1px solid #0a0a0b1f; }
html body.ds.px-page .px-what__cols > li > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .px-what__cols > li > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); }
html body.ds.px-page .px-what__cols > li > p { max-width: 400px; margin-top: 16px; font-size: 20px; line-height: 28px; letter-spacing: -.02em; color: var(--px-ink); }
html body.ds.px-page .px-what__cols > li > .btn { margin-top: 24px; }

/* ---------- Studio's three ways, as working demos ---------- */
html body.ds.px-page .px-demo { display: grid; place-items: center; padding: 32px; background: #f1f1f0; box-shadow: inset 0 1px 2px #0a0a0b14; }
html body.ds.px-page .mz { --ms-size: 30px; --ms-rad: 12px; --ms-gap: 14px; --ms-accent: #0a0a0b; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; border-radius: 16px; background: #fff; box-shadow: var(--air-lift); overflow: hidden; text-align: left; }
html body.ds.px-page .mz__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border-bottom: 1px solid #0a0a0b0f; }
html body.ds.px-page .mz__bar i { width: 14px; height: 14px; border-radius: 50%; background: var(--ms-accent); transition: background-color .4s; }
html body.ds.px-page .mz__bar b { width: 36px; height: 6px; border-radius: 3px; background: #e8e8e6; }
html body.ds.px-page .mz__bar i + b { margin-left: auto; }
html body.ds.px-page .mz__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ms-gap); padding: 28px 24px 32px; transition: gap .3s; }
html body.ds.px-page .mz__k { font-size: 12px; line-height: 16px; color: var(--px-ink-3); }
html body.ds.px-page .mz__h { position: relative; font-size: var(--ms-size); line-height: 1.1; font-weight: 400; letter-spacing: -.03em; color: var(--px-ink); }
html body.ds.px-page .mz__p { font-size: 14px; line-height: 20px; color: var(--px-ink-2); }
html body.ds.px-page .mz__btn { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--ms-rad); background: var(--ms-accent); color: #fff; font-size: 14px; line-height: 20px; transition: background-color .4s, border-radius .4s; }
html body.ds.px-page .mz .is-sel { outline: 1.5px solid var(--px-hot); outline-offset: 4px; }
html body.ds.px-page .mz .is-sel::after { content: attr(data-name); position: absolute; left: -5.5px; bottom: calc(100% + 4px); height: 18px; padding: 0 6px; border-radius: 4px 4px 0 0; background: var(--px-hot); color: #fff; font: 400 11px/18px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; white-space: nowrap; }
/* 01: the controls move the page */
html body.ds.px-page .dm-tweak { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 16px; align-items: center; width: 100%; }
html body.ds.px-page .dp { box-sizing: border-box; display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: #fff; box-shadow: var(--air-lift); text-align: left; }
html body.ds.px-page .dp label { display: grid; gap: 6px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .dp label > span { display: flex; justify-content: space-between; }
html body.ds.px-page .dp label b { font: 700 14px/20px Doto, ui-monospace, monospace; color: var(--px-ink); }
html body.ds.px-page .dp__foot { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid #0a0a0b0f; font-size: 14px; line-height: 20px; color: var(--px-ink-2); }
html body.ds.px-page .dp__foot b { font: 700 14px/20px Doto, ui-monospace, monospace; color: var(--px-ink); }
/* 02: one page, four widths */
html body.ds.px-page .dm-bp { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; height: 100%; }
html body.ds.px-page .dm-bp__top { display: flex; align-items: center; gap: 16px; }
html body.ds.px-page .dm-bp__w { min-width: 88px; font: 700 20px/28px Doto, ui-monospace, monospace; color: var(--px-ink); }
html body.ds.px-page .dm-bp__w small { font: 400 14px/20px inherit; font-family: inherit; color: var(--px-ink-3); }
html body.ds.px-page .dm-bp__frame { container-type: inline-size; width: var(--bw, 96%); max-width: 100%; transition: width .9s cubic-bezier(.5, 0, .2, 1); }
html body.ds.px-page .dm-bp .mz__body { padding: 24px 20px; }
html body.ds.px-page .dm-bp .mz__h { font-size: 24px; }
html body.ds.px-page .dm-bp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
html body.ds.px-page .dm-bp__grid i { aspect-ratio: 4 / 3; border-radius: 8px; background: #f1f1f0 center / cover no-repeat; }
@container (max-width: 520px) { html body.ds.px-page .dm-bp__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } html body.ds.px-page .dm-bp__grid i:nth-child(4) { display: none; } }
@container (max-width: 380px) { html body.ds.px-page .dm-bp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } html body.ds.px-page .dm-bp__grid i:nth-child(4) { display: block; } html body.ds.px-page .dm-bp .mz__bar b { display: none; } }
@container (max-width: 240px) { html body.ds.px-page .dm-bp__grid { grid-template-columns: minmax(0, 1fr); } html body.ds.px-page .dm-bp__grid i:nth-child(n+3) { display: none; } html body.ds.px-page .dm-bp .mz__h { font-size: 20px; } }
/* 03: click a part, say the change */
html body.ds.px-page .dm-ask { position: relative; display: grid; gap: 12px; width: 100%; }
html body.ds.px-page .dm-ask__bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 20px; border-radius: 16px; background: #fff; box-shadow: var(--air-lift); font-size: 14px; line-height: 20px; color: var(--px-ink); text-align: left; }
html body.ds.px-page .dm-ask__bar em { flex: none; height: 24px; padding: 0 8px; border-radius: 6px; background: #f1f1f0; font: 400 12px/24px ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; color: var(--px-ink-2); }
html body.ds.px-page .dm-ask__bar span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
html body.ds.px-page .dm-ask__bar span::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 2px; background: var(--px-ink); vertical-align: -3px; animation: px-caret 1s steps(1) infinite; }
@keyframes px-caret { 50% { opacity: 0; } }
html body.ds.px-page .dm-ask__bar > i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--px-ink); transition: scale .2s, background-color .3s; }
html body.ds.px-page .dm-ask__bar > i::before { content: ""; width: 8px; height: 8px; border: solid #fff; border-width: 1.5px 1.5px 0 0; transform: translateY(2px) rotate(-45deg); }
html body.ds.px-page .dm-ask.is-busy .dm-ask__bar > i { animation: px-busy 1s linear infinite; background: var(--px-hot); }
@keyframes px-busy { 50% { scale: .82; } }
html body.ds.px-page .dm-ask__hist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; line-height: 20px; color: var(--px-ink-3); text-align: left; }
html body.ds.px-page .dm-ask__hist b { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: var(--air-lift); font-weight: 400; color: var(--px-ink); animation: px-pop .5s cubic-bezier(.34, 1.4, .64, 1) backwards; }
html body.ds.px-page .dm-ask__hist b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); }
@keyframes px-pop { from { opacity: 0; scale: .7; } }

/* ---------- tokens as dots: one dot is a thousand tokens ---------- */
html body.ds.px-page .px-dots { grid-column: 1 / -1; display: grid; gap: 40px; padding: 40px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); }
html body.ds.px-page .px-dotrow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
html body.ds.px-page .px-dotrow > div:first-child { display: grid; gap: 8px; }
html body.ds.px-page .px-dotrow > div:first-child span { font-size: 16px; line-height: 24px; color: var(--px-ink-2); }
html body.ds.px-page .px-dotrow > div:first-child b { font-size: 48px; line-height: 48px; color: var(--px-ink-3); }
html body.ds.px-page .px-dotrow--us > div:first-child :is(span, b) { color: var(--px-ink); }
html body.ds.px-page .px-dotgrid { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 8px; max-width: 900px; padding-top: 6px; }
html body.ds.px-page .px-dotgrid i { aspect-ratio: 1; border-radius: 50%; background: #c9c9c6; opacity: 0; scale: .2; }
html body.ds.px-page .px-dotrow--us .px-dotgrid i { background: var(--px-ink); }
html body.ds.px-page .px-dotrow--us .px-dotgrid i:last-child { background: var(--px-hot); }
html body.ds.px-page .px-dots.is-in .px-dotgrid i { animation: px-dotin .5s cubic-bezier(.34, 1.4, .64, 1) forwards, px-wave 5s ease-in-out infinite; animation-delay: calc(.2s + var(--d) * 22ms), calc(2.4s + var(--d) * 45ms); }
@keyframes px-dotin { to { opacity: 1; scale: 1; } }
@keyframes px-wave { 0%, 14%, 100% { transform: none; } 7% { transform: translateY(-5px); } }

/* ---------- install: the window types what the stage you are reading does ---------- */
html body.ds.px-page .px-win--sync .ln { opacity: 0; animation: none; clip-path: inset(0 100% 0 0); }
html body.ds.px-page .px-win--sync .ln.is-show { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .7s steps(28) calc(var(--k, 0) * .5s), opacity .01s calc(var(--k, 0) * .5s); }
html body.ds.px-page .px-win--sync pre::after { content: ""; width: 8px; height: 16px; background: var(--px-ink); animation: px-caret 1s steps(1) infinite; }
html body.ds.px-page .px-code button.is-ok { background: var(--px-hot); }

/* ---------- Studio's ending: the editor's windows fly past ---------- */
html body.ds.px-page .px-fly { position: absolute; inset: 0; z-index: -1; perspective: 900px; overflow: hidden; }
html body.ds.px-page .px-fly i { position: absolute; left: 50%; top: 50%; width: 300px; aspect-ratio: 16 / 10; margin: -94px 0 0 -150px; border-radius: 12px; background: #1a1a1c center / cover no-repeat; box-shadow: 0 0 0 1px #ffffff1f; opacity: 0; animation: px-fly 10s linear infinite; animation-delay: calc(var(--d) * -1.25s); }
@keyframes px-fly { 0% { opacity: 0; transform: translate3d(calc(var(--x) * .25), calc(var(--y) * .25), -900px); } 20% { opacity: .7; } 70% { opacity: .7; } 100% { opacity: 0; transform: translate3d(calc(var(--x) * 2.2), calc(var(--y) * 2.2), 500px); } }
html body.ds.px-page .px-end::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(46% 56% at 50% 50%, #0a0a0b 30%, #0a0a0b00); pointer-events: none; }
html body.ds.px-page .px-end > :is(h2, .px-acts) { position: relative; z-index: 1; }

/* ---------- Taste: a real deck. Drag a card, or use the two buttons ---------- */
html body.ds.px-page .swp { position: relative; z-index: 2; display: grid; justify-items: center; gap: 20px; width: min(26%, 300px); }
html body.ds.px-page .swp__deck { position: relative; width: 100%; aspect-ratio: 3 / 4; }
html body.ds.px-page .swp__card { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; background: #e8e8e6 top center / cover no-repeat; box-shadow: 0 24px 48px -24px #0a0a0b66, inset 0 0 0 1px #0a0a0b0f; transform: translateY(calc(var(--i) * -10px)) scale(calc(1 - var(--i) * .05)); transition: transform .5s var(--px-ease), opacity .4s; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
html body.ds.px-page .swp__card.is-drag { transition: none; cursor: grabbing; }
html body.ds.px-page .swp__card.is-new { opacity: 0; }
html body.ds.px-page .swp__card b { position: absolute; top: 16px; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 400; font-size: 14px; line-height: 32px; opacity: var(--o, 0); }
html body.ds.px-page .swp__card b.y { left: 16px; background: var(--px-ink); color: #fff; }
html body.ds.px-page .swp__card b.n { right: 16px; background: #fff; color: var(--px-ink); }
html body.ds.px-page .swp__card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(#0a0a0b00, #0a0a0bb3); color: #fff; font-size: 14px; line-height: 20px; letter-spacing: -.01em; text-align: left; }
html body.ds.px-page .swp__ctl { display: flex; align-items: center; gap: 16px; }
html body.ds.px-page .swp__ctl button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--air-lift); transition: scale .3s var(--px-ease), background-color .2s; }
html body.ds.px-page .swp__ctl button:hover { scale: 1.08; }
html body.ds.px-page .swp__ctl button:active, html body.ds.px-page .swp__ctl button.is-hit { scale: .9; }
html body.ds.px-page .swp__ctl button svg { width: 18px; height: 18px; fill: none; stroke: var(--px-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html body.ds.px-page .swp__ctl .swp__yes { background: var(--px-ink); }
html body.ds.px-page .swp__ctl .swp__yes svg { stroke: #fff; }
html body.ds.px-page .swp__count { min-width: 76px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); text-align: center; }
html body.ds.px-page .swp__count b { font: 700 16px/20px Doto, ui-monospace, monospace; color: var(--px-ink); }
html body.ds.px-page .swp__go { position: absolute !important; right: 24px; bottom: 24px; z-index: 3; animation: px-pop .6s cubic-bezier(.34, 1.4, .64, 1) backwards; }
html body.ds.px-page .swp__go[hidden] { display: none !important; }
/* the profile built from your likes */
html body.ds.px-page .px-prof div { grid-template-columns: 76px minmax(0, 1fr) 40px; }
html body.ds.px-page .px-prof em i { animation: none; width: var(--w); transition: width .8s var(--px-ease); }
/* the line the three steps sit on: a light runs along it */
html body.ds.px-page .px-track { position: relative; height: 2px; margin-bottom: 32px; border-radius: 2px; background: #0a0a0b14; overflow: visible; }
html body.ds.px-page .px-track::after { content: ""; position: absolute; top: 0; left: 0; width: 18%; height: 100%; border-radius: 2px; background: linear-gradient(to right, #0a0a0b00, #0a0a0b); animation: px-run 4.5s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes px-run { from { left: -18%; } to { left: 100%; } }
html body.ds.px-page .px-track i { position: absolute; top: -4px; left: calc(var(--k) * (100% + 16px) / 3); width: 10px; height: 10px; border-radius: 50%; background: var(--px-ink); box-shadow: 0 0 0 4px #f1f1f0; }
html body.ds.px-page .px-track { overflow-x: clip; }

/* ---------- Taste: what happens after you drop the references ---------- */
html body.ds.px-page .px-relay { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; margin-top: 16px; padding: 40px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); }
html body.ds.px-page .px-relay__z { display: grid; gap: 24px; }
html body.ds.px-page .px-relay__v { display: grid; place-items: center; height: 200px; border-radius: 24px; background: #f1f1f0; box-shadow: inset 0 1px 2px #0a0a0b14; overflow: hidden; }
html body.ds.px-page .px-relay__z h3 { font-size: 20px; line-height: 28px; letter-spacing: -.02em; }
html body.ds.px-page .px-relay__z p { margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--px-ink-2); }
html body.ds.px-page .px-relay__w { position: relative; align-self: start; height: 200px; }
html body.ds.px-page .px-relay__w::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 1.5px dashed #0a0a0b29; }
html body.ds.px-page .px-relay__w i { position: absolute; top: 50%; left: 12px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--px-ink); animation: px-send 3s cubic-bezier(.5, 0, .5, 1) infinite; }
html body.ds.px-page .px-relay__w--back i { background: var(--px-hot); animation-delay: 1.5s; }
@keyframes px-send { 0% { left: 12px; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 22px); opacity: 0; } }
html body.ds.px-page .px-relay__link { display: flex; align-items: center; gap: 8px; width: 84%; height: 44px; padding: 0 6px 0 14px; border-radius: 14px; background: #fff; box-shadow: var(--air-lift); font: 400 12px/20px ui-monospace, "SF Mono", Menlo, monospace; color: var(--px-ink); }
html body.ds.px-page .px-relay__link span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html body.ds.px-page .px-relay__link b { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--px-ink); color: #fff; font: 400 14px/32px "Instrument Sans", sans-serif; animation: px-press 3s ease-in-out infinite; }
@keyframes px-press { 0%, 8%, 100% { scale: 1; } 4% { scale: .9; } }
html body.ds.px-page .px-phone { position: relative; width: 96px; height: 168px; padding: 6px; border-radius: 20px; background: var(--px-ink); box-shadow: var(--air-lift); }
html body.ds.px-page .px-phone i { position: absolute; inset: 6px; border-radius: 14px; background: #e8e8e6 top center / cover no-repeat; animation: px-phone 6s var(--px-ease) infinite; animation-delay: calc(var(--d) * 2s); opacity: 0; }
@keyframes px-phone { 0% { opacity: 0; transform: scale(.9); } 5%, 26% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateX(120%) rotate(14deg); } }
html body.ds.px-page .px-phone b { position: absolute; right: -14px; top: 28px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--px-hot); animation: px-heart 2s cubic-bezier(.34, 1.4, .64, 1) infinite; }
html body.ds.px-page .px-phone b svg { width: 16px; height: 16px; fill: #fff; }
@keyframes px-heart { 0%, 60% { scale: 0; opacity: 0; } 75% { scale: 1; opacity: 1; } 100% { scale: 1; opacity: 0; transform: translateY(-16px); } }
html body.ds.px-page .px-back { display: grid; gap: 12px; width: 72%; text-align: left; }
html body.ds.px-page .px-back p { margin: 0; font-size: 14px; line-height: 20px; color: var(--px-ink-2); }
html body.ds.px-page .px-back p b { font: 700 24px/28px Doto, ui-monospace, monospace; color: var(--px-ink); }
html body.ds.px-page .px-back em { display: block; height: 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 1px 2px #0a0a0b14; overflow: hidden; }
html body.ds.px-page .px-back em i { display: block; height: 100%; border-radius: inherit; background: var(--px-ink); transform-origin: 0 50%; animation: px-fill 12s linear infinite; }
@keyframes px-fill { 0% { transform: scaleX(0); } 90%, 100% { transform: none; } }

/* ---------- Taste's ending: three rows of references drift past ---------- */
html body.ds.px-page .px-rows { position: absolute; inset: 0; z-index: -1; display: grid; align-content: center; gap: 16px; opacity: .85; }
html body.ds.px-page .px-rows div { display: flex; gap: 16px; width: max-content; animation: px-tick 60s linear infinite; }
html body.ds.px-page .px-rows div:nth-child(2) { animation-direction: reverse; animation-duration: 75s; }
html body.ds.px-page .px-rows i { flex: none; width: 240px; aspect-ratio: 16 / 10; border-radius: 12px; background: #1a1a1c top center / cover no-repeat; }
@keyframes px-tick { to { transform: translateX(calc(-50% - 8px)); } }
html body.ds.px-page .px-end--rows { min-height: 600px; }
html body.ds.px-page .px-end--rows::before { background: radial-gradient(44% 56% at 50% 50%, #0a0a0b 30%, #0a0a0b80 70%, #0a0a0b4d); }

/* cards lean a little towards the pointer */
html body.ds.px-page .px-tilt { transform-style: preserve-3d; }

@media (max-width: 999px) {
  html body.ds.px-page .px-what__say { font-size: 32px; line-height: 40px; }
  html body.ds.px-page .px-what__cols, html body.ds.px-page .px-what__cols--2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  html body.ds.px-page .px-demo { padding: 20px; aspect-ratio: auto; min-height: 380px; }
  html body.ds.px-page .px-relay { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px; }
  html body.ds.px-page .px-relay__w { display: none; }
  html body.ds.px-page .px-track { display: none; }
  html body.ds.px-page .swp { width: min(34%, 260px); }
  html body.ds.px-page .px-dotrow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 799px) {
  html body.ds.px-page .px-ed__panel { width: 100%; max-width: 360px; }
  html body.ds.px-page .px-ed__sel { padding: 4px 8px; }
  html body.ds.px-page .px-ed .px-h1 { font-size: min(var(--ed-size, 36px), 36px) !important; line-height: 40px !important; }
  html body.ds.px-page .px-ed__sel { min-height: 80px; }
  html body.ds.px-page .px-what__say { font-size: 24px; line-height: 32px; }
  html body.ds.px-page .px-what__cols { margin-top: 40px !important; }
  html body.ds.px-page .dm-tweak { grid-template-columns: minmax(0, 1fr); }
  html body.ds.px-page .px-dots { padding: 24px; border-radius: 24px; gap: 32px; }
  html body.ds.px-page .px-dotgrid { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; }
  html body.ds.px-page .px-dotrow > div:first-child b { font-size: 40px; line-height: 40px; }
  html body.ds.px-page .swp { width: 56%; gap: 16px; }
  html body.ds.px-page .px-stage--deck .px-stage__in { aspect-ratio: auto; padding: 56px 0 72px; }
  html body.ds.px-page .swp__go { right: 16px; bottom: 16px; }
  html body.ds.px-page .px-stage--deck .px-tag { display: none; }
  html body.ds.px-page .px-fly i { width: 200px; margin: -62px 0 0 -100px; }
  html body.ds.px-page .px-rows i { width: 180px; }
  html body.ds.px-page .px-relay { border-radius: 24px; }
  html body.ds.px-page .px-seg button { height: 36px; }
  html body.ds.px-page .px-sws button { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.ds.px-page .px-dotgrid i, html body.ds.px-page .px-win--sync .ln { opacity: 1; scale: 1; clip-path: none; }
  html body.ds.px-page .px-what__say span { color: var(--px-ink); }
  html body.ds.px-page .px-stage--grow { transform: none; }
  html body.ds.px-page .px-fly, html body.ds.px-page .px-cur { display: none; }
  html body.ds.px-page .px-phone i:first-of-type { opacity: 1; }
}

/* demos never push their card wider than the screen */
html body.ds.px-page .px-demo { min-width: 0; }
html body.ds.px-page .px-demo > * { min-width: 0; max-width: 100%; }
@media (max-width: 799px) {
  html body.ds.px-page .dm-bp__top { flex-direction: column; gap: 8px; }
  html body.ds.px-page .dm-bp .px-seg button { padding: 0 10px; }
  html body.ds.px-page .dm-bp__w { min-width: 0; text-align: center; }
  html body.ds.px-page .px-wall { display: none; }
  html body.ds.px-page .px-stage--deck .px-stage__in { padding: 40px 0; }
}

/* =========================================================================================================
   Third pass (24 Nov): the ending is the whole screen. It opens out of a rounded card as you scroll into it,
   its picture settles, the heading rises word by word. The footer follows it. Used by every product page.
   ========================================================================================================= */
html body.ds.px-page .px { --px-edge: var(--ds-edge, 32px); padding: 0 var(--px-edge); }
@media (max-width: 799px) { html body.ds.px-page .px { --px-edge: 16px; } }
html body.ds.px-page .px-end, html body.ds.px-page .px-end--rows { --e: 0; box-sizing: border-box; width: calc(100% + 2 * var(--px-edge)); max-width: none; height: 100vh; height: 100svh; min-height: 600px; margin: 200px calc(-1 * var(--px-edge)) 0; padding: 96px 32px; border-radius: 0;
  clip-path: inset(calc((1 - var(--e)) * 10%) calc((1 - var(--e)) * 7%) calc((1 - var(--e)) * 2%) round calc((1 - var(--e)) * 56px)); will-change: clip-path; }
html body.ds.px-page .px-end .px-rows { opacity: calc(.15 + var(--e) * .75); transform: scale(calc(1.3 - var(--e) * .3)); transform-origin: 50% 50%; }
html body.ds.px-page .px-end .px-rows i { width: 320px; border-radius: 16px; }
html body.ds.px-page .px-end .px-fly { opacity: var(--e); }
html body.ds.px-page .px-end .px-fly i { width: 380px; margin: -119px 0 0 -190px; }
html body.ds.px-page .px-end canvas { opacity: calc(var(--e) * .9); }
html body.ds.px-page .px-end--rows::before { background: radial-gradient(40% 46% at 50% 50%, #0a0a0bf2 30%, #0a0a0b8c 72%, #0a0a0b59); }
/* the heading: each word comes up out of its own line */
html body.ds.px-page .px-end .px-h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
html body.ds.px-page .px-end .px-h2 .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--wi) * 60ms); }
html body.ds.px-page .px-end.is-open .px-h2 .w > span { transform: none; }
html body.ds.px-page .px-end .px-h2 .h-mute { display: block; }
html body.ds.px-page .px-end .px-acts { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .6s ease .5s, transform .8s cubic-bezier(.2, .8, .2, 1) .5s; }
html body.ds.px-page .px-end.is-open .px-acts { opacity: 1; transform: none; }
@media (max-width: 799px) {
  html body.ds.px-page .px-end, html body.ds.px-page .px-end--rows { margin-top: 120px; min-height: 520px; padding: 80px 20px; border-radius: 0; }
  html body.ds.px-page .px-end .px-rows i { width: 200px; }
  html body.ds.px-page .px-end .px-fly i { width: 220px; margin: -69px 0 0 -110px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.ds.px-page .px-end { clip-path: none; }
  html body.ds.px-page .px-end .px-h2 .w > span, html body.ds.px-page .px-end .px-acts { transform: none; opacity: 1; }
  html body.ds.px-page .px-end .px-rows { opacity: .85; transform: none; }
}
/* Taste: the footer belongs to the product page, not to an open board */
html body.ds.px-page:has(#home[hidden]) #ft { display: none; }

/* =========================================================================================================
   Fourth pass (24 Nov): one skeleton for the products. Taste gets its numbers (seven scales moved by your likes),
   its start as stages on a rail, and questions.
   ========================================================================================================= */
html body.ds.px-page .px-scales { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
html body.ds.px-page .px-scales__n { display: grid; gap: 16px; }
html body.ds.px-page .px-scales__n .px-stat { min-height: 0; }
html body.ds.px-page .px-axes { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px; border-radius: 32px; background: #fff; box-shadow: var(--air-lift); }
html body.ds.px-page .px-axes__rows { display: grid; gap: 22px; }
html body.ds.px-page .px-axis { --v: 50%; display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; align-items: center; gap: 20px; font-size: 16px; line-height: 24px; color: var(--px-ink-3); transition: color .4s; }
html body.ds.px-page .px-axis > span:first-child { text-align: right; }
html body.ds.px-page .px-axis > span { transition: color .4s; }
html body.ds.px-page .px-axis.is-low > span:first-child, html body.ds.px-page .px-axis.is-high > span:last-child { color: var(--px-ink); }
html body.ds.px-page .px-axis em { position: relative; height: 6px; border-radius: 999px; background: #f1f1f0; box-shadow: inset 0 1px 2px #0a0a0b14; }
html body.ds.px-page .px-axis em::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 16px; background: #0a0a0b1f; }
html body.ds.px-page .px-axis em i { position: absolute; top: 50%; left: var(--v); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--px-ink); box-shadow: 0 0 0 4px #fff, 0 4px 10px #0a0a0b33; transition: left .9s cubic-bezier(.34, 1.3, .64, 1); }
html body.ds.px-page .px-axes__note { display: flex; align-items: center; gap: 8px; padding-top: 24px; border-top: 1px solid #0a0a0b0f; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); }
html body.ds.px-page .px-axes__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); animation: px-dot 2.4s ease-in-out infinite; }

/* Taste's start: three stages on the rail, the drop zone held beside them */
html body.ds.px-page .px-dropcol { position: sticky; top: 104px; }
html body.ds.px-page .px-drop--col { grid-template-columns: minmax(0, 1fr); }
html body.ds.px-page .px-drop--col .base-start { flex-direction: row; align-items: center; height: auto; padding: 20px 24px !important; }
html body.ds.px-page .px-rail .px-relay__link { width: min(380px, 100%); margin-top: 16px; }
html body.ds.px-page .px-return { display: flex; align-items: center; gap: 32px; width: min(380px, 100%); box-sizing: border-box; margin-top: 16px; padding: 24px; border-radius: 24px; background: #fff; box-shadow: var(--air-lift); }
html body.ds.px-page .px-return .px-phone { flex: none; width: 72px; height: 126px; border-radius: 16px; padding: 5px; }
html body.ds.px-page .px-return .px-phone i { inset: 5px; border-radius: 11px; }
html body.ds.px-page .px-return .px-phone b { width: 28px; height: 28px; right: -10px; top: 20px; }
html body.ds.px-page .px-return .px-phone b svg { width: 12px; height: 12px; }
html body.ds.px-page .px-return .px-back { width: auto; flex: 1; }
html body.ds.px-page .px-return .px-back em { background: #f1f1f0; }
@media (max-width: 999px) {
  html body.ds.px-page .px-scales { grid-template-columns: minmax(0, 1fr); }
  html body.ds.px-page .px-scales__n { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body.ds.px-page .px-dropcol { position: static; }
  html body.ds.px-page .px-flow--client > .px-dropcol { order: -1; }
}
@media (max-width: 799px) {
  html body.ds.px-page .px-axes { padding: 24px 20px; border-radius: 24px; }
  html body.ds.px-page .px-axis { grid-template-columns: 76px minmax(0, 1fr) 76px; gap: 12px; font-size: 14px; line-height: 20px; }
  html body.ds.px-page .px-scales__n { grid-template-columns: minmax(0, 1fr); }
  html body.ds.px-page .px-drop--col .base-start { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================================================
   Fifth pass (24 Nov, evening): Taste. The drop zone and the 20 base references are redrawn for their narrow
   column (nothing overlaps, one quiet dashed well); the page ends on the other products, then the footer.
   ========================================================================================================= */
html body.ds.px-page .px:not(:has(.px-end)) { padding-bottom: 160px; }
html body.ds.px-page .px-drop--col { gap: 16px; }
html body.ds.px-page .px-drop--col .drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0 !important; min-height: 0 !important; height: auto; padding: 56px 32px 40px !important; border: 0 !important; border-radius: 32px !important; background: #fff !important; box-shadow: var(--air-lift) !important; overflow: hidden; text-align: center; transition: box-shadow .3s; }
html body.ds.px-page .px-drop--col .drop::before { content: ""; position: absolute; inset: 8px; border-radius: 24px; border: 1.5px dashed #0a0a0b24; background: #f1f1f000; pointer-events: none; transition: border-color .3s, background-color .3s; }
html body.ds.px-page .px-drop--col .drop:is(:hover, :focus-visible, .is-over) { background: #fff !important; box-shadow: var(--air-lift-hi) !important; }
html body.ds.px-page .px-drop--col .drop:is(:hover, :focus-visible, .is-over)::before { border-color: #0a0a0b; background: #f1f1f080; }
html body.ds.px-page .px-drop--col .drop > * { position: relative; }
html body.ds.px-page .px-drop--col .drop__edge { display: none !important; }
html body.ds.px-page .px-drop--col .drop__fan { --cw: 132px; --ch: 88px; margin: 0 0 40px; }
html body.ds.px-page .px-drop--col .drop__fan i { border-radius: 8px; box-shadow: 0 0 0 1px #0a0a0b0f, 0 18px 32px -16px #0a0a0b73; }
html body.ds.px-page .px-drop--col .drop__title { font-size: 32px !important; line-height: 36px !important; font-weight: 400; letter-spacing: -.03em; color: var(--px-ink); text-wrap: balance; }
html body.ds.px-page .px-drop--col .drop__title::first-letter { text-transform: uppercase; }
html body.ds.px-page .px-drop--col .drop__sub { max-width: 360px; margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--px-ink-2); }
html body.ds.px-page .px-drop--col .drop__btn { margin-top: 32px; }
html body.ds.px-page .px-drop--col .drop__fmt { margin-top: 16px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; text-transform: none; color: var(--px-ink-3); }
html body.ds.px-page .px-drop--col .base-start { display: grid !important; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 16px 24px; width: 100%; height: auto; margin: 0 !important; padding: 24px 32px 24px 24px !important; border-radius: 32px !important; background: #fff !important; box-shadow: var(--air-lift) !important; text-align: left; transition: box-shadow .3s, transform .5s var(--px-ease); }
html body.ds.px-page .px-drop--col .base-start:is(:hover, :focus-visible) { background: #fff !important; box-shadow: var(--air-lift-hi) !important; transform: translateY(-2px); }
html body.ds.px-page .px-drop--col .base-start__fan { grid-row: 1 / span 2; align-self: center; width: 128px; height: 64px; }
html body.ds.px-page .px-drop--col .base-start__fan i { border-radius: 8px; box-shadow: 0 0 0 1px #0a0a0b0f, 0 10px 18px -10px #0a0a0b66; }
html body.ds.px-page .px-drop--col .base-start__txt { gap: 4px; min-width: 0; }
html body.ds.px-page .px-drop--col .base-start__txt b { font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: -.02em; color: var(--px-ink); }
html body.ds.px-page .px-drop--col .base-start__txt span { font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); text-wrap: pretty; }
html body.ds.px-page .px-drop--col .base-start__go { grid-column: 2; justify-self: start; height: 40px; white-space: nowrap; }
@media (max-width: 599px) {
  html body.ds.px-page .px-drop--col .drop { padding: 48px 20px 32px !important; border-radius: 24px !important; }
  html body.ds.px-page .px-drop--col .drop::before { border-radius: 16px; }
  html body.ds.px-page .px-drop--col .drop__title { font-size: 28px !important; line-height: 32px !important; }
  html body.ds.px-page .px-drop--col .base-start { grid-template-columns: minmax(0, 1fr); padding: 24px !important; border-radius: 24px !important; }
  html body.ds.px-page .px-drop--col .base-start__fan { grid-row: auto; }
  html body.ds.px-page .px-drop--col .base-start__go { grid-column: 1; }
}

/* the seven scales can be dragged */
html body.ds.px-page .px-axis em { cursor: pointer; touch-action: none; }
html body.ds.px-page .px-axis em::after { content: ""; position: absolute; inset: -14px 0; }
html body.ds.px-page .px-axis em i { z-index: 1; cursor: grab; transition: left .9s cubic-bezier(.34, 1.3, .64, 1), scale .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
html body.ds.px-page .px-axis em:hover i { scale: 1.12; }
html body.ds.px-page .px-axis.is-drag em i { cursor: grabbing; scale: 1.2; transition: scale .25s, box-shadow .25s; box-shadow: 0 0 0 4px #fff, 0 8px 18px #0a0a0b4d; }
html body.ds.px-page .px-axis em i:focus { outline: none; }
html body.ds.px-page .px-axis em i:focus-visible { outline: 2px solid var(--px-ink); outline-offset: 6px; }
/* the Studio film is shown whole, in its own proportions */
html body.ds.px-page .px-stage__in > video { object-fit: contain; }

/* ---------- Sixth pass (25 Nov): Studio's first screen. The one panel on the right is gone: each control is its own
   small card set round the heading (font and colour on the left; size, spacing and the token count on the right),
   and they drift up at different speeds as the page scrolls. The token count is the dark one. ---------- */
html body.ds.px-page .px-ed__panel { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: auto; max-width: 720px; margin-top: 40px; padding: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; }
html body.ds.px-page .px-ed__chip { box-sizing: border-box; display: grid; gap: 10px; align-content: start; margin: 0; padding: 14px 16px 16px; border-radius: 20px; background: #fff; box-shadow: var(--air-lift-hi); font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: var(--px-ink-2); transition: box-shadow .4s, scale .5s var(--px-ease); will-change: translate; }
html body.ds.px-page .px-ed__chip:hover { scale: 1.03; }
html body.ds.px-page .px-ed__chip > span { display: flex; align-items: center; gap: 8px; }
html body.ds.px-page .px-ed__rng { display: grid; grid-template-columns: 148px auto; align-items: center; gap: 12px; }
html body.ds.px-page .px-ed__rng b { min-width: 24px; font-size: 14px; text-align: right; color: var(--px-ink); }
html body.ds.px-page .px-ed__chip--color .px-sws { padding: 4px 2px; }
html body.ds.px-page .px-ed__tok { grid-template-columns: auto auto; align-items: end; justify-content: space-between; gap: 24px; min-width: 196px; padding: 16px 18px; background: var(--px-ink); color: #ffffff99; box-shadow: 0 24px 48px -24px #0a0a0b80; }
html body.ds.px-page .px-ed__tok i { width: 6px; height: 6px; border-radius: 50%; background: var(--px-hot); animation: px-dot 2.4s ease-in-out infinite; }
html body.ds.px-page .px-ed__tok b { font-size: 40px; line-height: 36px; font-weight: 400; color: #fff; }
html body.ds.px-page .px-ed__tok.is-tick b { animation: px-tick .5s var(--px-ease); }
@keyframes px-tick { 40% { transform: translateY(-4px) scale(1.12); color: var(--px-hot); } }
html body.ds.px-page .px-ed .px-h1 { letter-spacing: var(--ed-track, -.03em) !important; transition: font-size .5s var(--px-ease), letter-spacing .4s var(--px-ease); }
@media (min-width: 1100px) {
  html body.ds.px-page .px-ed__panel { display: contents; }
  html body.ds.px-page .px-ed__chip { position: absolute; z-index: 2; }
  html body.ds.px-page .px-ed__chip--font { right: calc(50% + 316px); top: calc(196px + env(safe-area-inset-top)); }
  html body.ds.px-page .px-ed__chip--color { right: calc(50% + 372px); top: calc(336px + env(safe-area-inset-top)); }
  html body.ds.px-page .px-ed__chip--size { left: calc(50% + 316px); top: calc(156px + env(safe-area-inset-top)); }
  html body.ds.px-page .px-ed__chip--track { left: calc(50% + 372px); top: calc(276px + env(safe-area-inset-top)); }
  html body.ds.px-page .px-ed__tok { left: calc(50% + 300px); top: calc(404px + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) { html body.ds.px-page .px-ed__tok.is-tick b { animation: none; } }

/* ---------- Seventh pass (25 Nov): the cards stand further from the heading, at the edges of the column and at
   different heights, and look like fields of an inspector: a label with its current value, then the control. ---------- */
html body.ds.px-page .px-ed__chip { gap: 12px; min-width: 216px; padding: 14px 16px 16px; border-radius: 20px; box-shadow: 0 0 0 1px #0a0a0b0a, 0 1px 2px #0a0a0b0a, 0 24px 48px -28px #0a0a0b47; }
html body.ds.px-page .px-ed__chip > span { justify-content: space-between; gap: 16px; color: var(--px-ink); }
html body.ds.px-page .px-ed__chip > span em { font: 400 12px/20px ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; letter-spacing: 0; color: var(--px-ink-3); }
html body.ds.px-page .px-ed__rng { display: block; }
html body.ds.px-page .px-ed__rng b { display: none; }
html body.ds.px-page .px-ed__rng input { display: block; width: 100%; }
html body.ds.px-page .px-ed__chip .px-seg { display: flex; }
html body.ds.px-page .px-ed__chip .px-seg button { flex: 1; }
html body.ds.px-page .px-ed__chip--color .px-sws { gap: 10px; padding: 2px; }
html body.ds.px-page .px-ed__chip--color .px-sws button { width: 28px; height: 28px; }
html body.ds.px-page .px-ed__tok { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 232px; padding: 16px 18px 18px; border-radius: 24px; box-shadow: 0 32px 56px -28px #0a0a0b99; }
html body.ds.px-page .px-ed__tok > span { justify-content: flex-start; gap: 8px; color: #fff; }
html body.ds.px-page .px-ed__tok > span em { margin-left: auto; color: #ffffff66; }
html body.ds.px-page .px-ed__tok b { font-size: 56px; line-height: 52px; }
html body.ds.px-page .px-ed__tok u { display: block; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #ffffff2e 0 4px, #0000 4px 8px); text-decoration: none; }
@media (min-width: 1100px) {
  html body.ds.px-page .px-ed__chip--font { right: auto; left: 0; top: calc(148px + env(safe-area-inset-top)); }
  html body.ds.px-page .px-ed__chip--color { right: auto; left: 88px; top: calc(408px + env(safe-area-inset-top)); min-width: 0; }
  html body.ds.px-page .px-ed__chip--size { left: auto; right: 56px; top: calc(116px + env(safe-area-inset-top)); }
  html body.ds.px-page .px-ed__chip--track { left: auto; right: 0; top: calc(252px + env(safe-area-inset-top)); }
  html body.ds.px-page .px-ed__tok { left: auto; right: 104px; top: calc(392px + env(safe-area-inset-top)); }
}
@media (min-width: 1100px) and (max-width: 1279px) { html body.ds.px-page .px-ed__chip { min-width: 184px; } html body.ds.px-page .px-ed__chip--color { left: 40px; } html body.ds.px-page .px-ed__chip--size { right: 16px; } html body.ds.px-page .px-ed__tok { right: 32px; min-width: 200px; } }
/* Taste, Three minutes (25 Nov): each step shows the real tool, a short cut from the brief's own recording */
html body.ds.px-page .px-line__v--film { background: #0a0a0b; box-shadow: inset 0 0 0 1px #0a0a0b; }
html body.ds.px-page .px-line__v--film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the whole frame of the tool, nothing cut: the picture area takes the recording's own 16:10 */
html body.ds.px-page .px-line__v--film { aspect-ratio: 16 / 10; }
html body.ds.px-page .px-line__v--film video { object-fit: contain; }
html body.ds.px-page .px-line__v--film { box-shadow: none; }
html body.ds.px-page .px-line__v--film video { object-fit: cover; scale: 1.03; }

/* Tokens used (26 Nov): Studio's count stays at 0; under it, what the same edits would cost asked of plain Claude Code, growing with each change */
html body.ds.px-page .px-ed__tok u { position: relative; overflow: hidden; }
html body.ds.px-page .px-ed__tok u::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--px-hot) 0 4px, #0000 4px 8px); clip-path: inset(0 calc(100% - var(--f, 0) * 100%) 0 0); transition: clip-path .6s var(--px-ease); }
html body.ds.px-page .px-ed__tok small { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 20px; letter-spacing: -.01em; color: #ffffff99; }
html body.ds.px-page .px-ed__tok small b { font-size: 16px; line-height: 20px; font-weight: 400; color: #fff; }
html body.ds.px-page .px-ed__tok small b.is-up { animation: px-up .6s var(--px-ease); }
@keyframes px-up { 30% { color: var(--px-hot); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { html body.ds.px-page .px-ed__tok small b.is-up { animation: none; } }
html body.ds.px-page .px-ed__tok > b { font-size: 44px !important; line-height: 40px !important; }
html body.ds.px-page .px-ed__tok small b { font-size: 16px !important; line-height: 20px !important; }
@media (min-width: 1100px) { html body.ds.px-page .px-ed__tok { top: calc(356px + env(safe-area-inset-top)); } html body.ds.px-page .px-ed__chip--track { top: calc(236px + env(safe-area-inset-top)); } }
